Index: src/hydrogen.h |
diff --git a/src/hydrogen.h b/src/hydrogen.h |
index ca679e7253ec9db75fbbc04529785ab89038fd98..831ed20cb11d26ea064eddbbfa94ccd3773302c0 100644 |
--- a/src/hydrogen.h |
+++ b/src/hydrogen.h |
@@ -2553,11 +2553,10 @@ |
number_ = number; |
} |
void LookupTransition(Map* map, Name* name, PropertyAttributes attributes) { |
- Map* target = |
- TransitionArray::SearchTransition(map, kData, name, attributes); |
- if (target == NULL) return NotFound(); |
+ int transition_index = map->SearchTransition(kData, name, attributes); |
+ if (transition_index == TransitionArray::kNotFound) return NotFound(); |
lookup_type_ = TRANSITION_TYPE; |
- transition_ = handle(target); |
+ transition_ = handle(map->GetTransition(transition_index)); |
number_ = transition_->LastAdded(); |
details_ = transition_->instance_descriptors()->GetDetails(number_); |
} |