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, |