| Index: src/x64/full-codegen-x64.cc
|
| ===================================================================
|
| --- src/x64/full-codegen-x64.cc (revision 6513)
|
| +++ src/x64/full-codegen-x64.cc (working copy)
|
| @@ -3063,8 +3063,8 @@
|
| Label no_conversion;
|
| Condition is_smi = masm_->CheckSmi(result_register());
|
| __ j(is_smi, &no_conversion);
|
| - __ push(result_register());
|
| - __ InvokeBuiltin(Builtins::TO_NUMBER, CALL_FUNCTION);
|
| + ToNumberStub convert_stub;
|
| + __ CallStub(&convert_stub);
|
| __ bind(&no_conversion);
|
| context()->Plug(result_register());
|
| break;
|
| @@ -3180,8 +3180,8 @@
|
| Condition is_smi;
|
| is_smi = masm_->CheckSmi(rax);
|
| __ j(is_smi, &no_conversion);
|
| - __ push(rax);
|
| - __ InvokeBuiltin(Builtins::TO_NUMBER, CALL_FUNCTION);
|
| + ToNumberStub convert_stub;
|
| + __ CallStub(&convert_stub);
|
| __ bind(&no_conversion);
|
|
|
| // Save result for postfix expressions.
|
|
|