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/ic/ic.h" | 8 #include "src/ic/ic.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 TypeConversionDescriptor(isolate)); | 191 TypeConversionDescriptor(isolate)); |
192 } | 192 } |
193 | 193 |
194 // static | 194 // static |
195 Callable CodeFactory::NumberToString(Isolate* isolate) { | 195 Callable CodeFactory::NumberToString(Isolate* isolate) { |
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::RegExpConstructResult(Isolate* isolate) { | |
202 RegExpConstructResultStub stub(isolate); | |
203 return make_callable(stub); | |
204 } | |
205 | |
206 // static | |
207 Callable CodeFactory::RegExpExec(Isolate* isolate) { | 201 Callable CodeFactory::RegExpExec(Isolate* isolate) { |
208 RegExpExecStub stub(isolate); | 202 RegExpExecStub stub(isolate); |
209 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 203 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
210 } | 204 } |
211 | 205 |
212 #define DECLARE_TFS(Name, Kind, Extra, InterfaceDescriptor) \ | 206 #define DECLARE_TFS(Name, Kind, Extra, InterfaceDescriptor) \ |
213 typedef InterfaceDescriptor##Descriptor Name##Descriptor; | 207 typedef InterfaceDescriptor##Descriptor Name##Descriptor; |
214 BUILTIN_LIST(IGNORE_BUILTIN, IGNORE_BUILTIN, IGNORE_BUILTIN, DECLARE_TFS, | 208 BUILTIN_LIST(IGNORE_BUILTIN, IGNORE_BUILTIN, IGNORE_BUILTIN, DECLARE_TFS, |
215 IGNORE_BUILTIN, IGNORE_BUILTIN, IGNORE_BUILTIN) | 209 IGNORE_BUILTIN, IGNORE_BUILTIN, IGNORE_BUILTIN) |
216 #undef DECLARE_TFS | 210 #undef DECLARE_TFS |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
494 } | 488 } |
495 | 489 |
496 // static | 490 // static |
497 Callable CodeFactory::InterpreterOnStackReplacement(Isolate* isolate) { | 491 Callable CodeFactory::InterpreterOnStackReplacement(Isolate* isolate) { |
498 return Callable(isolate->builtins()->InterpreterOnStackReplacement(), | 492 return Callable(isolate->builtins()->InterpreterOnStackReplacement(), |
499 ContextOnlyDescriptor(isolate)); | 493 ContextOnlyDescriptor(isolate)); |
500 } | 494 } |
501 | 495 |
502 } // namespace internal | 496 } // namespace internal |
503 } // namespace v8 | 497 } // namespace v8 |
OLD | NEW |