| 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 RUNTIME_VM_RAW_OBJECT_H_ | 5 #ifndef RUNTIME_VM_RAW_OBJECT_H_ |
| 6 #define RUNTIME_VM_RAW_OBJECT_H_ | 6 #define RUNTIME_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/exceptions.h" | 10 #include "vm/exceptions.h" |
| (...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 702 kPreFinalized, // VM classes: size precomputed, but no checks done. | 702 kPreFinalized, // VM classes: size precomputed, but no checks done. |
| 703 kFinalized, // Class parsed, finalized and ready for use. | 703 kFinalized, // Class parsed, finalized and ready for use. |
| 704 kRefinalizeAfterPatch, // Class needs to be refinalized (patched). | 704 kRefinalizeAfterPatch, // Class needs to be refinalized (patched). |
| 705 }; | 705 }; |
| 706 | 706 |
| 707 private: | 707 private: |
| 708 RAW_HEAP_OBJECT_IMPLEMENTATION(Class); | 708 RAW_HEAP_OBJECT_IMPLEMENTATION(Class); |
| 709 | 709 |
| 710 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } | 710 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } |
| 711 RawString* name_; | 711 RawString* name_; |
| 712 NOT_IN_PRODUCT(RawString* user_name_); | 712 RawString* user_name_; |
| 713 RawArray* functions_; | 713 RawArray* functions_; |
| 714 RawArray* functions_hash_table_; | 714 RawArray* functions_hash_table_; |
| 715 RawArray* fields_; | 715 RawArray* fields_; |
| 716 RawArray* offset_in_words_to_field_; | 716 RawArray* offset_in_words_to_field_; |
| 717 RawArray* interfaces_; // Array of AbstractType. | 717 RawArray* interfaces_; // Array of AbstractType. |
| 718 RawScript* script_; | 718 RawScript* script_; |
| 719 RawLibrary* library_; | 719 RawLibrary* library_; |
| 720 RawTypeArguments* type_parameters_; // Array of TypeParameter. | 720 RawTypeArguments* type_parameters_; // Array of TypeParameter. |
| 721 RawAbstractType* super_type_; | 721 RawAbstractType* super_type_; |
| 722 RawType* mixin_; // Generic mixin type, e.g. M<T>, not M<int>. | 722 RawType* mixin_; // Generic mixin type, e.g. M<T>, not M<int>. |
| (...skipping 1799 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2522 kTypedDataInt8ArrayViewCid + 15); | 2522 kTypedDataInt8ArrayViewCid + 15); |
| 2523 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); | 2523 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); |
| 2524 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); | 2524 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); |
| 2525 return (kNullCid - kTypedDataInt8ArrayCid); | 2525 return (kNullCid - kTypedDataInt8ArrayCid); |
| 2526 } | 2526 } |
| 2527 | 2527 |
| 2528 | 2528 |
| 2529 } // namespace dart | 2529 } // namespace dart |
| 2530 | 2530 |
| 2531 #endif // RUNTIME_VM_RAW_OBJECT_H_ | 2531 #endif // RUNTIME_VM_RAW_OBJECT_H_ |
| OLD | NEW |