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/globals.h" | 9 #include "vm/globals.h" |
| 10 #include "vm/token.h" | 10 #include "vm/token.h" |
| (...skipping 1194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1205 } | 1205 } |
| 1206 RawObject** to(intptr_t length) { | 1206 RawObject** to(intptr_t length) { |
| 1207 return reinterpret_cast<RawObject**>(&ptr()->data()[length - 1]); | 1207 return reinterpret_cast<RawObject**>(&ptr()->data()[length - 1]); |
| 1208 } | 1208 } |
| 1209 | 1209 |
| 1210 friend class RawCode; | 1210 friend class RawCode; |
| 1211 friend class RawImmutableArray; | 1211 friend class RawImmutableArray; |
| 1212 friend class SnapshotReader; | 1212 friend class SnapshotReader; |
| 1213 friend class GrowableObjectArray; | 1213 friend class GrowableObjectArray; |
| 1214 friend class Object; | 1214 friend class Object; |
| 1215 friend class String; | |
|
Ivan Posva
2012/11/15 06:17:15
I don't think this is needed any longer.
siva
2012/11/15 21:34:13
Done.
| |
| 1215 }; | 1216 }; |
| 1216 | 1217 |
| 1217 | 1218 |
| 1218 class RawImmutableArray : public RawArray { | 1219 class RawImmutableArray : public RawArray { |
| 1219 RAW_HEAP_OBJECT_IMPLEMENTATION(ImmutableArray); | 1220 RAW_HEAP_OBJECT_IMPLEMENTATION(ImmutableArray); |
| 1220 | 1221 |
| 1221 friend class SnapshotReader; | 1222 friend class SnapshotReader; |
| 1222 }; | 1223 }; |
| 1223 | 1224 |
| 1224 | 1225 |
| (...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1634 kExternalUint64ArrayCid == kExternalInt8ArrayCid + 7 && | 1635 kExternalUint64ArrayCid == kExternalInt8ArrayCid + 7 && |
| 1635 kExternalFloat32ArrayCid == kExternalInt8ArrayCid + 8 && | 1636 kExternalFloat32ArrayCid == kExternalInt8ArrayCid + 8 && |
| 1636 kExternalFloat64ArrayCid == kExternalInt8ArrayCid + 9 && | 1637 kExternalFloat64ArrayCid == kExternalInt8ArrayCid + 9 && |
| 1637 kStacktraceCid == kExternalInt8ArrayCid + 10); | 1638 kStacktraceCid == kExternalInt8ArrayCid + 10); |
| 1638 return (index >= kExternalInt8ArrayCid && index <= kExternalFloat64ArrayCid); | 1639 return (index >= kExternalInt8ArrayCid && index <= kExternalFloat64ArrayCid); |
| 1639 } | 1640 } |
| 1640 | 1641 |
| 1641 } // namespace dart | 1642 } // namespace dart |
| 1642 | 1643 |
| 1643 #endif // VM_RAW_OBJECT_H_ | 1644 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |