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 1099 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1110 }; | 1110 }; |
1111 | 1111 |
1112 | 1112 |
1113 class RawOneByteString : public RawString { | 1113 class RawOneByteString : public RawString { |
1114 RAW_HEAP_OBJECT_IMPLEMENTATION(OneByteString); | 1114 RAW_HEAP_OBJECT_IMPLEMENTATION(OneByteString); |
1115 | 1115 |
1116 // Variable length data follows here. | 1116 // Variable length data follows here. |
1117 uint8_t data_[0]; | 1117 uint8_t data_[0]; |
1118 | 1118 |
1119 friend class SnapshotReader; | 1119 friend class SnapshotReader; |
| 1120 friend class ApiMessageReader; |
1120 }; | 1121 }; |
1121 | 1122 |
1122 | 1123 |
1123 class RawTwoByteString : public RawString { | 1124 class RawTwoByteString : public RawString { |
1124 RAW_HEAP_OBJECT_IMPLEMENTATION(TwoByteString); | 1125 RAW_HEAP_OBJECT_IMPLEMENTATION(TwoByteString); |
1125 | 1126 |
1126 // Variable length data follows here. | 1127 // Variable length data follows here. |
1127 uint16_t data_[0]; | 1128 uint16_t data_[0]; |
1128 | 1129 |
1129 friend class SnapshotReader; | 1130 friend class SnapshotReader; |
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1597 kExternalUint64Array == kByteArray + 18 && | 1598 kExternalUint64Array == kByteArray + 18 && |
1598 kExternalFloat32Array == kByteArray + 19 && | 1599 kExternalFloat32Array == kByteArray + 19 && |
1599 kExternalFloat64Array == kByteArray + 20 && | 1600 kExternalFloat64Array == kByteArray + 20 && |
1600 kClosure == kByteArray + 21); | 1601 kClosure == kByteArray + 21); |
1601 return (index >= kByteArray && index <= kClosure); | 1602 return (index >= kByteArray && index <= kClosure); |
1602 } | 1603 } |
1603 | 1604 |
1604 } // namespace dart | 1605 } // namespace dart |
1605 | 1606 |
1606 #endif // VM_RAW_OBJECT_H_ | 1607 #endif // VM_RAW_OBJECT_H_ |
OLD | NEW |