| 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 1186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1197 } | 1197 } |
| 1198 RawObject** to(intptr_t length) { | 1198 RawObject** to(intptr_t length) { |
| 1199 return reinterpret_cast<RawObject**>(&ptr()->data()[length - 1]); | 1199 return reinterpret_cast<RawObject**>(&ptr()->data()[length - 1]); |
| 1200 } | 1200 } |
| 1201 | 1201 |
| 1202 friend class RawCode; | 1202 friend class RawCode; |
| 1203 friend class RawImmutableArray; | 1203 friend class RawImmutableArray; |
| 1204 friend class SnapshotReader; | 1204 friend class SnapshotReader; |
| 1205 friend class GrowableObjectArray; | 1205 friend class GrowableObjectArray; |
| 1206 friend class Object; | 1206 friend class Object; |
| 1207 friend class String; |
| 1207 }; | 1208 }; |
| 1208 | 1209 |
| 1209 | 1210 |
| 1210 class RawImmutableArray : public RawArray { | 1211 class RawImmutableArray : public RawArray { |
| 1211 RAW_HEAP_OBJECT_IMPLEMENTATION(ImmutableArray); | 1212 RAW_HEAP_OBJECT_IMPLEMENTATION(ImmutableArray); |
| 1212 | 1213 |
| 1213 friend class SnapshotReader; | 1214 friend class SnapshotReader; |
| 1214 }; | 1215 }; |
| 1215 | 1216 |
| 1216 | 1217 |
| (...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1610 kExternalUint64ArrayCid == kExternalInt8ArrayCid + 7 && | 1611 kExternalUint64ArrayCid == kExternalInt8ArrayCid + 7 && |
| 1611 kExternalFloat32ArrayCid == kExternalInt8ArrayCid + 8 && | 1612 kExternalFloat32ArrayCid == kExternalInt8ArrayCid + 8 && |
| 1612 kExternalFloat64ArrayCid == kExternalInt8ArrayCid + 9 && | 1613 kExternalFloat64ArrayCid == kExternalInt8ArrayCid + 9 && |
| 1613 kStacktraceCid == kExternalInt8ArrayCid + 10); | 1614 kStacktraceCid == kExternalInt8ArrayCid + 10); |
| 1614 return (index >= kExternalInt8ArrayCid && index <= kExternalFloat64ArrayCid); | 1615 return (index >= kExternalInt8ArrayCid && index <= kExternalFloat64ArrayCid); |
| 1615 } | 1616 } |
| 1616 | 1617 |
| 1617 } // namespace dart | 1618 } // namespace dart |
| 1618 | 1619 |
| 1619 #endif // VM_RAW_OBJECT_H_ | 1620 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |