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

Issue 8992020: First part of inspecting local variables (Closed)

Created:
9 years ago by hausner
Modified:
9 years ago
Reviewers:
srdjan, siva
CC:
reviews_dartlang.org
Visibility:
Public.

Description

First part of inspecting local variables This change introduces variable descriptors that describe the name, stack slot index, and source code stretch in which a variable is valid. Activation frames in the stack trace now can enumerate the variables that are active in that frame. Next step: fetch the value of variables from the stack. Committed: https://code.google.com/p/dart/source/detail?r=2671

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 16

Patch Set 3 : '' #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+333 lines, -26 lines) Patch
M runtime/tests/vm/vm.status View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M runtime/vm/ast_printer.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/code_generator_arm.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M runtime/vm/code_generator_ia32.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M runtime/vm/code_generator_ia32.cc View 1 2 4 chunks +10 lines, -3 lines 0 comments Download
M runtime/vm/code_generator_x64.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M runtime/vm/code_generator_x64.cc View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M runtime/vm/compiler.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/debugger.h View 1 2 5 chunks +23 lines, -5 lines 0 comments Download
M runtime/vm/debugger.cc View 1 2 9 chunks +62 lines, -14 lines 4 comments Download
M runtime/vm/object.h View 1 2 5 chunks +43 lines, -0 lines 0 comments Download
M runtime/vm/object.cc View 1 2 6 chunks +71 lines, -0 lines 0 comments Download
M runtime/vm/parser.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M runtime/vm/raw_object.h View 1 2 3 chunks +18 lines, -0 lines 0 comments Download
M runtime/vm/raw_object.cc View 1 2 2 chunks +16 lines, -0 lines 0 comments Download
M runtime/vm/raw_object_snapshot.cc View 1 2 1 chunk +16 lines, -0 lines 0 comments Download
M runtime/vm/scopes.h View 1 2 4 chunks +10 lines, -0 lines 2 comments Download
M runtime/vm/scopes.cc View 1 2 2 chunks +40 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
siva
LGTM with some comments. http://codereview.chromium.org/8992020/diff/7001/runtime/vm/debugger.cc File runtime/vm/debugger.cc (right): http://codereview.chromium.org/8992020/diff/7001/runtime/vm/debugger.cc#newcode227 runtime/vm/debugger.cc:227: *value = Instance::null(); Do you ...
9 years ago (2011-12-20 19:11:26 UTC) #1
hausner
Thank you. http://codereview.chromium.org/8992020/diff/7001/runtime/vm/debugger.cc File runtime/vm/debugger.cc (right): http://codereview.chromium.org/8992020/diff/7001/runtime/vm/debugger.cc#newcode227 runtime/vm/debugger.cc:227: *value = Instance::null(); On 2011/12/20 19:11:26, asiva ...
9 years ago (2011-12-20 21:43:55 UTC) #2
srdjan
DBC http://codereview.chromium.org/8992020/diff/17001/runtime/vm/debugger.cc File runtime/vm/debugger.cc (right): http://codereview.chromium.org/8992020/diff/17001/runtime/vm/debugger.cc#newcode80 runtime/vm/debugger.cc:80: Function* ActivationFrame::DartFunction() { Maybe you could return const ...
9 years ago (2011-12-20 22:07:04 UTC) #3
hausner
9 years ago (2011-12-20 22:13:29 UTC) #4
Thanks for taking a look.

http://codereview.chromium.org/8992020/diff/17001/runtime/vm/debugger.cc
File runtime/vm/debugger.cc (right):

http://codereview.chromium.org/8992020/diff/17001/runtime/vm/debugger.cc#newc...
runtime/vm/debugger.cc:80: Function* ActivationFrame::DartFunction() {
On 2011/12/20 22:07:04, srdjan wrote:
> Maybe you could return const Function&, since you will always return a
non-null
> value, and then the caller does not need to worry if it is NUL or not?

Will address in next checkin. Good idea.

http://codereview.chromium.org/8992020/diff/17001/runtime/vm/debugger.cc#newc...
runtime/vm/debugger.cc:160: ActiveVariables* ActivationFrame::LocalVariables() {
On 2011/12/20 22:07:04, srdjan wrote:
> Ditto const ActiveVariables&
Ditto

http://codereview.chromium.org/8992020/diff/17001/runtime/vm/scopes.h
File runtime/vm/scopes.h (right):

http://codereview.chromium.org/8992020/diff/17001/runtime/vm/scopes.h#newcode292
runtime/vm/scopes.h:292: intptr_t end_token_index_;  // Token index of end of
scope.
On 2011/12/20 22:07:04, srdjan wrote:
> Inclusive or exclusive?
Inclusive, but it depends on what the parser assigns to the SequenceNode end
token index...

Powered by Google App Engine
This is Rietveld 408576698