9face69066
This changes the names reported in stack traces via the Chrome DevTools protocol to follow the WAT naming convention for functions. This aligns the behavior here with the rest of DevTools (i.e. the disassembly in the Sources panel and the Scope sidebar, as well as the Console REPL) to use one consistent naming scheme. Fixed: chromium:1159307 Doc: http://bit.ly/devtools-wasm-entities Bug: chromium:1162229, chromium:1164241, chromium:1071432 Change-Id: Ibe543f39c775944072073fe5f0959412529aa19b Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2878734 Reviewed-by: Yang Guo <yangguo@chromium.org> Reviewed-by: Clemens Backes <clemensb@chromium.org> Reviewed-by: Jakob Kummerow <jkummerow@chromium.org> Commit-Queue: Benedikt Meurer <bmeurer@chromium.org> Cr-Commit-Position: refs/heads/master@{#74456}
488 lines
13 KiB
Plaintext
488 lines
13 KiB
Plaintext
Tests stepping through wasm scripts.
|
|
|
|
Running test: test
|
|
Instantiating.
|
|
Waiting for wasm script (ignoring first non-wasm script).
|
|
Setting breakpoint at offset 38 on script wasm://wasm/0c10a5fe
|
|
Calling main(4)
|
|
Paused:
|
|
Script wasm://wasm/0c10a5fe byte offset 38: Wasm opcode 0x01 (kExprNop)
|
|
Scope:
|
|
at $wasm_A (0:38):
|
|
- scope (wasm-expression-stack):
|
|
stack:
|
|
- scope (local):
|
|
- scope (module):
|
|
instance: exports: "main" (Function)
|
|
module: Module
|
|
functions: "$wasm_A": (Function), "$wasm_B": (Function)
|
|
at $wasm_B (0:56):
|
|
- scope (wasm-expression-stack):
|
|
stack:
|
|
- scope (local):
|
|
$var0: 3 (i32)
|
|
- scope (module):
|
|
instance: exports: "main" (Function)
|
|
module: Module
|
|
functions: "$wasm_A": (Function), "$wasm_B": (Function)
|
|
at (anonymous) (0:17):
|
|
-- skipped
|
|
Setting breakpoint at offset 39 on script v8://test/runWasm
|
|
Setting breakpoint at offset 61 on script v8://test/runWasm
|
|
Setting breakpoint at offset 60 on script v8://test/runWasm
|
|
Setting breakpoint at offset 54 on script v8://test/runWasm
|
|
Setting breakpoint at offset 53 on script v8://test/runWasm
|
|
Setting breakpoint at offset 51 on script v8://test/runWasm
|
|
Setting breakpoint at offset 49 on script v8://test/runWasm
|
|
Setting breakpoint at offset 45 on script v8://test/runWasm
|
|
Setting breakpoint at offset 47 on script v8://test/runWasm
|
|
Paused:
|
|
Script wasm://wasm/0c10a5fe byte offset 39: Wasm opcode 0x01 (kExprNop)
|
|
Scope:
|
|
at $wasm_A (0:39):
|
|
- scope (wasm-expression-stack):
|
|
stack:
|
|
- scope (local):
|
|
- scope (module):
|
|
instance: exports: "main" (Function)
|
|
module: Module
|
|
functions: "$wasm_A": (Function), "$wasm_B": (Function)
|
|
at $wasm_B (0:56):
|
|
- scope (wasm-expression-stack):
|
|
stack:
|
|
- scope (local):
|
|
$var0: 3 (i32)
|
|
- scope (module):
|
|
instance: exports: "main" (Function)
|
|
module: Module
|
|
functions: "$wasm_A": (Function), "$wasm_B": (Function)
|
|
at (anonymous) (0:17):
|
|
-- skipped
|
|
Paused:
|
|
Script wasm://wasm/0c10a5fe byte offset 45: Wasm opcode 0x20 (kExprLocalGet)
|
|
Scope:
|
|
at $wasm_B (0:45):
|
|
- scope (wasm-expression-stack):
|
|
stack:
|
|
- scope (local):
|
|
$var0: 3 (i32)
|
|
- scope (module):
|
|
instance: exports: "main" (Function)
|
|
module: Module
|
|
functions: "$wasm_A": (Function), "$wasm_B": (Function)
|
|
at (anonymous) (0:17):
|
|
-- skipped
|
|
Paused:
|
|
Script wasm://wasm/0c10a5fe byte offset 47: Wasm opcode 0x04 (kExprIf)
|
|
Scope:
|
|
at $wasm_B (0:47):
|
|
- scope (wasm-expression-stack):
|
|
stack: "0": 3 (i32)
|
|
- scope (local):
|
|
$var0: 3 (i32)
|
|
- scope (module):
|
|
instance: exports: "main" (Function)
|
|
module: Module
|
|
functions: "$wasm_A": (Function), "$wasm_B": (Function)
|
|
at (anonymous) (0:17):
|
|
-- skipped
|
|
Paused:
|
|
Script wasm://wasm/0c10a5fe byte offset 49: Wasm opcode 0x20 (kExprLocalGet)
|
|
Scope:
|
|
at $wasm_B (0:49):
|
|
- scope (wasm-expression-stack):
|
|
stack:
|
|
- scope (local):
|
|
$var0: 3 (i32)
|
|
- scope (module):
|
|
instance: exports: "main" (Function)
|
|
module: Module
|
|
functions: "$wasm_A": (Function), "$wasm_B": (Function)
|
|
at (anonymous) (0:17):
|
|
-- skipped
|
|
Paused:
|
|
Script wasm://wasm/0c10a5fe byte offset 51: Wasm opcode 0x41 (kExprI32Const)
|
|
Scope:
|
|
at $wasm_B (0:51):
|
|
- scope (wasm-expression-stack):
|
|
stack: "0": 3 (i32)
|
|
- scope (local):
|
|
$var0: 3 (i32)
|
|
- scope (module):
|
|
instance: exports: "main" (Function)
|
|
module: Module
|
|
functions: "$wasm_A": (Function), "$wasm_B": (Function)
|
|
at (anonymous) (0:17):
|
|
-- skipped
|
|
Paused:
|
|
Script wasm://wasm/0c10a5fe byte offset 53: Wasm opcode 0x6b (kExprI32Sub)
|
|
Scope:
|
|
at $wasm_B (0:53):
|
|
- scope (wasm-expression-stack):
|
|
stack: "0": 3 (i32), "1": 1 (i32)
|
|
- scope (local):
|
|
$var0: 3 (i32)
|
|
- scope (module):
|
|
instance: exports: "main" (Function)
|
|
module: Module
|
|
functions: "$wasm_A": (Function), "$wasm_B": (Function)
|
|
at (anonymous) (0:17):
|
|
-- skipped
|
|
Paused:
|
|
Script wasm://wasm/0c10a5fe byte offset 54: Wasm opcode 0x21 (kExprLocalSet)
|
|
Scope:
|
|
at $wasm_B (0:54):
|
|
- scope (wasm-expression-stack):
|
|
stack: "0": 2 (i32)
|
|
- scope (local):
|
|
$var0: 3 (i32)
|
|
- scope (module):
|
|
instance: exports: "main" (Function)
|
|
module: Module
|
|
functions: "$wasm_A": (Function), "$wasm_B": (Function)
|
|
at (anonymous) (0:17):
|
|
-- skipped
|
|
Paused:
|
|
Script wasm://wasm/0c10a5fe byte offset 38: Wasm opcode 0x01 (kExprNop)
|
|
Scope:
|
|
at $wasm_A (0:38):
|
|
- scope (wasm-expression-stack):
|
|
stack:
|
|
- scope (local):
|
|
- scope (module):
|
|
instance: exports: "main" (Function)
|
|
module: Module
|
|
functions: "$wasm_A": (Function), "$wasm_B": (Function)
|
|
at $wasm_B (0:56):
|
|
- scope (wasm-expression-stack):
|
|
stack:
|
|
- scope (local):
|
|
$var0: 2 (i32)
|
|
- scope (module):
|
|
instance: exports: "main" (Function)
|
|
module: Module
|
|
functions: "$wasm_A": (Function), "$wasm_B": (Function)
|
|
at (anonymous) (0:17):
|
|
-- skipped
|
|
Paused:
|
|
Script wasm://wasm/0c10a5fe byte offset 39: Wasm opcode 0x01 (kExprNop)
|
|
Scope:
|
|
at $wasm_A (0:39):
|
|
- scope (wasm-expression-stack):
|
|
stack:
|
|
- scope (local):
|
|
- scope (module):
|
|
instance: exports: "main" (Function)
|
|
module: Module
|
|
functions: "$wasm_A": (Function), "$wasm_B": (Function)
|
|
at $wasm_B (0:56):
|
|
- scope (wasm-expression-stack):
|
|
stack:
|
|
- scope (local):
|
|
$var0: 2 (i32)
|
|
- scope (module):
|
|
instance: exports: "main" (Function)
|
|
module: Module
|
|
functions: "$wasm_A": (Function), "$wasm_B": (Function)
|
|
at (anonymous) (0:17):
|
|
-- skipped
|
|
Paused:
|
|
Script wasm://wasm/0c10a5fe byte offset 45: Wasm opcode 0x20 (kExprLocalGet)
|
|
Scope:
|
|
at $wasm_B (0:45):
|
|
- scope (wasm-expression-stack):
|
|
stack:
|
|
- scope (local):
|
|
$var0: 2 (i32)
|
|
- scope (module):
|
|
instance: exports: "main" (Function)
|
|
module: Module
|
|
functions: "$wasm_A": (Function), "$wasm_B": (Function)
|
|
at (anonymous) (0:17):
|
|
-- skipped
|
|
Paused:
|
|
Script wasm://wasm/0c10a5fe byte offset 47: Wasm opcode 0x04 (kExprIf)
|
|
Scope:
|
|
at $wasm_B (0:47):
|
|
- scope (wasm-expression-stack):
|
|
stack: "0": 2 (i32)
|
|
- scope (local):
|
|
$var0: 2 (i32)
|
|
- scope (module):
|
|
instance: exports: "main" (Function)
|
|
module: Module
|
|
functions: "$wasm_A": (Function), "$wasm_B": (Function)
|
|
at (anonymous) (0:17):
|
|
-- skipped
|
|
Paused:
|
|
Script wasm://wasm/0c10a5fe byte offset 49: Wasm opcode 0x20 (kExprLocalGet)
|
|
Scope:
|
|
at $wasm_B (0:49):
|
|
- scope (wasm-expression-stack):
|
|
stack:
|
|
- scope (local):
|
|
$var0: 2 (i32)
|
|
- scope (module):
|
|
instance: exports: "main" (Function)
|
|
module: Module
|
|
functions: "$wasm_A": (Function), "$wasm_B": (Function)
|
|
at (anonymous) (0:17):
|
|
-- skipped
|
|
Paused:
|
|
Script wasm://wasm/0c10a5fe byte offset 51: Wasm opcode 0x41 (kExprI32Const)
|
|
Scope:
|
|
at $wasm_B (0:51):
|
|
- scope (wasm-expression-stack):
|
|
stack: "0": 2 (i32)
|
|
- scope (local):
|
|
$var0: 2 (i32)
|
|
- scope (module):
|
|
instance: exports: "main" (Function)
|
|
module: Module
|
|
functions: "$wasm_A": (Function), "$wasm_B": (Function)
|
|
at (anonymous) (0:17):
|
|
-- skipped
|
|
Paused:
|
|
Script wasm://wasm/0c10a5fe byte offset 53: Wasm opcode 0x6b (kExprI32Sub)
|
|
Scope:
|
|
at $wasm_B (0:53):
|
|
- scope (wasm-expression-stack):
|
|
stack: "0": 2 (i32), "1": 1 (i32)
|
|
- scope (local):
|
|
$var0: 2 (i32)
|
|
- scope (module):
|
|
instance: exports: "main" (Function)
|
|
module: Module
|
|
functions: "$wasm_A": (Function), "$wasm_B": (Function)
|
|
at (anonymous) (0:17):
|
|
-- skipped
|
|
Paused:
|
|
Script wasm://wasm/0c10a5fe byte offset 54: Wasm opcode 0x21 (kExprLocalSet)
|
|
Scope:
|
|
at $wasm_B (0:54):
|
|
- scope (wasm-expression-stack):
|
|
stack: "0": 1 (i32)
|
|
- scope (local):
|
|
$var0: 2 (i32)
|
|
- scope (module):
|
|
instance: exports: "main" (Function)
|
|
module: Module
|
|
functions: "$wasm_A": (Function), "$wasm_B": (Function)
|
|
at (anonymous) (0:17):
|
|
-- skipped
|
|
Paused:
|
|
Script wasm://wasm/0c10a5fe byte offset 38: Wasm opcode 0x01 (kExprNop)
|
|
Scope:
|
|
at $wasm_A (0:38):
|
|
- scope (wasm-expression-stack):
|
|
stack:
|
|
- scope (local):
|
|
- scope (module):
|
|
instance: exports: "main" (Function)
|
|
module: Module
|
|
functions: "$wasm_A": (Function), "$wasm_B": (Function)
|
|
at $wasm_B (0:56):
|
|
- scope (wasm-expression-stack):
|
|
stack:
|
|
- scope (local):
|
|
$var0: 1 (i32)
|
|
- scope (module):
|
|
instance: exports: "main" (Function)
|
|
module: Module
|
|
functions: "$wasm_A": (Function), "$wasm_B": (Function)
|
|
at (anonymous) (0:17):
|
|
-- skipped
|
|
Paused:
|
|
Script wasm://wasm/0c10a5fe byte offset 39: Wasm opcode 0x01 (kExprNop)
|
|
Scope:
|
|
at $wasm_A (0:39):
|
|
- scope (wasm-expression-stack):
|
|
stack:
|
|
- scope (local):
|
|
- scope (module):
|
|
instance: exports: "main" (Function)
|
|
module: Module
|
|
functions: "$wasm_A": (Function), "$wasm_B": (Function)
|
|
at $wasm_B (0:56):
|
|
- scope (wasm-expression-stack):
|
|
stack:
|
|
- scope (local):
|
|
$var0: 1 (i32)
|
|
- scope (module):
|
|
instance: exports: "main" (Function)
|
|
module: Module
|
|
functions: "$wasm_A": (Function), "$wasm_B": (Function)
|
|
at (anonymous) (0:17):
|
|
-- skipped
|
|
Paused:
|
|
Script wasm://wasm/0c10a5fe byte offset 45: Wasm opcode 0x20 (kExprLocalGet)
|
|
Scope:
|
|
at $wasm_B (0:45):
|
|
- scope (wasm-expression-stack):
|
|
stack:
|
|
- scope (local):
|
|
$var0: 1 (i32)
|
|
- scope (module):
|
|
instance: exports: "main" (Function)
|
|
module: Module
|
|
functions: "$wasm_A": (Function), "$wasm_B": (Function)
|
|
at (anonymous) (0:17):
|
|
-- skipped
|
|
Paused:
|
|
Script wasm://wasm/0c10a5fe byte offset 47: Wasm opcode 0x04 (kExprIf)
|
|
Scope:
|
|
at $wasm_B (0:47):
|
|
- scope (wasm-expression-stack):
|
|
stack: "0": 1 (i32)
|
|
- scope (local):
|
|
$var0: 1 (i32)
|
|
- scope (module):
|
|
instance: exports: "main" (Function)
|
|
module: Module
|
|
functions: "$wasm_A": (Function), "$wasm_B": (Function)
|
|
at (anonymous) (0:17):
|
|
-- skipped
|
|
Paused:
|
|
Script wasm://wasm/0c10a5fe byte offset 49: Wasm opcode 0x20 (kExprLocalGet)
|
|
Scope:
|
|
at $wasm_B (0:49):
|
|
- scope (wasm-expression-stack):
|
|
stack:
|
|
- scope (local):
|
|
$var0: 1 (i32)
|
|
- scope (module):
|
|
instance: exports: "main" (Function)
|
|
module: Module
|
|
functions: "$wasm_A": (Function), "$wasm_B": (Function)
|
|
at (anonymous) (0:17):
|
|
-- skipped
|
|
Paused:
|
|
Script wasm://wasm/0c10a5fe byte offset 51: Wasm opcode 0x41 (kExprI32Const)
|
|
Scope:
|
|
at $wasm_B (0:51):
|
|
- scope (wasm-expression-stack):
|
|
stack: "0": 1 (i32)
|
|
- scope (local):
|
|
$var0: 1 (i32)
|
|
- scope (module):
|
|
instance: exports: "main" (Function)
|
|
module: Module
|
|
functions: "$wasm_A": (Function), "$wasm_B": (Function)
|
|
at (anonymous) (0:17):
|
|
-- skipped
|
|
Paused:
|
|
Script wasm://wasm/0c10a5fe byte offset 53: Wasm opcode 0x6b (kExprI32Sub)
|
|
Scope:
|
|
at $wasm_B (0:53):
|
|
- scope (wasm-expression-stack):
|
|
stack: "0": 1 (i32), "1": 1 (i32)
|
|
- scope (local):
|
|
$var0: 1 (i32)
|
|
- scope (module):
|
|
instance: exports: "main" (Function)
|
|
module: Module
|
|
functions: "$wasm_A": (Function), "$wasm_B": (Function)
|
|
at (anonymous) (0:17):
|
|
-- skipped
|
|
Paused:
|
|
Script wasm://wasm/0c10a5fe byte offset 54: Wasm opcode 0x21 (kExprLocalSet)
|
|
Scope:
|
|
at $wasm_B (0:54):
|
|
- scope (wasm-expression-stack):
|
|
stack: "0": 0 (i32)
|
|
- scope (local):
|
|
$var0: 1 (i32)
|
|
- scope (module):
|
|
instance: exports: "main" (Function)
|
|
module: Module
|
|
functions: "$wasm_A": (Function), "$wasm_B": (Function)
|
|
at (anonymous) (0:17):
|
|
-- skipped
|
|
Paused:
|
|
Script wasm://wasm/0c10a5fe byte offset 38: Wasm opcode 0x01 (kExprNop)
|
|
Scope:
|
|
at $wasm_A (0:38):
|
|
- scope (wasm-expression-stack):
|
|
stack:
|
|
- scope (local):
|
|
- scope (module):
|
|
instance: exports: "main" (Function)
|
|
module: Module
|
|
functions: "$wasm_A": (Function), "$wasm_B": (Function)
|
|
at $wasm_B (0:56):
|
|
- scope (wasm-expression-stack):
|
|
stack:
|
|
- scope (local):
|
|
$var0: 0 (i32)
|
|
- scope (module):
|
|
instance: exports: "main" (Function)
|
|
module: Module
|
|
functions: "$wasm_A": (Function), "$wasm_B": (Function)
|
|
at (anonymous) (0:17):
|
|
-- skipped
|
|
Paused:
|
|
Script wasm://wasm/0c10a5fe byte offset 39: Wasm opcode 0x01 (kExprNop)
|
|
Scope:
|
|
at $wasm_A (0:39):
|
|
- scope (wasm-expression-stack):
|
|
stack:
|
|
- scope (local):
|
|
- scope (module):
|
|
instance: exports: "main" (Function)
|
|
module: Module
|
|
functions: "$wasm_A": (Function), "$wasm_B": (Function)
|
|
at $wasm_B (0:56):
|
|
- scope (wasm-expression-stack):
|
|
stack:
|
|
- scope (local):
|
|
$var0: 0 (i32)
|
|
- scope (module):
|
|
instance: exports: "main" (Function)
|
|
module: Module
|
|
functions: "$wasm_A": (Function), "$wasm_B": (Function)
|
|
at (anonymous) (0:17):
|
|
-- skipped
|
|
Paused:
|
|
Script wasm://wasm/0c10a5fe byte offset 45: Wasm opcode 0x20 (kExprLocalGet)
|
|
Scope:
|
|
at $wasm_B (0:45):
|
|
- scope (wasm-expression-stack):
|
|
stack:
|
|
- scope (local):
|
|
$var0: 0 (i32)
|
|
- scope (module):
|
|
instance: exports: "main" (Function)
|
|
module: Module
|
|
functions: "$wasm_A": (Function), "$wasm_B": (Function)
|
|
at (anonymous) (0:17):
|
|
-- skipped
|
|
Paused:
|
|
Script wasm://wasm/0c10a5fe byte offset 47: Wasm opcode 0x04 (kExprIf)
|
|
Scope:
|
|
at $wasm_B (0:47):
|
|
- scope (wasm-expression-stack):
|
|
stack: "0": 0 (i32)
|
|
- scope (local):
|
|
$var0: 0 (i32)
|
|
- scope (module):
|
|
instance: exports: "main" (Function)
|
|
module: Module
|
|
functions: "$wasm_A": (Function), "$wasm_B": (Function)
|
|
at (anonymous) (0:17):
|
|
-- skipped
|
|
Paused:
|
|
Script wasm://wasm/0c10a5fe byte offset 61: Wasm opcode 0x0b (kExprEnd)
|
|
Scope:
|
|
at $wasm_B (0:61):
|
|
- scope (wasm-expression-stack):
|
|
stack:
|
|
- scope (local):
|
|
$var0: 0 (i32)
|
|
- scope (module):
|
|
instance: exports: "main" (Function)
|
|
module: Module
|
|
functions: "$wasm_A": (Function), "$wasm_B": (Function)
|
|
at (anonymous) (0:17):
|
|
-- skipped
|
|
exports.main returned!
|