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

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

Issue 2827243005: Revert of [regexp] Remove remainder of native RegExpExecStub (Closed)
Patch Set: Created 3 years, 8 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/builtins/builtins-descriptors.h" 8 #include "src/builtins/builtins-descriptors.h"
9 #include "src/ic/ic.h" 9 #include "src/ic/ic.h"
10 #include "src/objects-inl.h" 10 #include "src/objects-inl.h"
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 TypeConversionDescriptor(isolate)); 225 TypeConversionDescriptor(isolate));
226 } 226 }
227 227
228 // static 228 // static
229 Callable CodeFactory::NumberToString(Isolate* isolate) { 229 Callable CodeFactory::NumberToString(Isolate* isolate) {
230 NumberToStringStub stub(isolate); 230 NumberToStringStub stub(isolate);
231 return make_callable(stub); 231 return make_callable(stub);
232 } 232 }
233 233
234 // static 234 // static
235 Callable CodeFactory::RegExpExec(Isolate* isolate) {
236 RegExpExecStub stub(isolate);
237 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
238 }
239
240 // static
235 Callable CodeFactory::StringFromCharCode(Isolate* isolate) { 241 Callable CodeFactory::StringFromCharCode(Isolate* isolate) {
236 Handle<Code> code(isolate->builtins()->StringFromCharCode()); 242 Handle<Code> code(isolate->builtins()->StringFromCharCode());
237 return Callable(code, BuiltinDescriptor(isolate)); 243 return Callable(code, BuiltinDescriptor(isolate));
238 } 244 }
239 245
240 #define TFS_BUILTIN(Name) \ 246 #define TFS_BUILTIN(Name) \
241 Callable CodeFactory::Name(Isolate* isolate) { \ 247 Callable CodeFactory::Name(Isolate* isolate) { \
242 Handle<Code> code(isolate->builtins()->Name()); \ 248 Handle<Code> code(isolate->builtins()->Name()); \
243 return Callable(code, Builtin_##Name##_InterfaceDescriptor(isolate)); \ 249 return Callable(code, Builtin_##Name##_InterfaceDescriptor(isolate)); \
244 } 250 }
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 } 553 }
548 554
549 // static 555 // static
550 Callable CodeFactory::FunctionPrototypeBind(Isolate* isolate) { 556 Callable CodeFactory::FunctionPrototypeBind(Isolate* isolate) {
551 return Callable(isolate->builtins()->FunctionPrototypeBind(), 557 return Callable(isolate->builtins()->FunctionPrototypeBind(),
552 BuiltinDescriptor(isolate)); 558 BuiltinDescriptor(isolate));
553 } 559 }
554 560
555 } // namespace internal 561 } // namespace internal
556 } // namespace v8 562 } // 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