Index: src/x64/code-stubs-x64.cc |
diff --git a/src/x64/code-stubs-x64.cc b/src/x64/code-stubs-x64.cc |
index 6dddab1f6ca059b7db0c45096b9088d09d8211c0..2a962b32f9b38bd4efc30a55b0c00bd2f9b83335 100644 |
--- a/src/x64/code-stubs-x64.cc |
+++ b/src/x64/code-stubs-x64.cc |
@@ -2011,40 +2011,6 @@ void StringHelper::GenerateCopyCharacters(MacroAssembler* masm, |
__ bind(&done); |
} |
-void ToStringStub::Generate(MacroAssembler* masm) { |
- // The ToString stub takes one argument in rax. |
- Label is_number; |
- __ JumpIfSmi(rax, &is_number, Label::kNear); |
- |
- Label not_string; |
- __ CmpObjectType(rax, FIRST_NONSTRING_TYPE, rdi); |
- // rax: receiver |
- // rdi: receiver map |
- __ j(above_equal, ¬_string, Label::kNear); |
- __ Ret(); |
- __ bind(¬_string); |
- |
- Label not_heap_number; |
- __ CompareRoot(rdi, Heap::kHeapNumberMapRootIndex); |
- __ j(not_equal, ¬_heap_number, Label::kNear); |
- __ bind(&is_number); |
- NumberToStringStub stub(isolate()); |
- __ TailCallStub(&stub); |
- __ bind(¬_heap_number); |
- |
- Label not_oddball; |
- __ CmpInstanceType(rdi, ODDBALL_TYPE); |
- __ j(not_equal, ¬_oddball, Label::kNear); |
- __ movp(rax, FieldOperand(rax, Oddball::kToStringOffset)); |
- __ Ret(); |
- __ bind(¬_oddball); |
- |
- __ PopReturnAddressTo(rcx); // Pop return address. |
- __ Push(rax); // Push argument. |
- __ PushReturnAddressFrom(rcx); // Push return address. |
- __ TailCallRuntime(Runtime::kToString); |
-} |
- |
void StringHelper::GenerateFlatOneByteStringEquals(MacroAssembler* masm, |
Register left, |