Reviewers: dstence, michael_dawson,
Description:
PPC: Fix '[stubs] Optimize LoadGlobalViaContextStub and
StoreGlobalViaContextStub.'
[email protected], [email protected]
BUG=
Please review this at https://codereview.chromium.org/1260663003/
Base URL: https://chromium.googlesource.com/v8/v8.git@master
Affected files (+4, -4 lines):
M src/ppc/code-stubs-ppc.cc
Index: src/ppc/code-stubs-ppc.cc
diff --git a/src/ppc/code-stubs-ppc.cc b/src/ppc/code-stubs-ppc.cc
index
62cc5711b24bb2df54f693c2dbdf631c391038ec..f1d79b12f1ef8548888bb0b06f7c342dd52279ee
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).
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.