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

Issue 2738503006: [inspector] don't make v8::debug::Call for breakProgram. (Closed)

Created:
3 years, 9 months ago by kozy
Modified:
3 years, 9 months 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] don't make v8::debug::Call for breakProgram. We emulate break by callling breakProgramCallback function in debugger context, we can just use HandleDebugBreak. It allows us to move all stepping logic to debug.cc later and remove one usage of debugger context. + two minor issues fixed, see tests. BUG=v8:5510 R=yangguo@chromium.org Review-Url: https://codereview.chromium.org/2738503006 Cr-Commit-Position: refs/heads/master@{#43750} Committed: https://chromium.googlesource.com/v8/v8/+/c418902be4c0d345ec4c562f51819b146cb85be3

Patch Set 1 #

Patch Set 2 : better Debug::IsBlackboxed #

Patch Set 3 : little blackboxing tunning #

Patch Set 4 : added tests #

Patch Set 5 : fixed tests #

Total comments: 12

Patch Set 6 : addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -36 lines) Patch
M src/api.cc View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M src/debug/debug.h View 1 2 3 4 5 2 chunks +6 lines, -1 line 0 comments Download
M src/debug/debug.cc View 1 2 3 4 5 2 chunks +5 lines, -3 lines 0 comments Download
M src/debug/debug-interface.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M src/execution.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M src/inspector/v8-debugger.h View 1 chunk +0 lines, -1 line 0 comments Download
M src/inspector/v8-debugger.cc View 1 2 3 4 5 2 chunks +1 line, -29 lines 0 comments Download
M src/inspector/v8-debugger-agent-impl.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M src/runtime/runtime-debug.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
A test/inspector/debugger/stepping-and-break-program-api.js View 1 2 3 1 chunk +34 lines, -0 lines 0 comments Download
A test/inspector/debugger/stepping-and-break-program-api-expected.txt View 1 2 3 4 1 chunk +19 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 28 (18 generated)
kozy
Yang and Dmitry, please take a look! It's preparation CL before we can get rid ...
3 years, 9 months ago (2017-03-08 03:11:20 UTC) #3
dgozman
Could you please better explain what are we trying to achieve? https://codereview.chromium.org/2738503006/diff/80001/src/debug/debug-interface.h File src/debug/debug-interface.h (right): ...
3 years, 9 months ago (2017-03-08 19:59:37 UTC) #10
kozy
On 2017/03/08 19:59:37, dgozman wrote: > Could you please better explain what are we trying ...
3 years, 9 months ago (2017-03-08 20:49:44 UTC) #13
Yang
On 2017/03/08 20:49:44, kozy wrote: > On 2017/03/08 19:59:37, dgozman wrote: > > Could you ...
3 years, 9 months ago (2017-03-09 16:40:15 UTC) #14
dgozman
The change from description lgtm modulo some nits. Please separate patches though. https://codereview.chromium.org/2738503006/diff/80001/src/api.cc File src/api.cc ...
3 years, 9 months ago (2017-03-09 23:04:01 UTC) #15
kozy
all done! Yang, please take a look. https://codereview.chromium.org/2738503006/diff/80001/src/api.cc File src/api.cc (right): https://codereview.chromium.org/2738503006/diff/80001/src/api.cc#newcode9109 src/api.cc:9109: void debug::HandleDebugBreak(Isolate* ...
3 years, 9 months ago (2017-03-10 03:14:55 UTC) #16
kozy
Yang, I still need your review for this CL :)
3 years, 9 months ago (2017-03-10 17:23:35 UTC) #21
Yang
On 2017/03/10 17:23:35, kozy wrote: > Yang, I still need your review for this CL ...
3 years, 9 months ago (2017-03-13 13:02:45 UTC) #22
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/2738503006/100001
3 years, 9 months ago (2017-03-13 14:28:06 UTC) #25
commit-bot: I haz the power
3 years, 9 months ago (2017-03-13 14:59:50 UTC) #28
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/v8/v8/+/c418902be4c0d345ec4c562f51819b146cb...

Powered by Google App Engine
This is Rietveld 408576698