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

Side by Side Diff: runtime/vm/raw_object.h

Issue 8983034: Getting value of local variables on stack trace (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/scopes.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_RAW_OBJECT_H_ 5 #ifndef VM_RAW_OBJECT_H_
6 #define VM_RAW_OBJECT_H_ 6 #define VM_RAW_OBJECT_H_
7 7
8 #include "vm/assert.h" 8 #include "vm/assert.h"
9 #include "vm/globals.h" 9 #include "vm/globals.h"
10 #include "vm/snapshot.h" 10 #include "vm/snapshot.h"
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after
653 653
654 // Variable length data follows here. 654 // Variable length data follows here.
655 intptr_t data_[0]; 655 intptr_t data_[0];
656 }; 656 };
657 657
658 658
659 class RawLocalVarDescriptors : public RawObject { 659 class RawLocalVarDescriptors : public RawObject {
660 RAW_HEAP_OBJECT_IMPLEMENTATION(LocalVarDescriptors); 660 RAW_HEAP_OBJECT_IMPLEMENTATION(LocalVarDescriptors);
661 661
662 struct VarInfo { 662 struct VarInfo {
663 intptr_t index; // Slot index on stack. 663 intptr_t index; // Slot index on stack or in context.
664 intptr_t scope_id; // Scope to which the variable belongs.
664 intptr_t begin_pos; // Token position of scope start. 665 intptr_t begin_pos; // Token position of scope start.
665 intptr_t end_pos; // Token position of scope end. 666 intptr_t end_pos; // Token position of scope end.
666 }; 667 };
667 668
668 intptr_t length_; // Number of descriptors. 669 intptr_t length_; // Number of descriptors.
669 RawArray* names_; // Array of [length_] variable names. 670 RawArray* names_; // Array of [length_] variable names.
670 671
671 VarInfo data_[0]; // Variable info with [length_] entries. 672 VarInfo data_[0]; // Variable info with [length_] entries.
672 }; 673 };
673 674
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
961 intptr_t type_; // Uninitialized, simple or complex. 962 intptr_t type_; // Uninitialized, simple or complex.
962 intptr_t flags_; // Represents global/local, case insensitive, multiline. 963 intptr_t flags_; // Represents global/local, case insensitive, multiline.
963 964
964 // Variable length data follows here. 965 // Variable length data follows here.
965 uint8_t data_[0]; 966 uint8_t data_[0];
966 }; 967 };
967 968
968 } // namespace dart 969 } // namespace dart
969 970
970 #endif // VM_RAW_OBJECT_H_ 971 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/scopes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698