Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index f063da7e748869fe3036ed926e11bd12eb1fa04c..84dea0514609d90c31577e31247f6f65d7a1bab8 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -12231,7 +12231,8 @@ Handle<Object> JSObject::SetFastElement(Handle<JSObject> object, |
: FAST_ELEMENTS; |
UpdateAllocationSite(object, kind); |
- object->set_map(*GetElementsTransitionMap(object, kind)); |
+ Handle<Map> new_map = GetElementsTransitionMap(object, kind); |
+ object->set_map(*new_map); |
ASSERT(IsFastObjectElementsKind(object->GetElementsKind())); |
} |
// Increase backing store capacity if that's been decided previously. |