| 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 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 492 kFinalized, // Class parsed, finalized and ready for use. | 492 kFinalized, // Class parsed, finalized and ready for use. |
| 493 }; | 493 }; |
| 494 | 494 |
| 495 private: | 495 private: |
| 496 RAW_HEAP_OBJECT_IMPLEMENTATION(Class); | 496 RAW_HEAP_OBJECT_IMPLEMENTATION(Class); |
| 497 | 497 |
| 498 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } | 498 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } |
| 499 RawString* name_; | 499 RawString* name_; |
| 500 RawString* user_name_; | 500 RawString* user_name_; |
| 501 RawArray* functions_; | 501 RawArray* functions_; |
| 502 RawArray* functions_hash_table_; | |
| 503 RawArray* fields_; | 502 RawArray* fields_; |
| 504 RawArray* offset_in_words_to_field_; | 503 RawArray* offset_in_words_to_field_; |
| 505 RawGrowableObjectArray* closure_functions_; // Local functions and literals. | 504 RawGrowableObjectArray* closure_functions_; // Local functions and literals. |
| 506 RawArray* interfaces_; // Array of AbstractType. | 505 RawArray* interfaces_; // Array of AbstractType. |
| 507 RawGrowableObjectArray* direct_subclasses_; // Array of Class. | 506 RawGrowableObjectArray* direct_subclasses_; // Array of Class. |
| 508 RawScript* script_; | 507 RawScript* script_; |
| 509 RawLibrary* library_; | 508 RawLibrary* library_; |
| 510 RawTypeArguments* type_parameters_; // Array of TypeParameter. | 509 RawTypeArguments* type_parameters_; // Array of TypeParameter. |
| 511 RawAbstractType* super_type_; | 510 RawAbstractType* super_type_; |
| 512 RawType* mixin_; // Generic mixin type, e.g. M<T>, not M<int>. | 511 RawType* mixin_; // Generic mixin type, e.g. M<T>, not M<int>. |
| (...skipping 1465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1978 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 1977 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == |
| 1979 kTypedDataInt8ArrayViewCid + 15); | 1978 kTypedDataInt8ArrayViewCid + 15); |
| 1980 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); | 1979 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); |
| 1981 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); | 1980 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); |
| 1982 return (kNullCid - kTypedDataInt8ArrayCid); | 1981 return (kNullCid - kTypedDataInt8ArrayCid); |
| 1983 } | 1982 } |
| 1984 | 1983 |
| 1985 } // namespace dart | 1984 } // namespace dart |
| 1986 | 1985 |
| 1987 #endif // VM_RAW_OBJECT_H_ | 1986 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |