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}
66 lines
1.1 KiB
Plaintext
66 lines
1.1 KiB
Plaintext
Test scope inspection and stepping after a trap.
|
|
|
|
Running test: test
|
|
Instantiating.
|
|
Calling div function.
|
|
Paused at:
|
|
--- 0 ---
|
|
Script wasm://wasm/a9a86c5e byte offset 46: Wasm opcode 0x6d (kExprI32DivS)
|
|
scope at $div (0:46):
|
|
$a: 1 (i32)
|
|
$b: 0 (i32)
|
|
$unused: 4711 (i32)
|
|
$local_zero: 0 (i32)
|
|
$local_const_11: 11 (i32)
|
|
--- 1 ---
|
|
try {
|
|
instance.exports.#div(1, 0, 4711); // traps (div by zero)
|
|
} catch (e) {
|
|
|
|
--- 2 ---
|
|
#call_div()
|
|
|
|
-------------
|
|
-> stepInto
|
|
Paused at:
|
|
--- 0 ---
|
|
} catch (e) {
|
|
#e.stack; // step target of first pause
|
|
}
|
|
|
|
--- 1 ---
|
|
#call_div()
|
|
|
|
-------------
|
|
-> resume
|
|
Paused at:
|
|
--- 0 ---
|
|
Script wasm://wasm/a9a86c5e byte offset 46: Wasm opcode 0x6d (kExprI32DivS)
|
|
scope at $div (0:46):
|
|
$a: -2147483648 (i32)
|
|
$b: -1 (i32)
|
|
$unused: 4711 (i32)
|
|
$local_zero: 0 (i32)
|
|
$local_const_11: 11 (i32)
|
|
--- 1 ---
|
|
try {
|
|
instance.exports.#div(0x80000000, -1, 4711); // traps (unrepresentable)
|
|
} catch (e) {
|
|
|
|
--- 2 ---
|
|
#call_div()
|
|
|
|
-------------
|
|
-> stepInto
|
|
Paused at:
|
|
--- 0 ---
|
|
} catch (e) {
|
|
#e.stack; // step target of second pause
|
|
}
|
|
|
|
--- 1 ---
|
|
#call_div()
|
|
|
|
-------------
|
|
-> resume
|