Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Unified Diff: src/code-stubs.cc

Issue 2324863002: [stubs] Factor CSA::GrowElementsCapacity() out of existing code. (Closed)
Patch Set: Addressing comments Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/code-stub-assembler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « src/code-stub-assembler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698