| Index: src/builtins/x64/builtins-x64.cc
|
| diff --git a/src/builtins/x64/builtins-x64.cc b/src/builtins/x64/builtins-x64.cc
|
| index a8e15bd0b42473e9dcb4f8e5ae564a2ad4468257..1107335c655ed7ae7ae6e26d99b79e758167e131 100644
|
| --- a/src/builtins/x64/builtins-x64.cc
|
| +++ b/src/builtins/x64/builtins-x64.cc
|
| @@ -2159,37 +2159,6 @@ void Builtins::Generate_ToNumber(MacroAssembler* masm) {
|
| RelocInfo::CODE_TARGET);
|
| }
|
|
|
| -// static
|
| -void Builtins::Generate_NonNumberToNumber(MacroAssembler* masm) {
|
| - // The NonNumberToNumber stub takes one argument in rax.
|
| - __ AssertNotNumber(rax);
|
| -
|
| - Label not_string;
|
| - __ CmpObjectType(rax, FIRST_NONSTRING_TYPE, rdi);
|
| - // rax: object
|
| - // rdi: object map
|
| - __ j(above_equal, ¬_string, Label::kNear);
|
| - __ Jump(masm->isolate()->builtins()->StringToNumber(),
|
| - RelocInfo::CODE_TARGET);
|
| - __ bind(¬_string);
|
| -
|
| - Label not_oddball;
|
| - __ CmpInstanceType(rdi, ODDBALL_TYPE);
|
| - __ j(not_equal, ¬_oddball, Label::kNear);
|
| - __ movp(rax, FieldOperand(rax, Oddball::kToNumberOffset));
|
| - __ Ret();
|
| - __ bind(¬_oddball);
|
| - {
|
| - FrameScope frame(masm, StackFrame::INTERNAL);
|
| - // Push argument.
|
| - __ Push(rax);
|
| - // We cannot use a tail call here because this builtin can also be called
|
| - // from wasm.
|
| - __ CallRuntime(Runtime::kToNumber);
|
| - }
|
| - __ Ret();
|
| -}
|
| -
|
| void Builtins::Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm) {
|
| // ----------- S t a t e -------------
|
| // -- rax : actual number of arguments
|
|
|