| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 "vm/assert.h" | 8 #include "vm/assert.h" |
| 9 #include "vm/globals.h" | 9 #include "vm/globals.h" |
| 10 #include "vm/snapshot.h" | 10 #include "vm/snapshot.h" |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 kFinalized, // All checks completed, class ready for use. | 215 kFinalized, // All checks completed, class ready for use. |
| 216 }; | 216 }; |
| 217 | 217 |
| 218 private: | 218 private: |
| 219 RAW_HEAP_OBJECT_IMPLEMENTATION(Class); | 219 RAW_HEAP_OBJECT_IMPLEMENTATION(Class); |
| 220 | 220 |
| 221 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } | 221 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } |
| 222 RawString* name_; | 222 RawString* name_; |
| 223 RawArray* functions_; | 223 RawArray* functions_; |
| 224 RawArray* fields_; | 224 RawArray* fields_; |
| 225 // TODO(srdjan): RawTypeArguments* interfaces_; // Array of Type. |
| 225 RawArray* interfaces_; // Array of AbstractType. | 226 RawArray* interfaces_; // Array of AbstractType. |
| 226 RawScript* script_; | 227 RawScript* script_; |
| 227 RawLibrary* library_; | 228 RawLibrary* library_; |
| 228 RawArray* type_parameters_; // Array of String. | 229 RawArray* type_parameters_; // Array of String. |
| 229 RawTypeArray* type_parameter_extends_; // DynamicType if no extends clause. | 230 RawTypeArray* type_parameter_extends_; // DynamicType if no extends clause. |
| 230 RawAbstractType* super_type_; | 231 RawType* super_type_; |
| 231 RawObject* factory_class_; // UnresolvedClass (until finalization) or Class. | 232 RawObject* factory_class_; // UnresolvedClass (until finalization) or Class. |
| 232 RawFunction* signature_function_; // Associated function for signature class. | 233 RawFunction* signature_function_; // Associated function for signature class. |
| 233 RawArray* functions_cache_; // See class FunctionsCache. | 234 RawArray* functions_cache_; // See class FunctionsCache. |
| 234 RawArray* constants_; // Canonicalized values of this class. | 235 RawArray* constants_; // Canonicalized values of this class. |
| 236 // TODO(srdjan): RawTypeArguments* canonical_types_; |
| 235 RawArray* canonical_types_; // Canonicalized types of this class. | 237 RawArray* canonical_types_; // Canonicalized types of this class. |
| 236 RawCode* allocation_stub_; // Stub code for allocation of instances. | 238 RawCode* allocation_stub_; // Stub code for allocation of instances. |
| 237 RawObject** to() { | 239 RawObject** to() { |
| 238 return reinterpret_cast<RawObject**>(&ptr()->allocation_stub_); | 240 return reinterpret_cast<RawObject**>(&ptr()->allocation_stub_); |
| 239 } | 241 } |
| 240 | 242 |
| 241 cpp_vtable handle_vtable_; | 243 cpp_vtable handle_vtable_; |
| 242 intptr_t instance_size_; | 244 intptr_t instance_size_; |
| 243 ObjectKind instance_kind_; | 245 ObjectKind instance_kind_; |
| 244 intptr_t type_arguments_instance_field_offset_; // May be kNoTypeArguments. | 246 intptr_t type_arguments_instance_field_offset_; // May be kNoTypeArguments. |
| (...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 852 intptr_t type_; // Uninitialized, simple or complex. | 854 intptr_t type_; // Uninitialized, simple or complex. |
| 853 intptr_t flags_; // Represents global/local, case insensitive, multiline. | 855 intptr_t flags_; // Represents global/local, case insensitive, multiline. |
| 854 | 856 |
| 855 // Variable length data follows here. | 857 // Variable length data follows here. |
| 856 uint8_t data_[0]; | 858 uint8_t data_[0]; |
| 857 }; | 859 }; |
| 858 | 860 |
| 859 } // namespace dart | 861 } // namespace dart |
| 860 | 862 |
| 861 #endif // VM_RAW_OBJECT_H_ | 863 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |