Index: src/arm/full-codegen-arm.cc |
diff --git a/src/arm/full-codegen-arm.cc b/src/arm/full-codegen-arm.cc |
index 1760fb8cf16c5c3b6e34c1be2b91202defea731c..6a5845de43f419d8c662948048e706b7adedb2eb 100644 |
--- a/src/arm/full-codegen-arm.cc |
+++ b/src/arm/full-codegen-arm.cc |
@@ -4436,7 +4436,9 @@ void FullCodeGenerator::VisitCountOperation(CountOperation* expr) { |
// Call ToNumber only if operand is not a smi. |
Label no_conversion; |
- __ JumpIfSmi(r0, &no_conversion); |
+ if (ShouldInlineSmiCase(expr->op())) { |
+ __ JumpIfSmi(r0, &no_conversion); |
+ } |
ToNumberStub convert_stub; |
__ CallStub(&convert_stub); |
__ bind(&no_conversion); |