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

Issue 126653003: Debugger no longer causes top level variable initialization (Closed)

Created:
6 years, 11 months ago by hausner
Modified:
6 years, 11 months ago
Reviewers:
srdjan, Jacob
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Debugger no longer causes top level variable initialization When a top-level variable has not been initialized yet, the debugger reports a value of ‘null’ rather than causing a side effect of running the initializer code. R=jacobr@google.com, srdjan@google.com Committed: https://code.google.com/p/dart/source/detail?r=31678

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -3 lines) Patch
M runtime/vm/debugger.cc View 1 2 3 4 1 chunk +9 lines, -3 lines 0 comments Download
M runtime/vm/symbols.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
hausner
6 years, 11 months ago (2014-01-07 22:34:24 UTC) #1
hausner
Ping
6 years, 11 months ago (2014-01-09 17:44:11 UTC) #2
Jacob
https://codereview.chromium.org/126653003/diff/1/runtime/vm/debugger.cc File runtime/vm/debugger.cc (right): https://codereview.chromium.org/126653003/diff/1/runtime/vm/debugger.cc#newcode1821 runtime/vm/debugger.cc:1821: // If the field is not initialized yet, just ...
6 years, 11 months ago (2014-01-09 17:51:11 UTC) #3
hausner
This will occur when the debugger displays the value of a top-level variable before the ...
6 years, 11 months ago (2014-01-09 17:55:21 UTC) #4
Jacob
On 2014/01/09 17:55:21, hausner wrote: > This will occur when the debugger displays the value ...
6 years, 11 months ago (2014-01-09 18:05:09 UTC) #5
srdjan
https://codereview.chromium.org/126653003/diff/1/runtime/vm/debugger.cc File runtime/vm/debugger.cc (right): https://codereview.chromium.org/126653003/diff/1/runtime/vm/debugger.cc#newcode1825 runtime/vm/debugger.cc:1825: field_value = Object::null(); Can we use a value like ...
6 years, 11 months ago (2014-01-09 18:15:32 UTC) #6
hausner
PTAL. I am using the symbol <uninitialized> now to indicate that the variable has not ...
6 years, 11 months ago (2014-01-09 21:23:12 UTC) #7
Jacob
lgtm
6 years, 11 months ago (2014-01-09 21:34:44 UTC) #8
srdjan
lgtm
6 years, 11 months ago (2014-01-09 21:39:22 UTC) #9
Jakob.Gruber
https://codereview.chromium.org/126653003/diff/100001/runtime/vm/debugger.cc File runtime/vm/debugger.cc (right): https://codereview.chromium.org/126653003/diff/100001/runtime/vm/debugger.cc#newcode1822 runtime/vm/debugger.cc:1822: // to be null. We don't want to execute ...
6 years, 11 months ago (2014-01-09 21:46:38 UTC) #10
hausner
Nice catch by Jakob. Also changed the special value to <not initialized> to match what ...
6 years, 11 months ago (2014-01-09 21:50:04 UTC) #11
hausner
6 years, 11 months ago (2014-01-09 21:50:25 UTC) #12
Message was sent while issue was closed.
Committed patchset #5 manually as r31678 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698