a1d2e34260
This is a minor cosmetic fix. Wasm opcodes are bytes, hence they should always be printed as an even number of hexadecimal digits. Note that currently we only print a single byte anyway, but in the future we will want to extend this to correctly parse multi-byte opcodes. Those will also be printed as an even number of characters then. R=thibaudm@chromium.org Bug: v8:10351 Change-Id: I2423277b470d74c1c72cb619c2a43bb978423bc0 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2122025 Reviewed-by: Thibaud Michaud <thibaudm@chromium.org> Commit-Queue: Clemens Backes <clemensb@chromium.org> Cr-Commit-Position: refs/heads/master@{#66883}
64 lines
1.2 KiB
Plaintext
64 lines
1.2 KiB
Plaintext
Tests stepping to javascript from wasm
|
|
Installing code and global variable.
|
|
Calling instantiate function.
|
|
Waiting for wasm scripts to be parsed.
|
|
Ignoring script with url v8://test/callInstantiate
|
|
Got wasm script: wasm://wasm/242f4a16
|
|
Setting breakpoint at start of wasm function
|
|
{
|
|
columnNumber : 33
|
|
lineNumber : 0
|
|
scriptId : <scriptId>
|
|
}
|
|
Start run 1
|
|
paused
|
|
function test() {
|
|
#debugger;
|
|
instance.exports.main();
|
|
|
|
Debugger.resume
|
|
paused
|
|
Script wasm://wasm/242f4a16 byte offset 33: Wasm opcode 0x01
|
|
Debugger.stepOut
|
|
paused
|
|
instance.exports.main();
|
|
var x = #1;
|
|
x++;
|
|
|
|
Debugger.resume
|
|
exports.main returned!
|
|
Finished run 1!
|
|
|
|
Start run 2
|
|
paused
|
|
function test() {
|
|
#debugger;
|
|
instance.exports.main();
|
|
|
|
Debugger.resume
|
|
paused
|
|
Script wasm://wasm/242f4a16 byte offset 33: Wasm opcode 0x01
|
|
Debugger.stepOver
|
|
paused
|
|
Script wasm://wasm/242f4a16 byte offset 34: Wasm opcode 0x0b
|
|
Debugger.resume
|
|
exports.main returned!
|
|
Finished run 2!
|
|
|
|
Start run 3
|
|
paused
|
|
function test() {
|
|
#debugger;
|
|
instance.exports.main();
|
|
|
|
Debugger.resume
|
|
paused
|
|
Script wasm://wasm/242f4a16 byte offset 33: Wasm opcode 0x01
|
|
Debugger.stepInto
|
|
paused
|
|
Script wasm://wasm/242f4a16 byte offset 34: Wasm opcode 0x0b
|
|
Debugger.resume
|
|
exports.main returned!
|
|
Finished run 3!
|
|
|