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

Issue 549057: Implement issue 554 Add "ProcessDebuggerRequests" call to Debug Agent API (Closed)

Created:
10 years, 11 months ago by Peter Rybin
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Implement issue 554 Add "ProcessDebuggerRequests" call to Debug Agent API

Patch Set 1 #

Patch Set 2 : clean up #

Patch Set 3 : test added #

Total comments: 6

Patch Set 4 : merge #

Patch Set 5 : follow codereview #

Patch Set 6 : clean up #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -5 lines) Patch
M include/v8-debug.h View 1 2 3 4 1 chunk +37 lines, -0 lines 0 comments Download
M src/api.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M src/execution.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/execution.cc View 1 2 3 4 1 chunk +13 lines, -5 lines 0 comments Download
M test/cctest/test-debug.cc View 3 4 1 chunk +45 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Peter Rybin
Hi Sorren This solution seems to be working. I am not sure it is 100% ...
10 years, 11 months ago (2010-01-14 20:59:50 UTC) #1
Søren Thygesen Gjesse
LGTM http://codereview.chromium.org/549057/diff/3001/2006 File include/v8-debug.h (right): http://codereview.chromium.org/549057/diff/3001/2006#newcode268 include/v8-debug.h:268: * Makes V8 process all pending debug commands. ...
10 years, 11 months ago (2010-01-15 09:10:40 UTC) #2
Peter Rybin
10 years, 11 months ago (2010-01-15 20:00:05 UTC) #3
http://codereview.chromium.org/549057/diff/3001/2006
File include/v8-debug.h (right):

http://codereview.chromium.org/549057/diff/3001/2006#newcode268
include/v8-debug.h:268: * Makes V8 process all pending debug commands. It is
equivalent to running
On 2010/01/15 09:10:40, Søren Gjesse wrote:
> The comment from "It is equivalent..." is a bit internal I think. How about
> removing that part and instead describe when to use it (something about
debugger
> requests are not being processed unless V8 is running some JavaScript or this
> function is called).
> 
> Maybe add a comment on the threading issues, or maybe we need a general
comment
> at the top on which functions can be called from any thread and which needs a
V8
> thread (possibly using Locker).
> 
> Maybe also some comment on what happens of there is a suspend or evaluate
> request (with regard to entered context).

I redid it.
However you may find it now too general.

http://codereview.chromium.org/549057/diff/3001/2008
File src/execution.cc (right):

http://codereview.chromium.org/549057/diff/3001/2008#newcode649
src/execution.cc:649: StackGuard::Continue(DEBUGBREAK);
On 2010/01/15 09:10:40, Søren Gjesse wrote:
> I am not sure whether the DEBUGBREAK flag should be cleared when this is
called
> on behalf of ProcessDebuggerRequests. Would that not cause calls to
> v8::Debug::DebugBreak() to be cancled when ProcessDebuggerRequests is called?
> Might be that the use of v8::Debug::DebugBreak() does not work well with the
use
> of the debugger agent anyway.

My bad :(
Could be a problem.
Done

http://codereview.chromium.org/549057/diff/3001/2010
File test/cctest/test-debug.cc (right):

http://codereview.chromium.org/549057/diff/3001/2010#newcode5665
test/cctest/test-debug.cc:5665: // debug-delay.js is executed.
On 2010/01/15 09:10:40, Søren Gjesse wrote:
> I don't see how this comment relate to the actual test.

Done

Powered by Google App Engine
This is Rietveld 408576698