v8/test/inspector/debugger/wasm-gc-breakpoints-expected.txt
Benedikt Meurer 32f80efe7e [inspector] Improve RemoteObject description for Wasm functions.
The WebAssembly specification requires the "name" property of (exported)
function wrappers to hold the index of the function within the module,
and the default ToString algorithm for Function instances thus generates
something along the lines of `function 42() { [native code] }`, which is
technically correct, but not very useful to developers to diagnose
(humans don't think of functions in a module in terms of their indices).
With this CL, we change the description returned for Wasm (exported)
functions to use the debug name of the Wasm function instead.

Screenshot: https://imgur.com/a/FVPeXDU.png
Doc: http://bit.ly/devtools-wasm-entities
Fixed: chromium:1206620
Bug: chromium:1164241
Change-Id: I096abc287ea077556c13c71f8d71f64452ab4831
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2891570
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
Auto-Submit: Benedikt Meurer <bmeurer@chromium.org>
Reviewed-by: Kim-Anh Tran <kimanh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#74517}
2021-05-12 09:35:17 +00:00

32 lines
880 B
Plaintext

Tests GC object inspection.
Running test: test
Instantiating.
Waiting for wasm script (ignoring first non-wasm script).
Setting breakpoint at offset 107 on script wasm://wasm/22e4830a
Calling main()
Paused:
Script wasm://wasm/22e4830a byte offset 107: Wasm opcode 0x21 (kExprLocalSet)
Scope:
at $main (0:107):
- scope (wasm-expression-stack):
0: Array ((ref $ArrC))
object details:
0: Struct ((ref null $StrA))
length: 1 (number)
- scope (local):
$varA: Struct ((ref null $StrA))
$varB: null ((ref null $ArrC))
object details:
$byte: 127 (i8)
$word: 32767 (i16)
$pointer: Struct ((ref $StrB))
- scope (module):
instance: exports: "main" (Function)
module: Module
functions: "$main": (Function)
globals: "$global0": function $main() { [native code] } ((ref null $type3))
at (anonymous) (0:17):
-- skipped
exports.main returned!