Index: src/ppc/full-codegen-ppc.cc |
diff --git a/src/ppc/full-codegen-ppc.cc b/src/ppc/full-codegen-ppc.cc |
index 455cc1e3fc7f6ac64e5543452f1b170d3368315d..84446d0946dd365a6bc57615bd2fdd0992f46e36 100644 |
--- a/src/ppc/full-codegen-ppc.cc |
+++ b/src/ppc/full-codegen-ppc.cc |
@@ -4463,10 +4463,9 @@ void FullCodeGenerator::EmitHasCachedArrayIndex(CallRuntime* expr) { |
__ lwz(r3, FieldMemOperand(r3, String::kHashFieldOffset)); |
// PPC - assume ip is free |
__ mov(ip, Operand(String::kContainsCachedArrayIndexMask)); |
- __ and_(r0, r3, ip); |
- __ cmpi(r0, Operand::Zero()); |
+ __ and_(r0, r3, ip, SetRC); |
PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); |
- Split(eq, if_true, if_false, fall_through); |
+ Split(eq, if_true, if_false, fall_through, cr0); |
context()->Plug(if_true, if_false); |
} |