cde7a77e3a
Previously we had introduced a special `v8::internal::WasmValue` type which we used to expose Wasm values to the Scope view in Chromium DevTools. The problem however is that these values cannot be exposed to JavaScript (and in particular not to Debug Evaluate), which means that particularly for v128 and i64 we have inconsistent representations across the various parts of DevTools. This change removes the `wasm` type from the RemoteObject and all the adjacent logic, and paves the way for a uniform representation of Wasm values throughout DevTools. For i64 we will simply use BigInt consistently everywhere, and for i32, f32 and f64 we'll just use Number. For externref we will represent the values as-is directly. For v128 values we currently use a Uint8Array, but will introduce a dedicated WasmSimd128 class in a follow-up CL. Bug: chromium:1071432 Fixed: chromium:1159402 Change-Id: I0671e5736c9c27d7ca376e23ed74f16d36e03c80 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2614428 Reviewed-by: Zhi An Ng <zhin@chromium.org> Reviewed-by: Yang Guo <yangguo@chromium.org> Commit-Queue: Zhi An Ng <zhin@chromium.org> Auto-Submit: Benedikt Meurer <bmeurer@chromium.org> Cr-Commit-Position: refs/heads/master@{#71962}
348 lines
10 KiB
Plaintext
348 lines
10 KiB
Plaintext
Test retrieving scope information from compiled Liftoff frames
|
|
|
|
Running test: test
|
|
Calling instantiate function.
|
|
Waiting for wasm script to be parsed.
|
|
Got wasm script!
|
|
Setting breakpoint on line 2 (first instruction) of third function
|
|
{
|
|
columnNumber : 169
|
|
lineNumber : 0
|
|
scriptId : <scriptId>
|
|
}
|
|
Paused:
|
|
Script wasm://wasm/e33badc2 byte offset 169: Wasm opcode 0x20 (kExprLocalGet)
|
|
Scope:
|
|
at C (interpreted) (0:169):
|
|
- scope (wasm-expression-stack):
|
|
- scope (local):
|
|
i32_arg: 42 (number)
|
|
i32_local: 0 (number)
|
|
var2: 0 (number)
|
|
- scope (module):
|
|
instance: exports: "exported_global" (Global), "exported_memory" (Memory), "exported_table" (Table), "main" (Function)
|
|
module: Module
|
|
exported_memory: Memory(1)
|
|
globals: "exported_global": 0 (number)
|
|
at B (liftoff) (0:158):
|
|
- scope (wasm-expression-stack):
|
|
0: 42 (number)
|
|
1: 3 (number)
|
|
- scope (local):
|
|
0: 0 (number)
|
|
i32_arg: 42 (number)
|
|
i32_local: 0 (number)
|
|
f32_local: 7.199999809265137 (number)
|
|
var5: 0 (number)
|
|
v128_local: Uint8Array(16)
|
|
- scope (module):
|
|
instance: exports: "exported_global" (Global), "exported_memory" (Memory), "exported_table" (Table), "main" (Function)
|
|
module: Module
|
|
exported_memory: Memory(1)
|
|
globals: "exported_global": 0 (number)
|
|
at A (liftoff) (0:128):
|
|
- scope (wasm-expression-stack):
|
|
- scope (local):
|
|
var0: 42 (number)
|
|
- scope (module):
|
|
instance: exports: "exported_global" (Global), "exported_memory" (Memory), "exported_table" (Table), "main" (Function)
|
|
module: Module
|
|
exported_memory: Memory(1)
|
|
globals: "exported_global": 0 (number)
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped globals
|
|
|
|
Paused:
|
|
Script wasm://wasm/e33badc2 byte offset 171: Wasm opcode 0x24 (kExprGlobalSet)
|
|
Scope:
|
|
at C (interpreted) (0:171):
|
|
- scope (wasm-expression-stack):
|
|
0: 42 (number)
|
|
- scope (local):
|
|
i32_arg: 42 (number)
|
|
i32_local: 0 (number)
|
|
var2: 0 (number)
|
|
- scope (module):
|
|
instance: exports: "exported_global" (Global), "exported_memory" (Memory), "exported_table" (Table), "main" (Function)
|
|
module: Module
|
|
exported_memory: Memory(1)
|
|
globals: "exported_global": 0 (number)
|
|
at B (liftoff) (0:158):
|
|
- scope (wasm-expression-stack):
|
|
0: 42 (number)
|
|
1: 3 (number)
|
|
- scope (local):
|
|
0: 0 (number)
|
|
i32_arg: 42 (number)
|
|
i32_local: 0 (number)
|
|
f32_local: 7.199999809265137 (number)
|
|
var5: 0 (number)
|
|
v128_local: Uint8Array(16)
|
|
- scope (module):
|
|
instance: exports: "exported_global" (Global), "exported_memory" (Memory), "exported_table" (Table), "main" (Function)
|
|
module: Module
|
|
exported_memory: Memory(1)
|
|
globals: "exported_global": 0 (number)
|
|
at A (liftoff) (0:128):
|
|
- scope (wasm-expression-stack):
|
|
- scope (local):
|
|
var0: 42 (number)
|
|
- scope (module):
|
|
instance: exports: "exported_global" (Global), "exported_memory" (Memory), "exported_table" (Table), "main" (Function)
|
|
module: Module
|
|
exported_memory: Memory(1)
|
|
globals: "exported_global": 0 (number)
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped globals
|
|
|
|
Paused:
|
|
Script wasm://wasm/e33badc2 byte offset 173: Wasm opcode 0x41 (kExprI32Const)
|
|
Scope:
|
|
at C (interpreted) (0:173):
|
|
- scope (wasm-expression-stack):
|
|
- scope (local):
|
|
i32_arg: 42 (number)
|
|
i32_local: 0 (number)
|
|
var2: 0 (number)
|
|
- scope (module):
|
|
instance: exports: "exported_global" (Global), "exported_memory" (Memory), "exported_table" (Table), "main" (Function)
|
|
module: Module
|
|
exported_memory: Memory(1)
|
|
globals: "exported_global": 42 (number)
|
|
at B (liftoff) (0:158):
|
|
- scope (wasm-expression-stack):
|
|
0: 42 (number)
|
|
1: 3 (number)
|
|
- scope (local):
|
|
0: 0 (number)
|
|
i32_arg: 42 (number)
|
|
i32_local: 0 (number)
|
|
f32_local: 7.199999809265137 (number)
|
|
var5: 0 (number)
|
|
v128_local: Uint8Array(16)
|
|
- scope (module):
|
|
instance: exports: "exported_global" (Global), "exported_memory" (Memory), "exported_table" (Table), "main" (Function)
|
|
module: Module
|
|
exported_memory: Memory(1)
|
|
globals: "exported_global": 42 (number)
|
|
at A (liftoff) (0:128):
|
|
- scope (wasm-expression-stack):
|
|
- scope (local):
|
|
var0: 42 (number)
|
|
- scope (module):
|
|
instance: exports: "exported_global" (Global), "exported_memory" (Memory), "exported_table" (Table), "main" (Function)
|
|
module: Module
|
|
exported_memory: Memory(1)
|
|
globals: "exported_global": 42 (number)
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped globals
|
|
|
|
Paused:
|
|
Script wasm://wasm/e33badc2 byte offset 175: Wasm opcode 0x21 (kExprLocalSet)
|
|
Scope:
|
|
at C (interpreted) (0:175):
|
|
- scope (wasm-expression-stack):
|
|
0: 47 (number)
|
|
- scope (local):
|
|
i32_arg: 42 (number)
|
|
i32_local: 0 (number)
|
|
var2: 0 (number)
|
|
- scope (module):
|
|
instance: exports: "exported_global" (Global), "exported_memory" (Memory), "exported_table" (Table), "main" (Function)
|
|
module: Module
|
|
exported_memory: Memory(1)
|
|
globals: "exported_global": 42 (number)
|
|
at B (liftoff) (0:158):
|
|
- scope (wasm-expression-stack):
|
|
0: 42 (number)
|
|
1: 3 (number)
|
|
- scope (local):
|
|
0: 0 (number)
|
|
i32_arg: 42 (number)
|
|
i32_local: 0 (number)
|
|
f32_local: 7.199999809265137 (number)
|
|
var5: 0 (number)
|
|
v128_local: Uint8Array(16)
|
|
- scope (module):
|
|
instance: exports: "exported_global" (Global), "exported_memory" (Memory), "exported_table" (Table), "main" (Function)
|
|
module: Module
|
|
exported_memory: Memory(1)
|
|
globals: "exported_global": 42 (number)
|
|
at A (liftoff) (0:128):
|
|
- scope (wasm-expression-stack):
|
|
- scope (local):
|
|
var0: 42 (number)
|
|
- scope (module):
|
|
instance: exports: "exported_global" (Global), "exported_memory" (Memory), "exported_table" (Table), "main" (Function)
|
|
module: Module
|
|
exported_memory: Memory(1)
|
|
globals: "exported_global": 42 (number)
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped globals
|
|
|
|
Paused:
|
|
Script wasm://wasm/e33badc2 byte offset 177: Wasm opcode 0x0b (kExprEnd)
|
|
Scope:
|
|
at C (interpreted) (0:177):
|
|
- scope (wasm-expression-stack):
|
|
- scope (local):
|
|
i32_arg: 42 (number)
|
|
i32_local: 47 (number)
|
|
var2: 0 (number)
|
|
- scope (module):
|
|
instance: exports: "exported_global" (Global), "exported_memory" (Memory), "exported_table" (Table), "main" (Function)
|
|
module: Module
|
|
exported_memory: Memory(1)
|
|
globals: "exported_global": 42 (number)
|
|
at B (liftoff) (0:158):
|
|
- scope (wasm-expression-stack):
|
|
0: 42 (number)
|
|
1: 3 (number)
|
|
- scope (local):
|
|
0: 0 (number)
|
|
i32_arg: 42 (number)
|
|
i32_local: 0 (number)
|
|
f32_local: 7.199999809265137 (number)
|
|
var5: 0 (number)
|
|
v128_local: Uint8Array(16)
|
|
- scope (module):
|
|
instance: exports: "exported_global" (Global), "exported_memory" (Memory), "exported_table" (Table), "main" (Function)
|
|
module: Module
|
|
exported_memory: Memory(1)
|
|
globals: "exported_global": 42 (number)
|
|
at A (liftoff) (0:128):
|
|
- scope (wasm-expression-stack):
|
|
- scope (local):
|
|
var0: 42 (number)
|
|
- scope (module):
|
|
instance: exports: "exported_global" (Global), "exported_memory" (Memory), "exported_table" (Table), "main" (Function)
|
|
module: Module
|
|
exported_memory: Memory(1)
|
|
globals: "exported_global": 42 (number)
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped globals
|
|
|
|
Paused:
|
|
Script wasm://wasm/e33badc2 byte offset 160: Wasm opcode 0x1a (kExprDrop)
|
|
Scope:
|
|
at B (liftoff) (0:160):
|
|
- scope (wasm-expression-stack):
|
|
0: 42 (number)
|
|
1: 3 (number)
|
|
- scope (local):
|
|
0: 0 (number)
|
|
i32_arg: 42 (number)
|
|
i32_local: 0 (number)
|
|
f32_local: 7.199999809265137 (number)
|
|
var5: 0 (number)
|
|
v128_local: Uint8Array(16)
|
|
- scope (module):
|
|
instance: exports: "exported_global" (Global), "exported_memory" (Memory), "exported_table" (Table), "main" (Function)
|
|
module: Module
|
|
exported_memory: Memory(1)
|
|
globals: "exported_global": 42 (number)
|
|
at A (liftoff) (0:128):
|
|
- scope (wasm-expression-stack):
|
|
- scope (local):
|
|
var0: 42 (number)
|
|
- scope (module):
|
|
instance: exports: "exported_global" (Global), "exported_memory" (Memory), "exported_table" (Table), "main" (Function)
|
|
module: Module
|
|
exported_memory: Memory(1)
|
|
globals: "exported_global": 42 (number)
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped globals
|
|
|
|
Paused:
|
|
Script wasm://wasm/e33badc2 byte offset 161: Wasm opcode 0x1a (kExprDrop)
|
|
Scope:
|
|
at B (liftoff) (0:161):
|
|
- scope (wasm-expression-stack):
|
|
0: 42 (number)
|
|
- scope (local):
|
|
0: 0 (number)
|
|
i32_arg: 42 (number)
|
|
i32_local: 0 (number)
|
|
f32_local: 7.199999809265137 (number)
|
|
var5: 0 (number)
|
|
v128_local: Uint8Array(16)
|
|
- scope (module):
|
|
instance: exports: "exported_global" (Global), "exported_memory" (Memory), "exported_table" (Table), "main" (Function)
|
|
module: Module
|
|
exported_memory: Memory(1)
|
|
globals: "exported_global": 42 (number)
|
|
at A (liftoff) (0:128):
|
|
- scope (wasm-expression-stack):
|
|
- scope (local):
|
|
var0: 42 (number)
|
|
- scope (module):
|
|
instance: exports: "exported_global" (Global), "exported_memory" (Memory), "exported_table" (Table), "main" (Function)
|
|
module: Module
|
|
exported_memory: Memory(1)
|
|
globals: "exported_global": 42 (number)
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped globals
|
|
|
|
Paused:
|
|
Script wasm://wasm/e33badc2 byte offset 162: Wasm opcode 0x0b (kExprEnd)
|
|
Scope:
|
|
at B (liftoff) (0:162):
|
|
- scope (wasm-expression-stack):
|
|
- scope (local):
|
|
0: 0 (number)
|
|
i32_arg: 42 (number)
|
|
i32_local: 0 (number)
|
|
f32_local: 7.199999809265137 (number)
|
|
var5: 0 (number)
|
|
v128_local: Uint8Array(16)
|
|
- scope (module):
|
|
instance: exports: "exported_global" (Global), "exported_memory" (Memory), "exported_table" (Table), "main" (Function)
|
|
module: Module
|
|
exported_memory: Memory(1)
|
|
globals: "exported_global": 42 (number)
|
|
at A (liftoff) (0:128):
|
|
- scope (wasm-expression-stack):
|
|
- scope (local):
|
|
var0: 42 (number)
|
|
- scope (module):
|
|
instance: exports: "exported_global" (Global), "exported_memory" (Memory), "exported_table" (Table), "main" (Function)
|
|
module: Module
|
|
exported_memory: Memory(1)
|
|
globals: "exported_global": 42 (number)
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped globals
|
|
|
|
Paused:
|
|
Script wasm://wasm/e33badc2 byte offset 130: Wasm opcode 0x0b (kExprEnd)
|
|
Scope:
|
|
at A (liftoff) (0:130):
|
|
- scope (wasm-expression-stack):
|
|
- scope (local):
|
|
var0: 42 (number)
|
|
- scope (module):
|
|
instance: exports: "exported_global" (Global), "exported_memory" (Memory), "exported_table" (Table), "main" (Function)
|
|
module: Module
|
|
exported_memory: Memory(1)
|
|
globals: "exported_global": 42 (number)
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped globals
|
|
|
|
Paused:
|
|
instance.exports.main(42)
|
|
|
|
Scope:
|
|
at (anonymous) (1:31):
|
|
- scope (global):
|
|
-- skipped globals
|
|
|
|
exports.main returned. Test finished.
|