Index: src/code-stubs.cc |
diff --git a/src/code-stubs.cc b/src/code-stubs.cc |
index a79c25a0bb9cb60e5faf4a06015074faf88e4595..27f31aa81c38d550ce009f13cc8e1e50e2066efc 100644 |
--- a/src/code-stubs.cc |
+++ b/src/code-stubs.cc |
@@ -5798,9 +5798,8 @@ void GrowArrayElementsStub::GenerateAssembly( |
ElementsKind kind = elements_kind(); |
Node* elements = assembler->LoadElements(object); |
- Node* new_elements = assembler->CheckAndGrowElementsCapacity( |
- context, elements, kind, key, &runtime); |
- assembler->StoreObjectField(object, JSObject::kElementsOffset, new_elements); |
+ Node* new_elements = |
+ assembler->TryGrowElementsCapacity(object, elements, kind, key, &runtime); |
assembler->Return(new_elements); |
assembler->Bind(&runtime); |