Commit 972bd615 authored by mbrandy's avatar mbrandy Committed by Commit bot

PPC: Fix InterpreterEntryTrampoline().

R=jyan@ca.ibm.com, dstence@us.ibm.com, joransiu@ca.ibm.com
BUG=

Review URL: https://codereview.chromium.org/1315173004

Cr-Commit-Position: refs/heads/master@{#30397}
parent 41870350
...@@ -899,8 +899,8 @@ void Builtins::Generate_InterpreterEntryTrampoline(MacroAssembler* masm) { ...@@ -899,8 +899,8 @@ void Builtins::Generate_InterpreterEntryTrampoline(MacroAssembler* masm) {
// Allocate the local and temporary register file on the stack. // Allocate the local and temporary register file on the stack.
{ {
// Load frame size from the BytecodeArray object. // Load frame size (word) from the BytecodeArray object.
__ LoadP(r5, FieldMemOperand(kInterpreterBytecodeArrayRegister, __ lwz(r5, FieldMemOperand(kInterpreterBytecodeArrayRegister,
BytecodeArray::kFrameSizeOffset)); BytecodeArray::kFrameSizeOffset));
// Do a stack check to ensure we don't go over the limit. // Do a stack check to ensure we don't go over the limit.
...@@ -919,6 +919,7 @@ void Builtins::Generate_InterpreterEntryTrampoline(MacroAssembler* masm) { ...@@ -919,6 +919,7 @@ void Builtins::Generate_InterpreterEntryTrampoline(MacroAssembler* masm) {
Label loop_header; Label loop_header;
__ LoadRoot(r6, Heap::kUndefinedValueRootIndex); __ LoadRoot(r6, Heap::kUndefinedValueRootIndex);
__ ShiftRightImm(r5, r5, Operand(kPointerSizeLog2)); __ ShiftRightImm(r5, r5, Operand(kPointerSizeLog2));
__ mtctr(r5);
__ bind(&loop_header); __ bind(&loop_header);
__ push(r6); __ push(r6);
__ bdnz(&loop_header); __ bdnz(&loop_header);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment