| Index: src/compiler/js-generic-lowering.cc
|
| diff --git a/src/compiler/js-generic-lowering.cc b/src/compiler/js-generic-lowering.cc
|
| index 30aeb98d5e65fb02e2866b859b908263327305e5..9d3865309fada2f4822ca3b445444b5c6b0c5748 100644
|
| --- a/src/compiler/js-generic-lowering.cc
|
| +++ b/src/compiler/js-generic-lowering.cc
|
| @@ -5,6 +5,7 @@
|
| #include "src/compiler/js-generic-lowering.h"
|
|
|
| #include "src/ast/ast.h"
|
| +#include "src/builtins/builtins-constructor.h"
|
| #include "src/code-factory.h"
|
| #include "src/code-stubs.h"
|
| #include "src/compiler/common-operator.h"
|
| @@ -364,7 +365,8 @@ void JSGenericLowering::LowerJSCreateFunctionContext(Node* node) {
|
| ScopeType scope_type = parameters.scope_type();
|
| CallDescriptor::Flags flags = FrameStateFlagForCall(node);
|
|
|
| - if (slot_count <= FastNewFunctionContextStub::MaximumSlots()) {
|
| + if (slot_count <=
|
| + ConstructorBuiltinsAssembler::MaximumFunctionContextSlots()) {
|
| Callable callable =
|
| CodeFactory::FastNewFunctionContext(isolate(), scope_type);
|
| node->InsertInput(zone(), 1, jsgraph()->Int32Constant(slot_count));
|
|
|