Index: src/arm64/code-stubs-arm64.cc |
diff --git a/src/arm64/code-stubs-arm64.cc b/src/arm64/code-stubs-arm64.cc |
index 6c706f463fb80f817b813d92295950c2b9632820..9b3778e7854afd8742ff0e3ff05808c0d2a649ac 100644 |
--- a/src/arm64/code-stubs-arm64.cc |
+++ b/src/arm64/code-stubs-arm64.cc |
@@ -2963,39 +2963,6 @@ void ToStringStub::Generate(MacroAssembler* masm) { |
} |
-void ToNameStub::Generate(MacroAssembler* masm) { |
- // The ToName stub takes one argument in x0. |
- Label is_number; |
- __ JumpIfSmi(x0, &is_number); |
- |
- Label not_name; |
- STATIC_ASSERT(FIRST_NAME_TYPE == FIRST_TYPE); |
- __ JumpIfObjectType(x0, x1, x1, LAST_NAME_TYPE, ¬_name, hi); |
- // x0: receiver |
- // x1: receiver instance type |
- __ Ret(); |
- __ Bind(¬_name); |
- |
- Label not_heap_number; |
- __ Cmp(x1, HEAP_NUMBER_TYPE); |
- __ B(ne, ¬_heap_number); |
- __ Bind(&is_number); |
- NumberToStringStub stub(isolate()); |
- __ TailCallStub(&stub); |
- __ Bind(¬_heap_number); |
- |
- Label not_oddball; |
- __ Cmp(x1, ODDBALL_TYPE); |
- __ B(ne, ¬_oddball); |
- __ Ldr(x0, FieldMemOperand(x0, Oddball::kToStringOffset)); |
- __ Ret(); |
- __ Bind(¬_oddball); |
- |
- __ Push(x0); // Push argument. |
- __ TailCallRuntime(Runtime::kToName); |
-} |
- |
- |
void StringHelper::GenerateFlatOneByteStringEquals( |
MacroAssembler* masm, Register left, Register right, Register scratch1, |
Register scratch2, Register scratch3) { |