Index: src/arm/code-stubs-arm.cc |
diff --git a/src/arm/code-stubs-arm.cc b/src/arm/code-stubs-arm.cc |
index cb4930df4a4f74b0e25b9c4045f460db17f0603c..7e180732b19d201d59c177491b4d81d620d91dc6 100644 |
--- a/src/arm/code-stubs-arm.cc |
+++ b/src/arm/code-stubs-arm.cc |
@@ -2500,42 +2500,6 @@ void SubStringStub::Generate(MacroAssembler* masm) { |
generator.SkipSlow(masm, &runtime); |
} |
- |
-void ToNumberStub::Generate(MacroAssembler* masm) { |
- // The ToNumber stub takes one argument in r0. |
- STATIC_ASSERT(kSmiTag == 0); |
- __ tst(r0, Operand(kSmiTagMask)); |
- __ Ret(eq); |
- |
- __ CompareObjectType(r0, r1, r1, HEAP_NUMBER_TYPE); |
- // r0: receiver |
- // r1: receiver instance type |
- __ Ret(eq); |
- |
- NonNumberToNumberStub stub(masm->isolate()); |
- __ TailCallStub(&stub); |
-} |
- |
-void NonNumberToNumberStub::Generate(MacroAssembler* masm) { |
- // The NonNumberToNumber stub takes one argument in r0. |
- __ AssertNotNumber(r0); |
- |
- __ CompareObjectType(r0, r1, r1, FIRST_NONSTRING_TYPE); |
- // r0: receiver |
- // r1: receiver instance type |
- __ Jump(isolate()->builtins()->StringToNumber(), RelocInfo::CODE_TARGET, lo); |
- |
- Label not_oddball; |
- __ cmp(r1, Operand(ODDBALL_TYPE)); |
- __ b(ne, ¬_oddball); |
- __ ldr(r0, FieldMemOperand(r0, Oddball::kToNumberOffset)); |
- __ Ret(); |
- __ bind(¬_oddball); |
- |
- __ Push(r0); // Push argument. |
- __ TailCallRuntime(Runtime::kToNumber); |
-} |
- |
void ToStringStub::Generate(MacroAssembler* masm) { |
// The ToString stub takes one argument in r0. |
Label is_number; |