| Index: src/compiler/js-generic-lowering.cc
|
| diff --git a/src/compiler/js-generic-lowering.cc b/src/compiler/js-generic-lowering.cc
|
| index ac64f460f29ad4b7f492a71554ce6333b0fb321c..bf939a9295f457e07261f56ed659f6b55f0016e2 100644
|
| --- a/src/compiler/js-generic-lowering.cc
|
| +++ b/src/compiler/js-generic-lowering.cc
|
| @@ -428,7 +428,8 @@ void JSGenericLowering::LowerJSCreateFunctionContext(Node* node) {
|
| // Use the FastNewFunctionContextStub only for function contexts up maximum
|
| // size.
|
| if (slot_count <= FastNewFunctionContextStub::kMaximumSlots) {
|
| - Callable callable = CodeFactory::FastNewContext(isolate(), slot_count);
|
| + Callable callable = CodeFactory::FastNewContext(isolate());
|
| + node->InsertInput(zone(), 1, jsgraph()->Int32Constant(slot_count));
|
| ReplaceWithStubCall(node, callable, flags);
|
| } else {
|
| ReplaceWithRuntimeCall(node, Runtime::kNewFunctionContext);
|
|
|