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 1020 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1031 }; | 1031 }; |
1032 | 1032 |
1033 | 1033 |
1034 class RawOneByteString : public RawString { | 1034 class RawOneByteString : public RawString { |
1035 RAW_HEAP_OBJECT_IMPLEMENTATION(OneByteString); | 1035 RAW_HEAP_OBJECT_IMPLEMENTATION(OneByteString); |
1036 | 1036 |
1037 // Variable length data follows here. | 1037 // Variable length data follows here. |
1038 uint8_t data_[0]; | 1038 uint8_t data_[0]; |
1039 | 1039 |
1040 friend class SnapshotReader; | 1040 friend class SnapshotReader; |
| 1041 friend class ApiMessageReader; |
1041 }; | 1042 }; |
1042 | 1043 |
1043 | 1044 |
1044 class RawTwoByteString : public RawString { | 1045 class RawTwoByteString : public RawString { |
1045 RAW_HEAP_OBJECT_IMPLEMENTATION(TwoByteString); | 1046 RAW_HEAP_OBJECT_IMPLEMENTATION(TwoByteString); |
1046 | 1047 |
1047 // Variable length data follows here. | 1048 // Variable length data follows here. |
1048 uint16_t data_[0]; | 1049 uint16_t data_[0]; |
1049 | 1050 |
1050 friend class SnapshotReader; | 1051 friend class SnapshotReader; |
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1518 kExternalUint64Array == kByteArray + 18 && | 1519 kExternalUint64Array == kByteArray + 18 && |
1519 kExternalFloat32Array == kByteArray + 19 && | 1520 kExternalFloat32Array == kByteArray + 19 && |
1520 kExternalFloat64Array == kByteArray + 20 && | 1521 kExternalFloat64Array == kByteArray + 20 && |
1521 kClosure == kByteArray + 21); | 1522 kClosure == kByteArray + 21); |
1522 return (index >= kByteArray && index <= kClosure); | 1523 return (index >= kByteArray && index <= kClosure); |
1523 } | 1524 } |
1524 | 1525 |
1525 } // namespace dart | 1526 } // namespace dart |
1526 | 1527 |
1527 #endif // VM_RAW_OBJECT_H_ | 1528 #endif // VM_RAW_OBJECT_H_ |
OLD | NEW |