| Index: src/compiler/js-generic-lowering.cc
|
| diff --git a/src/compiler/js-generic-lowering.cc b/src/compiler/js-generic-lowering.cc
|
| index 2a9e6daface417016d17d2c13d727e411dc57ed3..60b0c2ef0797cfa464f964cde8cd79690fe6ded7 100644
|
| --- a/src/compiler/js-generic-lowering.cc
|
| +++ b/src/compiler/js-generic-lowering.cc
|
| @@ -491,9 +491,10 @@ void JSGenericLowering::LowerJSLoadDynamicContext(Node* node) {
|
|
|
| void JSGenericLowering::LowerJSCreateClosure(Node* node) {
|
| CreateClosureParameters p = CreateClosureParametersOf(node->op());
|
| - node->InsertInput(zone(), 1, jsgraph()->HeapConstant(p.shared_info()));
|
| - node->InsertInput(zone(), 2, jsgraph()->BooleanConstant(p.pretenure()));
|
| - ReplaceWithRuntimeCall(node, Runtime::kNewClosure);
|
| + node->InsertInput(zone(), 0, jsgraph()->HeapConstant(p.shared_info()));
|
| + ReplaceWithRuntimeCall(node, (p.pretenure() == TENURED)
|
| + ? Runtime::kNewClosure_Tenured
|
| + : Runtime::kNewClosure);
|
| }
|
|
|
|
|
|
|