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

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

Issue 14449009: Another fix for debugging stack traces and captured variables. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 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/debugger.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) 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 867 matching lines...) Expand 10 before | Expand all | Expand 10 after
878 uint8_t data_[0]; 878 uint8_t data_[0];
879 }; 879 };
880 880
881 881
882 class RawLocalVarDescriptors : public RawObject { 882 class RawLocalVarDescriptors : public RawObject {
883 public: 883 public:
884 enum VarInfoKind { 884 enum VarInfoKind {
885 kStackVar = 1, 885 kStackVar = 1,
886 kContextVar, 886 kContextVar,
887 kContextLevel, 887 kContextLevel,
888 kContextChain 888 kSavedEntryContext,
889 kSavedCurrentContext
889 }; 890 };
890 891
891 struct VarInfo { 892 struct VarInfo {
892 intptr_t index; // Slot index on stack or in context. 893 intptr_t index; // Slot index on stack or in context.
893 int8_t kind; // Entry kind of type VarInfoKind. 894 int8_t kind; // Entry kind of type VarInfoKind.
894 int16_t scope_id; // Scope to which the variable belongs. 895 int16_t scope_id; // Scope to which the variable belongs.
895 intptr_t begin_pos; // Token position of scope start. 896 intptr_t begin_pos; // Token position of scope start.
896 intptr_t end_pos; // Token position of scope end. 897 intptr_t end_pos; // Token position of scope end.
897 }; 898 };
898 899
(...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after
1661 // Make sure this is updated when new TypedData types are added. 1662 // Make sure this is updated when new TypedData types are added.
1662 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 12); 1663 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 12);
1663 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 13); 1664 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 13);
1664 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 12); 1665 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 12);
1665 return (kNullCid - kTypedDataInt8ArrayCid); 1666 return (kNullCid - kTypedDataInt8ArrayCid);
1666 } 1667 }
1667 1668
1668 } // namespace dart 1669 } // namespace dart
1669 1670
1670 #endif // VM_RAW_OBJECT_H_ 1671 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/debugger.cc ('k') | runtime/vm/scopes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698