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

Unified Diff: runtime/vm/raw_object.h

Issue 10579020: Support captured variables in debugger (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/parser.cc ('k') | runtime/vm/scopes.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/raw_object.h
===================================================================
--- runtime/vm/raw_object.h (revision 8858)
+++ runtime/vm/raw_object.h (working copy)
@@ -797,15 +797,24 @@
class RawLocalVarDescriptors : public RawObject {
- RAW_HEAP_OBJECT_IMPLEMENTATION(LocalVarDescriptors);
+ public:
+ enum VarInfoKind {
+ kStackVar = 1,
+ kContextVar,
+ kContextLevel,
+ kContextChain
+ };
struct VarInfo {
intptr_t index; // Slot index on stack or in context.
- intptr_t scope_id; // Scope to which the variable belongs.
+ int8_t kind; // Entry kind of type VarInfoKind.
+ int16_t scope_id; // Scope to which the variable belongs.
intptr_t begin_pos; // Token position of scope start.
intptr_t end_pos; // Token position of scope end.
};
+ private:
+ RAW_HEAP_OBJECT_IMPLEMENTATION(LocalVarDescriptors);
intptr_t length_; // Number of descriptors.
RawArray* names_; // Array of [length_] variable names.
« no previous file with comments | « runtime/vm/parser.cc ('k') | runtime/vm/scopes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698