PPC: Fix '[stubs] Optimize LoadGlobalViaContextStub and StoreGlobalViaContextStub.'

R=michael_dawson@ca.ibm.com, dstence@us.ibm.com
BUG=

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

Cr-Commit-Position: refs/heads/master@{#29879}
This commit is contained in:
mbrandy 2015-07-27 10:59:22 -07:00 committed by Commit bot
parent 12f433e274
commit b8adca9668

View File

@ -5327,8 +5327,8 @@ void LoadGlobalViaContextStub::Generate(MacroAssembler* masm) {
}
// Load the PropertyCell value at the specified slot.
__ ShiftLeftImm(result, slot, Operand(kPointerSizeLog2));
__ add(result, context, result);
__ ShiftLeftImm(r0, slot, Operand(kPointerSizeLog2));
__ add(result, context, r0);
__ LoadP(result, ContextOperand(result));
__ LoadP(result, FieldMemOperand(result, PropertyCell::kValueOffset));
@ -5373,8 +5373,8 @@ void StoreGlobalViaContextStub::Generate(MacroAssembler* masm) {
}
// Load the PropertyCell at the specified slot.
__ ShiftLeftImm(cell, slot, Operand(kPointerSizeLog2));
__ add(cell, context, cell);
__ ShiftLeftImm(r0, slot, Operand(kPointerSizeLog2));
__ add(cell, context, r0);
__ LoadP(cell, ContextOperand(cell));
// Load PropertyDetails for the cell (actually only the cell_type and kind).