Index: src/transitions.cc |
diff --git a/src/transitions.cc b/src/transitions.cc |
index 88c1549579d6d63ff31cd0eee70232ad11b158da..5333fa6e25d28b58233e30bb93ec94095d3e5c42 100644 |
--- a/src/transitions.cc |
+++ b/src/transitions.cc |
@@ -202,7 +202,8 @@ Handle<Map> TransitionArray::FindTransitionToField(Handle<Map> map, |
if (target == NULL) return Handle<Map>::null(); |
PropertyDetails details = target->GetLastDescriptorDetails(); |
DCHECK_EQ(NONE, details.attributes()); |
- if (details.type() != DATA) return Handle<Map>::null(); |
+ if (details.location() != kField) return Handle<Map>::null(); |
+ DCHECK_EQ(kData, details.kind()); |
return Handle<Map>(target); |
} |
@@ -214,7 +215,8 @@ Handle<String> TransitionArray::ExpectedTransitionKey(Handle<Map> map) { |
if (!IsSimpleTransition(raw_transition)) return Handle<String>::null(); |
Map* target = GetSimpleTransition(raw_transition); |
PropertyDetails details = GetSimpleTargetDetails(target); |
- if (details.type() != DATA) return Handle<String>::null(); |
+ if (details.location() != kField) return Handle<String>::null(); |
+ DCHECK_EQ(kData, details.kind()); |
if (details.attributes() != NONE) return Handle<String>::null(); |
Name* name = GetSimpleTransitionKey(target); |
if (!name->IsString()) return Handle<String>::null(); |