| 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 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 499 RawObject* canonical_types_; // An array of canonicalized types of this class | 499 RawObject* canonical_types_; // An array of canonicalized types of this class |
| 500 // or the canonical type. | 500 // or the canonical type. |
| 501 RawArray* invocation_dispatcher_cache_; // Cache for dispatcher functions. | 501 RawArray* invocation_dispatcher_cache_; // Cache for dispatcher functions. |
| 502 RawArray* cha_codes_; // CHA optimized codes. | 502 RawArray* cha_codes_; // CHA optimized codes. |
| 503 RawCode* allocation_stub_; // Stub code for allocation of instances. | 503 RawCode* allocation_stub_; // Stub code for allocation of instances. |
| 504 RawObject** to() { | 504 RawObject** to() { |
| 505 return reinterpret_cast<RawObject**>(&ptr()->allocation_stub_); | 505 return reinterpret_cast<RawObject**>(&ptr()->allocation_stub_); |
| 506 } | 506 } |
| 507 | 507 |
| 508 cpp_vtable handle_vtable_; | 508 cpp_vtable handle_vtable_; |
| 509 intptr_t id_; // Class Id, also index in the class table. | 509 int32_t id_; // Class Id, also index in the class table. |
| 510 int32_t token_pos_; | 510 int32_t token_pos_; |
| 511 int32_t instance_size_in_words_; // Size if fixed len or 0 if variable len. | 511 int32_t instance_size_in_words_; // Size if fixed len or 0 if variable len. |
| 512 int32_t type_arguments_field_offset_in_words_; // Offset of type args fld. | 512 int32_t type_arguments_field_offset_in_words_; // Offset of type args fld. |
| 513 int32_t next_field_offset_in_words_; // Offset of the next instance field. | 513 int32_t next_field_offset_in_words_; // Offset of the next instance field. |
| 514 int16_t num_type_arguments_; // Number of type arguments in flatten vector. | 514 int16_t num_type_arguments_; // Number of type arguments in flatten vector. |
| 515 int16_t num_own_type_arguments_; // Number of non-overlapping type arguments. | 515 int16_t num_own_type_arguments_; // Number of non-overlapping type arguments. |
| 516 uint16_t num_native_fields_; // Number of native fields in class. | 516 uint16_t num_native_fields_; // Number of native fields in class. |
| 517 uint16_t state_bits_; | 517 uint16_t state_bits_; |
| 518 | 518 |
| 519 friend class Instance; | 519 friend class Instance; |
| (...skipping 1339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1859 COMPILE_ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14); | 1859 COMPILE_ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14); |
| 1860 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 1860 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == |
| 1861 kTypedDataInt8ArrayViewCid + 15); | 1861 kTypedDataInt8ArrayViewCid + 15); |
| 1862 COMPILE_ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 14); | 1862 COMPILE_ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 14); |
| 1863 return (kNullCid - kTypedDataInt8ArrayCid); | 1863 return (kNullCid - kTypedDataInt8ArrayCid); |
| 1864 } | 1864 } |
| 1865 | 1865 |
| 1866 } // namespace dart | 1866 } // namespace dart |
| 1867 | 1867 |
| 1868 #endif // VM_RAW_OBJECT_H_ | 1868 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |