Index: src/code-stubs.cc |
diff --git a/src/code-stubs.cc b/src/code-stubs.cc |
index d81802dccef5de01108c573cfc2bc35d7a1f0c4f..ee8dd6160552844cd2304e48302591802c9cc453 100644 |
--- a/src/code-stubs.cc |
+++ b/src/code-stubs.cc |
@@ -1466,6 +1466,13 @@ compiler::Node* IncStub::Generate(CodeStubAssembler* assembler, |
return result_var.value(); |
} |
+void NumberToStringStub::GenerateAssembly(CodeStubAssembler* assembler) const { |
+ typedef compiler::Node Node; |
+ Node* argument = assembler->Parameter(Descriptor::kArgument); |
+ Node* context = assembler->Parameter(Descriptor::kContext); |
+ assembler->Return(assembler->NumberToString(context, argument)); |
+} |
+ |
// static |
compiler::Node* DecStub::Generate(CodeStubAssembler* assembler, |
compiler::Node* value, |
@@ -2046,12 +2053,6 @@ CallInterfaceDescriptor HandlerStub::GetCallInterfaceDescriptor() const { |
} |
-void NumberToStringStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { |
- descriptor->Initialize( |
- Runtime::FunctionForId(Runtime::kNumberToString)->entry); |
- descriptor->SetMissHandler(Runtime::kNumberToString); |
-} |
- |
void RegExpConstructResultStub::InitializeDescriptor( |
CodeStubDescriptor* descriptor) { |
descriptor->Initialize( |