OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |