Index: src/mips/builtins-mips.cc |
diff --git a/src/mips/builtins-mips.cc b/src/mips/builtins-mips.cc |
index 035795ad24074add2da7a59eaa0517ec64dc7735..d4937f024b4751b008a6f04f2f5364c41681ffb3 100644 |
--- a/src/mips/builtins-mips.cc |
+++ b/src/mips/builtins-mips.cc |
@@ -975,11 +975,6 @@ void Builtins::Generate_InterpreterEntryTrampoline(MacroAssembler* masm) { |
__ Push(ra, fp, cp, a1); |
__ Addu(fp, sp, Operand(StandardFrameConstants::kFixedFrameSizeFromFp)); |
- // 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. |
__ lw(a0, FieldMemOperand(a1, JSFunction::kSharedFunctionInfoOffset)); |
@@ -996,6 +991,9 @@ void Builtins::Generate_InterpreterEntryTrampoline(MacroAssembler* masm) { |
Operand(BYTECODE_ARRAY_TYPE)); |
} |
+ // Push new.target, bytecode array and zero for bytecode array offset. |
+ __ Push(a3, kInterpreterBytecodeArrayRegister, zero_reg); |
+ |
// Allocate the local and temporary register file on the stack. |
{ |
// Load frame size from the BytecodeArray object. |
@@ -1036,8 +1034,9 @@ void Builtins::Generate_InterpreterEntryTrampoline(MacroAssembler* masm) { |
Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp)); |
__ li(kInterpreterBytecodeOffsetRegister, |
Operand(BytecodeArray::kHeaderSize - kHeapObjectTag)); |
- __ lw(kInterpreterDispatchTableRegister, |
- MemOperand(fp, InterpreterFrameConstants::kDispatchTableFromFp)); |
+ __ li(kInterpreterDispatchTableRegister, |
+ Operand(ExternalReference::interpreter_dispatch_table_address( |
+ masm->isolate()))); |
// Dispatch to the first bytecode handler for the function. |
__ Addu(a0, kInterpreterBytecodeArrayRegister, |