Index: src/builtins/arm64/builtins-arm64.cc |
diff --git a/src/builtins/arm64/builtins-arm64.cc b/src/builtins/arm64/builtins-arm64.cc |
index 1b14c42c44af7c84f1a53ca09c6b1e25d59b47f9..f0c73871533c1698dc3961852341398803d3a6c4 100644 |
--- a/src/builtins/arm64/builtins-arm64.cc |
+++ b/src/builtins/arm64/builtins-arm64.cc |
@@ -2855,37 +2855,6 @@ void Builtins::Generate_ToNumber(MacroAssembler* masm) { |
RelocInfo::CODE_TARGET); |
} |
-// static |
-void Builtins::Generate_NonNumberToNumber(MacroAssembler* masm) { |
- // The NonNumberToNumber stub takes one argument in x0. |
- __ AssertNotNumber(x0); |
- |
- Label not_string; |
- __ CompareObjectType(x0, x1, x1, FIRST_NONSTRING_TYPE); |
- // x0: receiver |
- // x1: receiver instance type |
- __ B(hs, ¬_string); |
- __ Jump(masm->isolate()->builtins()->StringToNumber(), |
- RelocInfo::CODE_TARGET); |
- __ Bind(¬_string); |
- |
- Label not_oddball; |
- __ Cmp(x1, ODDBALL_TYPE); |
- __ B(ne, ¬_oddball); |
- __ Ldr(x0, FieldMemOperand(x0, Oddball::kToNumberOffset)); |
- __ Ret(); |
- __ Bind(¬_oddball); |
- { |
- FrameScope frame(masm, StackFrame::INTERNAL); |
- // Push argument. |
- __ Push(x0); |
- // 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) { |
ASM_LOCATION("Builtins::Generate_ArgumentsAdaptorTrampoline"); |
// ----------- S t a t e ------------- |