| Index: src/mips/builtins-mips.cc
|
| diff --git a/src/mips/builtins-mips.cc b/src/mips/builtins-mips.cc
|
| index 7cc2ac18ba306f20e8a6c0bba03f92b3fe6977fe..d2b2a9021f907f4a7f4cd29cac1fb4269a3a2700 100644
|
| --- a/src/mips/builtins-mips.cc
|
| +++ b/src/mips/builtins-mips.cc
|
| @@ -975,10 +975,11 @@ void Builtins::Generate_InterpreterEntryTrampoline(MacroAssembler* masm) {
|
|
|
| __ Push(ra, fp, cp, a1);
|
| __ Addu(fp, sp, Operand(StandardFrameConstants::kFixedFrameSizeFromFp));
|
| - __ Push(a3);
|
|
|
| - // Push zero for bytecode array offset.
|
| - __ Push(zero_reg);
|
| + // Push new.target, dispatch table pointer and zero for bytecode array offset.
|
| + __ li(a0, Operand(ExternalReference::interpreter_dispatch_table_address(
|
| + masm->isolate())));
|
| + __ Push(a3, a0, zero_reg);
|
|
|
| // Get the bytecode array from the function object and load the pointer to the
|
| // first entry into kInterpreterBytecodeRegister.
|
| @@ -1036,9 +1037,8 @@ void Builtins::Generate_InterpreterEntryTrampoline(MacroAssembler* masm) {
|
| Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp));
|
| __ li(kInterpreterBytecodeOffsetRegister,
|
| Operand(BytecodeArray::kHeaderSize - kHeapObjectTag));
|
| - __ li(kInterpreterDispatchTableRegister,
|
| - Operand(ExternalReference::interpreter_dispatch_table_address(
|
| - masm->isolate())));
|
| + __ lw(kInterpreterDispatchTableRegister,
|
| + MemOperand(fp, InterpreterFrameConstants::kDispatchTableFromFp));
|
|
|
| // Dispatch to the first bytecode handler for the function.
|
| __ Addu(a0, kInterpreterBytecodeArrayRegister,
|
|
|