Index: src/property.h |
diff --git a/src/property.h b/src/property.h |
index 15a56528d3c26c76a3d8881d27a60cc2cd436c1d..01c58def3ee68152199091bc2e831aef2d7e51f5 100644 |
--- a/src/property.h |
+++ b/src/property.h |
@@ -115,8 +115,8 @@ class MapTransitionDescriptor: public Descriptor { |
// the same CONSTANT_FUNCTION field. |
class ConstTransitionDescriptor: public Descriptor { |
public: |
- explicit ConstTransitionDescriptor(String* key) |
- : Descriptor(key, Smi::FromInt(0), NONE, CONSTANT_TRANSITION) { } |
+ explicit ConstTransitionDescriptor(String* key, Map* map) |
+ : Descriptor(key, map, NONE, CONSTANT_TRANSITION) { } |
}; |
@@ -260,7 +260,7 @@ class LookupResult BASE_EMBEDDED { |
Map* GetTransitionMap() { |
ASSERT(lookup_type_ == DESCRIPTOR_TYPE); |
- ASSERT(type() == MAP_TRANSITION); |
+ ASSERT(type() == MAP_TRANSITION || type() == CONSTANT_TRANSITION); |
return Map::cast(GetValue()); |
} |