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

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

Issue 165523002: Avoid repeated resolution of types by marking them as resolved. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 10 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') | no next file » | 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 1117 matching lines...) Expand 10 before | Expand all | Expand 10 after
1128 1128
1129 class RawInstance : public RawObject { 1129 class RawInstance : public RawObject {
1130 RAW_HEAP_OBJECT_IMPLEMENTATION(Instance); 1130 RAW_HEAP_OBJECT_IMPLEMENTATION(Instance);
1131 }; 1131 };
1132 1132
1133 1133
1134 class RawAbstractType : public RawInstance { 1134 class RawAbstractType : public RawInstance {
1135 protected: 1135 protected:
1136 enum TypeState { 1136 enum TypeState {
1137 kAllocated, // Initial state. 1137 kAllocated, // Initial state.
1138 kResolved, // Type class and type arguments resolved.
1138 kBeingFinalized, // In the process of being finalized. 1139 kBeingFinalized, // In the process of being finalized.
1139 kFinalizedInstantiated, // Instantiated type ready for use. 1140 kFinalizedInstantiated, // Instantiated type ready for use.
1140 kFinalizedUninstantiated, // Uninstantiated type ready for use. 1141 kFinalizedUninstantiated, // Uninstantiated type ready for use.
1141 }; 1142 };
1142 1143
1143 private: 1144 private:
1144 RAW_HEAP_OBJECT_IMPLEMENTATION(AbstractType); 1145 RAW_HEAP_OBJECT_IMPLEMENTATION(AbstractType);
1145 1146
1146 friend class ObjectStore; 1147 friend class ObjectStore;
1147 }; 1148 };
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after
1770 // Make sure this is updated when new TypedData types are added. 1771 // Make sure this is updated when new TypedData types are added.
1771 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14); 1772 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14);
1772 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 15); 1773 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 15);
1773 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 14); 1774 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 14);
1774 return (kNullCid - kTypedDataInt8ArrayCid); 1775 return (kNullCid - kTypedDataInt8ArrayCid);
1775 } 1776 }
1776 1777
1777 } // namespace dart 1778 } // namespace dart
1778 1779
1779 #endif // VM_RAW_OBJECT_H_ 1780 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698