Index: src/s390/code-stubs-s390.cc |
diff --git a/src/s390/code-stubs-s390.cc b/src/s390/code-stubs-s390.cc |
index 41bc1e32a9e1f41ee7269c1b335504a561d7ff42..247b33aefbd7c657e773eb70ac2e4ab54028c69d 100644 |
--- a/src/s390/code-stubs-s390.cc |
+++ b/src/s390/code-stubs-s390.cc |
@@ -2566,44 +2566,6 @@ void SubStringStub::Generate(MacroAssembler* masm) { |
generator.SkipSlow(masm, &runtime); |
} |
-void ToNumberStub::Generate(MacroAssembler* masm) { |
- // The ToNumber stub takes one argument in r2. |
- STATIC_ASSERT(kSmiTag == 0); |
- __ TestIfSmi(r2); |
- __ Ret(eq); |
- |
- __ CompareObjectType(r2, r3, r3, HEAP_NUMBER_TYPE); |
- // r2: receiver |
- // r3: receiver instance type |
- Label not_heap_number; |
- __ bne(¬_heap_number); |
- __ Ret(); |
- __ bind(¬_heap_number); |
- |
- NonNumberToNumberStub stub(masm->isolate()); |
- __ TailCallStub(&stub); |
-} |
- |
-void NonNumberToNumberStub::Generate(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(isolate()->builtins()->StringToNumber(), RelocInfo::CODE_TARGET, lt); |
- |
- Label not_oddball; |
- __ CmpP(r3, Operand(ODDBALL_TYPE)); |
- __ bne(¬_oddball, Label::kNear); |
- __ LoadP(r2, FieldMemOperand(r2, Oddball::kToNumberOffset)); |
- __ b(r14); |
- __ bind(¬_oddball); |
- |
- __ push(r2); // Push argument. |
- __ TailCallRuntime(Runtime::kToNumber); |
-} |
- |
void ToStringStub::Generate(MacroAssembler* masm) { |
// The ToString stub takes one argument in r2. |
Label done; |