v8/test/inspector/debugger/wasm-get-breakable-locations-byte-offsets-expected.txt
Eric Leese 6ec6ed9cbe Report real module in addition to fake scripts
Currently the inspector reports Wasm in one of two ways:
 - If there is a source map, report one script per Wasm script, with
   bytecode but no source.
 - If there is no source map, report one script per Wasm function, with
   source (Wasm disassembly) but no bytecode.

With this change, behavior with source map is same, but without source
map it will report both ways. This will allow us to change the frontend
to do its own disassembly, allowing us to remove the per-function scripts
in a future change.

Bug: chromium:1013527
Change-Id: I0c559ad08896e8d0da419e3c6ad8d1edff3976fc
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1899782
Reviewed-by: Yang Guo <yangguo@chromium.org>
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Eric Leese <leese@chromium.org>
Cr-Commit-Position: refs/heads/master@{#64980}
2019-11-15 09:59:58 +00:00

86 lines
2.4 KiB
Plaintext

Tests breakable locations in wasm
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/6a95b41e
This is a wasm script (nr 0).
Script nr 3 parsed. URL: wasm://wasm/6a95b41e/6a95b41e-0
Script nr 4 parsed. URL: wasm://wasm/6a95b41e/6a95b41e-1
Querying breakable locations for all wasm scripts now...
Requesting all breakable locations in wasm script 0
Bytecode matches!
11 breakable location(s):
[0] 0:40 || byte=1
[1] 0:41 || byte=65
[2] 0:43 || byte=33
[3] 0:45 || byte=11
[4] 0:48 || byte=32
[5] 0:50 || byte=4
[6] 0:52 || byte=2
[7] 0:54 || byte=16
[8] 0:56 || byte=11
[9] 0:57 || byte=11
[10] 0:58 || byte=11
Requesting breakable locations in offsets [0,45)
3 breakable location(s):
[0] 0:40 || byte=1
[1] 0:41 || byte=65
[2] 0:43 || byte=33
Requesting breakable locations in offsets [50,60)
6 breakable location(s):
[0] 0:50 || byte=4
[1] 0:52 || byte=2
[2] 0:54 || byte=16
[3] 0:56 || byte=11
[4] 0:57 || byte=11
[5] 0:58 || byte=11
Setting a breakpoint on each breakable location...
Setting at wasm://wasm/6a95b41e:0:40
Success!
Setting at wasm://wasm/6a95b41e:0:41
Success!
Setting at wasm://wasm/6a95b41e:0:43
Success!
Setting at wasm://wasm/6a95b41e:0:45
Success!
Setting at wasm://wasm/6a95b41e:0:48
Success!
Setting at wasm://wasm/6a95b41e:0:50
Success!
Setting at wasm://wasm/6a95b41e:0:52
Success!
Setting at wasm://wasm/6a95b41e:0:54
Success!
Setting at wasm://wasm/6a95b41e:0:56
Success!
Setting at wasm://wasm/6a95b41e:0:57
Success!
Setting at wasm://wasm/6a95b41e:0:58
Success!
Running wasm code...
Missing breakpoints: 11
Script nr 5 parsed. URL: v8://test/runWasm
Stopped at wasm://wasm/6a95b41e/6a95b41e-1:1:2
Missing breakpoints: 10
Stopped at wasm://wasm/6a95b41e/6a95b41e-1:2:2
Missing breakpoints: 9
Stopped at wasm://wasm/6a95b41e/6a95b41e-1:3:4
Missing breakpoints: 8
Stopped at wasm://wasm/6a95b41e/6a95b41e-1:4:6
Missing breakpoints: 7
Stopped at wasm://wasm/6a95b41e/6a95b41e-0:2:2
Missing breakpoints: 6
Stopped at wasm://wasm/6a95b41e/6a95b41e-0:3:2
Missing breakpoints: 5
Stopped at wasm://wasm/6a95b41e/6a95b41e-0:4:2
Missing breakpoints: 4
Stopped at wasm://wasm/6a95b41e/6a95b41e-0:5:0
Missing breakpoints: 3
Stopped at wasm://wasm/6a95b41e/6a95b41e-1:5:4
Missing breakpoints: 2
Stopped at wasm://wasm/6a95b41e/6a95b41e-1:6:2
Missing breakpoints: 1
Stopped at wasm://wasm/6a95b41e/6a95b41e-1:7:0
Missing breakpoints: 0
Finished!