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 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 RawArray* functions_; | 385 RawArray* functions_; |
386 RawArray* fields_; | 386 RawArray* fields_; |
387 RawGrowableObjectArray* closure_functions_; // Local functions and literals. | 387 RawGrowableObjectArray* closure_functions_; // Local functions and literals. |
388 RawArray* interfaces_; // Array of AbstractType. | 388 RawArray* interfaces_; // Array of AbstractType. |
389 RawScript* script_; | 389 RawScript* script_; |
390 RawLibrary* library_; | 390 RawLibrary* library_; |
391 RawTypeArguments* type_parameters_; // Array of TypeParameter. | 391 RawTypeArguments* type_parameters_; // Array of TypeParameter. |
392 RawType* super_type_; | 392 RawType* super_type_; |
393 RawObject* factory_class_; // UnresolvedClass (until finalization) or Class. | 393 RawObject* factory_class_; // UnresolvedClass (until finalization) or Class. |
394 RawFunction* signature_function_; // Associated function for signature class. | 394 RawFunction* signature_function_; // Associated function for signature class. |
395 RawArray* functions_cache_; // See class FunctionsCache. | |
396 RawArray* constants_; // Canonicalized values of this class. | 395 RawArray* constants_; // Canonicalized values of this class. |
397 RawArray* canonical_types_; // Canonicalized types of this class. | 396 RawArray* canonical_types_; // Canonicalized types of this class. |
398 RawCode* allocation_stub_; // Stub code for allocation of instances. | 397 RawCode* allocation_stub_; // Stub code for allocation of instances. |
399 RawObject** to() { | 398 RawObject** to() { |
400 return reinterpret_cast<RawObject**>(&ptr()->allocation_stub_); | 399 return reinterpret_cast<RawObject**>(&ptr()->allocation_stub_); |
401 } | 400 } |
402 | 401 |
403 cpp_vtable handle_vtable_; | 402 cpp_vtable handle_vtable_; |
404 intptr_t instance_size_; // Size if fixed length or 0 if variable length. | 403 intptr_t instance_size_; // Size if fixed length or 0 if variable length. |
405 intptr_t id_; // Class Id, also index in the class table. | 404 intptr_t id_; // Class Id, also index in the class table. |
(...skipping 1128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1534 kExternalUint64ArrayCid == kByteArrayCid + 18 && | 1533 kExternalUint64ArrayCid == kByteArrayCid + 18 && |
1535 kExternalFloat32ArrayCid == kByteArrayCid + 19 && | 1534 kExternalFloat32ArrayCid == kByteArrayCid + 19 && |
1536 kExternalFloat64ArrayCid == kByteArrayCid + 20 && | 1535 kExternalFloat64ArrayCid == kByteArrayCid + 20 && |
1537 kStacktraceCid == kByteArrayCid + 21); | 1536 kStacktraceCid == kByteArrayCid + 21); |
1538 return (index >= kByteArrayCid && index <= kExternalFloat64ArrayCid); | 1537 return (index >= kByteArrayCid && index <= kExternalFloat64ArrayCid); |
1539 } | 1538 } |
1540 | 1539 |
1541 } // namespace dart | 1540 } // namespace dart |
1542 | 1541 |
1543 #endif // VM_RAW_OBJECT_H_ | 1542 #endif // VM_RAW_OBJECT_H_ |
OLD | NEW |