| 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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 TypeConversionDescriptor(isolate)); | 233 TypeConversionDescriptor(isolate)); |
| 234 } | 234 } |
| 235 | 235 |
| 236 // static | 236 // static |
| 237 Callable CodeFactory::NumberToString(Isolate* isolate) { | 237 Callable CodeFactory::NumberToString(Isolate* isolate) { |
| 238 NumberToStringStub stub(isolate); | 238 NumberToStringStub stub(isolate); |
| 239 return make_callable(stub); | 239 return make_callable(stub); |
| 240 } | 240 } |
| 241 | 241 |
| 242 // static | 242 // static |
| 243 Callable CodeFactory::OrdinaryHasInstance(Isolate* isolate) { |
| 244 return Callable(isolate->builtins()->OrdinaryHasInstance(), |
| 245 CompareDescriptor(isolate)); |
| 246 } |
| 247 |
| 248 // static |
| 243 Callable CodeFactory::RegExpConstructResult(Isolate* isolate) { | 249 Callable CodeFactory::RegExpConstructResult(Isolate* isolate) { |
| 244 RegExpConstructResultStub stub(isolate); | 250 RegExpConstructResultStub stub(isolate); |
| 245 return make_callable(stub); | 251 return make_callable(stub); |
| 246 } | 252 } |
| 247 | 253 |
| 248 // static | 254 // static |
| 249 Callable CodeFactory::RegExpExec(Isolate* isolate) { | 255 Callable CodeFactory::RegExpExec(Isolate* isolate) { |
| 250 RegExpExecStub stub(isolate); | 256 RegExpExecStub stub(isolate); |
| 251 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 257 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 252 } | 258 } |
| (...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 628 } | 634 } |
| 629 | 635 |
| 630 // static | 636 // static |
| 631 Callable CodeFactory::InterpreterOnStackReplacement(Isolate* isolate) { | 637 Callable CodeFactory::InterpreterOnStackReplacement(Isolate* isolate) { |
| 632 return Callable(isolate->builtins()->InterpreterOnStackReplacement(), | 638 return Callable(isolate->builtins()->InterpreterOnStackReplacement(), |
| 633 ContextOnlyDescriptor(isolate)); | 639 ContextOnlyDescriptor(isolate)); |
| 634 } | 640 } |
| 635 | 641 |
| 636 } // namespace internal | 642 } // namespace internal |
| 637 } // namespace v8 | 643 } // namespace v8 |
| OLD | NEW |