Index: src/arm/codegen-arm.cc |
=================================================================== |
--- src/arm/codegen-arm.cc (revision 4783) |
+++ src/arm/codegen-arm.cc (working copy) |
@@ -869,10 +869,10 @@ |
Register smi_test_reg; |
Condition cond; |
if (!rhs_is_smi || !lhs_is_smi) { |
- if (!rhs_is_smi) { |
+ if (rhs_is_smi) { |
+ smi_test_reg = lhs; |
+ } else if (lhs_is_smi) { |
smi_test_reg = rhs; |
- } else if (!lhs_is_smi) { |
- smi_test_reg = lhs; |
} else { |
smi_test_reg = VirtualFrame::scratch0(); |
__ orr(smi_test_reg, rhs, Operand(lhs)); |