v8/test/inspector/debugger/wasm-scope-info-liftoff-expected.txt
Ng Zhi An f41941a05b Use WasmValue in inspector
Convert wasm-value into internal::WasmValue, then to debug::WasmValue.
This is then copied into a CDP protocol object via a new class,
WasmValueMirror.

Bug: v8:10347
Change-Id: I5778d2cc5701caf82e4a97ac329303e510695b74
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2151130
Reviewed-by: Yang Guo <yangguo@chromium.org>
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Reviewed-by: Clemens Backes <clemensb@chromium.org>
Reviewed-by: Kim-Anh Tran <kimanh@chromium.org>
Commit-Queue: Zhi An Ng <zhin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#67908}
2020-05-19 17:47:40 +00:00

231 lines
6.1 KiB
Plaintext

Test retrieving scope information from compiled Liftoff frames
Installing instantiate code.
Waiting for wasm script to be parsed.
Calling instantiate function.
Got wasm script!
Setting breakpoint on line 2 (first instruction) of third function
{
columnNumber : 85
lineNumber : 0
scriptId : <scriptId>
}
Paused:
Script wasm://wasm/c4eb034a byte offset 85: Wasm opcode 0x20
Scope:
at C (interpreted) (0:85):
- scope (module):
globals: "global0": 0 (i32)
- scope (local):
locals: "i32_arg": 42 (i32), "i32_local": 0 (i32)
- scope (wasm-expression-stack):
at B (liftoff) (0:76):
- scope (module):
globals: "global0": 0 (i32)
- scope (local):
locals: "0": 0 (f32), "i32_arg": 42 (i32), "i32_local": 0 (i32), "f32_local": 7.199999809265137 (f32), "var5": 0 (f32)
- scope (wasm-expression-stack):
0: 42 (i32)
1: 3 (i32)
at A (liftoff) (0:54):
- scope (module):
globals: "global0": 0 (i32)
- scope (local):
locals: "var0": 42 (i32)
- scope (wasm-expression-stack):
at (anonymous) (0:17):
- scope (global):
-- skipped globals
Paused:
Script wasm://wasm/c4eb034a byte offset 87: Wasm opcode 0x24
Scope:
at C (interpreted) (0:87):
- scope (module):
globals: "global0": 0 (i32)
- scope (local):
locals: "i32_arg": 42 (i32), "i32_local": 0 (i32)
- scope (wasm-expression-stack):
0: 42 (i32)
at B (liftoff) (0:76):
- scope (module):
globals: "global0": 0 (i32)
- scope (local):
locals: "0": 0 (f32), "i32_arg": 42 (i32), "i32_local": 0 (i32), "f32_local": 7.199999809265137 (f32), "var5": 0 (f32)
- scope (wasm-expression-stack):
0: 42 (i32)
1: 3 (i32)
at A (liftoff) (0:54):
- scope (module):
globals: "global0": 0 (i32)
- scope (local):
locals: "var0": 42 (i32)
- scope (wasm-expression-stack):
at (anonymous) (0:17):
- scope (global):
-- skipped globals
Paused:
Script wasm://wasm/c4eb034a byte offset 89: Wasm opcode 0x41
Scope:
at C (interpreted) (0:89):
- scope (module):
globals: "global0": 42 (i32)
- scope (local):
locals: "i32_arg": 42 (i32), "i32_local": 0 (i32)
- scope (wasm-expression-stack):
at B (liftoff) (0:76):
- scope (module):
globals: "global0": 42 (i32)
- scope (local):
locals: "0": 0 (f32), "i32_arg": 42 (i32), "i32_local": 0 (i32), "f32_local": 7.199999809265137 (f32), "var5": 0 (f32)
- scope (wasm-expression-stack):
0: 42 (i32)
1: 3 (i32)
at A (liftoff) (0:54):
- scope (module):
globals: "global0": 42 (i32)
- scope (local):
locals: "var0": 42 (i32)
- scope (wasm-expression-stack):
at (anonymous) (0:17):
- scope (global):
-- skipped globals
Paused:
Script wasm://wasm/c4eb034a byte offset 91: Wasm opcode 0x21
Scope:
at C (interpreted) (0:91):
- scope (module):
globals: "global0": 42 (i32)
- scope (local):
locals: "i32_arg": 42 (i32), "i32_local": 0 (i32)
- scope (wasm-expression-stack):
0: 47 (i32)
at B (liftoff) (0:76):
- scope (module):
globals: "global0": 42 (i32)
- scope (local):
locals: "0": 0 (f32), "i32_arg": 42 (i32), "i32_local": 0 (i32), "f32_local": 7.199999809265137 (f32), "var5": 0 (f32)
- scope (wasm-expression-stack):
0: 42 (i32)
1: 3 (i32)
at A (liftoff) (0:54):
- scope (module):
globals: "global0": 42 (i32)
- scope (local):
locals: "var0": 42 (i32)
- scope (wasm-expression-stack):
at (anonymous) (0:17):
- scope (global):
-- skipped globals
Paused:
Script wasm://wasm/c4eb034a byte offset 93: Wasm opcode 0x0b
Scope:
at C (interpreted) (0:93):
- scope (module):
globals: "global0": 42 (i32)
- scope (local):
locals: "i32_arg": 42 (i32), "i32_local": 47 (i32)
- scope (wasm-expression-stack):
at B (liftoff) (0:76):
- scope (module):
globals: "global0": 42 (i32)
- scope (local):
locals: "0": 0 (f32), "i32_arg": 42 (i32), "i32_local": 0 (i32), "f32_local": 7.199999809265137 (f32), "var5": 0 (f32)
- scope (wasm-expression-stack):
0: 42 (i32)
1: 3 (i32)
at A (liftoff) (0:54):
- scope (module):
globals: "global0": 42 (i32)
- scope (local):
locals: "var0": 42 (i32)
- scope (wasm-expression-stack):
at (anonymous) (0:17):
- scope (global):
-- skipped globals
Paused:
Script wasm://wasm/c4eb034a byte offset 78: Wasm opcode 0x1a
Scope:
at B (liftoff) (0:78):
- scope (module):
globals: "global0": 42 (i32)
- scope (local):
locals: "0": 0 (f32), "i32_arg": 42 (i32), "i32_local": 0 (i32), "f32_local": 7.199999809265137 (f32), "var5": 0 (f32)
- scope (wasm-expression-stack):
0: 42 (i32)
1: 3 (i32)
at A (liftoff) (0:54):
- scope (module):
globals: "global0": 42 (i32)
- scope (local):
locals: "var0": 42 (i32)
- scope (wasm-expression-stack):
at (anonymous) (0:17):
- scope (global):
-- skipped globals
Paused:
Script wasm://wasm/c4eb034a byte offset 79: Wasm opcode 0x1a
Scope:
at B (liftoff) (0:79):
- scope (module):
globals: "global0": 42 (i32)
- scope (local):
locals: "0": 0 (f32), "i32_arg": 42 (i32), "i32_local": 0 (i32), "f32_local": 7.199999809265137 (f32), "var5": 0 (f32)
- scope (wasm-expression-stack):
0: 42 (i32)
at A (liftoff) (0:54):
- scope (module):
globals: "global0": 42 (i32)
- scope (local):
locals: "var0": 42 (i32)
- scope (wasm-expression-stack):
at (anonymous) (0:17):
- scope (global):
-- skipped globals
Paused:
Script wasm://wasm/c4eb034a byte offset 80: Wasm opcode 0x0b
Scope:
at B (liftoff) (0:80):
- scope (module):
globals: "global0": 42 (i32)
- scope (local):
locals: "0": 0 (f32), "i32_arg": 42 (i32), "i32_local": 0 (i32), "f32_local": 7.199999809265137 (f32), "var5": 0 (f32)
- scope (wasm-expression-stack):
at A (liftoff) (0:54):
- scope (module):
globals: "global0": 42 (i32)
- scope (local):
locals: "var0": 42 (i32)
- scope (wasm-expression-stack):
at (anonymous) (0:17):
- scope (global):
-- skipped globals
Paused:
Script wasm://wasm/c4eb034a byte offset 56: Wasm opcode 0x0b
Scope:
at A (liftoff) (0:56):
- scope (module):
globals: "global0": 42 (i32)
- scope (local):
locals: "var0": 42 (i32)
- scope (wasm-expression-stack):
at (anonymous) (0:17):
- scope (global):
-- skipped globals
Paused:
instance.exports.main(42)#
Scope:
at (anonymous) (0:25):
- scope (global):
-- skipped globals
exports.main returned. Test finished.