| Index: src/crankshaft/mips64/lithium-codegen-mips64.cc
|
| diff --git a/src/crankshaft/mips64/lithium-codegen-mips64.cc b/src/crankshaft/mips64/lithium-codegen-mips64.cc
|
| index b493349341f7288633c28904b893d864042e4f01..0730cb9d34691c086c48b3ee982ad29afa968555 100644
|
| --- a/src/crankshaft/mips64/lithium-codegen-mips64.cc
|
| +++ b/src/crankshaft/mips64/lithium-codegen-mips64.cc
|
| @@ -4,6 +4,7 @@
|
|
|
| #include "src/crankshaft/mips64/lithium-codegen-mips64.h"
|
|
|
| +#include "src/builtins/builtins-constructor.h"
|
| #include "src/code-factory.h"
|
| #include "src/code-stubs.h"
|
| #include "src/crankshaft/hydrogen-osr.h"
|
| @@ -178,13 +179,14 @@ void LCodeGen::DoPrologue(LPrologue* instr) {
|
| __ CallRuntime(Runtime::kNewScriptContext);
|
| deopt_mode = Safepoint::kLazyDeopt;
|
| } else {
|
| - if (slots <= FastNewFunctionContextStub::MaximumSlots()) {
|
| - FastNewFunctionContextStub stub(isolate(),
|
| - info()->scope()->scope_type());
|
| + if (slots <=
|
| + ConstructorBuiltinsAssembler::MaximumFunctionContextSlots()) {
|
| + Callable callable = CodeFactory::FastNewFunctionContext(
|
| + isolate(), info()->scope()->scope_type());
|
| __ li(FastNewFunctionContextDescriptor::SlotsRegister(),
|
| Operand(slots));
|
| - __ CallStub(&stub);
|
| - // Result of FastNewFunctionContextStub is always in new space.
|
| + __ Call(callable.code(), RelocInfo::CODE_TARGET);
|
| + // Result of the FastNewFunctionContext builtin is always in new space.
|
| need_write_barrier = false;
|
| } else {
|
| __ push(a1);
|
|
|