Index: src/arm/code-stubs-arm.cc |
diff --git a/src/arm/code-stubs-arm.cc b/src/arm/code-stubs-arm.cc |
index cb7981f7ed58e22760d430c1035e0778636a5e11..de6803fa6f5c7c2b8da9bd453baf32d77b77b8dc 100644 |
--- a/src/arm/code-stubs-arm.cc |
+++ b/src/arm/code-stubs-arm.cc |
@@ -2124,35 +2124,6 @@ void StringHelper::GenerateCopyCharacters(MacroAssembler* masm, |
__ bind(&done); |
} |
-void ToStringStub::Generate(MacroAssembler* masm) { |
- // The ToString stub takes one argument in r0. |
- Label is_number; |
- __ JumpIfSmi(r0, &is_number); |
- |
- __ CompareObjectType(r0, r1, r1, FIRST_NONSTRING_TYPE); |
- // r0: receiver |
- // r1: receiver instance type |
- __ Ret(lo); |
- |
- Label not_heap_number; |
- __ cmp(r1, Operand(HEAP_NUMBER_TYPE)); |
- __ b(ne, ¬_heap_number); |
- __ bind(&is_number); |
- NumberToStringStub stub(isolate()); |
- __ TailCallStub(&stub); |
- __ bind(¬_heap_number); |
- |
- Label not_oddball; |
- __ cmp(r1, Operand(ODDBALL_TYPE)); |
- __ b(ne, ¬_oddball); |
- __ ldr(r0, FieldMemOperand(r0, Oddball::kToStringOffset)); |
- __ Ret(); |
- __ bind(¬_oddball); |
- |
- __ push(r0); // Push argument. |
- __ TailCallRuntime(Runtime::kToString); |
-} |
- |
void StringHelper::GenerateFlatOneByteStringEquals( |
MacroAssembler* masm, Register left, Register right, Register scratch1, |