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 | |
241 Callable CodeFactory::StringFromCharCode(Isolate* isolate) { | 235 Callable CodeFactory::StringFromCharCode(Isolate* isolate) { |
242 Handle<Code> code(isolate->builtins()->StringFromCharCode()); | 236 Handle<Code> code(isolate->builtins()->StringFromCharCode()); |
243 return Callable(code, BuiltinDescriptor(isolate)); | 237 return Callable(code, BuiltinDescriptor(isolate)); |
244 } | 238 } |
245 | 239 |
246 #define TFS_BUILTIN(Name) \ | 240 #define TFS_BUILTIN(Name) \ |
247 Callable CodeFactory::Name(Isolate* isolate) { \ | 241 Callable CodeFactory::Name(Isolate* isolate) { \ |
248 Handle<Code> code(isolate->builtins()->Name()); \ | 242 Handle<Code> code(isolate->builtins()->Name()); \ |
249 return Callable(code, Builtin_##Name##_InterfaceDescriptor(isolate)); \ | 243 return Callable(code, Builtin_##Name##_InterfaceDescriptor(isolate)); \ |
250 } | 244 } |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
553 } | 547 } |
554 | 548 |
555 // static | 549 // static |
556 Callable CodeFactory::FunctionPrototypeBind(Isolate* isolate) { | 550 Callable CodeFactory::FunctionPrototypeBind(Isolate* isolate) { |
557 return Callable(isolate->builtins()->FunctionPrototypeBind(), | 551 return Callable(isolate->builtins()->FunctionPrototypeBind(), |
558 BuiltinDescriptor(isolate)); | 552 BuiltinDescriptor(isolate)); |
559 } | 553 } |
560 | 554 |
561 } // namespace internal | 555 } // namespace internal |
562 } // namespace v8 | 556 } // namespace v8 |
OLD | NEW |