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-hydrogen.cc

Issue 2206333003: [stubs] Convert GrowElementsStub to TurboFan (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 4 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-stubs.cc ('k') | src/compiler/code-assembler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/code-stubs-hydrogen.cc
diff --git a/src/code-stubs-hydrogen.cc b/src/code-stubs-hydrogen.cc
index 71a6b4a92a796f81ba3c78c4174e2dfc793b1ebf..99faa9263415390d1757e8ec7694b8a2296bf6ac 100644
--- a/src/code-stubs-hydrogen.cc
+++ b/src/code-stubs-hydrogen.cc
@@ -838,36 +838,6 @@ Handle<Code> FastFunctionBindStub::GenerateCode() {
}
template <>
-HValue* CodeStubGraphBuilder<GrowArrayElementsStub>::BuildCodeStub() {
- ElementsKind kind = casted_stub()->elements_kind();
- if (IsFastDoubleElementsKind(kind)) {
- info()->MarkAsSavesCallerDoubles();
- }
-
- HValue* object = GetParameter(Descriptor::kObject);
- HValue* key = GetParameter(Descriptor::kKey);
-
- HValue* elements = AddLoadElements(object);
- HValue* current_capacity = Add<HLoadNamedField>(
- elements, nullptr, HObjectAccess::ForFixedArrayLength());
-
- HValue* length =
- casted_stub()->is_js_array()
- ? Add<HLoadNamedField>(object, static_cast<HValue*>(NULL),
- HObjectAccess::ForArrayLength(kind))
- : current_capacity;
-
- return BuildCheckAndGrowElementsCapacity(object, elements, kind, length,
- current_capacity, key);
-}
-
-
-Handle<Code> GrowArrayElementsStub::GenerateCode() {
- return DoGenerateCode(this);
-}
-
-
-template <>
HValue* CodeStubGraphBuilder<LoadFastElementStub>::BuildCodeStub() {
LoadKeyedHoleMode hole_mode = casted_stub()->convert_hole_to_undefined()
? CONVERT_HOLE_TO_UNDEFINED
« no previous file with comments | « src/code-stubs.cc ('k') | src/compiler/code-assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698