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

Unified Diff: src/code-stubs-hydrogen.cc

Issue 1877323002: [turbofan] Generalize AllocateStub to allow old space allocation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Go for minor key and AllocateStub Created 4 years, 8 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/change-lowering.cc » ('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 1d2fb811fbb2c2f007c00ed36ddbcf70e2842afa..3c806f1c46d6b418a09a0997ca4f41ac3827a586 100644
--- a/src/code-stubs-hydrogen.cc
+++ b/src/code-stubs-hydrogen.cc
@@ -1394,19 +1394,15 @@ Handle<Code> TransitionElementsKindStub::GenerateCode() {
return DoGenerateCode(this);
}
-
template <>
-HValue* CodeStubGraphBuilder<AllocateInNewSpaceStub>::BuildCodeStub() {
- HValue* result = Add<HAllocate>(GetParameter(0), HType::Tagged(), NOT_TENURED,
- JS_OBJECT_TYPE);
+HValue* CodeStubGraphBuilder<AllocateStub>::BuildCodeStub() {
+ HValue* result =
+ Add<HAllocate>(GetParameter(0), HType::Tagged(),
+ casted_stub()->pretenure_flag(), JS_OBJECT_TYPE);
return result;
}
-
-Handle<Code> AllocateInNewSpaceStub::GenerateCode() {
- return DoGenerateCode(this);
-}
-
+Handle<Code> AllocateStub::GenerateCode() { return DoGenerateCode(this); }
HValue* CodeStubGraphBuilderBase::BuildArrayConstructor(
ElementsKind kind,
« no previous file with comments | « src/code-stubs.cc ('k') | src/compiler/change-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698