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