Index: src/arm/code-stubs-arm.cc |
diff --git a/src/arm/code-stubs-arm.cc b/src/arm/code-stubs-arm.cc |
index 6d30dae19683f09ef9834364b8f298220c3bd396..826e1055c9885523fa3f3cf366ff7ff2cf100d82 100644 |
--- a/src/arm/code-stubs-arm.cc |
+++ b/src/arm/code-stubs-arm.cc |
@@ -2385,37 +2385,6 @@ void ToStringStub::Generate(MacroAssembler* masm) { |
} |
-void ToNameStub::Generate(MacroAssembler* masm) { |
- // The ToName stub takes one argument in r0. |
- Label is_number; |
- __ JumpIfSmi(r0, &is_number); |
- |
- STATIC_ASSERT(FIRST_NAME_TYPE == FIRST_TYPE); |
- __ CompareObjectType(r0, r1, r1, LAST_NAME_TYPE); |
- // r0: receiver |
- // r1: receiver instance type |
- __ Ret(ls); |
- |
- 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::kToName); |
-} |
- |
- |
void StringHelper::GenerateFlatOneByteStringEquals( |
MacroAssembler* masm, Register left, Register right, Register scratch1, |
Register scratch2, Register scratch3) { |