Index: src/ia32/lithium-codegen-ia32.cc |
diff --git a/src/ia32/lithium-codegen-ia32.cc b/src/ia32/lithium-codegen-ia32.cc |
index 57190d75d8c5032e0dbce9008a5de2cd63f3da2d..543d10e663e17d4acba0538f00cb105358623114 100644 |
--- a/src/ia32/lithium-codegen-ia32.cc |
+++ b/src/ia32/lithium-codegen-ia32.cc |
@@ -2270,8 +2270,8 @@ void LCodeGen::DoCompareNumericAndBranch(LCompareNumericAndBranch* instr) { |
} else if (left->IsConstantOperand()) { |
__ cmp(ToOperand(right), |
ToImmediate(left, instr->hydrogen()->representation())); |
- // We transposed the operands. Reverse the condition. |
- cc = ReverseCondition(cc); |
+ // We commuted the operands, so commute the condition. |
+ cc = CommuteCondition(cc); |
} else { |
__ cmp(ToRegister(left), ToOperand(right)); |
} |
@@ -4064,7 +4064,7 @@ void LCodeGen::DoBoundsCheck(LBoundsCheck* instr) { |
__ cmp(ToOperand(instr->length()), |
ToImmediate(LConstantOperand::cast(instr->index()), |
instr->hydrogen()->length()->representation())); |
- cc = ReverseCondition(cc); |
+ cc = CommuteCondition(cc); |
} else if (instr->length()->IsConstantOperand()) { |
__ cmp(ToOperand(instr->index()), |
ToImmediate(LConstantOperand::cast(instr->length()), |