Index: src/ia32/code-stubs-ia32.cc |
diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc |
index 6128633729493f8ba927d621722dbe065cb64893..83613ccc86a041c8a360232cacee3c76eee09698 100644 |
--- a/src/ia32/code-stubs-ia32.cc |
+++ b/src/ia32/code-stubs-ia32.cc |
@@ -64,6 +64,16 @@ void ToNumberStub::InitializeInterfaceDescriptor( |
} |
+void NumberToStringStub::InitializeInterfaceDescriptor( |
+ Isolate* isolate, |
+ CodeStubInterfaceDescriptor* descriptor) { |
+ static Register registers[] = { eax }; |
+ descriptor->register_param_count_ = 1; |
+ descriptor->register_params_ = registers; |
+ descriptor->deoptimization_handler_ = NULL; |
+} |
+ |
+ |
void FastCloneShallowArrayStub::InitializeInterfaceDescriptor( |
Isolate* isolate, |
CodeStubInterfaceDescriptor* descriptor) { |
@@ -3767,21 +3777,6 @@ void RegExpConstructResultStub::Generate(MacroAssembler* masm) { |
} |
-void NumberToStringStub::Generate(MacroAssembler* masm) { |
- Label runtime; |
- |
- __ mov(ebx, Operand(esp, kPointerSize)); |
- |
- // Generate code to lookup number in the number string cache. |
- __ LookupNumberStringCache(ebx, eax, ecx, edx, &runtime); |
- __ ret(1 * kPointerSize); |
- |
- __ bind(&runtime); |
- // Handle number to string in the runtime system if not found in the cache. |
- __ TailCallRuntime(Runtime::kNumberToStringSkipCache, 1, 1); |
-} |
- |
- |
static int NegativeComparisonResult(Condition cc) { |
ASSERT(cc != equal); |
ASSERT((cc == less) || (cc == less_equal) |