Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 0e72ec1b004812e8dc4a822756c10394f4b50a09..2db3c04f1f292d55bfc7aa927830e6a93beb90e6 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -2345,6 +2345,11 @@ int DescriptorArray::SearchWithCache(Name* name, Map* map) { |
} |
+PropertyDetails Map::GetLastDescriptorDetails() { |
+ return instance_descriptors()->GetDetails(LastAdded()); |
+} |
+ |
+ |
void Map::LookupDescriptor(JSObject* holder, |
Name* name, |
LookupResult* result) { |
@@ -2362,7 +2367,8 @@ void Map::LookupTransition(JSObject* holder, |
TransitionArray* transition_array = transitions(); |
int number = transition_array->Search(name); |
if (number != TransitionArray::kNotFound) { |
- return result->TransitionResult(holder, number); |
+ return result->TransitionResult( |
+ holder, transition_array->GetTarget(number)); |
} |
} |
result->NotFound(); |