| 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 1173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1184 private: | 1184 private: |
| 1185 RAW_HEAP_OBJECT_IMPLEMENTATION(TypeRef); | 1185 RAW_HEAP_OBJECT_IMPLEMENTATION(TypeRef); |
| 1186 | 1186 |
| 1187 RawObject** from() { | 1187 RawObject** from() { |
| 1188 return reinterpret_cast<RawObject**>(&ptr()->type_); | 1188 return reinterpret_cast<RawObject**>(&ptr()->type_); |
| 1189 } | 1189 } |
| 1190 RawAbstractType* type_; // The referenced type. | 1190 RawAbstractType* type_; // The referenced type. |
| 1191 RawObject** to() { | 1191 RawObject** to() { |
| 1192 return reinterpret_cast<RawObject**>(&ptr()->type_); | 1192 return reinterpret_cast<RawObject**>(&ptr()->type_); |
| 1193 } | 1193 } |
| 1194 bool is_being_checked_; // Transient field, not snapshotted. | |
| 1195 }; | 1194 }; |
| 1196 | 1195 |
| 1197 | 1196 |
| 1198 class RawTypeParameter : public RawAbstractType { | 1197 class RawTypeParameter : public RawAbstractType { |
| 1199 private: | 1198 private: |
| 1200 RAW_HEAP_OBJECT_IMPLEMENTATION(TypeParameter); | 1199 RAW_HEAP_OBJECT_IMPLEMENTATION(TypeParameter); |
| 1201 | 1200 |
| 1202 RawObject** from() { | 1201 RawObject** from() { |
| 1203 return reinterpret_cast<RawObject**>(&ptr()->parameterized_class_); | 1202 return reinterpret_cast<RawObject**>(&ptr()->parameterized_class_); |
| 1204 } | 1203 } |
| (...skipping 13 matching lines...) Expand all Loading... |
| 1218 | 1217 |
| 1219 RawObject** from() { | 1218 RawObject** from() { |
| 1220 return reinterpret_cast<RawObject**>(&ptr()->type_); | 1219 return reinterpret_cast<RawObject**>(&ptr()->type_); |
| 1221 } | 1220 } |
| 1222 RawAbstractType* type_; | 1221 RawAbstractType* type_; |
| 1223 RawAbstractType* bound_; | 1222 RawAbstractType* bound_; |
| 1224 RawTypeParameter* type_parameter_; // For more detailed error reporting. | 1223 RawTypeParameter* type_parameter_; // For more detailed error reporting. |
| 1225 RawObject** to() { | 1224 RawObject** to() { |
| 1226 return reinterpret_cast<RawObject**>(&ptr()->type_parameter_); | 1225 return reinterpret_cast<RawObject**>(&ptr()->type_parameter_); |
| 1227 } | 1226 } |
| 1228 bool is_being_checked_; // Transient field, not snapshotted. | |
| 1229 }; | 1227 }; |
| 1230 | 1228 |
| 1231 | 1229 |
| 1232 class RawMixinAppType : public RawAbstractType { | 1230 class RawMixinAppType : public RawAbstractType { |
| 1233 private: | 1231 private: |
| 1234 RAW_HEAP_OBJECT_IMPLEMENTATION(MixinAppType); | 1232 RAW_HEAP_OBJECT_IMPLEMENTATION(MixinAppType); |
| 1235 | 1233 |
| 1236 RawObject** from() { | 1234 RawObject** from() { |
| 1237 return reinterpret_cast<RawObject**>(&ptr()->super_type_); | 1235 return reinterpret_cast<RawObject**>(&ptr()->super_type_); |
| 1238 } | 1236 } |
| (...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1749 // Make sure this is updated when new TypedData types are added. | 1747 // Make sure this is updated when new TypedData types are added. |
| 1750 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 13); | 1748 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 13); |
| 1751 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 14); | 1749 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 14); |
| 1752 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 13); | 1750 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 13); |
| 1753 return (kNullCid - kTypedDataInt8ArrayCid); | 1751 return (kNullCid - kTypedDataInt8ArrayCid); |
| 1754 } | 1752 } |
| 1755 | 1753 |
| 1756 } // namespace dart | 1754 } // namespace dart |
| 1757 | 1755 |
| 1758 #endif // VM_RAW_OBJECT_H_ | 1756 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |