| Index: src/crankshaft/ppc/lithium-codegen-ppc.cc
|
| diff --git a/src/crankshaft/ppc/lithium-codegen-ppc.cc b/src/crankshaft/ppc/lithium-codegen-ppc.cc
|
| index 190eab2c30d71a206e0bb56bcf81d10efb202ce7..4162a6006d100df65f382f4cb77da69edef8151b 100644
|
| --- a/src/crankshaft/ppc/lithium-codegen-ppc.cc
|
| +++ b/src/crankshaft/ppc/lithium-codegen-ppc.cc
|
| @@ -5,6 +5,7 @@
|
| #include "src/crankshaft/ppc/lithium-codegen-ppc.h"
|
|
|
| #include "src/base/bits.h"
|
| +#include "src/builtins/builtins-constructor.h"
|
| #include "src/code-factory.h"
|
| #include "src/code-stubs.h"
|
| #include "src/crankshaft/hydrogen-osr.h"
|
| @@ -186,13 +187,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());
|
| __ mov(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(r4);
|
|
|