Index: src/ppc/builtins-ppc.cc |
diff --git a/src/ppc/builtins-ppc.cc b/src/ppc/builtins-ppc.cc |
index 3c8ace7d54f568e28d7445ae76e97fd0d2e26569..403f363fcbbc019ce7bdaae52b5474d4d5dc6cbc 100644 |
--- a/src/ppc/builtins-ppc.cc |
+++ b/src/ppc/builtins-ppc.cc |
@@ -1025,8 +1025,12 @@ void Builtins::Generate_InterpreterEntryTrampoline(MacroAssembler* masm) { |
__ Assert(eq, kFunctionDataShouldBeBytecodeArrayOnInterpreterEntry); |
} |
- // Push new.target, bytecode array and zero for bytecode array offset. |
- __ li(r3, Operand::Zero()); |
+ // Load initial bytecode offset. |
+ __ mov(kInterpreterBytecodeOffsetRegister, |
+ Operand(BytecodeArray::kHeaderSize - kHeapObjectTag)); |
+ |
+ // Push new.target, bytecode array and Smi tagged bytecode array offset. |
+ __ SmiTag(r3, kInterpreterBytecodeOffsetRegister); |
__ Push(r6, kInterpreterBytecodeArrayRegister, r3); |
// Allocate the local and temporary register file on the stack. |
@@ -1057,12 +1061,8 @@ void Builtins::Generate_InterpreterEntryTrampoline(MacroAssembler* masm) { |
__ bind(&no_args); |
} |
- // Load accumulator, register file, bytecode offset, dispatch table into |
- // registers. |
+ // Load accumulator and dispatch table into registers. |
__ LoadRoot(kInterpreterAccumulatorRegister, Heap::kUndefinedValueRootIndex); |
- __ addi(r7, fp, Operand(InterpreterFrameConstants::kRegisterFileFromFp)); |
- __ mov(kInterpreterBytecodeOffsetRegister, |
- Operand(BytecodeArray::kHeaderSize - kHeapObjectTag)); |
__ mov(kInterpreterDispatchTableRegister, |
Operand(ExternalReference::interpreter_dispatch_table_address( |
masm->isolate()))); |