| 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 667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 678 RawArray* dependent_code_; | 678 RawArray* dependent_code_; |
| 679 RawSmi* guarded_list_length_; | 679 RawSmi* guarded_list_length_; |
| 680 RawObject** to() { | 680 RawObject** to() { |
| 681 return reinterpret_cast<RawObject**>(&ptr()->guarded_list_length_); | 681 return reinterpret_cast<RawObject**>(&ptr()->guarded_list_length_); |
| 682 } | 682 } |
| 683 | 683 |
| 684 intptr_t token_pos_; | 684 intptr_t token_pos_; |
| 685 intptr_t guarded_cid_; | 685 intptr_t guarded_cid_; |
| 686 intptr_t is_nullable_; // kNullCid if field can contain null value and | 686 intptr_t is_nullable_; // kNullCid if field can contain null value and |
| 687 // any other value otherwise. | 687 // any other value otherwise. |
| 688 // Offset to the guarded length field inside an instance of class matching |
| 689 // guarded_cid_. Stored corrected by -kHeapObjectTag to simplify code |
| 690 // generated on platforms with weak addressing modes (ARM, MIPS). |
| 691 int8_t guarded_list_length_in_object_offset_; |
| 692 |
| 688 uint8_t kind_bits_; // static, final, const, has initializer. | 693 uint8_t kind_bits_; // static, final, const, has initializer. |
| 689 }; | 694 }; |
| 690 | 695 |
| 691 | 696 |
| 692 class RawLiteralToken : public RawObject { | 697 class RawLiteralToken : public RawObject { |
| 693 RAW_HEAP_OBJECT_IMPLEMENTATION(LiteralToken); | 698 RAW_HEAP_OBJECT_IMPLEMENTATION(LiteralToken); |
| 694 | 699 |
| 695 RawObject** from() { | 700 RawObject** from() { |
| 696 return reinterpret_cast<RawObject**>(&ptr()->literal_); | 701 return reinterpret_cast<RawObject**>(&ptr()->literal_); |
| 697 } | 702 } |
| (...skipping 1142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1840 COMPILE_ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14); | 1845 COMPILE_ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14); |
| 1841 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 1846 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == |
| 1842 kTypedDataInt8ArrayViewCid + 15); | 1847 kTypedDataInt8ArrayViewCid + 15); |
| 1843 COMPILE_ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 14); | 1848 COMPILE_ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 14); |
| 1844 return (kNullCid - kTypedDataInt8ArrayCid); | 1849 return (kNullCid - kTypedDataInt8ArrayCid); |
| 1845 } | 1850 } |
| 1846 | 1851 |
| 1847 } // namespace dart | 1852 } // namespace dart |
| 1848 | 1853 |
| 1849 #endif // VM_RAW_OBJECT_H_ | 1854 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |