Index: src/compiler/js-generic-lowering.cc |
diff --git a/src/compiler/js-generic-lowering.cc b/src/compiler/js-generic-lowering.cc |
index eddadf5e82d48bb98bd28ddc40359cc11e1b7e2a..64e50d6f76886e7b9e41e23c30edae84f41ad104 100644 |
--- a/src/compiler/js-generic-lowering.cc |
+++ b/src/compiler/js-generic-lowering.cc |
@@ -353,8 +353,14 @@ void JSGenericLowering::LowerJSCreateClosure(Node* node) { |
// space. |
if (p.pretenure() == NOT_TENURED) { |
Callable callable = CodeFactory::FastNewClosure(isolate()); |
+ node->InsertInput(zone(), 1, |
+ jsgraph()->HeapConstant(p.feedback().vector())); |
+ node->InsertInput(zone(), 2, jsgraph()->SmiConstant(p.feedback().index())); |
ReplaceWithStubCall(node, callable, flags); |
} else { |
+ node->InsertInput(zone(), 1, |
+ jsgraph()->HeapConstant(p.feedback().vector())); |
+ node->InsertInput(zone(), 2, jsgraph()->SmiConstant(p.feedback().index())); |
ReplaceWithRuntimeCall(node, (p.pretenure() == TENURED) |
? Runtime::kNewClosure_Tenured |
: Runtime::kNewClosure); |