Index: src/mips/code-stubs-mips.cc |
diff --git a/src/mips/code-stubs-mips.cc b/src/mips/code-stubs-mips.cc |
index 88b0c70c7a9b75674adc76373d36aa7a51cacb4e..87aa0af260635431750fee0a942821c99d34a9d0 100644 |
--- a/src/mips/code-stubs-mips.cc |
+++ b/src/mips/code-stubs-mips.cc |
@@ -2628,49 +2628,6 @@ void SubStringStub::Generate(MacroAssembler* masm) { |
} |
-void ToNumberStub::Generate(MacroAssembler* masm) { |
- // The ToNumber stub takes one argument in a0. |
- Label not_smi; |
- __ JumpIfNotSmi(a0, ¬_smi); |
- __ Ret(USE_DELAY_SLOT); |
- __ mov(v0, a0); |
- __ bind(¬_smi); |
- |
- Label not_heap_number; |
- __ GetObjectType(a0, a1, a1); |
- // a0: receiver |
- // a1: receiver instance type |
- __ Branch(¬_heap_number, ne, a1, Operand(HEAP_NUMBER_TYPE)); |
- __ Ret(USE_DELAY_SLOT); |
- __ mov(v0, a0); |
- __ bind(¬_heap_number); |
- |
- NonNumberToNumberStub stub(masm->isolate()); |
- __ TailCallStub(&stub); |
-} |
- |
-void NonNumberToNumberStub::Generate(MacroAssembler* masm) { |
- // The NonNumberToNumber stub takes on argument in a0. |
- __ AssertNotNumber(a0); |
- |
- Label not_string; |
- __ GetObjectType(a0, a1, a1); |
- // a0: receiver |
- // a1: receiver instance type |
- __ Branch(¬_string, hs, a1, Operand(FIRST_NONSTRING_TYPE)); |
- __ Jump(isolate()->builtins()->StringToNumber(), RelocInfo::CODE_TARGET); |
- __ bind(¬_string); |
- |
- Label not_oddball; |
- __ Branch(¬_oddball, ne, a1, Operand(ODDBALL_TYPE)); |
- __ Ret(USE_DELAY_SLOT); |
- __ lw(v0, FieldMemOperand(a0, Oddball::kToNumberOffset)); // In delay slot. |
- __ bind(¬_oddball); |
- |
- __ Push(a0); // Push argument. |
- __ TailCallRuntime(Runtime::kToNumber); |
-} |
- |
void ToStringStub::Generate(MacroAssembler* masm) { |
// The ToString stub takes on argument in a0. |
Label is_number; |