Index: src/code-stubs-hydrogen.cc |
diff --git a/src/code-stubs-hydrogen.cc b/src/code-stubs-hydrogen.cc |
index 560e9293c20eae2fb7cfead79418d38ed681cbbc..cb50c79a5700061a33ede87fab13f556d7f557c6 100644 |
--- a/src/code-stubs-hydrogen.cc |
+++ b/src/code-stubs-hydrogen.cc |
@@ -1289,6 +1289,16 @@ |
return DoGenerateCode(this); |
} |
+template <> |
+HValue* CodeStubGraphBuilder<AllocateStub>::BuildCodeStub() { |
+ HValue* result = |
+ Add<HAllocate>(GetParameter(0), HType::Tagged(), |
+ casted_stub()->pretenure_flag(), JS_OBJECT_TYPE); |
+ return result; |
+} |
+ |
+Handle<Code> AllocateStub::GenerateCode() { return DoGenerateCode(this); } |
+ |
HValue* CodeStubGraphBuilderBase::BuildArrayConstructor( |
ElementsKind kind, |
AllocationSiteOverrideMode override_mode, |