Index: src/crankshaft/ppc/lithium-codegen-ppc.cc |
diff --git a/src/crankshaft/ppc/lithium-codegen-ppc.cc b/src/crankshaft/ppc/lithium-codegen-ppc.cc |
index 4162a6006d100df65f382f4cb77da69edef8151b..f546dc22d2546f55b454347332ae415c7c6e5ebd 100644 |
--- a/src/crankshaft/ppc/lithium-codegen-ppc.cc |
+++ b/src/crankshaft/ppc/lithium-codegen-ppc.cc |
@@ -4022,7 +4022,7 @@ void LCodeGen::DoBoundsCheck(LBoundsCheck* instr) { |
int32_t length = ToInteger32(LConstantOperand::cast(instr->length())); |
Register index = ToRegister(instr->index()); |
if (representation.IsSmi()) { |
- __ Cmpli(index, Operand(Smi::FromInt(length)), r0); |
+ __ CmplSmiLiteral(index, Smi::FromInt(length), r0); |
} else { |
__ Cmplwi(index, Operand(length), r0); |
} |
@@ -4031,7 +4031,7 @@ void LCodeGen::DoBoundsCheck(LBoundsCheck* instr) { |
int32_t index = ToInteger32(LConstantOperand::cast(instr->index())); |
Register length = ToRegister(instr->length()); |
if (representation.IsSmi()) { |
- __ Cmpli(length, Operand(Smi::FromInt(index)), r0); |
+ __ CmplSmiLiteral(length, Smi::FromInt(index), r0); |
} else { |
__ Cmplwi(length, Operand(index), r0); |
} |