| Index: src/compiler/js-generic-lowering.cc
|
| diff --git a/src/compiler/js-generic-lowering.cc b/src/compiler/js-generic-lowering.cc
|
| index 82f19cb059e05859d346b00bc79096dcea4411d3..82e3c74f04f5005743ed4a720bc0efc3d96d8e11 100644
|
| --- a/src/compiler/js-generic-lowering.cc
|
| +++ b/src/compiler/js-generic-lowering.cc
|
| @@ -347,8 +347,14 @@ void JSGenericLowering::LowerJSCreateClosure(Node* node) {
|
| // Use the FastNewClosureStub only for functions allocated in new 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);
|
|
|