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 1643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1654 RawObject* const* data() const { OPEN_ARRAY_START(RawObject*, RawObject*); } | 1654 RawObject* const* data() const { OPEN_ARRAY_START(RawObject*, RawObject*); } |
1655 RawObject** to(intptr_t length) { | 1655 RawObject** to(intptr_t length) { |
1656 return reinterpret_cast<RawObject**>(&ptr()->data()[length - 1]); | 1656 return reinterpret_cast<RawObject**>(&ptr()->data()[length - 1]); |
1657 } | 1657 } |
1658 | 1658 |
1659 friend class RawCode; | 1659 friend class RawCode; |
1660 friend class RawImmutableArray; | 1660 friend class RawImmutableArray; |
1661 friend class SnapshotReader; | 1661 friend class SnapshotReader; |
1662 friend class GrowableObjectArray; | 1662 friend class GrowableObjectArray; |
1663 friend class LinkedHashMap; | 1663 friend class LinkedHashMap; |
| 1664 friend class RawLinkedHashMap; |
1664 friend class Object; | 1665 friend class Object; |
1665 friend class ICData; // For high performance access. | 1666 friend class ICData; // For high performance access. |
1666 friend class SubtypeTestCache; // For high performance access. | 1667 friend class SubtypeTestCache; // For high performance access. |
1667 }; | 1668 }; |
1668 | 1669 |
1669 | 1670 |
1670 class RawImmutableArray : public RawArray { | 1671 class RawImmutableArray : public RawArray { |
1671 RAW_HEAP_OBJECT_IMPLEMENTATION(ImmutableArray); | 1672 RAW_HEAP_OBJECT_IMPLEMENTATION(ImmutableArray); |
1672 | 1673 |
1673 friend class SnapshotReader; | 1674 friend class SnapshotReader; |
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2136 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 2137 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == |
2137 kTypedDataInt8ArrayViewCid + 15); | 2138 kTypedDataInt8ArrayViewCid + 15); |
2138 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); | 2139 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); |
2139 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); | 2140 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); |
2140 return (kNullCid - kTypedDataInt8ArrayCid); | 2141 return (kNullCid - kTypedDataInt8ArrayCid); |
2141 } | 2142 } |
2142 | 2143 |
2143 } // namespace dart | 2144 } // namespace dart |
2144 | 2145 |
2145 #endif // VM_RAW_OBJECT_H_ | 2146 #endif // VM_RAW_OBJECT_H_ |
OLD | NEW |