d4f31caa09
This adds support for WasmGC objects (structs/arrays) to the inspector backend. For prettier printing, it also adds support for reading the "type" and "field" subsections of the "name" section in Wasm modules. This patch includes a revert of most of commit crrev.com/987a7f4ae45ebfc986525075277debdf73001fc2 because types are more complicated now. Bug: v8:7748, chromium:1177784 Change-Id: Icec52cbbb32291b0e773b40be6771a678c6ec79b Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2715193 Commit-Queue: Jakob Kummerow <jkummerow@chromium.org> Reviewed-by: Manos Koukoutos <manoskouk@chromium.org> Reviewed-by: Benedikt Meurer <bmeurer@chromium.org> Cr-Commit-Position: refs/heads/master@{#73212}
32 lines
875 B
Plaintext
32 lines
875 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 0() { [native code] } ((ref null $type3))
|
|
at (anonymous) (0:17):
|
|
-- skipped
|
|
exports.main returned!
|