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/atomic.h" | 9 #include "vm/atomic.h" |
10 #include "vm/globals.h" | 10 #include "vm/globals.h" |
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
659 kAllocated = 0, // Initial state. | 659 kAllocated = 0, // Initial state. |
660 kPreFinalized, // VM classes: size precomputed, but no checks done. | 660 kPreFinalized, // VM classes: size precomputed, but no checks done. |
661 kFinalized, // Class parsed, finalized and ready for use. | 661 kFinalized, // Class parsed, finalized and ready for use. |
662 }; | 662 }; |
663 | 663 |
664 private: | 664 private: |
665 RAW_HEAP_OBJECT_IMPLEMENTATION(Class); | 665 RAW_HEAP_OBJECT_IMPLEMENTATION(Class); |
666 | 666 |
667 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } | 667 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } |
668 RawString* name_; | 668 RawString* name_; |
669 RawString* user_name_; | 669 NOT_IN_PRODUCT(RawString* user_name_); |
670 RawArray* functions_; | 670 RawArray* functions_; |
671 RawArray* functions_hash_table_; | 671 RawArray* functions_hash_table_; |
672 RawArray* fields_; | 672 RawArray* fields_; |
673 RawArray* offset_in_words_to_field_; | 673 RawArray* offset_in_words_to_field_; |
674 RawArray* interfaces_; // Array of AbstractType. | 674 RawArray* interfaces_; // Array of AbstractType. |
675 RawGrowableObjectArray* direct_subclasses_; // Array of Class. | 675 RawGrowableObjectArray* direct_subclasses_; // Array of Class. |
676 RawScript* script_; | 676 RawScript* script_; |
677 RawLibrary* library_; | 677 RawLibrary* library_; |
678 RawTypeArguments* type_parameters_; // Array of TypeParameter. | 678 RawTypeArguments* type_parameters_; // Array of TypeParameter. |
679 RawAbstractType* super_type_; | 679 RawAbstractType* super_type_; |
(...skipping 1668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2348 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 2348 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == |
2349 kTypedDataInt8ArrayViewCid + 15); | 2349 kTypedDataInt8ArrayViewCid + 15); |
2350 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); | 2350 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); |
2351 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); | 2351 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); |
2352 return (kNullCid - kTypedDataInt8ArrayCid); | 2352 return (kNullCid - kTypedDataInt8ArrayCid); |
2353 } | 2353 } |
2354 | 2354 |
2355 } // namespace dart | 2355 } // namespace dart |
2356 | 2356 |
2357 #endif // VM_RAW_OBJECT_H_ | 2357 #endif // VM_RAW_OBJECT_H_ |
OLD | NEW |