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

Issue 2668763003: [inspector] V8DebuggerAgent cleanup (Closed)

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

Description

[inspector] V8DebuggerAgent cleanup V8DebuggerAgentImpl::m_skipAllPaused is moved to V8Debugger. V8DebuggerAgentImpl::didPaused doesn't return shouldBreak flag and called only when break is required and stack trace presented. V8DebuggerAgentImpl doesn't store paused context. Logic of conversion step-next at return into step-in is moved to debug.cc. BUG=none R=dgozman@chromium.org,yangguo@chromium.org Review-Url: https://codereview.chromium.org/2668763003 Cr-Commit-Position: refs/heads/master@{#42907} Committed: https://chromium.googlesource.com/v8/v8/+/3a4f5fafe0a13992917511a42e8fd6ee0c65968a

Patch Set 1 #

Total comments: 7

Patch Set 2 : reverted semantic change - only cleanup #

Total comments: 6

Patch Set 3 : addressed comments #

Patch Set 4 : better test #

Total comments: 8

Patch Set 5 : addressed comments #

Patch Set 6 : addressed comments #

Total comments: 2

Patch Set 7 : addressed comments #

Patch Set 8 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+186 lines, -65 lines) Patch
M src/debug/debug.cc View 1 2 3 3 chunks +4 lines, -2 lines 0 comments Download
M src/inspector/v8-debugger.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/inspector/v8-debugger.cc View 1 2 3 4 5 6 7 4 chunks +13 lines, -16 lines 0 comments Download
M src/inspector/v8-debugger-agent-impl.h View 1 2 3 4 5 chunks +6 lines, -3 lines 0 comments Download
M src/inspector/v8-debugger-agent-impl.cc View 1 2 3 4 5 6 7 21 chunks +23 lines, -42 lines 0 comments Download
A test/inspector/debugger/step-into-next-script.js View 1 2 3 1 chunk +51 lines, -0 lines 0 comments Download
A test/inspector/debugger/step-into-next-script-expected.txt View 1 2 3 1 chunk +83 lines, -0 lines 0 comments Download
M test/inspector/task-runner.h View 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/task-runner.cc View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (21 generated)
kozy
Yang, please take a look. I think stepping part could be interesting to you. https://codereview.chromium.org/2668763003/diff/1/src/debug/debug.cc ...
3 years, 10 months ago (2017-02-01 07:29:43 UTC) #3
Yang
https://codereview.chromium.org/2668763003/diff/1/src/debug/debug.cc File src/debug/debug.cc (right): https://codereview.chromium.org/2668763003/diff/1/src/debug/debug.cc#newcode1035 src/debug/debug.cc:1035: if (step_action == StepNext && location.IsReturn()) { On 2017/02/01 ...
3 years, 10 months ago (2017-02-01 07:46:12 UTC) #4
kozy
adressed comments https://codereview.chromium.org/2668763003/diff/1/src/debug/debug.cc File src/debug/debug.cc (right): https://codereview.chromium.org/2668763003/diff/1/src/debug/debug.cc#newcode1035 src/debug/debug.cc:1035: if (step_action == StepNext && location.IsReturn()) { ...
3 years, 10 months ago (2017-02-02 06:58:56 UTC) #5
Yang
LGTM. I'd be ok with addressing the step-in issue in a separate CL. I expect ...
3 years, 10 months ago (2017-02-02 12:10:49 UTC) #6
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/2668763003/20001
3 years, 10 months ago (2017-02-02 16:36:29 UTC) #9
kozy
Ok, I'll change step-next semantic at return position in follow up.
3 years, 10 months ago (2017-02-02 16:36:43 UTC) #10
dgozman
https://codereview.chromium.org/2668763003/diff/20001/src/inspector/v8-debugger-agent-impl.cc File src/inspector/v8-debugger-agent-impl.cc (right): https://codereview.chromium.org/2668763003/diff/20001/src/inspector/v8-debugger-agent-impl.cc#newcode832 src/inspector/v8-debugger-agent-impl.cc:832: if (m_javaScriptPauseScheduled && !m_debugger->isPaused()) { Why do we have ...
3 years, 10 months ago (2017-02-02 17:18:30 UTC) #12
kozy
all done, please take a look. https://codereview.chromium.org/2668763003/diff/20001/src/inspector/v8-debugger-agent-impl.cc File src/inspector/v8-debugger-agent-impl.cc (right): https://codereview.chromium.org/2668763003/diff/20001/src/inspector/v8-debugger-agent-impl.cc#newcode832 src/inspector/v8-debugger-agent-impl.cc:832: if (m_javaScriptPauseScheduled && ...
3 years, 10 months ago (2017-02-02 18:31:56 UTC) #15
kozy
Dmitry, please take a look, ready for review.
3 years, 10 months ago (2017-02-02 22:25:36 UTC) #18
dgozman
https://codereview.chromium.org/2668763003/diff/60001/src/inspector/v8-debugger-agent-impl.cc File src/inspector/v8-debugger-agent-impl.cc (left): https://codereview.chromium.org/2668763003/diff/60001/src/inspector/v8-debugger-agent-impl.cc#oldcode617 src/inspector/v8-debugger-agent-impl.cc:617: if (m_javaScriptPauseScheduled || m_debugger->isPaused()) Let's merge V8Debugger::isPaused() with m_runningNestedMessageLoop, ...
3 years, 10 months ago (2017-02-02 23:40:36 UTC) #19
kozy
all done! :) https://codereview.chromium.org/2668763003/diff/60001/src/inspector/v8-debugger-agent-impl.cc File src/inspector/v8-debugger-agent-impl.cc (left): https://codereview.chromium.org/2668763003/diff/60001/src/inspector/v8-debugger-agent-impl.cc#oldcode617 src/inspector/v8-debugger-agent-impl.cc:617: if (m_javaScriptPauseScheduled || m_debugger->isPaused()) On 2017/02/02 ...
3 years, 10 months ago (2017-02-03 01:04:08 UTC) #20
dgozman
lgtm https://codereview.chromium.org/2668763003/diff/100001/src/inspector/v8-debugger-agent-impl.cc File src/inspector/v8-debugger-agent-impl.cc (left): https://codereview.chromium.org/2668763003/diff/100001/src/inspector/v8-debugger-agent-impl.cc#oldcode842 src/inspector/v8-debugger-agent-impl.cc:842: if (m_javaScriptPauseScheduled && !m_skipAllPauses && Bring back m_skipAllPauses ...
3 years, 10 months ago (2017-02-03 02:23:08 UTC) #21
kozy
all done. https://codereview.chromium.org/2668763003/diff/100001/src/inspector/v8-debugger-agent-impl.cc File src/inspector/v8-debugger-agent-impl.cc (left): https://codereview.chromium.org/2668763003/diff/100001/src/inspector/v8-debugger-agent-impl.cc#oldcode842 src/inspector/v8-debugger-agent-impl.cc:842: if (m_javaScriptPauseScheduled && !m_skipAllPauses && On 2017/02/03 ...
3 years, 10 months ago (2017-02-03 03:22:23 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/2668763003/140001
3 years, 10 months ago (2017-02-03 06:36:46 UTC) #29
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/2668763003/160001
3 years, 10 months ago (2017-02-03 06:38:47 UTC) #34
commit-bot: I haz the power
3 years, 10 months ago (2017-02-03 07:09:22 UTC) #37
Message was sent while issue was closed.
Committed patchset #8 (id:160001) as
https://chromium.googlesource.com/v8/v8/+/3a4f5fafe0a13992917511a42e8fd6ee0c6...

Powered by Google App Engine
This is Rietveld 408576698