Index: src/arm/full-codegen-arm.cc |
diff --git a/src/arm/full-codegen-arm.cc b/src/arm/full-codegen-arm.cc |
index 353ce5b10646e2bd79319612be07a85bbc632b6c..1db296a7617d60dd61b40376d892cca65b04c023 100644 |
--- a/src/arm/full-codegen-arm.cc |
+++ b/src/arm/full-codegen-arm.cc |
@@ -4071,33 +4071,25 @@ void FullCodeGenerator::VisitCompareOperation(CompareOperation* expr) { |
case Token::EQ_STRICT: |
case Token::EQ: |
cond = eq; |
- __ pop(r1); |
break; |
case Token::LT: |
cond = lt; |
- __ pop(r1); |
break; |
case Token::GT: |
- // Reverse left and right sides to obtain ECMA-262 conversion order. |
- cond = lt; |
- __ mov(r1, result_register()); |
- __ pop(r0); |
+ cond = gt; |
break; |
case Token::LTE: |
- // Reverse left and right sides to obtain ECMA-262 conversion order. |
- cond = ge; |
- __ mov(r1, result_register()); |
- __ pop(r0); |
+ cond = le; |
break; |
case Token::GTE: |
cond = ge; |
- __ pop(r1); |
break; |
case Token::IN: |
case Token::INSTANCEOF: |
default: |
UNREACHABLE(); |
} |
+ __ pop(r1); |
bool inline_smi_code = ShouldInlineSmiCase(op); |
JumpPatchSite patch_site(masm_); |