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 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 | 401 |
402 private: | 402 private: |
403 RAW_HEAP_OBJECT_IMPLEMENTATION(Class); | 403 RAW_HEAP_OBJECT_IMPLEMENTATION(Class); |
404 | 404 |
405 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } | 405 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } |
406 RawString* name_; | 406 RawString* name_; |
407 RawArray* functions_; | 407 RawArray* functions_; |
408 RawArray* fields_; | 408 RawArray* fields_; |
409 RawGrowableObjectArray* closure_functions_; // Local functions and literals. | 409 RawGrowableObjectArray* closure_functions_; // Local functions and literals. |
410 RawArray* interfaces_; // Array of AbstractType. | 410 RawArray* interfaces_; // Array of AbstractType. |
| 411 RawGrowableObjectArray* direct_subclasses_; // Array of Class. |
411 RawScript* script_; | 412 RawScript* script_; |
412 RawLibrary* library_; | 413 RawLibrary* library_; |
413 RawTypeArguments* type_parameters_; // Array of TypeParameter. | 414 RawTypeArguments* type_parameters_; // Array of TypeParameter. |
414 RawType* super_type_; | 415 RawType* super_type_; |
415 RawObject* factory_class_; // UnresolvedClass (until finalization) or Class. | 416 RawObject* factory_class_; // UnresolvedClass (until finalization) or Class. |
416 RawFunction* signature_function_; // Associated function for signature class. | 417 RawFunction* signature_function_; // Associated function for signature class. |
417 RawArray* constants_; // Canonicalized values of this class. | 418 RawArray* constants_; // Canonicalized values of this class. |
418 RawArray* canonical_types_; // Canonicalized types of this class. | 419 RawArray* canonical_types_; // Canonicalized types of this class. |
419 RawCode* allocation_stub_; // Stub code for allocation of instances. | 420 RawCode* allocation_stub_; // Stub code for allocation of instances. |
420 RawObject** to() { | 421 RawObject** to() { |
(...skipping 1164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1585 kExternalUint64ArrayCid == kByteArrayCid + 18 && | 1586 kExternalUint64ArrayCid == kByteArrayCid + 18 && |
1586 kExternalFloat32ArrayCid == kByteArrayCid + 19 && | 1587 kExternalFloat32ArrayCid == kByteArrayCid + 19 && |
1587 kExternalFloat64ArrayCid == kByteArrayCid + 20 && | 1588 kExternalFloat64ArrayCid == kByteArrayCid + 20 && |
1588 kStacktraceCid == kByteArrayCid + 21); | 1589 kStacktraceCid == kByteArrayCid + 21); |
1589 return (index >= kByteArrayCid && index <= kExternalFloat64ArrayCid); | 1590 return (index >= kByteArrayCid && index <= kExternalFloat64ArrayCid); |
1590 } | 1591 } |
1591 | 1592 |
1592 } // namespace dart | 1593 } // namespace dart |
1593 | 1594 |
1594 #endif // VM_RAW_OBJECT_H_ | 1595 #endif // VM_RAW_OBJECT_H_ |
OLD | NEW |