| Index: src/compiler/js-generic-lowering.cc
|
| diff --git a/src/compiler/js-generic-lowering.cc b/src/compiler/js-generic-lowering.cc
|
| index 6738ddc165164fc2b193d4b12e15267accb1e5ef..d248113ce54c98ff75dff73c6f43c280a7ff0119 100644
|
| --- a/src/compiler/js-generic-lowering.cc
|
| +++ b/src/compiler/js-generic-lowering.cc
|
| @@ -341,8 +341,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);
|
|
|