Index: runtime/vm/raw_object.h |
=================================================================== |
--- runtime/vm/raw_object.h (revision 31085) |
+++ runtime/vm/raw_object.h (working copy) |
@@ -50,6 +50,7 @@ |
V(Instance) \ |
V(AbstractType) \ |
V(Type) \ |
+ V(TypeRef) \ |
V(TypeParameter) \ |
V(BoundedType) \ |
V(MixinAppType) \ |
@@ -1178,6 +1179,21 @@ |
}; |
+class RawTypeRef : public RawAbstractType { |
+ private: |
+ RAW_HEAP_OBJECT_IMPLEMENTATION(TypeRef); |
+ |
+ RawObject** from() { |
+ return reinterpret_cast<RawObject**>(&ptr()->type_); |
+ } |
+ RawAbstractType* type_; // The referenced type. |
+ RawObject** to() { |
+ return reinterpret_cast<RawObject**>(&ptr()->type_); |
+ } |
+ bool is_being_checked_; // Transient field, not snapshotted. |
+}; |
+ |
+ |
class RawTypeParameter : public RawAbstractType { |
private: |
RAW_HEAP_OBJECT_IMPLEMENTATION(TypeParameter); |
@@ -1208,7 +1224,7 @@ |
RawObject** to() { |
return reinterpret_cast<RawObject**>(&ptr()->type_parameter_); |
} |
- bool is_being_checked_; |
+ bool is_being_checked_; // Transient field, not snapshotted. |
}; |