Index: src/x87/lithium-codegen-x87.cc |
diff --git a/src/x87/lithium-codegen-x87.cc b/src/x87/lithium-codegen-x87.cc |
index 9fb1216e97449b35507ab2f5e269f9c8f2ddf5b9..898df47c1de1777387d5a7be35b85d5bf62aa204 100644 |
--- a/src/x87/lithium-codegen-x87.cc |
+++ b/src/x87/lithium-codegen-x87.cc |
@@ -2404,8 +2404,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)); |
} |
@@ -3974,7 +3974,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()), |