972c096564
This removes the stack from the local scope, as the stack is now in its own scope. Bug: chromium:1043034 Change-Id: I595604da71ecf4362ef67134ade8b3987086d258 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2128049 Reviewed-by: Benedikt Meurer <bmeurer@chromium.org> Reviewed-by: Clemens Backes <clemensb@chromium.org> Commit-Queue: Kim-Anh Tran <kimanh@chromium.org> Cr-Commit-Position: refs/heads/master@{#67038}
318 lines
7.0 KiB
Plaintext
318 lines
7.0 KiB
Plaintext
Tests stepping through wasm scripts by byte offsets
|
|
Setting up global instance variable.
|
|
Got wasm script: wasm://wasm/befe41aa
|
|
Setting breakpoint on offset 59 (should be propagated to 60, the offset of the call), url wasm://wasm/befe41aa
|
|
{
|
|
columnNumber : 60
|
|
lineNumber : 0
|
|
scriptId : <scriptId>
|
|
}
|
|
Script wasm://wasm/befe41aa byte offset 60: Wasm opcode 0x10
|
|
at wasm_B (0:60):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"var0":3}
|
|
- scope (wasm-expression-stack):
|
|
{"0":1024}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepInto called
|
|
Script wasm://wasm/befe41aa byte offset 39: Wasm opcode 0x01
|
|
at wasm_A (0:39):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"var0":1024}
|
|
- scope (wasm-expression-stack):
|
|
{}
|
|
at wasm_B (0:60):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"var0":3}
|
|
- scope (wasm-expression-stack):
|
|
{}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepOver called
|
|
Script wasm://wasm/befe41aa byte offset 40: Wasm opcode 0x01
|
|
at wasm_A (0:40):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"var0":1024}
|
|
- scope (wasm-expression-stack):
|
|
{}
|
|
at wasm_B (0:60):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"var0":3}
|
|
- scope (wasm-expression-stack):
|
|
{}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepOut called
|
|
Script wasm://wasm/befe41aa byte offset 62: Wasm opcode 0x0c
|
|
at wasm_B (0:62):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"var0":3}
|
|
- scope (wasm-expression-stack):
|
|
{}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepOut called
|
|
Script wasm://wasm/befe41aa byte offset 60: Wasm opcode 0x10
|
|
at wasm_B (0:60):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"var0":2}
|
|
- scope (wasm-expression-stack):
|
|
{"0":1024}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepOver called
|
|
Script wasm://wasm/befe41aa byte offset 62: Wasm opcode 0x0c
|
|
at wasm_B (0:62):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"var0":2}
|
|
- scope (wasm-expression-stack):
|
|
{}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepInto called
|
|
Script wasm://wasm/befe41aa byte offset 46: Wasm opcode 0x20
|
|
at wasm_B (0:46):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"var0":2}
|
|
- scope (wasm-expression-stack):
|
|
{}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.resume called
|
|
Script wasm://wasm/befe41aa byte offset 60: Wasm opcode 0x10
|
|
at wasm_B (0:60):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"var0":1}
|
|
- scope (wasm-expression-stack):
|
|
{"0":1024}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepInto called
|
|
Script wasm://wasm/befe41aa byte offset 39: Wasm opcode 0x01
|
|
at wasm_A (0:39):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"var0":1024}
|
|
- scope (wasm-expression-stack):
|
|
{}
|
|
at wasm_B (0:60):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"var0":1}
|
|
- scope (wasm-expression-stack):
|
|
{}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepOut called
|
|
Script wasm://wasm/befe41aa byte offset 62: Wasm opcode 0x0c
|
|
at wasm_B (0:62):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"var0":1}
|
|
- scope (wasm-expression-stack):
|
|
{}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepInto called
|
|
Script wasm://wasm/befe41aa byte offset 46: Wasm opcode 0x20
|
|
at wasm_B (0:46):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"var0":1}
|
|
- scope (wasm-expression-stack):
|
|
{}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepInto called
|
|
Script wasm://wasm/befe41aa byte offset 48: Wasm opcode 0x04
|
|
at wasm_B (0:48):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"var0":1}
|
|
- scope (wasm-expression-stack):
|
|
{"0":1}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepInto called
|
|
Script wasm://wasm/befe41aa byte offset 50: Wasm opcode 0x20
|
|
at wasm_B (0:50):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"var0":1}
|
|
- scope (wasm-expression-stack):
|
|
{}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepInto called
|
|
Script wasm://wasm/befe41aa byte offset 52: Wasm opcode 0x41
|
|
at wasm_B (0:52):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"var0":1}
|
|
- scope (wasm-expression-stack):
|
|
{"0":1}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepInto called
|
|
Script wasm://wasm/befe41aa byte offset 54: Wasm opcode 0x6b
|
|
at wasm_B (0:54):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"var0":1}
|
|
- scope (wasm-expression-stack):
|
|
{"0":1,"1":1}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepInto called
|
|
Script wasm://wasm/befe41aa byte offset 55: Wasm opcode 0x21
|
|
at wasm_B (0:55):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"var0":1}
|
|
- scope (wasm-expression-stack):
|
|
{"0":0}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepInto called
|
|
Script wasm://wasm/befe41aa byte offset 57: Wasm opcode 0x41
|
|
at wasm_B (0:57):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"var0":0}
|
|
- scope (wasm-expression-stack):
|
|
{}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepInto called
|
|
Script wasm://wasm/befe41aa byte offset 60: Wasm opcode 0x10
|
|
at wasm_B (0:60):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"var0":0}
|
|
- scope (wasm-expression-stack):
|
|
{"0":1024}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepInto called
|
|
Script wasm://wasm/befe41aa byte offset 39: Wasm opcode 0x01
|
|
at wasm_A (0:39):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"var0":1024}
|
|
- scope (wasm-expression-stack):
|
|
{}
|
|
at wasm_B (0:60):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"var0":0}
|
|
- scope (wasm-expression-stack):
|
|
{}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepInto called
|
|
Script wasm://wasm/befe41aa byte offset 40: Wasm opcode 0x01
|
|
at wasm_A (0:40):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"var0":1024}
|
|
- scope (wasm-expression-stack):
|
|
{}
|
|
at wasm_B (0:60):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"var0":0}
|
|
- scope (wasm-expression-stack):
|
|
{}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepInto called
|
|
Script wasm://wasm/befe41aa byte offset 41: Wasm opcode 0x0b
|
|
at wasm_A (0:41):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"var0":1024}
|
|
- scope (wasm-expression-stack):
|
|
{}
|
|
at wasm_B (0:60):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"var0":0}
|
|
- scope (wasm-expression-stack):
|
|
{}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepInto called
|
|
Script wasm://wasm/befe41aa byte offset 62: Wasm opcode 0x0c
|
|
at wasm_B (0:62):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"var0":0}
|
|
- scope (wasm-expression-stack):
|
|
{}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.resume called
|
|
exports.main returned!
|
|
Finished!
|