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

Issue 9581013: Splitting debugger breakpoints into two parts (Closed)

Created:
8 years, 9 months ago by hausner
Modified:
8 years, 9 months ago
Reviewers:
regis
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Splitting debugger breakpoints into two parts Splitting breakpoints into SourceBreakpoint that represent a user-defined source location of a breakpoint, and CodeBreakpoint, which represents a code location. There can be more than one CodeBreakpoint per SourceBreakpoint, e.g. for functions that are also called as closures (and are thus compiled twice.) Functions are no longer compiled as a side effect of setting a breakpoint. When they eventually get compiled, the previously recorded SourceBreakpoint is found and a CodeBreakpoint is set. Committed: https://code.google.com/p/dart/source/detail?r=4891

Patch Set 1 #

Patch Set 2 : #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+376 lines, -174 lines) Patch
M runtime/vm/compiler.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M runtime/vm/debugger.h View 1 7 chunks +84 lines, -36 lines 4 comments Download
M runtime/vm/debugger.cc View 1 20 chunks +277 lines, -118 lines 0 comments Download
M runtime/vm/debugger_api_impl.cc View 3 chunks +5 lines, -14 lines 0 comments Download
M runtime/vm/debugger_arm.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/vm/debugger_ia32.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/debugger_x64.cc View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
hausner
This review looks like a lot, but it is a lot of renaming and moving ...
8 years, 9 months ago (2012-03-02 17:46:02 UTC) #1
regis
LGTM http://codereview.chromium.org/9581013/diff/2002/runtime/vm/debugger.h File runtime/vm/debugger.h (right): http://codereview.chromium.org/9581013/diff/2002/runtime/vm/debugger.h#newcode35 runtime/vm/debugger.h:35: bool IsEnabled() const { return is_enabled_; } According ...
8 years, 9 months ago (2012-03-02 17:54:53 UTC) #2
hausner
8 years, 9 months ago (2012-03-02 18:01:19 UTC) #3
Thank you.

http://codereview.chromium.org/9581013/diff/2002/runtime/vm/debugger.h
File runtime/vm/debugger.h (right):

http://codereview.chromium.org/9581013/diff/2002/runtime/vm/debugger.h#newcode35
runtime/vm/debugger.h:35: bool IsEnabled() const { return is_enabled_; }
On 2012/03/02 17:54:53, regis wrote:
> According to our coding style, it should be is_enabled(), since it is a simple
> getter.
Forward ditto.

http://codereview.chromium.org/9581013/diff/2002/runtime/vm/debugger.h#newcode74
runtime/vm/debugger.h:74: bool IsEnabled() const { return is_enabled_; }
On 2012/03/02 17:54:53, regis wrote:
> According to our coding style, it should be is_enabled(), since it is a simple
> getter.
True. I anticipate though that this function could become more elaborate at some
point, involving a lookup or something. I would then have to rename is_enabled()
to IsEnabled(), which obliterates the whole point of having an accessor function
to shield callers from changes. I never understood that rule in our coding
standard. If you don't mind, I'll leave the name as is.

Powered by Google App Engine
This is Rietveld 408576698