7dd38901ec
Bug: chromium:1043034 Change-Id: I18b1c307ab198e7fbd4d5bc7df399c310f317c4b Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2149419 Reviewed-by: Clemens Backes <clemensb@chromium.org> Reviewed-by: Benedikt Meurer <bmeurer@chromium.org> Commit-Queue: Kim-Anh Tran <kimanh@chromium.org> Cr-Commit-Position: refs/heads/master@{#67159}
327 lines
7.2 KiB
Plaintext
327 lines
7.2 KiB
Plaintext
Tests stepping through wasm scripts with source maps
|
|
Installing code an global variable and instantiate.
|
|
Got wasm script: wasm://wasm/9b4bf87e
|
|
Script sourceMapURL: abc
|
|
Requesting source for wasm://wasm/9b4bf87e...
|
|
Source retrieved without error: true
|
|
Setting breakpoint on offset 54 (on the setlocal before the call), url wasm://wasm/9b4bf87e
|
|
{
|
|
columnNumber : 54
|
|
lineNumber : 0
|
|
scriptId : <scriptId>
|
|
}
|
|
Script wasm://wasm/9b4bf87e byte offset 54: Wasm opcode 0x21
|
|
at wasm_B (0:54):
|
|
- scope (module):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"var0":4}
|
|
- scope (wasm-expression-stack):
|
|
{"0":3}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepInto called
|
|
Script wasm://wasm/9b4bf87e byte offset 56: Wasm opcode 0x10
|
|
at wasm_B (0:56):
|
|
- scope (module):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"var0":3}
|
|
- scope (wasm-expression-stack):
|
|
{}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepInto called
|
|
Script wasm://wasm/9b4bf87e byte offset 38: Wasm opcode 0x01
|
|
at wasm_A (0:38):
|
|
- scope (module):
|
|
-- skipped
|
|
- scope (local):
|
|
- scope (wasm-expression-stack):
|
|
{}
|
|
at wasm_B (0:56):
|
|
- scope (module):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"var0":3}
|
|
- scope (wasm-expression-stack):
|
|
{}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepOver called
|
|
Script wasm://wasm/9b4bf87e byte offset 39: Wasm opcode 0x01
|
|
at wasm_A (0:39):
|
|
- scope (module):
|
|
-- skipped
|
|
- scope (local):
|
|
- scope (wasm-expression-stack):
|
|
{}
|
|
at wasm_B (0:56):
|
|
- scope (module):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"var0":3}
|
|
- scope (wasm-expression-stack):
|
|
{}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepOut called
|
|
Script wasm://wasm/9b4bf87e byte offset 58: Wasm opcode 0x0c
|
|
at wasm_B (0:58):
|
|
- scope (module):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"var0":3}
|
|
- scope (wasm-expression-stack):
|
|
{}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepOut called
|
|
Script wasm://wasm/9b4bf87e byte offset 54: Wasm opcode 0x21
|
|
at wasm_B (0:54):
|
|
- scope (module):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"var0":3}
|
|
- scope (wasm-expression-stack):
|
|
{"0":2}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepOver called
|
|
Script wasm://wasm/9b4bf87e byte offset 56: Wasm opcode 0x10
|
|
at wasm_B (0:56):
|
|
- scope (module):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"var0":2}
|
|
- scope (wasm-expression-stack):
|
|
{}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepOver called
|
|
Script wasm://wasm/9b4bf87e byte offset 58: Wasm opcode 0x0c
|
|
at wasm_B (0:58):
|
|
- scope (module):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"var0":2}
|
|
- scope (wasm-expression-stack):
|
|
{}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.resume called
|
|
Script wasm://wasm/9b4bf87e byte offset 54: Wasm opcode 0x21
|
|
at wasm_B (0:54):
|
|
- scope (module):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"var0":2}
|
|
- scope (wasm-expression-stack):
|
|
{"0":1}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepInto called
|
|
Script wasm://wasm/9b4bf87e byte offset 56: Wasm opcode 0x10
|
|
at wasm_B (0:56):
|
|
- scope (module):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"var0":1}
|
|
- scope (wasm-expression-stack):
|
|
{}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepInto called
|
|
Script wasm://wasm/9b4bf87e byte offset 38: Wasm opcode 0x01
|
|
at wasm_A (0:38):
|
|
- scope (module):
|
|
-- skipped
|
|
- scope (local):
|
|
- scope (wasm-expression-stack):
|
|
{}
|
|
at wasm_B (0:56):
|
|
- scope (module):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"var0":1}
|
|
- scope (wasm-expression-stack):
|
|
{}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepOut called
|
|
Script wasm://wasm/9b4bf87e byte offset 58: Wasm opcode 0x0c
|
|
at wasm_B (0:58):
|
|
- scope (module):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"var0":1}
|
|
- scope (wasm-expression-stack):
|
|
{}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepInto called
|
|
Script wasm://wasm/9b4bf87e byte offset 45: Wasm opcode 0x20
|
|
at wasm_B (0:45):
|
|
- scope (module):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"var0":1}
|
|
- scope (wasm-expression-stack):
|
|
{}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepInto called
|
|
Script wasm://wasm/9b4bf87e byte offset 47: Wasm opcode 0x04
|
|
at wasm_B (0:47):
|
|
- scope (module):
|
|
-- 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/9b4bf87e byte offset 49: Wasm opcode 0x20
|
|
at wasm_B (0:49):
|
|
- scope (module):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"var0":1}
|
|
- scope (wasm-expression-stack):
|
|
{}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepInto called
|
|
Script wasm://wasm/9b4bf87e byte offset 51: Wasm opcode 0x41
|
|
at wasm_B (0:51):
|
|
- scope (module):
|
|
-- 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/9b4bf87e byte offset 53: Wasm opcode 0x6b
|
|
at wasm_B (0:53):
|
|
- scope (module):
|
|
-- 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/9b4bf87e byte offset 54: Wasm opcode 0x21
|
|
at wasm_B (0:54):
|
|
- scope (module):
|
|
-- 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/9b4bf87e byte offset 56: Wasm opcode 0x10
|
|
at wasm_B (0:56):
|
|
- scope (module):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"var0":0}
|
|
- scope (wasm-expression-stack):
|
|
{}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepInto called
|
|
Script wasm://wasm/9b4bf87e byte offset 38: Wasm opcode 0x01
|
|
at wasm_A (0:38):
|
|
- scope (module):
|
|
-- skipped
|
|
- scope (local):
|
|
- scope (wasm-expression-stack):
|
|
{}
|
|
at wasm_B (0:56):
|
|
- scope (module):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"var0":0}
|
|
- scope (wasm-expression-stack):
|
|
{}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepInto called
|
|
Script wasm://wasm/9b4bf87e byte offset 39: Wasm opcode 0x01
|
|
at wasm_A (0:39):
|
|
- scope (module):
|
|
-- skipped
|
|
- scope (local):
|
|
- scope (wasm-expression-stack):
|
|
{}
|
|
at wasm_B (0:56):
|
|
- scope (module):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"var0":0}
|
|
- scope (wasm-expression-stack):
|
|
{}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepInto called
|
|
Script wasm://wasm/9b4bf87e byte offset 40: Wasm opcode 0x0b
|
|
at wasm_A (0:40):
|
|
- scope (module):
|
|
-- skipped
|
|
- scope (local):
|
|
- scope (wasm-expression-stack):
|
|
{}
|
|
at wasm_B (0:56):
|
|
- scope (module):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"var0":0}
|
|
- scope (wasm-expression-stack):
|
|
{}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepInto called
|
|
Script wasm://wasm/9b4bf87e byte offset 58: Wasm opcode 0x0c
|
|
at wasm_B (0:58):
|
|
- scope (module):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"var0":0}
|
|
- scope (wasm-expression-stack):
|
|
{}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.resume called
|
|
exports.main returned!
|
|
Finished!
|