v8/test/inspector/debugger/wasm-scope-info-expected.txt
Kim-Anh Tran 155d2bc4ae [wasm][debug] Add stack scope to CDP and V8
This change adds a stack scope for wasm debugging.
Currently the local scope contains both local variables as well as
the expression stack. For now, this change duplicates the information
available on stacks into the stack scope, until we have added
support for the stack scope in the DevTools front-end.

Bug: chromium:1043034
Change-Id: Ib0a07e07be7c53003526a7b1e1dbfaa1116b41ad
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2093510
Commit-Queue: Kim-Anh Tran <kimanh@chromium.org>
Reviewed-by: Yang Guo <yangguo@chromium.org>
Reviewed-by: Clemens Backes <clemensb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#66867}
2020-03-26 07:54:15 +00:00

403 lines
12 KiB
Plaintext

Test retrieving scope information when pausing in wasm functions
Calling instantiate function.
Waiting for wasm script to be parsed.
Got wasm script!
Setting breakpoint on first instruction of second function
{
columnNumber : 69
lineNumber : 0
scriptId : <scriptId>
}
Paused:
Script wasm://wasm/d374ef0a byte offset 69: Wasm opcode 0x41
Scope:
at func (0:69):
- scope (global):
globals: "global0": 0 (number)
- scope (local):
locals: "0": 0 (number), "i32Arg": 4 (number), "var1": 0 (number), "i64_local": 0 (number), "unicode☼f64": 0 (number)
stack:
- scope (wasm-expression-stack):
at call_func (0:58):
- scope (global):
globals: "global0": 0 (number)
- scope (local):
locals: "var0": 4 (number), "var1": 7.199999809265137 (number)
stack:
- scope (wasm-expression-stack):
at (anonymous) (0:17):
- scope (global):
-- skipped globals
Paused:
Script wasm://wasm/d374ef0a byte offset 71: Wasm opcode 0x21
Scope:
at func (0:71):
- scope (global):
globals: "global0": 0 (number)
- scope (local):
locals: "0": 0 (number), "i32Arg": 4 (number), "var1": 0 (number), "i64_local": 0 (number), "unicode☼f64": 0 (number)
stack: "0": 11 (number)
- scope (wasm-expression-stack):
0: 11 (number)
at call_func (0:58):
- scope (global):
globals: "global0": 0 (number)
- scope (local):
locals: "var0": 4 (number), "var1": 7.199999809265137 (number)
stack:
- scope (wasm-expression-stack):
at (anonymous) (0:17):
- scope (global):
-- skipped globals
Paused:
Script wasm://wasm/d374ef0a byte offset 73: Wasm opcode 0x41
Scope:
at func (0:73):
- scope (global):
globals: "global0": 0 (number)
- scope (local):
locals: "0": 0 (number), "i32Arg": 11 (number), "var1": 0 (number), "i64_local": 0 (number), "unicode☼f64": 0 (number)
stack:
- scope (wasm-expression-stack):
at call_func (0:58):
- scope (global):
globals: "global0": 0 (number)
- scope (local):
locals: "var0": 4 (number), "var1": 7.199999809265137 (number)
stack:
- scope (wasm-expression-stack):
at (anonymous) (0:17):
- scope (global):
-- skipped globals
Paused:
Script wasm://wasm/d374ef0a byte offset 75: Wasm opcode 0x21
Scope:
at func (0:75):
- scope (global):
globals: "global0": 0 (number)
- scope (local):
locals: "0": 0 (number), "i32Arg": 11 (number), "var1": 0 (number), "i64_local": 0 (number), "unicode☼f64": 0 (number)
stack: "0": 47 (number)
- scope (wasm-expression-stack):
0: 47 (number)
at call_func (0:58):
- scope (global):
globals: "global0": 0 (number)
- scope (local):
locals: "var0": 4 (number), "var1": 7.199999809265137 (number)
stack:
- scope (wasm-expression-stack):
at (anonymous) (0:17):
- scope (global):
-- skipped globals
Paused:
Script wasm://wasm/d374ef0a byte offset 77: Wasm opcode 0x42
Scope:
at func (0:77):
- scope (global):
globals: "global0": 0 (number)
- scope (local):
locals: "0": 0 (number), "i32Arg": 11 (number), "var1": 47 (number), "i64_local": 0 (number), "unicode☼f64": 0 (number)
stack:
- scope (wasm-expression-stack):
at call_func (0:58):
- scope (global):
globals: "global0": 0 (number)
- scope (local):
locals: "var0": 4 (number), "var1": 7.199999809265137 (number)
stack:
- scope (wasm-expression-stack):
at (anonymous) (0:17):
- scope (global):
-- skipped globals
Paused:
Script wasm://wasm/d374ef0a byte offset 88: Wasm opcode 0x21
Scope:
at func (0:88):
- scope (global):
globals: "global0": 0 (number)
- scope (local):
locals: "0": 0 (number), "i32Arg": 11 (number), "var1": 47 (number), "i64_local": 0 (number), "unicode☼f64": 0 (number)
stack: "0": 9223372036854775807 (string)
- scope (wasm-expression-stack):
0: 9223372036854775807 (string)
at call_func (0:58):
- scope (global):
globals: "global0": 0 (number)
- scope (local):
locals: "var0": 4 (number), "var1": 7.199999809265137 (number)
stack:
- scope (wasm-expression-stack):
at (anonymous) (0:17):
- scope (global):
-- skipped globals
Paused:
Script wasm://wasm/d374ef0a byte offset 90: Wasm opcode 0x42
Scope:
at func (0:90):
- scope (global):
globals: "global0": 0 (number)
- scope (local):
locals: "0": 0 (number), "i32Arg": 11 (number), "var1": 47 (number), "i64_local": 9223372036854775807 (string), "unicode☼f64": 0 (number)
stack:
- scope (wasm-expression-stack):
at call_func (0:58):
- scope (global):
globals: "global0": 0 (number)
- scope (local):
locals: "var0": 4 (number), "var1": 7.199999809265137 (number)
stack:
- scope (wasm-expression-stack):
at (anonymous) (0:17):
- scope (global):
-- skipped globals
Paused:
Script wasm://wasm/d374ef0a byte offset 101: Wasm opcode 0x21
Scope:
at func (0:101):
- scope (global):
globals: "global0": 0 (number)
- scope (local):
locals: "0": 0 (number), "i32Arg": 11 (number), "var1": 47 (number), "i64_local": 9223372036854775807 (string), "unicode☼f64": 0 (number)
stack: "0": -9223372036854775808 (string)
- scope (wasm-expression-stack):
0: -9223372036854775808 (string)
at call_func (0:58):
- scope (global):
globals: "global0": 0 (number)
- scope (local):
locals: "var0": 4 (number), "var1": 7.199999809265137 (number)
stack:
- scope (wasm-expression-stack):
at (anonymous) (0:17):
- scope (global):
-- skipped globals
Paused:
Script wasm://wasm/d374ef0a byte offset 103: Wasm opcode 0x41
Scope:
at func (0:103):
- scope (global):
globals: "global0": 0 (number)
- scope (local):
locals: "0": 0 (number), "i32Arg": 11 (number), "var1": 47 (number), "i64_local": -9223372036854775808 (string), "unicode☼f64": 0 (number)
stack:
- scope (wasm-expression-stack):
at call_func (0:58):
- scope (global):
globals: "global0": 0 (number)
- scope (local):
locals: "var0": 4 (number), "var1": 7.199999809265137 (number)
stack:
- scope (wasm-expression-stack):
at (anonymous) (0:17):
- scope (global):
-- skipped globals
Paused:
Script wasm://wasm/d374ef0a byte offset 105: Wasm opcode 0xb8
Scope:
at func (0:105):
- scope (global):
globals: "global0": 0 (number)
- scope (local):
locals: "0": 0 (number), "i32Arg": 11 (number), "var1": 47 (number), "i64_local": -9223372036854775808 (string), "unicode☼f64": 0 (number)
stack: "0": 1 (number)
- scope (wasm-expression-stack):
0: 1 (number)
at call_func (0:58):
- scope (global):
globals: "global0": 0 (number)
- scope (local):
locals: "var0": 4 (number), "var1": 7.199999809265137 (number)
stack:
- scope (wasm-expression-stack):
at (anonymous) (0:17):
- scope (global):
-- skipped globals
Paused:
Script wasm://wasm/d374ef0a byte offset 106: Wasm opcode 0x41
Scope:
at func (0:106):
- scope (global):
globals: "global0": 0 (number)
- scope (local):
locals: "0": 0 (number), "i32Arg": 11 (number), "var1": 47 (number), "i64_local": -9223372036854775808 (string), "unicode☼f64": 0 (number)
stack: "0": 1 (number)
- scope (wasm-expression-stack):
0: 1 (number)
at call_func (0:58):
- scope (global):
globals: "global0": 0 (number)
- scope (local):
locals: "var0": 4 (number), "var1": 7.199999809265137 (number)
stack:
- scope (wasm-expression-stack):
at (anonymous) (0:17):
- scope (global):
-- skipped globals
Paused:
Script wasm://wasm/d374ef0a byte offset 108: Wasm opcode 0xb8
Scope:
at func (0:108):
- scope (global):
globals: "global0": 0 (number)
- scope (local):
locals: "0": 0 (number), "i32Arg": 11 (number), "var1": 47 (number), "i64_local": -9223372036854775808 (string), "unicode☼f64": 0 (number)
stack: "0": 1 (number), "1": 7 (number)
- scope (wasm-expression-stack):
0: 7 (number)
1: 1 (number)
at call_func (0:58):
- scope (global):
globals: "global0": 0 (number)
- scope (local):
locals: "var0": 4 (number), "var1": 7.199999809265137 (number)
stack:
- scope (wasm-expression-stack):
at (anonymous) (0:17):
- scope (global):
-- skipped globals
Paused:
Script wasm://wasm/d374ef0a byte offset 109: Wasm opcode 0xa3
Scope:
at func (0:109):
- scope (global):
globals: "global0": 0 (number)
- scope (local):
locals: "0": 0 (number), "i32Arg": 11 (number), "var1": 47 (number), "i64_local": -9223372036854775808 (string), "unicode☼f64": 0 (number)
stack: "0": 1 (number), "1": 7 (number)
- scope (wasm-expression-stack):
0: 7 (number)
1: 1 (number)
at call_func (0:58):
- scope (global):
globals: "global0": 0 (number)
- scope (local):
locals: "var0": 4 (number), "var1": 7.199999809265137 (number)
stack:
- scope (wasm-expression-stack):
at (anonymous) (0:17):
- scope (global):
-- skipped globals
Paused:
Script wasm://wasm/d374ef0a byte offset 110: Wasm opcode 0x21
Scope:
at func (0:110):
- scope (global):
globals: "global0": 0 (number)
- scope (local):
locals: "0": 0 (number), "i32Arg": 11 (number), "var1": 47 (number), "i64_local": -9223372036854775808 (string), "unicode☼f64": 0 (number)
stack: "0": 0.14285714285714285 (number)
- scope (wasm-expression-stack):
0: 0.14285714285714285 (number)
at call_func (0:58):
- scope (global):
globals: "global0": 0 (number)
- scope (local):
locals: "var0": 4 (number), "var1": 7.199999809265137 (number)
stack:
- scope (wasm-expression-stack):
at (anonymous) (0:17):
- scope (global):
-- skipped globals
Paused:
Script wasm://wasm/d374ef0a byte offset 112: Wasm opcode 0x41
Scope:
at func (0:112):
- scope (global):
globals: "global0": 0 (number)
- scope (local):
locals: "0": 0 (number), "i32Arg": 11 (number), "var1": 47 (number), "i64_local": -9223372036854775808 (string), "unicode☼f64": 0.14285714285714285 (number)
stack:
- scope (wasm-expression-stack):
at call_func (0:58):
- scope (global):
globals: "global0": 0 (number)
- scope (local):
locals: "var0": 4 (number), "var1": 7.199999809265137 (number)
stack:
- scope (wasm-expression-stack):
at (anonymous) (0:17):
- scope (global):
-- skipped globals
Paused:
Script wasm://wasm/d374ef0a byte offset 114: Wasm opcode 0x24
Scope:
at func (0:114):
- scope (global):
globals: "global0": 0 (number)
- scope (local):
locals: "0": 0 (number), "i32Arg": 11 (number), "var1": 47 (number), "i64_local": -9223372036854775808 (string), "unicode☼f64": 0.14285714285714285 (number)
stack: "0": 15 (number)
- scope (wasm-expression-stack):
0: 15 (number)
at call_func (0:58):
- scope (global):
globals: "global0": 0 (number)
- scope (local):
locals: "var0": 4 (number), "var1": 7.199999809265137 (number)
stack:
- scope (wasm-expression-stack):
at (anonymous) (0:17):
- scope (global):
-- skipped globals
Paused:
Script wasm://wasm/d374ef0a byte offset 116: Wasm opcode 0xb
Scope:
at func (0:116):
- scope (global):
globals: "global0": 15 (number)
- scope (local):
locals: "0": 0 (number), "i32Arg": 11 (number), "var1": 47 (number), "i64_local": -9223372036854775808 (string), "unicode☼f64": 0.14285714285714285 (number)
stack:
- scope (wasm-expression-stack):
at call_func (0:58):
- scope (global):
globals: "global0": 15 (number)
- scope (local):
locals: "var0": 4 (number), "var1": 7.199999809265137 (number)
stack:
- scope (wasm-expression-stack):
at (anonymous) (0:17):
- scope (global):
-- skipped globals
Paused:
Script wasm://wasm/d374ef0a byte offset 60: Wasm opcode 0xb
Scope:
at call_func (0:60):
- scope (global):
globals: "global0": 15 (number)
- scope (local):
locals: "var0": 4 (number), "var1": 7.199999809265137 (number)
stack:
- scope (wasm-expression-stack):
at (anonymous) (0:17):
- scope (global):
-- skipped globals
Paused:
instance.exports.main(4)#
Scope:
at (anonymous) (0:24):
- scope (global):
-- skipped globals
exports.main returned. Test finished.