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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/parser.cc ('k') | runtime/vm/scopes.h » ('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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/globals.h" 9 #include "vm/globals.h"
10 #include "vm/token.h" 10 #include "vm/token.h"
(...skipping 779 matching lines...) Expand 10 before | Expand all | Expand 10 after
790 uword pc_; // PC corresponding to this stack map representation. 790 uword pc_; // PC corresponding to this stack map representation.
791 intptr_t min_set_bit_offset_; // Minimum bit offset which is set. 791 intptr_t min_set_bit_offset_; // Minimum bit offset which is set.
792 intptr_t max_set_bit_offset_; // Maximum bit offset which is set. 792 intptr_t max_set_bit_offset_; // Maximum bit offset which is set.
793 793
794 // Variable length data follows here (bitmap of the stack layout). 794 // Variable length data follows here (bitmap of the stack layout).
795 uint8_t data_[0]; 795 uint8_t data_[0];
796 }; 796 };
797 797
798 798
799 class RawLocalVarDescriptors : public RawObject { 799 class RawLocalVarDescriptors : public RawObject {
800 RAW_HEAP_OBJECT_IMPLEMENTATION(LocalVarDescriptors); 800 public:
801 enum VarInfoKind {
802 kStackVar = 1,
803 kContextVar,
804 kContextLevel,
805 kContextChain
806 };
801 807
802 struct VarInfo { 808 struct VarInfo {
803 intptr_t index; // Slot index on stack or in context. 809 intptr_t index; // Slot index on stack or in context.
804 intptr_t scope_id; // Scope to which the variable belongs. 810 int8_t kind; // Entry kind of type VarInfoKind.
811 int16_t scope_id; // Scope to which the variable belongs.
805 intptr_t begin_pos; // Token position of scope start. 812 intptr_t begin_pos; // Token position of scope start.
806 intptr_t end_pos; // Token position of scope end. 813 intptr_t end_pos; // Token position of scope end.
807 }; 814 };
808 815
816 private:
817 RAW_HEAP_OBJECT_IMPLEMENTATION(LocalVarDescriptors);
809 intptr_t length_; // Number of descriptors. 818 intptr_t length_; // Number of descriptors.
810 RawArray* names_; // Array of [length_] variable names. 819 RawArray* names_; // Array of [length_] variable names.
811 820
812 VarInfo data_[0]; // Variable info with [length_] entries. 821 VarInfo data_[0]; // Variable info with [length_] entries.
813 }; 822 };
814 823
815 824
816 class RawExceptionHandlers : public RawObject { 825 class RawExceptionHandlers : public RawObject {
817 RAW_HEAP_OBJECT_IMPLEMENTATION(ExceptionHandlers); 826 RAW_HEAP_OBJECT_IMPLEMENTATION(ExceptionHandlers);
818 827
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after
1507 kExternalUint64Array == kByteArray + 18 && 1516 kExternalUint64Array == kByteArray + 18 &&
1508 kExternalFloat32Array == kByteArray + 19 && 1517 kExternalFloat32Array == kByteArray + 19 &&
1509 kExternalFloat64Array == kByteArray + 20 && 1518 kExternalFloat64Array == kByteArray + 20 &&
1510 kClosure == kByteArray + 21); 1519 kClosure == kByteArray + 21);
1511 return (index >= kByteArray && index <= kClosure); 1520 return (index >= kByteArray && index <= kClosure);
1512 } 1521 }
1513 1522
1514 } // namespace dart 1523 } // namespace dart
1515 1524
1516 #endif // VM_RAW_OBJECT_H_ 1525 #endif // VM_RAW_OBJECT_H_
OLDNEW
« 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