| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |