Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(545)

Side by Side Diff: src/code-factory.cc

Issue 1622493002: [stubs] Introduce ToNameStub to implement %_ToName. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix BuildNumberToString type in Crankshaft. Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/code-factory.h ('k') | src/code-stubs.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/code-factory.h" 5 #include "src/code-factory.h"
6 6
7 #include "src/bootstrapper.h" 7 #include "src/bootstrapper.h"
8 #include "src/ic/ic.h" 8 #include "src/ic/ic.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 162
163 163
164 // static 164 // static
165 Callable CodeFactory::ToString(Isolate* isolate) { 165 Callable CodeFactory::ToString(Isolate* isolate) {
166 ToStringStub stub(isolate); 166 ToStringStub stub(isolate);
167 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 167 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
168 } 168 }
169 169
170 170
171 // static 171 // static
172 Callable CodeFactory::ToName(Isolate* isolate) {
173 ToNameStub stub(isolate);
174 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
175 }
176
177
178 // static
172 Callable CodeFactory::ToLength(Isolate* isolate) { 179 Callable CodeFactory::ToLength(Isolate* isolate) {
173 ToLengthStub stub(isolate); 180 ToLengthStub stub(isolate);
174 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 181 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
175 } 182 }
176 183
177 184
178 // static 185 // static
179 Callable CodeFactory::ToObject(Isolate* isolate) { 186 Callable CodeFactory::ToObject(Isolate* isolate) {
180 ToObjectStub stub(isolate); 187 ToObjectStub stub(isolate);
181 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 188 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 // static 368 // static
362 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) { 369 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) {
363 // Note: If we ever use fpregs in the interpreter then we will need to 370 // Note: If we ever use fpregs in the interpreter then we will need to
364 // save fpregs too. 371 // save fpregs too.
365 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister); 372 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister);
366 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); 373 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate));
367 } 374 }
368 375
369 } // namespace internal 376 } // namespace internal
370 } // namespace v8 377 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-factory.h ('k') | src/code-stubs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698