| Index: src/x64/full-codegen-x64.cc
|
| diff --git a/src/x64/full-codegen-x64.cc b/src/x64/full-codegen-x64.cc
|
| index 121ab2d1a0d9b4b70e70c0fbf3a5dfa36bf1c009..bac4e793b279bf4a86353db7024aa92352219e79 100644
|
| --- a/src/x64/full-codegen-x64.cc
|
| +++ b/src/x64/full-codegen-x64.cc
|
| @@ -4420,7 +4420,9 @@ void FullCodeGenerator::VisitCountOperation(CountOperation* expr) {
|
|
|
| // Call ToNumber only if operand is not a smi.
|
| Label no_conversion;
|
| - __ JumpIfSmi(rax, &no_conversion, Label::kNear);
|
| + if (ShouldInlineSmiCase(expr->op())) {
|
| + __ JumpIfSmi(rax, &no_conversion, Label::kNear);
|
| + }
|
| ToNumberStub convert_stub;
|
| __ CallStub(&convert_stub);
|
| __ bind(&no_conversion);
|
|
|