Index: src/mips/full-codegen-mips.cc |
diff --git a/src/mips/full-codegen-mips.cc b/src/mips/full-codegen-mips.cc |
index 51b71a671cf0b30fe07160dccfab40f55dd623ae..9c610c32f9db33f2edef307247f196d0ca76fc04 100644 |
--- a/src/mips/full-codegen-mips.cc |
+++ b/src/mips/full-codegen-mips.cc |
@@ -4470,7 +4470,9 @@ void FullCodeGenerator::VisitCountOperation(CountOperation* expr) { |
// Call ToNumber only if operand is not a smi. |
Label no_conversion; |
- __ JumpIfSmi(v0, &no_conversion); |
+ if (ShouldInlineSmiCase(expr->op())) { |
+ __ JumpIfSmi(v0, &no_conversion); |
+ } |
__ mov(a0, v0); |
ToNumberStub convert_stub; |
__ CallStub(&convert_stub); |