Index: src/x64/code-stubs-x64.cc |
diff --git a/src/x64/code-stubs-x64.cc b/src/x64/code-stubs-x64.cc |
index f72708d91e6eb7a66935627e0c92d7440722f70b..91cd81bfd24e0d1656501c38df38914c25e55b55 100644 |
--- a/src/x64/code-stubs-x64.cc |
+++ b/src/x64/code-stubs-x64.cc |
@@ -2388,50 +2388,6 @@ void SubStringStub::Generate(MacroAssembler* masm) { |
generator.SkipSlow(masm, &runtime); |
} |
- |
-void ToNumberStub::Generate(MacroAssembler* masm) { |
- // The ToNumber stub takes one argument in rax. |
- Label not_smi; |
- __ JumpIfNotSmi(rax, ¬_smi, Label::kNear); |
- __ Ret(); |
- __ bind(¬_smi); |
- |
- Label not_heap_number; |
- __ CompareRoot(FieldOperand(rax, HeapObject::kMapOffset), |
- Heap::kHeapNumberMapRootIndex); |
- __ j(not_equal, ¬_heap_number, Label::kNear); |
- __ Ret(); |
- __ bind(¬_heap_number); |
- |
- NonNumberToNumberStub stub(masm->isolate()); |
- __ TailCallStub(&stub); |
-} |
- |
-void NonNumberToNumberStub::Generate(MacroAssembler* masm) { |
- // The NonNumberToNumber stub takes one argument in rax. |
- __ AssertNotNumber(rax); |
- |
- Label not_string; |
- __ CmpObjectType(rax, FIRST_NONSTRING_TYPE, rdi); |
- // rax: object |
- // rdi: object map |
- __ j(above_equal, ¬_string, Label::kNear); |
- __ Jump(isolate()->builtins()->StringToNumber(), RelocInfo::CODE_TARGET); |
- __ bind(¬_string); |
- |
- Label not_oddball; |
- __ CmpInstanceType(rdi, ODDBALL_TYPE); |
- __ j(not_equal, ¬_oddball, Label::kNear); |
- __ movp(rax, FieldOperand(rax, Oddball::kToNumberOffset)); |
- __ Ret(); |
- __ bind(¬_oddball); |
- |
- __ PopReturnAddressTo(rcx); // Pop return address. |
- __ Push(rax); // Push argument. |
- __ PushReturnAddressFrom(rcx); // Push return address. |
- __ TailCallRuntime(Runtime::kToNumber); |
-} |
- |
void ToStringStub::Generate(MacroAssembler* masm) { |
// The ToString stub takes one argument in rax. |
Label is_number; |
@@ -2466,7 +2422,6 @@ void ToStringStub::Generate(MacroAssembler* masm) { |
__ TailCallRuntime(Runtime::kToString); |
} |
- |
void ToNameStub::Generate(MacroAssembler* masm) { |
// The ToName stub takes one argument in rax. |
Label is_number; |