1a73f73b3b
The format of the name section changed recently. It now contains subsections of different type (currently for function names or local variable names). This CL changes our internal wasm module builders (in JS and C++) to emit this new format, and changes the decoder to understand it. We currently only parse the function name section, and ignore names of local variables. I will later extend this to parse local variable names when needed for debugging. R=ahaas@chromium.org, rossberg@chromium.org BUG=v8:6222 Change-Id: I2627160c25c9209a3f09abe0b88941ec48b24434 Reviewed-on: https://chromium-review.googlesource.com/470247 Commit-Queue: Clemens Hammacher <clemensh@chromium.org> Reviewed-by: Andreas Rossberg <rossberg@chromium.org> Cr-Commit-Position: refs/heads/master@{#44492}
84 lines
2.9 KiB
Plaintext
84 lines
2.9 KiB
Plaintext
Installing code an global variable.
|
|
Calling instantiate function.
|
|
Waiting for two wasm scripts to be parsed.
|
|
Ignoring script with url v8://test/callInstantiate
|
|
Got wasm script: wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-0
|
|
Requesting source for wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-0...
|
|
Got wasm script: wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1
|
|
Requesting source for wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1...
|
|
func $wasm_A
|
|
nop
|
|
nop
|
|
end
|
|
|
|
func $wasm_B (param i32)
|
|
loop
|
|
get_local 0
|
|
if
|
|
get_local 0
|
|
i32.const 1
|
|
i32.sub
|
|
set_local 0
|
|
call 0
|
|
br 1
|
|
end
|
|
end
|
|
end
|
|
|
|
Setting breakpoint on line 7 (on the setlocal before the call), url wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1
|
|
{
|
|
columnNumber : 6
|
|
lineNumber : 7
|
|
scriptId : <scriptId>
|
|
}
|
|
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1:7:6: >set_local 0
|
|
Step action: stepInto
|
|
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1:8:6: >call 0
|
|
Step action: stepInto
|
|
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-0:1:2: >nop
|
|
Step action: stepOver
|
|
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-0:2:2: >nop
|
|
Step action: stepOut
|
|
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1:9:6: >br 1
|
|
Step action: stepOut
|
|
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1:7:6: >set_local 0
|
|
Step action: stepOver
|
|
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1:8:6: >call 0
|
|
Step action: stepOver
|
|
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1:9:6: >br 1
|
|
Step action: resume
|
|
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1:7:6: >set_local 0
|
|
Step action: stepInto
|
|
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1:8:6: >call 0
|
|
Step action: stepInto
|
|
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-0:1:2: >nop
|
|
Step action: stepOut
|
|
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1:9:6: >br 1
|
|
Step action: stepInto
|
|
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1:1:2: >loop
|
|
Step action: stepInto
|
|
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1:2:4: >get_local 0
|
|
Step action: stepInto
|
|
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1:3:4: >if
|
|
Step action: stepInto
|
|
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1:4:6: >get_local 0
|
|
Step action: stepInto
|
|
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1:5:6: >i32.const 1
|
|
Step action: stepInto
|
|
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1:6:6: >i32.sub
|
|
Step action: stepInto
|
|
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1:7:6: >set_local 0
|
|
Step action: stepInto
|
|
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1:8:6: >call 0
|
|
Step action: stepInto
|
|
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-0:1:2: >nop
|
|
Step action: stepInto
|
|
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-0:2:2: >nop
|
|
Step action: stepInto
|
|
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-0:3:0: >end
|
|
Step action: stepInto
|
|
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1:9:6: >br 1
|
|
Step action: resume
|
|
exports.main returned!
|
|
Finished!
|