From b8adca96681a480c5040570a87ada0132c592074 Mon Sep 17 00:00:00 2001 From: mbrandy Date: Mon, 27 Jul 2015 10:59:22 -0700 Subject: [PATCH] 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} --- src/ppc/code-stubs-ppc.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ppc/code-stubs-ppc.cc b/src/ppc/code-stubs-ppc.cc index 62cc571..f1d79b1 100644 --- a/src/ppc/code-stubs-ppc.cc +++ b/src/ppc/code-stubs-ppc.cc @@ -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). -- 2.7.4