| 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 1050 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1061 RAW_HEAP_OBJECT_IMPLEMENTATION(ImmutableArray); | 1061 RAW_HEAP_OBJECT_IMPLEMENTATION(ImmutableArray); |
| 1062 | 1062 |
| 1063 friend class SnapshotReader; | 1063 friend class SnapshotReader; |
| 1064 }; | 1064 }; |
| 1065 | 1065 |
| 1066 | 1066 |
| 1067 class RawGrowableObjectArray : public RawInstance { | 1067 class RawGrowableObjectArray : public RawInstance { |
| 1068 RAW_HEAP_OBJECT_IMPLEMENTATION(GrowableObjectArray); | 1068 RAW_HEAP_OBJECT_IMPLEMENTATION(GrowableObjectArray); |
| 1069 | 1069 |
| 1070 RawObject** from() { | 1070 RawObject** from() { |
| 1071 return reinterpret_cast<RawObject**>(&ptr()->length_); | 1071 return reinterpret_cast<RawObject**>(&ptr()->type_arguments_); |
| 1072 } | 1072 } |
| 1073 RawAbstractTypeArguments* type_arguments_; |
| 1073 RawSmi* length_; | 1074 RawSmi* length_; |
| 1074 RawArray* data_; | 1075 RawArray* data_; |
| 1075 RawObject** to() { | 1076 RawObject** to() { |
| 1076 return reinterpret_cast<RawObject**>(&ptr()->data_); | 1077 return reinterpret_cast<RawObject**>(&ptr()->data_); |
| 1077 } | 1078 } |
| 1078 | 1079 |
| 1079 friend class SnapshotReader; | 1080 friend class SnapshotReader; |
| 1080 }; | 1081 }; |
| 1081 | 1082 |
| 1082 | 1083 |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1184 intptr_t type_; // Uninitialized, simple or complex. | 1185 intptr_t type_; // Uninitialized, simple or complex. |
| 1185 intptr_t flags_; // Represents global/local, case insensitive, multiline. | 1186 intptr_t flags_; // Represents global/local, case insensitive, multiline. |
| 1186 | 1187 |
| 1187 // Variable length data follows here. | 1188 // Variable length data follows here. |
| 1188 uint8_t data_[0]; | 1189 uint8_t data_[0]; |
| 1189 }; | 1190 }; |
| 1190 | 1191 |
| 1191 } // namespace dart | 1192 } // namespace dart |
| 1192 | 1193 |
| 1193 #endif // VM_RAW_OBJECT_H_ | 1194 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |