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

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

Issue 2448993002: [turbofan]: Convert StringFromCharCode to var-args style TF builtin (Closed)
Patch Set: Fix comments Created 4 years, 1 month 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-stub-assembler.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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 NumberToStringStub stub(isolate); 196 NumberToStringStub stub(isolate);
197 return make_callable(stub); 197 return make_callable(stub);
198 } 198 }
199 199
200 // static 200 // static
201 Callable CodeFactory::RegExpExec(Isolate* isolate) { 201 Callable CodeFactory::RegExpExec(Isolate* isolate) {
202 RegExpExecStub stub(isolate); 202 RegExpExecStub stub(isolate);
203 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 203 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
204 } 204 }
205 205
206 // static
207 Callable CodeFactory::StringFromCharCode(Isolate* isolate) {
208 Handle<Code> code(isolate->builtins()->StringFromCharCode());
209 return Callable(code, BuiltinDescriptor(isolate));
210 }
211
206 #define DECLARE_TFS(Name, Kind, Extra, InterfaceDescriptor) \ 212 #define DECLARE_TFS(Name, Kind, Extra, InterfaceDescriptor) \
207 typedef InterfaceDescriptor##Descriptor Name##Descriptor; 213 typedef InterfaceDescriptor##Descriptor Name##Descriptor;
208 BUILTIN_LIST(IGNORE_BUILTIN, IGNORE_BUILTIN, IGNORE_BUILTIN, DECLARE_TFS, 214 BUILTIN_LIST(IGNORE_BUILTIN, IGNORE_BUILTIN, IGNORE_BUILTIN, DECLARE_TFS,
209 IGNORE_BUILTIN, IGNORE_BUILTIN, IGNORE_BUILTIN) 215 IGNORE_BUILTIN, IGNORE_BUILTIN, IGNORE_BUILTIN)
210 #undef DECLARE_TFS 216 #undef DECLARE_TFS
211 217
212 #define TFS_BUILTIN(Name) \ 218 #define TFS_BUILTIN(Name) \
213 Callable CodeFactory::Name(Isolate* isolate) { \ 219 Callable CodeFactory::Name(Isolate* isolate) { \
214 Handle<Code> code(isolate->builtins()->Name()); \ 220 Handle<Code> code(isolate->builtins()->Name()); \
215 return Callable(code, Name##Descriptor(isolate)); \ 221 return Callable(code, Name##Descriptor(isolate)); \
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 } 494 }
489 495
490 // static 496 // static
491 Callable CodeFactory::InterpreterOnStackReplacement(Isolate* isolate) { 497 Callable CodeFactory::InterpreterOnStackReplacement(Isolate* isolate) {
492 return Callable(isolate->builtins()->InterpreterOnStackReplacement(), 498 return Callable(isolate->builtins()->InterpreterOnStackReplacement(),
493 ContextOnlyDescriptor(isolate)); 499 ContextOnlyDescriptor(isolate));
494 } 500 }
495 501
496 } // namespace internal 502 } // namespace internal
497 } // namespace v8 503 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-factory.h ('k') | src/code-stub-assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698