| 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 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 432 return reinterpret_cast<RawObject**>(&ptr()->allocation_stub_); | 432 return reinterpret_cast<RawObject**>(&ptr()->allocation_stub_); |
| 433 } | 433 } |
| 434 | 434 |
| 435 cpp_vtable handle_vtable_; | 435 cpp_vtable handle_vtable_; |
| 436 intptr_t instance_size_; // Size if fixed length or 0 if variable length. | 436 intptr_t instance_size_; // Size if fixed length or 0 if variable length. |
| 437 intptr_t id_; // Class Id, also index in the class table. | 437 intptr_t id_; // Class Id, also index in the class table. |
| 438 intptr_t type_arguments_field_offset_; // Offset of the type arguments field. | 438 intptr_t type_arguments_field_offset_; // Offset of the type arguments field. |
| 439 intptr_t next_field_offset_; // Offset of the next instance field. | 439 intptr_t next_field_offset_; // Offset of the next instance field. |
| 440 intptr_t num_native_fields_; // Number of native fields in class. | 440 intptr_t num_native_fields_; // Number of native fields in class. |
| 441 intptr_t token_pos_; | 441 intptr_t token_pos_; |
| 442 uint8_t state_bits_; // state, is_const, is_interface. | 442 uint8_t state_bits_; // state, is_const, is_interface, is_implemented. |
| 443 | 443 |
| 444 friend class Instance; | 444 friend class Instance; |
| 445 friend class Object; | 445 friend class Object; |
| 446 friend class RawInstance; | 446 friend class RawInstance; |
| 447 friend class RawInstructions; | 447 friend class RawInstructions; |
| 448 friend class SnapshotReader; | 448 friend class SnapshotReader; |
| 449 }; | 449 }; |
| 450 | 450 |
| 451 | 451 |
| 452 class RawUnresolvedClass : public RawObject { | 452 class RawUnresolvedClass : public RawObject { |
| (...skipping 1184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1637 kExternalUint64ArrayCid == kExternalInt8ArrayCid + 7 && | 1637 kExternalUint64ArrayCid == kExternalInt8ArrayCid + 7 && |
| 1638 kExternalFloat32ArrayCid == kExternalInt8ArrayCid + 8 && | 1638 kExternalFloat32ArrayCid == kExternalInt8ArrayCid + 8 && |
| 1639 kExternalFloat64ArrayCid == kExternalInt8ArrayCid + 9 && | 1639 kExternalFloat64ArrayCid == kExternalInt8ArrayCid + 9 && |
| 1640 kStacktraceCid == kExternalInt8ArrayCid + 10); | 1640 kStacktraceCid == kExternalInt8ArrayCid + 10); |
| 1641 return (index >= kExternalInt8ArrayCid && index <= kExternalFloat64ArrayCid); | 1641 return (index >= kExternalInt8ArrayCid && index <= kExternalFloat64ArrayCid); |
| 1642 } | 1642 } |
| 1643 | 1643 |
| 1644 } // namespace dart | 1644 } // namespace dart |
| 1645 | 1645 |
| 1646 #endif // VM_RAW_OBJECT_H_ | 1646 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |