Index: src/ia32/full-codegen-ia32.cc |
diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc |
index 159c2cabcc928d6c36d8bfccfeb81738825a573d..ee2abaaa4d4aebed483b395873b64f9c4892d742 100644 |
--- a/src/ia32/full-codegen-ia32.cc |
+++ b/src/ia32/full-codegen-ia32.cc |
@@ -4290,29 +4290,7 @@ void FullCodeGenerator::VisitCompareOperation(CompareOperation* expr) { |
default: { |
VisitForAccumulatorValue(expr->right()); |
- Condition cc = no_condition; |
- switch (op) { |
- case Token::EQ_STRICT: |
- case Token::EQ: |
- cc = equal; |
- break; |
- case Token::LT: |
- cc = less; |
- break; |
- case Token::GT: |
- cc = greater; |
- break; |
- case Token::LTE: |
- cc = less_equal; |
- break; |
- case Token::GTE: |
- cc = greater_equal; |
- break; |
- case Token::IN: |
- case Token::INSTANCEOF: |
- default: |
- UNREACHABLE(); |
- } |
+ Condition cc = CompareIC::ComputeCondition(op); |
__ pop(edx); |
bool inline_smi_code = ShouldInlineSmiCase(op); |