Index: src/property.h |
diff --git a/src/property.h b/src/property.h |
index 98d1c898063135b572c2fa74bffd28aee447a553..fa3916eb144825205559e5e8e691718749729897 100644 |
--- a/src/property.h |
+++ b/src/property.h |
@@ -110,6 +110,16 @@ class MapTransitionDescriptor: public Descriptor { |
: Descriptor(key, map, attributes, MAP_TRANSITION) { } |
}; |
+class ExternalArrayTransitionDescriptor: public Descriptor { |
+ public: |
+ ExternalArrayTransitionDescriptor(String* key, |
+ Map* map, |
+ ExternalArrayType array_type) |
+ : Descriptor(key, map, PropertyDetails(NONE, |
+ EXTERNAL_ARRAY_TRANSITION, |
+ array_type)) { } |
+}; |
+ |
// Marks a field name in a map so that adding the field is guaranteed |
// to create a FIELD descriptor in the new map. Used after adding |
// a constant function the first time, creating a CONSTANT_FUNCTION |
@@ -262,7 +272,8 @@ class LookupResult BASE_EMBEDDED { |
Map* GetTransitionMap() { |
ASSERT(lookup_type_ == DESCRIPTOR_TYPE); |
- ASSERT(type() == MAP_TRANSITION || type() == CONSTANT_TRANSITION); |
+ ASSERT(type() == MAP_TRANSITION || type() == CONSTANT_TRANSITION || |
+ type() == EXTERNAL_ARRAY_TRANSITION); |
return Map::cast(GetValue()); |
} |