| 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/globals.h" | 9 #include "vm/globals.h" |
| 10 #include "vm/token.h" | 10 #include "vm/token.h" |
| (...skipping 1131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1142 return reinterpret_cast<RawObject**>(address_of_length + kWordSize); | 1142 return reinterpret_cast<RawObject**>(address_of_length + kWordSize); |
| 1143 } | 1143 } |
| 1144 RawObject** to(intptr_t length) { | 1144 RawObject** to(intptr_t length) { |
| 1145 return reinterpret_cast<RawObject**>(&ptr()->data()[length - 1]); | 1145 return reinterpret_cast<RawObject**>(&ptr()->data()[length - 1]); |
| 1146 } | 1146 } |
| 1147 | 1147 |
| 1148 friend class RawCode; | 1148 friend class RawCode; |
| 1149 friend class RawImmutableArray; | 1149 friend class RawImmutableArray; |
| 1150 friend class SnapshotReader; | 1150 friend class SnapshotReader; |
| 1151 friend class GrowableObjectArray; | 1151 friend class GrowableObjectArray; |
| 1152 friend class Object; |
| 1152 }; | 1153 }; |
| 1153 | 1154 |
| 1154 | 1155 |
| 1155 class RawImmutableArray : public RawArray { | 1156 class RawImmutableArray : public RawArray { |
| 1156 RAW_HEAP_OBJECT_IMPLEMENTATION(ImmutableArray); | 1157 RAW_HEAP_OBJECT_IMPLEMENTATION(ImmutableArray); |
| 1157 | 1158 |
| 1158 friend class SnapshotReader; | 1159 friend class SnapshotReader; |
| 1159 }; | 1160 }; |
| 1160 | 1161 |
| 1161 | 1162 |
| (...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1533 kExternalUint64ArrayCid == kByteArrayCid + 18 && | 1534 kExternalUint64ArrayCid == kByteArrayCid + 18 && |
| 1534 kExternalFloat32ArrayCid == kByteArrayCid + 19 && | 1535 kExternalFloat32ArrayCid == kByteArrayCid + 19 && |
| 1535 kExternalFloat64ArrayCid == kByteArrayCid + 20 && | 1536 kExternalFloat64ArrayCid == kByteArrayCid + 20 && |
| 1536 kStacktraceCid == kByteArrayCid + 21); | 1537 kStacktraceCid == kByteArrayCid + 21); |
| 1537 return (index >= kByteArrayCid && index <= kExternalFloat64ArrayCid); | 1538 return (index >= kByteArrayCid && index <= kExternalFloat64ArrayCid); |
| 1538 } | 1539 } |
| 1539 | 1540 |
| 1540 } // namespace dart | 1541 } // namespace dart |
| 1541 | 1542 |
| 1542 #endif // VM_RAW_OBJECT_H_ | 1543 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |