Index: src/ic/ppc/stub-cache-ppc.cc |
diff --git a/src/ic/ppc/stub-cache-ppc.cc b/src/ic/ppc/stub-cache-ppc.cc |
index 689868e2ba2a373d63b7cbbd40bb94dcd65b0c79..3dad306f1185a172cd4fdb46f41cf26876ff9b06 100644 |
--- a/src/ic/ppc/stub-cache-ppc.cc |
+++ b/src/ic/ppc/stub-cache-ppc.cc |
@@ -142,7 +142,7 @@ void StubCache::GenerateProbe(MacroAssembler* masm, Register receiver, |
__ lwz(scratch, FieldMemOperand(name, Name::kHashFieldOffset)); |
__ LoadP(ip, FieldMemOperand(receiver, HeapObject::kMapOffset)); |
__ add(scratch, scratch, ip); |
- __ xori(scratch, scratch, Operand(kPrimaryMagic)); |
+ __ Xor(scratch, scratch, Operand(kPrimaryMagic)); |
// The mask omits the last two bits because they are not part of the hash. |
__ andi(scratch, scratch, |
Operand((kPrimaryTableSize - 1) << kCacheIndexShift)); |
@@ -153,7 +153,7 @@ void StubCache::GenerateProbe(MacroAssembler* masm, Register receiver, |
// Primary miss: Compute hash for secondary probe. |
__ sub(scratch, scratch, name); |
- __ addi(scratch, scratch, Operand(kSecondaryMagic)); |
+ __ Add(scratch, scratch, kSecondaryMagic, r0); |
__ andi(scratch, scratch, |
Operand((kSecondaryTableSize - 1) << kCacheIndexShift)); |