Chromium Code Reviews| 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 1671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1682 }; | 1682 }; |
| 1683 | 1683 |
| 1684 | 1684 |
| 1685 class RawLinkedHashMap : public RawInstance { | 1685 class RawLinkedHashMap : public RawInstance { |
| 1686 RAW_HEAP_OBJECT_IMPLEMENTATION(LinkedHashMap); | 1686 RAW_HEAP_OBJECT_IMPLEMENTATION(LinkedHashMap); |
| 1687 | 1687 |
| 1688 RawObject** from() { | 1688 RawObject** from() { |
| 1689 return reinterpret_cast<RawObject**>(&ptr()->type_arguments_); | 1689 return reinterpret_cast<RawObject**>(&ptr()->type_arguments_); |
| 1690 } | 1690 } |
| 1691 RawTypeArguments* type_arguments_; | 1691 RawTypeArguments* type_arguments_; |
| 1692 RawInstance* cme_mark_; | |
| 1693 RawArray* data_; | 1692 RawArray* data_; |
| 1693 RawTypedData* index_; | |
| 1694 RawObject** to() { | 1694 RawObject** to() { |
| 1695 return reinterpret_cast<RawObject**>(&ptr()->data_); | 1695 return reinterpret_cast<RawObject**>(&ptr()->index_); |
| 1696 } | 1696 } |
| 1697 // No heap object pointers after index_. | |
| 1698 RawSmi* hash_mask_; | |
| 1699 RawSmi* used_data_; | |
| 1700 RawSmi* deleted_keys_; | |
|
siva
2015/05/22 16:27:11
We have always put the RawSmi* fields also inside
koda
2015/05/26 12:22:04
Done.
| |
| 1697 | 1701 |
| 1698 friend class SnapshotReader; | 1702 friend class SnapshotReader; |
| 1699 }; | 1703 }; |
| 1700 | 1704 |
| 1701 | 1705 |
| 1702 class RawFloat32x4 : public RawInstance { | 1706 class RawFloat32x4 : public RawInstance { |
| 1703 RAW_HEAP_OBJECT_IMPLEMENTATION(Float32x4); | 1707 RAW_HEAP_OBJECT_IMPLEMENTATION(Float32x4); |
| 1704 | 1708 |
| 1705 float value_[4]; | 1709 float value_[4]; |
| 1706 | 1710 |
| (...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2123 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 2127 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == |
| 2124 kTypedDataInt8ArrayViewCid + 15); | 2128 kTypedDataInt8ArrayViewCid + 15); |
| 2125 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); | 2129 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); |
| 2126 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); | 2130 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); |
| 2127 return (kNullCid - kTypedDataInt8ArrayCid); | 2131 return (kNullCid - kTypedDataInt8ArrayCid); |
| 2128 } | 2132 } |
| 2129 | 2133 |
| 2130 } // namespace dart | 2134 } // namespace dart |
| 2131 | 2135 |
| 2132 #endif // VM_RAW_OBJECT_H_ | 2136 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |