Index: src/ia32/code-stubs-ia32.cc |
diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc |
index e2273f56c232b6f57f8365d411c9b0db365851ad..e315bb69ee67ebfac884be8a03d1215bbc1ac32d 100644 |
--- a/src/ia32/code-stubs-ia32.cc |
+++ b/src/ia32/code-stubs-ia32.cc |
@@ -2449,49 +2449,6 @@ void SubStringStub::Generate(MacroAssembler* masm) { |
generator.SkipSlow(masm, &runtime); |
} |
- |
-void ToNumberStub::Generate(MacroAssembler* masm) { |
- // The ToNumber stub takes one argument in eax. |
- Label not_smi; |
- __ JumpIfNotSmi(eax, ¬_smi, Label::kNear); |
- __ Ret(); |
- __ bind(¬_smi); |
- |
- Label not_heap_number; |
- __ CompareMap(eax, masm->isolate()->factory()->heap_number_map()); |
- __ 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 eax. |
- __ AssertNotNumber(eax); |
- |
- Label not_string; |
- __ CmpObjectType(eax, FIRST_NONSTRING_TYPE, edi); |
- // eax: object |
- // edi: object map |
- __ j(above_equal, ¬_string, Label::kNear); |
- __ Jump(isolate()->builtins()->StringToNumber(), RelocInfo::CODE_TARGET); |
- __ bind(¬_string); |
- |
- Label not_oddball; |
- __ CmpInstanceType(edi, ODDBALL_TYPE); |
- __ j(not_equal, ¬_oddball, Label::kNear); |
- __ mov(eax, FieldOperand(eax, Oddball::kToNumberOffset)); |
- __ Ret(); |
- __ bind(¬_oddball); |
- |
- __ pop(ecx); // Pop return address. |
- __ push(eax); // Push argument. |
- __ push(ecx); // Push return address. |
- __ TailCallRuntime(Runtime::kToNumber); |
-} |
- |
void ToStringStub::Generate(MacroAssembler* masm) { |
// The ToString stub takes one argument in eax. |
Label is_number; |