59f485fc0c
This aligns the wasm locals with how JavaScript locals are displayed in the DevTools scope view. Before: https://i.imgur.com/y0urpbL.png After: https://i.imgur.com/368KDay.png Bug: chromium:1043034 Change-Id: I5811d18101ec68c320fd223e041e12989c66e721 Doc: https://bit.ly/wasm-fallback-dx#bookmark=id.1uhy72x83he7 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2232550 Commit-Queue: Zhi An Ng <zhin@chromium.org> Reviewed-by: Zhi An Ng <zhin@chromium.org> Auto-Submit: Benedikt Meurer <bmeurer@chromium.org> Cr-Commit-Position: refs/heads/master@{#68222}
356 lines
13 KiB
Plaintext
356 lines
13 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 : 159
|
|
lineNumber : 0
|
|
scriptId : <scriptId>
|
|
}
|
|
Paused:
|
|
Script wasm://wasm/7f06385e byte offset 159: Wasm opcode 0x20
|
|
Scope:
|
|
at C (interpreted) (0:159):
|
|
- scope (module):
|
|
instance: exports: "exported_global" (Global), "exported_memory" (Memory), "exported_table" (Table), "main" (Function)
|
|
exported_memory: Uint8Array(65536)
|
|
function tables:
|
|
exported_table: js_func: function js_func() { [native code] }, anonymous: function () { [native code] }, A (liftoff): function 0() { [native code] }
|
|
globals: "exported_global": 0 (i32)
|
|
- scope (local):
|
|
i32_arg: 42 (i32)
|
|
i32_local: 0 (i32)
|
|
- scope (wasm-expression-stack):
|
|
at B (liftoff) (0:150):
|
|
- scope (module):
|
|
instance: exports: "exported_global" (Global), "exported_memory" (Memory), "exported_table" (Table), "main" (Function)
|
|
exported_memory: Uint8Array(65536)
|
|
function tables:
|
|
exported_table: js_func: function js_func() { [native code] }, anonymous: function () { [native code] }, A (liftoff): function 0() { [native code] }
|
|
globals: "exported_global": 0 (i32)
|
|
- scope (local):
|
|
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:128):
|
|
- scope (module):
|
|
instance: exports: "exported_global" (Global), "exported_memory" (Memory), "exported_table" (Table), "main" (Function)
|
|
exported_memory: Uint8Array(65536)
|
|
function tables:
|
|
exported_table: js_func: function js_func() { [native code] }, anonymous: function () { [native code] }, A (liftoff): function 0() { [native code] }
|
|
globals: "exported_global": 0 (i32)
|
|
- scope (local):
|
|
var0: 42 (i32)
|
|
- scope (wasm-expression-stack):
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped globals
|
|
|
|
Paused:
|
|
Script wasm://wasm/7f06385e byte offset 161: Wasm opcode 0x24
|
|
Scope:
|
|
at C (interpreted) (0:161):
|
|
- scope (module):
|
|
instance: exports: "exported_global" (Global), "exported_memory" (Memory), "exported_table" (Table), "main" (Function)
|
|
exported_memory: Uint8Array(65536)
|
|
function tables:
|
|
exported_table: js_func: function js_func() { [native code] }, anonymous: function () { [native code] }, A (liftoff): function 0() { [native code] }
|
|
globals: "exported_global": 0 (i32)
|
|
- scope (local):
|
|
i32_arg: 42 (i32)
|
|
i32_local: 0 (i32)
|
|
- scope (wasm-expression-stack):
|
|
0: 42 (i32)
|
|
at B (liftoff) (0:150):
|
|
- scope (module):
|
|
instance: exports: "exported_global" (Global), "exported_memory" (Memory), "exported_table" (Table), "main" (Function)
|
|
exported_memory: Uint8Array(65536)
|
|
function tables:
|
|
exported_table: js_func: function js_func() { [native code] }, anonymous: function () { [native code] }, A (liftoff): function 0() { [native code] }
|
|
globals: "exported_global": 0 (i32)
|
|
- scope (local):
|
|
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:128):
|
|
- scope (module):
|
|
instance: exports: "exported_global" (Global), "exported_memory" (Memory), "exported_table" (Table), "main" (Function)
|
|
exported_memory: Uint8Array(65536)
|
|
function tables:
|
|
exported_table: js_func: function js_func() { [native code] }, anonymous: function () { [native code] }, A (liftoff): function 0() { [native code] }
|
|
globals: "exported_global": 0 (i32)
|
|
- scope (local):
|
|
var0: 42 (i32)
|
|
- scope (wasm-expression-stack):
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped globals
|
|
|
|
Paused:
|
|
Script wasm://wasm/7f06385e byte offset 163: Wasm opcode 0x41
|
|
Scope:
|
|
at C (interpreted) (0:163):
|
|
- scope (module):
|
|
instance: exports: "exported_global" (Global), "exported_memory" (Memory), "exported_table" (Table), "main" (Function)
|
|
exported_memory: Uint8Array(65536)
|
|
function tables:
|
|
exported_table: js_func: function js_func() { [native code] }, anonymous: function () { [native code] }, A (liftoff): function 0() { [native code] }
|
|
globals: "exported_global": 42 (i32)
|
|
- scope (local):
|
|
i32_arg: 42 (i32)
|
|
i32_local: 0 (i32)
|
|
- scope (wasm-expression-stack):
|
|
at B (liftoff) (0:150):
|
|
- scope (module):
|
|
instance: exports: "exported_global" (Global), "exported_memory" (Memory), "exported_table" (Table), "main" (Function)
|
|
exported_memory: Uint8Array(65536)
|
|
function tables:
|
|
exported_table: js_func: function js_func() { [native code] }, anonymous: function () { [native code] }, A (liftoff): function 0() { [native code] }
|
|
globals: "exported_global": 42 (i32)
|
|
- scope (local):
|
|
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:128):
|
|
- scope (module):
|
|
instance: exports: "exported_global" (Global), "exported_memory" (Memory), "exported_table" (Table), "main" (Function)
|
|
exported_memory: Uint8Array(65536)
|
|
function tables:
|
|
exported_table: js_func: function js_func() { [native code] }, anonymous: function () { [native code] }, A (liftoff): function 0() { [native code] }
|
|
globals: "exported_global": 42 (i32)
|
|
- scope (local):
|
|
var0: 42 (i32)
|
|
- scope (wasm-expression-stack):
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped globals
|
|
|
|
Paused:
|
|
Script wasm://wasm/7f06385e byte offset 165: Wasm opcode 0x21
|
|
Scope:
|
|
at C (interpreted) (0:165):
|
|
- scope (module):
|
|
instance: exports: "exported_global" (Global), "exported_memory" (Memory), "exported_table" (Table), "main" (Function)
|
|
exported_memory: Uint8Array(65536)
|
|
function tables:
|
|
exported_table: js_func: function js_func() { [native code] }, anonymous: function () { [native code] }, A (liftoff): function 0() { [native code] }
|
|
globals: "exported_global": 42 (i32)
|
|
- scope (local):
|
|
i32_arg: 42 (i32)
|
|
i32_local: 0 (i32)
|
|
- scope (wasm-expression-stack):
|
|
0: 47 (i32)
|
|
at B (liftoff) (0:150):
|
|
- scope (module):
|
|
instance: exports: "exported_global" (Global), "exported_memory" (Memory), "exported_table" (Table), "main" (Function)
|
|
exported_memory: Uint8Array(65536)
|
|
function tables:
|
|
exported_table: js_func: function js_func() { [native code] }, anonymous: function () { [native code] }, A (liftoff): function 0() { [native code] }
|
|
globals: "exported_global": 42 (i32)
|
|
- scope (local):
|
|
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:128):
|
|
- scope (module):
|
|
instance: exports: "exported_global" (Global), "exported_memory" (Memory), "exported_table" (Table), "main" (Function)
|
|
exported_memory: Uint8Array(65536)
|
|
function tables:
|
|
exported_table: js_func: function js_func() { [native code] }, anonymous: function () { [native code] }, A (liftoff): function 0() { [native code] }
|
|
globals: "exported_global": 42 (i32)
|
|
- scope (local):
|
|
var0: 42 (i32)
|
|
- scope (wasm-expression-stack):
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped globals
|
|
|
|
Paused:
|
|
Script wasm://wasm/7f06385e byte offset 167: Wasm opcode 0x0b
|
|
Scope:
|
|
at C (interpreted) (0:167):
|
|
- scope (module):
|
|
instance: exports: "exported_global" (Global), "exported_memory" (Memory), "exported_table" (Table), "main" (Function)
|
|
exported_memory: Uint8Array(65536)
|
|
function tables:
|
|
exported_table: js_func: function js_func() { [native code] }, anonymous: function () { [native code] }, A (liftoff): function 0() { [native code] }
|
|
globals: "exported_global": 42 (i32)
|
|
- scope (local):
|
|
i32_arg: 42 (i32)
|
|
i32_local: 47 (i32)
|
|
- scope (wasm-expression-stack):
|
|
at B (liftoff) (0:150):
|
|
- scope (module):
|
|
instance: exports: "exported_global" (Global), "exported_memory" (Memory), "exported_table" (Table), "main" (Function)
|
|
exported_memory: Uint8Array(65536)
|
|
function tables:
|
|
exported_table: js_func: function js_func() { [native code] }, anonymous: function () { [native code] }, A (liftoff): function 0() { [native code] }
|
|
globals: "exported_global": 42 (i32)
|
|
- scope (local):
|
|
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:128):
|
|
- scope (module):
|
|
instance: exports: "exported_global" (Global), "exported_memory" (Memory), "exported_table" (Table), "main" (Function)
|
|
exported_memory: Uint8Array(65536)
|
|
function tables:
|
|
exported_table: js_func: function js_func() { [native code] }, anonymous: function () { [native code] }, A (liftoff): function 0() { [native code] }
|
|
globals: "exported_global": 42 (i32)
|
|
- scope (local):
|
|
var0: 42 (i32)
|
|
- scope (wasm-expression-stack):
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped globals
|
|
|
|
Paused:
|
|
Script wasm://wasm/7f06385e byte offset 152: Wasm opcode 0x1a
|
|
Scope:
|
|
at B (liftoff) (0:152):
|
|
- scope (module):
|
|
instance: exports: "exported_global" (Global), "exported_memory" (Memory), "exported_table" (Table), "main" (Function)
|
|
exported_memory: Uint8Array(65536)
|
|
function tables:
|
|
exported_table: js_func: function js_func() { [native code] }, anonymous: function () { [native code] }, A (liftoff): function 0() { [native code] }
|
|
globals: "exported_global": 42 (i32)
|
|
- scope (local):
|
|
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:128):
|
|
- scope (module):
|
|
instance: exports: "exported_global" (Global), "exported_memory" (Memory), "exported_table" (Table), "main" (Function)
|
|
exported_memory: Uint8Array(65536)
|
|
function tables:
|
|
exported_table: js_func: function js_func() { [native code] }, anonymous: function () { [native code] }, A (liftoff): function 0() { [native code] }
|
|
globals: "exported_global": 42 (i32)
|
|
- scope (local):
|
|
var0: 42 (i32)
|
|
- scope (wasm-expression-stack):
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped globals
|
|
|
|
Paused:
|
|
Script wasm://wasm/7f06385e byte offset 153: Wasm opcode 0x1a
|
|
Scope:
|
|
at B (liftoff) (0:153):
|
|
- scope (module):
|
|
instance: exports: "exported_global" (Global), "exported_memory" (Memory), "exported_table" (Table), "main" (Function)
|
|
exported_memory: Uint8Array(65536)
|
|
function tables:
|
|
exported_table: js_func: function js_func() { [native code] }, anonymous: function () { [native code] }, A (liftoff): function 0() { [native code] }
|
|
globals: "exported_global": 42 (i32)
|
|
- scope (local):
|
|
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:128):
|
|
- scope (module):
|
|
instance: exports: "exported_global" (Global), "exported_memory" (Memory), "exported_table" (Table), "main" (Function)
|
|
exported_memory: Uint8Array(65536)
|
|
function tables:
|
|
exported_table: js_func: function js_func() { [native code] }, anonymous: function () { [native code] }, A (liftoff): function 0() { [native code] }
|
|
globals: "exported_global": 42 (i32)
|
|
- scope (local):
|
|
var0: 42 (i32)
|
|
- scope (wasm-expression-stack):
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped globals
|
|
|
|
Paused:
|
|
Script wasm://wasm/7f06385e byte offset 154: Wasm opcode 0x0b
|
|
Scope:
|
|
at B (liftoff) (0:154):
|
|
- scope (module):
|
|
instance: exports: "exported_global" (Global), "exported_memory" (Memory), "exported_table" (Table), "main" (Function)
|
|
exported_memory: Uint8Array(65536)
|
|
function tables:
|
|
exported_table: js_func: function js_func() { [native code] }, anonymous: function () { [native code] }, A (liftoff): function 0() { [native code] }
|
|
globals: "exported_global": 42 (i32)
|
|
- scope (local):
|
|
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:128):
|
|
- scope (module):
|
|
instance: exports: "exported_global" (Global), "exported_memory" (Memory), "exported_table" (Table), "main" (Function)
|
|
exported_memory: Uint8Array(65536)
|
|
function tables:
|
|
exported_table: js_func: function js_func() { [native code] }, anonymous: function () { [native code] }, A (liftoff): function 0() { [native code] }
|
|
globals: "exported_global": 42 (i32)
|
|
- scope (local):
|
|
var0: 42 (i32)
|
|
- scope (wasm-expression-stack):
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped globals
|
|
|
|
Paused:
|
|
Script wasm://wasm/7f06385e byte offset 130: Wasm opcode 0x0b
|
|
Scope:
|
|
at A (liftoff) (0:130):
|
|
- scope (module):
|
|
instance: exports: "exported_global" (Global), "exported_memory" (Memory), "exported_table" (Table), "main" (Function)
|
|
exported_memory: Uint8Array(65536)
|
|
function tables:
|
|
exported_table: js_func: function js_func() { [native code] }, anonymous: function () { [native code] }, A (liftoff): function 0() { [native code] }
|
|
globals: "exported_global": 42 (i32)
|
|
- scope (local):
|
|
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.
|