| 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 1680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1691 }; | 1691 }; |
| 1692 | 1692 |
| 1693 | 1693 |
| 1694 class RawLinkedHashMap : public RawInstance { | 1694 class RawLinkedHashMap : public RawInstance { |
| 1695 RAW_HEAP_OBJECT_IMPLEMENTATION(LinkedHashMap); | 1695 RAW_HEAP_OBJECT_IMPLEMENTATION(LinkedHashMap); |
| 1696 | 1696 |
| 1697 RawObject** from() { | 1697 RawObject** from() { |
| 1698 return reinterpret_cast<RawObject**>(&ptr()->type_arguments_); | 1698 return reinterpret_cast<RawObject**>(&ptr()->type_arguments_); |
| 1699 } | 1699 } |
| 1700 RawTypeArguments* type_arguments_; | 1700 RawTypeArguments* type_arguments_; |
| 1701 RawInstance* cme_mark_; | 1701 RawTypedData* index_; |
| 1702 RawSmi* hash_mask_; |
| 1702 RawArray* data_; | 1703 RawArray* data_; |
| 1704 RawSmi* used_data_; |
| 1705 RawSmi* deleted_keys_; |
| 1703 RawObject** to() { | 1706 RawObject** to() { |
| 1704 return reinterpret_cast<RawObject**>(&ptr()->data_); | 1707 return reinterpret_cast<RawObject**>(&ptr()->deleted_keys_); |
| 1705 } | 1708 } |
| 1706 | 1709 |
| 1710 |
| 1707 friend class SnapshotReader; | 1711 friend class SnapshotReader; |
| 1708 }; | 1712 }; |
| 1709 | 1713 |
| 1710 | 1714 |
| 1711 class RawFloat32x4 : public RawInstance { | 1715 class RawFloat32x4 : public RawInstance { |
| 1712 RAW_HEAP_OBJECT_IMPLEMENTATION(Float32x4); | 1716 RAW_HEAP_OBJECT_IMPLEMENTATION(Float32x4); |
| 1713 | 1717 |
| 1714 float value_[4]; | 1718 float value_[4]; |
| 1715 | 1719 |
| 1716 friend class SnapshotReader; | 1720 friend class SnapshotReader; |
| (...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2132 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 2136 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == |
| 2133 kTypedDataInt8ArrayViewCid + 15); | 2137 kTypedDataInt8ArrayViewCid + 15); |
| 2134 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); | 2138 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); |
| 2135 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); | 2139 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); |
| 2136 return (kNullCid - kTypedDataInt8ArrayCid); | 2140 return (kNullCid - kTypedDataInt8ArrayCid); |
| 2137 } | 2141 } |
| 2138 | 2142 |
| 2139 } // namespace dart | 2143 } // namespace dart |
| 2140 | 2144 |
| 2141 #endif // VM_RAW_OBJECT_H_ | 2145 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |