v8/test/inspector/debugger/wasm-side-effect-free-debug-evaluate-expected.txt
Benedikt Meurer 679ccde045 [wasm][debug] Properly mark WebAssembly APIs as side-effect free.
Various WebAssembly APIs that don't have observable side-effects aren't
marked as such, leading to the inability of DevTools front-end to
generate eager evaluation previews in the Console, and also making them
unusable in conditional breakpoints and logpoints.

Bug: chromium:1164241
Change-Id: I8f0675d2ed5b362b34a6f6c756d372a61e9e8564
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2891571
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
Auto-Submit: Benedikt Meurer <bmeurer@chromium.org>
Reviewed-by: Andreas Haas <ahaas@chromium.org>
Cr-Commit-Position: refs/heads/master@{#74563}
2021-05-14 05:23:07 +00:00

34 lines
1.4 KiB
Plaintext

Test side-effect-free evaluation of WebAssembly APIs
Running test: testWebAssemblyGlobal
someGlobalGlobal.value: ok
someGlobalGlobal.valueOf(): ok
new WebAssembly.Global({value: "f32", mutable: true}, 3.14): ok
new WebAssembly.Global({value: "f32", mutable: false}, 3.14): ok
new WebAssembly.Global({value: "f32", mutable: true}, 3.14).value: ok
new WebAssembly.Global({value: "f32", mutable: true}, 3.14).valueOf(): ok
Running test: testWebAssemblyInstance
someGlobalInstance.exports: ok
new WebAssembly.Instance(someGlobalModule): ok
new WebAssembly.Instance(someGlobalModule).exports: ok
Running test: testWebAssemblyMemory
someGlobalMemory.buffer: ok
new WebAssembly.Memory({initial: 1}): ok
new WebAssembly.Memory({initial: 1}).buffer: ok
Running test: testWebAssemblyModule
WebAssembly.Module.customSections(someGlobalModule, ".debug_info"): ok
WebAssembly.Module.exports(someGlobalModule): ok
WebAssembly.Module.imports(someGlobalModule): ok
new WebAssembly.Module(EMPTY_WASM_MODULE_BYTES): ok
WebAssembly.Module.customSections(new WebAssembly.Module(EMPTY_WASM_MODULE_BYTES), ".debug_info"): ok
WebAssembly.Module.exports(new WebAssembly.Module(EMPTY_WASM_MODULE_BYTES)): ok
WebAssembly.Module.imports(new WebAssembly.Module(EMPTY_WASM_MODULE_BYTES)): ok
Running test: testWebAssemblyTable
someGlobalTable.get(0): ok
new WebAssembly.Table({element: "anyfunc", initial: 1}): ok
new WebAssembly.Table({element: "anyfunc", initial: 1}).get(0): ok