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}
88 lines
2.9 KiB
Plaintext
88 lines
2.9 KiB
Plaintext
Running testFunction...
|
|
Script nr 0 parsed. URL: v8://test/setup
|
|
Script nr 1 parsed. URL: v8://test/runTestFunction
|
|
Script nr 2 parsed. URL: wasm://wasm/wasm-354ada0e/wasm-354ada0e-0
|
|
This is a wasm script (nr 0).
|
|
Script nr 3 parsed. URL: wasm://wasm/wasm-354ada0e/wasm-354ada0e-1
|
|
This is a wasm script (nr 1).
|
|
Querying breakable locations for all wasm scripts now...
|
|
Requesting all breakable locations in wasm script 0
|
|
4 breakable location(s):
|
|
[0] 2:2 || >nop
|
|
[1] 3:2 || >i32.const 12
|
|
[2] 4:2 || >set_local 0
|
|
[3] 5:0 || >end
|
|
Requesting breakable locations in lines [0,3)
|
|
1 breakable location(s):
|
|
[0] 2:2 || >nop
|
|
Requesting breakable locations in lines [4,6)
|
|
2 breakable location(s):
|
|
[0] 4:2 || >set_local 0
|
|
[1] 5:0 || >end
|
|
Requesting all breakable locations in wasm script 1
|
|
7 breakable location(s):
|
|
[0] 1:2 || >get_local 0
|
|
[1] 2:2 || >if
|
|
[2] 3:4 || >block
|
|
[3] 4:6 || >call 0
|
|
[4] 5:4 || >end
|
|
[5] 6:2 || >end
|
|
[6] 7:0 || >end
|
|
Requesting breakable locations in lines [0,3)
|
|
2 breakable location(s):
|
|
[0] 1:2 || >get_local 0
|
|
[1] 2:2 || >if
|
|
Requesting breakable locations in lines [4,6)
|
|
2 breakable location(s):
|
|
[0] 4:6 || >call 0
|
|
[1] 5:4 || >end
|
|
Setting a breakpoint on each breakable location...
|
|
Setting at wasm://wasm/wasm-354ada0e/wasm-354ada0e-0:2:2
|
|
Success!
|
|
Setting at wasm://wasm/wasm-354ada0e/wasm-354ada0e-0:3:2
|
|
Success!
|
|
Setting at wasm://wasm/wasm-354ada0e/wasm-354ada0e-0:4:2
|
|
Success!
|
|
Setting at wasm://wasm/wasm-354ada0e/wasm-354ada0e-0:5:0
|
|
Success!
|
|
Setting at wasm://wasm/wasm-354ada0e/wasm-354ada0e-1:1:2
|
|
Success!
|
|
Setting at wasm://wasm/wasm-354ada0e/wasm-354ada0e-1:2:2
|
|
Success!
|
|
Setting at wasm://wasm/wasm-354ada0e/wasm-354ada0e-1:3:4
|
|
Success!
|
|
Setting at wasm://wasm/wasm-354ada0e/wasm-354ada0e-1:4:6
|
|
Success!
|
|
Setting at wasm://wasm/wasm-354ada0e/wasm-354ada0e-1:5:4
|
|
Success!
|
|
Setting at wasm://wasm/wasm-354ada0e/wasm-354ada0e-1:6:2
|
|
Success!
|
|
Setting at wasm://wasm/wasm-354ada0e/wasm-354ada0e-1:7:0
|
|
Success!
|
|
Running wasm code...
|
|
Missing breakpoints: 11
|
|
Script nr 4 parsed. URL: v8://test/runWasm
|
|
Stopped at wasm://wasm/wasm-354ada0e/wasm-354ada0e-1:1:2
|
|
Missing breakpoints: 10
|
|
Stopped at wasm://wasm/wasm-354ada0e/wasm-354ada0e-1:2:2
|
|
Missing breakpoints: 9
|
|
Stopped at wasm://wasm/wasm-354ada0e/wasm-354ada0e-1:3:4
|
|
Missing breakpoints: 8
|
|
Stopped at wasm://wasm/wasm-354ada0e/wasm-354ada0e-1:4:6
|
|
Missing breakpoints: 7
|
|
Stopped at wasm://wasm/wasm-354ada0e/wasm-354ada0e-0:2:2
|
|
Missing breakpoints: 6
|
|
Stopped at wasm://wasm/wasm-354ada0e/wasm-354ada0e-0:3:2
|
|
Missing breakpoints: 5
|
|
Stopped at wasm://wasm/wasm-354ada0e/wasm-354ada0e-0:4:2
|
|
Missing breakpoints: 4
|
|
Stopped at wasm://wasm/wasm-354ada0e/wasm-354ada0e-0:5:0
|
|
Missing breakpoints: 3
|
|
Stopped at wasm://wasm/wasm-354ada0e/wasm-354ada0e-1:5:4
|
|
Missing breakpoints: 2
|
|
Stopped at wasm://wasm/wasm-354ada0e/wasm-354ada0e-1:6:2
|
|
Missing breakpoints: 1
|
|
Stopped at wasm://wasm/wasm-354ada0e/wasm-354ada0e-1:7:0
|
|
Missing breakpoints: 0
|
|
Finished!
|