Index: src/builtins/s390/builtins-s390.cc |
diff --git a/src/builtins/s390/builtins-s390.cc b/src/builtins/s390/builtins-s390.cc |
index 2b3aebaa7eedea9ba199e0fbb353a0b5b13aa7d8..baca6b69f45c1a43f01404bc9a26c0885f93800c 100644 |
--- a/src/builtins/s390/builtins-s390.cc |
+++ b/src/builtins/s390/builtins-s390.cc |
@@ -2856,35 +2856,6 @@ void Builtins::Generate_ToNumber(MacroAssembler* masm) { |
RelocInfo::CODE_TARGET); |
} |
-// static |
-void Builtins::Generate_NonNumberToNumber(MacroAssembler* masm) { |
- // The NonNumberToNumber stub takes one argument in r2. |
- __ AssertNotNumber(r2); |
- |
- __ CompareObjectType(r2, r3, r3, FIRST_NONSTRING_TYPE); |
- // r2: receiver |
- // r3: receiver instance type |
- __ Jump(masm->isolate()->builtins()->StringToNumber(), RelocInfo::CODE_TARGET, |
- lt); |
- |
- Label not_oddball; |
- __ CmpP(r3, Operand(ODDBALL_TYPE)); |
- __ bne(¬_oddball); |
- __ LoadP(r2, FieldMemOperand(r2, Oddball::kToNumberOffset)); |
- __ Ret(); |
- __ bind(¬_oddball); |
- |
- { |
- FrameScope frame(masm, StackFrame::INTERNAL); |
- // Push argument. |
- __ push(r2); |
- // 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 ------------- |
// -- r2 : actual number of arguments |