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

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

Issue 10205006: Mark types as instantiated or uninstantiated upon finalization. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 8 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
« runtime/vm/object.cc ('K') | « runtime/vm/parser.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 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 } 371 }
372 intptr_t token_index_; 372 intptr_t token_index_;
373 }; 373 };
374 374
375 375
376 class RawAbstractType : public RawObject { 376 class RawAbstractType : public RawObject {
377 protected: 377 protected:
378 enum TypeState { 378 enum TypeState {
379 kAllocated, // Initial state. 379 kAllocated, // Initial state.
380 kBeingFinalized, // In the process of being finalized. 380 kBeingFinalized, // In the process of being finalized.
381 kFinalized, // Type ready for use. 381 kFinalizedInstantiated, // Instantiated type ready for use.
382 kFinalizedUninstantiated, // Uninstantiated type ready for use.
382 }; 383 };
383 384
384 private: 385 private:
385 RAW_HEAP_OBJECT_IMPLEMENTATION(AbstractType); 386 RAW_HEAP_OBJECT_IMPLEMENTATION(AbstractType);
386 387
387 friend class ObjectStore; 388 friend class ObjectStore;
388 }; 389 };
389 390
390 391
391 class RawType : public RawAbstractType { 392 class RawType : public RawAbstractType {
(...skipping 793 matching lines...) Expand 10 before | Expand all | Expand 10 after
1185 intptr_t type_; // Uninitialized, simple or complex. 1186 intptr_t type_; // Uninitialized, simple or complex.
1186 intptr_t flags_; // Represents global/local, case insensitive, multiline. 1187 intptr_t flags_; // Represents global/local, case insensitive, multiline.
1187 1188
1188 // Variable length data follows here. 1189 // Variable length data follows here.
1189 uint8_t data_[0]; 1190 uint8_t data_[0];
1190 }; 1191 };
1191 1192
1192 } // namespace dart 1193 } // namespace dart
1193 1194
1194 #endif // VM_RAW_OBJECT_H_ 1195 #endif // VM_RAW_OBJECT_H_
OLDNEW
« runtime/vm/object.cc ('K') | « runtime/vm/parser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698