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

Issue 2465553003: [inspector] added Debugger.getPossibleBreakpoints method (Closed)

Created:
4 years, 1 month ago by kozy
Modified:
4 years, 1 month ago
Reviewers:
dgozman, Yang
CC:
v8-reviews_googlegroups.com, devtools-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[inspector] added Debugger.getPossibleBreakpoints method This method iterates through all shared function info which are related to passed script, compiles debug code for SFI in range if needed and returns possible break locations. BUG=chromium:566801 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/f0fb65838692071c5b86f272bbed07277d4a9295 Cr-Commit-Position: refs/heads/master@{#40783}

Patch Set 1 #

Patch Set 2 : it works #

Total comments: 8

Patch Set 3 : addressed comments #

Total comments: 8

Patch Set 4 : addressed comments #

Total comments: 18

Patch Set 5 : addressed comments #

Total comments: 12

Patch Set 6 : addressed comments #

Patch Set 7 : using script->line_offset and script->column_offset during location<->position conversions #

Patch Set 8 : better compile and run with origin #

Patch Set 9 : minor improvement #

Total comments: 2

Patch Set 10 : addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1506 lines, -40 lines) Patch
M src/api.cc View 1 2 3 4 5 6 2 chunks +98 lines, -0 lines 0 comments Download
M src/debug/debug.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M src/debug/debug.cc View 1 2 3 4 5 1 chunk +78 lines, -0 lines 0 comments Download
M src/debug/debug-interface.h View 1 2 3 4 3 chunks +26 lines, -0 lines 0 comments Download
M src/inspector/js_protocol.json View 1 chunk +12 lines, -0 lines 0 comments Download
M src/inspector/v8-debugger-agent-impl.h View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M src/inspector/v8-debugger-agent-impl.cc View 1 2 3 4 5 2 chunks +43 lines, -1 line 0 comments Download
M src/inspector/v8-debugger-script.h View 1 2 3 4 2 chunks +9 lines, -1 line 0 comments Download
M src/inspector/v8-debugger-script.cc View 1 2 3 4 4 chunks +16 lines, -4 lines 0 comments Download
A test/inspector/debugger/get-possible-breakpoints.js View 1 2 3 4 5 6 7 1 chunk +185 lines, -0 lines 0 comments Download
A + test/inspector/debugger/get-possible-breakpoints-expected.txt View 1 2 3 4 5 6 1 chunk +942 lines, -0 lines 0 comments Download
M test/inspector/inspector-test.cc View 1 2 3 4 5 6 7 8 chunks +50 lines, -14 lines 0 comments Download
M test/inspector/protocol-test.js View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -15 lines 0 comments Download
M test/inspector/task-runner.h View 1 2 3 4 5 6 7 8 9 2 chunks +7 lines, -1 line 0 comments Download
M test/inspector/task-runner.cc View 1 2 3 4 5 6 7 2 chunks +28 lines, -4 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 40 (20 generated)
kozy
Dmitry, please take a look.
4 years, 1 month ago (2016-11-01 01:27:53 UTC) #5
Yang
https://codereview.chromium.org/2465553003/diff/20001/src/debug/debug-interface.h File src/debug/debug-interface.h (right): https://codereview.chromium.org/2465553003/diff/20001/src/debug/debug-interface.h#newcode180 src/debug/debug-interface.h:180: int Offset(int line, int column) const; Can we have ...
4 years, 1 month ago (2016-11-02 13:51:16 UTC) #6
kozy
All done, please take another look. https://codereview.chromium.org/2465553003/diff/20001/src/debug/debug-interface.h File src/debug/debug-interface.h (right): https://codereview.chromium.org/2465553003/diff/20001/src/debug/debug-interface.h#newcode180 src/debug/debug-interface.h:180: int Offset(int line, ...
4 years, 1 month ago (2016-11-03 01:15:02 UTC) #7
Yang
https://codereview.chromium.org/2465553003/diff/40001/src/api.cc File src/api.cc (right): https://codereview.chromium.org/2465553003/diff/40001/src/api.cc#newcode8931 src/api.cc:8931: std::vector<int>& positions) const { Can we use std::pair<int, int> ...
4 years, 1 month ago (2016-11-03 08:03:26 UTC) #8
kozy
All done, please take another look. https://codereview.chromium.org/2465553003/diff/40001/src/api.cc File src/api.cc (right): https://codereview.chromium.org/2465553003/diff/40001/src/api.cc#newcode8931 src/api.cc:8931: std::vector<int>& positions) const ...
4 years, 1 month ago (2016-11-03 17:26:45 UTC) #9
dgozman
Everything except debug.cc (where I don't understand 90% of the code) lgtm. https://codereview.chromium.org/2465553003/diff/60001/src/api.cc File src/api.cc ...
4 years, 1 month ago (2016-11-03 21:13:13 UTC) #10
kozy
all done, thanks!!11!! https://codereview.chromium.org/2465553003/diff/60001/src/api.cc File src/api.cc (right): https://codereview.chromium.org/2465553003/diff/60001/src/api.cc#newcode8954 src/api.cc:8954: while (offset > line_endings[current_line_end_index] && On ...
4 years, 1 month ago (2016-11-03 22:17:13 UTC) #11
Yang
LGTM with comments addressed. https://codereview.chromium.org/2465553003/diff/80001/src/api.cc File src/api.cc (right): https://codereview.chromium.org/2465553003/diff/80001/src/api.cc#newcode8932 src/api.cc:8932: return array->GetValueChecked<i::Smi>(isolate, index)->value(); Let's just ...
4 years, 1 month ago (2016-11-04 12:22:58 UTC) #12
kozy
all done, thank you! https://codereview.chromium.org/2465553003/diff/80001/src/api.cc File src/api.cc (right): https://codereview.chromium.org/2465553003/diff/80001/src/api.cc#newcode8932 src/api.cc:8932: return array->GetValueChecked<i::Smi>(isolate, index)->value(); On 2016/11/04 ...
4 years, 1 month ago (2016-11-04 14:48:38 UTC) #13
Yang
https://codereview.chromium.org/2465553003/diff/80001/src/api.cc File src/api.cc (right): https://codereview.chromium.org/2465553003/diff/80001/src/api.cc#newcode8937 src/api.cc:8937: const Location& start, const Location& end, On 2016/11/04 14:48:38, ...
4 years, 1 month ago (2016-11-04 14:53:00 UTC) #20
kozy
https://codereview.chromium.org/2465553003/diff/80001/src/api.cc File src/api.cc (right): https://codereview.chromium.org/2465553003/diff/80001/src/api.cc#newcode8937 src/api.cc:8937: const Location& start, const Location& end, On 2016/11/04 14:53:00, ...
4 years, 1 month ago (2016-11-04 15:04:01 UTC) #21
Yang
On 2016/11/04 15:04:01, kozyatinskiy wrote: > https://codereview.chromium.org/2465553003/diff/80001/src/api.cc > File src/api.cc (right): > > https://codereview.chromium.org/2465553003/diff/80001/src/api.cc#newcode8937 > ...
4 years, 1 month ago (2016-11-04 15:08:07 UTC) #22
kozy
On 2016/11/04 15:08:07, Yang wrote: > line_offset and column_offset are properties on v8::internal::Script to account ...
4 years, 1 month ago (2016-11-04 16:38:50 UTC) #25
kozy
Dmitry, please take a look on inspector-test.cc
4 years, 1 month ago (2016-11-04 16:40:47 UTC) #26
kozy
I updated compileAndRunWithOrigin and implemented InspectorTest.addScript with this. Dmitry, please take a look.
4 years, 1 month ago (2016-11-04 17:29:10 UTC) #27
dgozman
lgtm https://codereview.chromium.org/2465553003/diff/150016/test/inspector/task-runner.h File test/inspector/task-runner.h (right): https://codereview.chromium.org/2465553003/diff/150016/test/inspector/task-runner.h#newcode72 test/inspector/task-runner.h:72: explicit ExecuteStringTask(const v8::internal::Vector<uint16_t>& expression, No explicit.
4 years, 1 month ago (2016-11-04 18:26:49 UTC) #28
kozy
all done, thanks. https://codereview.chromium.org/2465553003/diff/150016/test/inspector/task-runner.h File test/inspector/task-runner.h (right): https://codereview.chromium.org/2465553003/diff/150016/test/inspector/task-runner.h#newcode72 test/inspector/task-runner.h:72: explicit ExecuteStringTask(const v8::internal::Vector<uint16_t>& expression, On 2016/11/04 ...
4 years, 1 month ago (2016-11-04 18:50:30 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2465553003/90013
4 years, 1 month ago (2016-11-04 19:57:15 UTC) #36
commit-bot: I haz the power
Committed patchset #10 (id:90013)
4 years, 1 month ago (2016-11-04 19:59:17 UTC) #38
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 22:23:49 UTC) #40
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/f0fb65838692071c5b86f272bbed07277d4a9295
Cr-Commit-Position: refs/heads/master@{#40783}

Powered by Google App Engine
This is Rietveld 408576698