Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(214)

Issue 2536763002: [inspector] [wasm] Implement GetPossibleBreakpoints (Closed)

Created:
4 years ago by Clemens Hammacher
Modified:
3 years, 10 months ago
Reviewers:
kozy, titzer, dgozman, Yang
CC:
devtools-reviews_chromium.org, v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[inspector] [wasm] Implement GetPossibleBreakpoints This CL implements GetPossibleBreakpoints for wasm, by iterating over all functions in the requested range and returning the location of all instructions within that range. The V8DebuggerScript does the translation from fake script id to v8 script ids in both directions. I extended the test case to include the respective source line, such that you can easily check that the reported locations are correct. It now also queries ranges within the script to test that this also works. BUG=chromium:613110 R=yangguo@chromium.org, titzer@chromium.org, dgozman@chromium.org

Patch Set 1 #

Patch Set 2 : Use fully-qualified name for DebugInterface #

Patch Set 3 : Rebase #

Total comments: 2

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+308 lines, -88 lines) Patch
M src/api.cc View 1 2 3 2 chunks +20 lines, -2 lines 0 comments Download
M src/debug/debug-interface.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M src/inspector/v8-debugger-agent-impl.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M src/inspector/v8-debugger-script.h View 1 2 3 2 chunks +6 lines, -2 lines 0 comments Download
M src/inspector/v8-debugger-script.cc View 1 2 3 6 chunks +60 lines, -10 lines 0 comments Download
M src/inspector/wasm-translation.cc View 1 2 3 3 chunks +14 lines, -3 lines 0 comments Download
M src/wasm/wasm-objects.h View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M src/wasm/wasm-objects.cc View 1 2 3 2 chunks +72 lines, -0 lines 0 comments Download
M test/inspector/debugger/wasm-get-breakable-locations.js View 1 2 3 1 chunk +91 lines, -7 lines 0 comments Download
M test/inspector/debugger/wasm-get-breakable-locations-expected.txt View 1 2 3 1 chunk +36 lines, -64 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 25 (17 generated)
Clemens Hammacher
4 years ago (2016-11-28 17:00:22 UTC) #9
kozy
We use get possible breakpoints to get locations and then set breakpoint in this location. ...
4 years ago (2016-11-30 17:36:29 UTC) #15
kozy
https://codereview.chromium.org/2536763002/diff/40001/test/inspector/debugger/wasm-get-breakable-locations.js File test/inspector/debugger/wasm-get-breakable-locations.js (right): https://codereview.chromium.org/2536763002/diff/40001/test/inspector/debugger/wasm-get-breakable-locations.js#newcode107 test/inspector/debugger/wasm-get-breakable-locations.js:107: function checkGetBreakableLocations(wasmScriptNr) { You can improve this test by ...
4 years ago (2016-11-30 17:38:16 UTC) #16
Clemens Hammacher
https://codereview.chromium.org/2536763002/diff/40001/test/inspector/debugger/wasm-get-breakable-locations.js File test/inspector/debugger/wasm-get-breakable-locations.js (right): https://codereview.chromium.org/2536763002/diff/40001/test/inspector/debugger/wasm-get-breakable-locations.js#newcode107 test/inspector/debugger/wasm-get-breakable-locations.js:107: function checkGetBreakableLocations(wasmScriptNr) { On 2016/11/30 at 17:38:16, kozyatinskiy wrote: ...
4 years ago (2016-11-30 17:52:19 UTC) #17
kozy
On 2016/11/30 17:52:19, Clemens Hammacher wrote: > If you are uncomfortable with landing this as ...
4 years ago (2016-11-30 18:37:10 UTC) #18
Clemens Hammacher
On 2016/11/30 at 18:37:10, kozyatinskiy wrote: > On 2016/11/30 17:52:19, Clemens Hammacher wrote: > > ...
4 years ago (2016-12-19 15:32:46 UTC) #23
titzer
On 2016/12/19 15:32:46, Clemens Hammacher wrote: > On 2016/11/30 at 18:37:10, kozyatinskiy wrote: > > ...
4 years ago (2016-12-19 16:41:29 UTC) #24
Clemens Hammacher
3 years, 10 months ago (2017-01-24 20:38:06 UTC) #25
Closing this old CL, new one is here: http://crrev.com/2655653003
General breakpoint and stepping support already landed in V8, so it's much
shorter now.

Powered by Google App Engine
This is Rietveld 408576698