| 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 1297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1308 // Variable length data follows here. | 1308 // Variable length data follows here. |
| 1309 uint32_t data_[0]; | 1309 uint32_t data_[0]; |
| 1310 }; | 1310 }; |
| 1311 | 1311 |
| 1312 | 1312 |
| 1313 class RawInt64Array : public RawByteArray { | 1313 class RawInt64Array : public RawByteArray { |
| 1314 RAW_HEAP_OBJECT_IMPLEMENTATION(Int64Array); | 1314 RAW_HEAP_OBJECT_IMPLEMENTATION(Int64Array); |
| 1315 | 1315 |
| 1316 // Variable length data follows here. | 1316 // Variable length data follows here. |
| 1317 int64_t data_[0]; | 1317 int64_t data_[0]; |
| 1318 |
| 1319 friend class Instance; |
| 1318 }; | 1320 }; |
| 1319 | 1321 |
| 1320 | 1322 |
| 1321 class RawUint64Array : public RawByteArray { | 1323 class RawUint64Array : public RawByteArray { |
| 1322 RAW_HEAP_OBJECT_IMPLEMENTATION(Uint64Array); | 1324 RAW_HEAP_OBJECT_IMPLEMENTATION(Uint64Array); |
| 1323 | 1325 |
| 1324 // Variable length data follows here. | 1326 // Variable length data follows here. |
| 1325 uint64_t data_[0]; | 1327 uint64_t data_[0]; |
| 1326 }; | 1328 }; |
| 1327 | 1329 |
| (...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1631 kExternalUint64ArrayCid == kExternalInt8ArrayCid + 7 && | 1633 kExternalUint64ArrayCid == kExternalInt8ArrayCid + 7 && |
| 1632 kExternalFloat32ArrayCid == kExternalInt8ArrayCid + 8 && | 1634 kExternalFloat32ArrayCid == kExternalInt8ArrayCid + 8 && |
| 1633 kExternalFloat64ArrayCid == kExternalInt8ArrayCid + 9 && | 1635 kExternalFloat64ArrayCid == kExternalInt8ArrayCid + 9 && |
| 1634 kStacktraceCid == kExternalInt8ArrayCid + 10); | 1636 kStacktraceCid == kExternalInt8ArrayCid + 10); |
| 1635 return (index >= kExternalInt8ArrayCid && index <= kExternalFloat64ArrayCid); | 1637 return (index >= kExternalInt8ArrayCid && index <= kExternalFloat64ArrayCid); |
| 1636 } | 1638 } |
| 1637 | 1639 |
| 1638 } // namespace dart | 1640 } // namespace dart |
| 1639 | 1641 |
| 1640 #endif // VM_RAW_OBJECT_H_ | 1642 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |