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

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
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 870 matching lines...) Expand 10 before | Expand all | Expand 10 after
881 uint8_t data_[0]; 881 uint8_t data_[0];
882 }; 882 };
883 883
884 884
885 class RawLocalVarDescriptors : public RawObject { 885 class RawLocalVarDescriptors : public RawObject {
886 public: 886 public:
887 enum VarInfoKind { 887 enum VarInfoKind {
888 kStackVar = 1, 888 kStackVar = 1,
889 kContextVar, 889 kContextVar,
890 kContextLevel, 890 kContextLevel,
891 kContextChain 891 kSavedCallerContext,
892 kSavedCurrentContext
892 }; 893 };
893 894
894 struct VarInfo { 895 struct VarInfo {
895 intptr_t index; // Slot index on stack or in context. 896 intptr_t index; // Slot index on stack or in context.
896 int8_t kind; // Entry kind of type VarInfoKind. 897 int8_t kind; // Entry kind of type VarInfoKind.
897 int16_t scope_id; // Scope to which the variable belongs. 898 int16_t scope_id; // Scope to which the variable belongs.
898 intptr_t begin_pos; // Token position of scope start. 899 intptr_t begin_pos; // Token position of scope start.
899 intptr_t end_pos; // Token position of scope end. 900 intptr_t end_pos; // Token position of scope end.
900 }; 901 };
901 902
(...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after
1664 // Make sure this is updated when new TypedData types are added. 1665 // Make sure this is updated when new TypedData types are added.
1665 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 12); 1666 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 12);
1666 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 13); 1667 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 13);
1667 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 12); 1668 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 12);
1668 return (kNullCid - kTypedDataInt8ArrayCid); 1669 return (kNullCid - kTypedDataInt8ArrayCid);
1669 } 1670 }
1670 1671
1671 } // namespace dart 1672 } // namespace dart
1672 1673
1673 #endif // VM_RAW_OBJECT_H_ 1674 #endif // VM_RAW_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698