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

Issue 6234: Refactored the logic for entering the debugger into one abstraction EnterDebu... (Closed)

Created:
12 years, 2 months ago by Søren Thygesen Gjesse
Modified:
9 years, 7 months ago
Reviewers:
Kasper Lund
CC:
v8-dev
Visibility:
Public.

Description

Refactored the logic for entering the debugger into one abstraction EnterDebugger. Removed the static initializer for Top::break_access_. Committed: http://code.google.com/p/v8/source/detail?r=421

Patch Set 1 #

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -45 lines) Patch
M src/debug.h View 1 3 chunks +25 lines, -21 lines 0 comments Download
M src/debug.cc View 1 5 chunks +17 lines, -18 lines 0 comments Download
M src/mirror-delay.js View 1 chunk +1 line, -1 line 0 comments Download
M src/runtime.cc View 1 2 chunks +7 lines, -4 lines 0 comments Download
M src/top.cc View 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
Søren Thygesen Gjesse
12 years, 2 months ago (2008-10-03 08:54:01 UTC) #1
Kasper Lund
LGTM with a few comments: http://codereview.chromium.org/6234/diff/1/2 File src/debug.h (right): http://codereview.chromium.org/6234/diff/1/2#newcode473 Line 473: // Enter the ...
12 years, 2 months ago (2008-10-03 09:00:12 UTC) #2
Søren Thygesen Gjesse
12 years, 2 months ago (2008-10-03 09:53:14 UTC) #3
http://codereview.chromium.org/6234/diff/1/2
File src/debug.h (right):

http://codereview.chromium.org/6234/diff/1/2#newcode473
Line 473: // Enter the debugger.
On 2008/10/03 09:00:12, Kasper Lund wrote:
> Maybe put a better comment here? It's really a helper class that supports
> entering the debugger, right?

Added a comment describing what actually happens.

http://codereview.chromium.org/6234/diff/1/2#newcode496
Line 496: }
On 2008/10/03 09:00:12, Kasper Lund wrote:
> This looks weird. Remove else?

Removed.

http://codereview.chromium.org/6234/diff/1/2#newcode501
Line 501: // restore to the previous break state.
On 2008/10/03 09:00:12, Kasper Lund wrote:
> Capitalize comment.

Done.

http://codereview.chromium.org/6234/diff/1/2#newcode507
Line 507: inline bool Failed() { return load_failed; }
On 2008/10/03 09:00:12, Kasper Lund wrote:
> Rename to DidLoadFail?

Changed to FailedToEnter as it is supposed to detect all possible failures (even
though only the loading can currently fail).

http://codereview.chromium.org/6234/diff/1/2#newcode514
Line 514: bool load_failed;  // Did the debugger fail to load?
On 2008/10/03 09:00:12, Kasper Lund wrote:
> load_failed_

Renamed.

http://codereview.chromium.org/6234/diff/1/2#newcode515
Line 515: SaveContext save;  // Saves previous context.
On 2008/10/03 09:00:12, Kasper Lund wrote:
> save_

Renamed.

http://codereview.chromium.org/6234/diff/1/4
File src/runtime.cc (right):

http://codereview.chromium.org/6234/diff/1/4#newcode3114
Line 3114: EnterDebugger debugger;
On 2008/10/03 09:00:12, Kasper Lund wrote:
> Does entering the debugger using EnterDebugger require a HandleScope? It
> probably does...

It does, as EnterDebugger includes a SaveContext instance which uses Handles.

Powered by Google App Engine
This is Rietveld 408576698