| 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 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 kFinalized, // All checks completed, class ready for use. | 310 kFinalized, // All checks completed, class ready for use. |
| 311 }; | 311 }; |
| 312 | 312 |
| 313 private: | 313 private: |
| 314 RAW_HEAP_OBJECT_IMPLEMENTATION(Class); | 314 RAW_HEAP_OBJECT_IMPLEMENTATION(Class); |
| 315 | 315 |
| 316 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } | 316 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } |
| 317 RawString* name_; | 317 RawString* name_; |
| 318 RawArray* functions_; | 318 RawArray* functions_; |
| 319 RawArray* fields_; | 319 RawArray* fields_; |
| 320 RawGrowableObjectArray* closure_functions_; // Local functions and literals. |
| 320 RawArray* interfaces_; // Array of AbstractType. | 321 RawArray* interfaces_; // Array of AbstractType. |
| 321 RawScript* script_; | 322 RawScript* script_; |
| 322 RawLibrary* library_; | 323 RawLibrary* library_; |
| 323 RawTypeArguments* type_parameters_; // Array of TypeParameter. | 324 RawTypeArguments* type_parameters_; // Array of TypeParameter. |
| 324 RawTypeArguments* type_parameter_bounds_; // DynamicType if no bound. | 325 RawTypeArguments* type_parameter_bounds_; // DynamicType if no bound. |
| 325 RawType* super_type_; | 326 RawType* super_type_; |
| 326 RawObject* factory_class_; // UnresolvedClass (until finalization) or Class. | 327 RawObject* factory_class_; // UnresolvedClass (until finalization) or Class. |
| 327 RawFunction* signature_function_; // Associated function for signature class. | 328 RawFunction* signature_function_; // Associated function for signature class. |
| 328 RawArray* functions_cache_; // See class FunctionsCache. | 329 RawArray* functions_cache_; // See class FunctionsCache. |
| 329 RawArray* constants_; // Canonicalized values of this class. | 330 RawArray* constants_; // Canonicalized values of this class. |
| (...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1162 intptr_t type_; // Uninitialized, simple or complex. | 1163 intptr_t type_; // Uninitialized, simple or complex. |
| 1163 intptr_t flags_; // Represents global/local, case insensitive, multiline. | 1164 intptr_t flags_; // Represents global/local, case insensitive, multiline. |
| 1164 | 1165 |
| 1165 // Variable length data follows here. | 1166 // Variable length data follows here. |
| 1166 uint8_t data_[0]; | 1167 uint8_t data_[0]; |
| 1167 }; | 1168 }; |
| 1168 | 1169 |
| 1169 } // namespace dart | 1170 } // namespace dart |
| 1170 | 1171 |
| 1171 #endif // VM_RAW_OBJECT_H_ | 1172 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |