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 RUNTIME_VM_RAW_OBJECT_H_ | 5 #ifndef RUNTIME_VM_RAW_OBJECT_H_ |
6 #define RUNTIME_VM_RAW_OBJECT_H_ | 6 #define RUNTIME_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/exceptions.h" | 10 #include "vm/exceptions.h" |
(...skipping 995 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1006 UNREACHABLE(); | 1006 UNREACHABLE(); |
1007 return NULL; | 1007 return NULL; |
1008 } | 1008 } |
1009 | 1009 |
1010 TokenPosition token_pos_; | 1010 TokenPosition token_pos_; |
1011 classid_t guarded_cid_; | 1011 classid_t guarded_cid_; |
1012 classid_t is_nullable_; // kNullCid if field can contain null value and | 1012 classid_t is_nullable_; // kNullCid if field can contain null value and |
1013 // any other value otherwise. | 1013 // any other value otherwise. |
1014 // Offset to the guarded length field inside an instance of class matching | 1014 // Offset to the guarded length field inside an instance of class matching |
1015 // guarded_cid_. Stored corrected by -kHeapObjectTag to simplify code | 1015 // guarded_cid_. Stored corrected by -kHeapObjectTag to simplify code |
1016 // generated on platforms with weak addressing modes (ARM, MIPS). | 1016 // generated on platforms with weak addressing modes (ARM). |
1017 int8_t guarded_list_length_in_object_offset_; | 1017 int8_t guarded_list_length_in_object_offset_; |
1018 | 1018 |
1019 uint8_t kind_bits_; // static, final, const, has initializer.... | 1019 uint8_t kind_bits_; // static, final, const, has initializer.... |
1020 NOT_IN_PRECOMPILED(intptr_t kernel_offset_); | 1020 NOT_IN_PRECOMPILED(intptr_t kernel_offset_); |
1021 | 1021 |
1022 friend class CidRewriteVisitor; | 1022 friend class CidRewriteVisitor; |
1023 }; | 1023 }; |
1024 | 1024 |
1025 | 1025 |
1026 class RawLiteralToken : public RawObject { | 1026 class RawLiteralToken : public RawObject { |
(...skipping 1494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2521 kTypedDataInt8ArrayViewCid + 15); | 2521 kTypedDataInt8ArrayViewCid + 15); |
2522 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); | 2522 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); |
2523 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); | 2523 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); |
2524 return (kNullCid - kTypedDataInt8ArrayCid); | 2524 return (kNullCid - kTypedDataInt8ArrayCid); |
2525 } | 2525 } |
2526 | 2526 |
2527 | 2527 |
2528 } // namespace dart | 2528 } // namespace dart |
2529 | 2529 |
2530 #endif // RUNTIME_VM_RAW_OBJECT_H_ | 2530 #endif // RUNTIME_VM_RAW_OBJECT_H_ |
OLD | NEW |