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

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

Issue 1404773002: Introduce AllocateInNewSpace stub. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@begin-macro
Patch Set: Rebase Created 5 years, 2 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/simplified-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 eafc6d35a3826a1ab8b187b4045bf453143c760c..beff1ed04a14ce05f73bafe3c9f2e01cc81a7fd7 100644
--- a/src/code-stubs-hydrogen.cc
+++ b/src/code-stubs-hydrogen.cc
@@ -1140,6 +1140,19 @@ Handle<Code> AllocateHeapNumberStub::GenerateCode() {
}
+template <>
+HValue* CodeStubGraphBuilder<AllocateInNewSpaceStub>::BuildCodeStub() {
+ HValue* result = Add<HAllocate>(GetParameter(0), HType::Tagged(), NOT_TENURED,
+ JS_OBJECT_TYPE);
+ return result;
+}
+
+
+Handle<Code> AllocateInNewSpaceStub::GenerateCode() {
+ return DoGenerateCode(this);
+}
+
+
HValue* CodeStubGraphBuilderBase::BuildArrayConstructor(
ElementsKind kind,
AllocationSiteOverrideMode override_mode,
« no previous file with comments | « src/code-stubs.cc ('k') | src/compiler/simplified-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698