| 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/atomic.h" | 9 #include "vm/atomic.h" |
| 10 #include "vm/globals.h" | 10 #include "vm/globals.h" |
| (...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 840 | 840 |
| 841 int32_t token_pos_; | 841 int32_t token_pos_; |
| 842 classid_t guarded_cid_; | 842 classid_t guarded_cid_; |
| 843 classid_t is_nullable_; // kNullCid if field can contain null value and | 843 classid_t is_nullable_; // kNullCid if field can contain null value and |
| 844 // any other value otherwise. | 844 // any other value otherwise. |
| 845 // Offset to the guarded length field inside an instance of class matching | 845 // Offset to the guarded length field inside an instance of class matching |
| 846 // guarded_cid_. Stored corrected by -kHeapObjectTag to simplify code | 846 // guarded_cid_. Stored corrected by -kHeapObjectTag to simplify code |
| 847 // generated on platforms with weak addressing modes (ARM, MIPS). | 847 // generated on platforms with weak addressing modes (ARM, MIPS). |
| 848 int8_t guarded_list_length_in_object_offset_; | 848 int8_t guarded_list_length_in_object_offset_; |
| 849 | 849 |
| 850 uint8_t kind_bits_; // static, final, const, has initializer. | 850 uint8_t kind_bits_; // static, final, const, has initializer.... |
| 851 }; | 851 }; |
| 852 | 852 |
| 853 | 853 |
| 854 class RawLiteralToken : public RawObject { | 854 class RawLiteralToken : public RawObject { |
| 855 RAW_HEAP_OBJECT_IMPLEMENTATION(LiteralToken); | 855 RAW_HEAP_OBJECT_IMPLEMENTATION(LiteralToken); |
| 856 | 856 |
| 857 RawObject** from() { | 857 RawObject** from() { |
| 858 return reinterpret_cast<RawObject**>(&ptr()->literal_); | 858 return reinterpret_cast<RawObject**>(&ptr()->literal_); |
| 859 } | 859 } |
| 860 RawString* literal_; // Literal characters as they appear in source text. | 860 RawString* literal_; // Literal characters as they appear in source text. |
| (...skipping 1333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2194 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 2194 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == |
| 2195 kTypedDataInt8ArrayViewCid + 15); | 2195 kTypedDataInt8ArrayViewCid + 15); |
| 2196 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); | 2196 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); |
| 2197 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); | 2197 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); |
| 2198 return (kNullCid - kTypedDataInt8ArrayCid); | 2198 return (kNullCid - kTypedDataInt8ArrayCid); |
| 2199 } | 2199 } |
| 2200 | 2200 |
| 2201 } // namespace dart | 2201 } // namespace dart |
| 2202 | 2202 |
| 2203 #endif // VM_RAW_OBJECT_H_ | 2203 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |