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 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
482 ArrayConstructorStub stub(isolate); | 482 ArrayConstructorStub stub(isolate); |
483 return make_callable(stub); | 483 return make_callable(stub); |
484 } | 484 } |
485 | 485 |
486 // static | 486 // static |
487 Callable CodeFactory::ArrayPush(Isolate* isolate) { | 487 Callable CodeFactory::ArrayPush(Isolate* isolate) { |
488 return Callable(isolate->builtins()->ArrayPush(), BuiltinDescriptor(isolate)); | 488 return Callable(isolate->builtins()->ArrayPush(), BuiltinDescriptor(isolate)); |
489 } | 489 } |
490 | 490 |
491 // static | 491 // static |
| 492 Callable CodeFactory::ArrayFilterLoopContinuation(Isolate* isolate) { |
| 493 return Callable(isolate->builtins()->ArrayFilterLoopContinuation(), |
| 494 IteratingArrayBuiltinLoopContinuationDescriptor(isolate)); |
| 495 } |
| 496 |
| 497 // static |
492 Callable CodeFactory::ArrayForEachLoopContinuation(Isolate* isolate) { | 498 Callable CodeFactory::ArrayForEachLoopContinuation(Isolate* isolate) { |
493 return Callable(isolate->builtins()->ArrayForEachLoopContinuation(), | 499 return Callable(isolate->builtins()->ArrayForEachLoopContinuation(), |
494 IteratingArrayBuiltinLoopContinuationDescriptor(isolate)); | 500 IteratingArrayBuiltinLoopContinuationDescriptor(isolate)); |
495 } | 501 } |
496 | 502 |
497 // static | 503 // static |
498 Callable CodeFactory::ArraySomeLoopContinuation(Isolate* isolate) { | 504 Callable CodeFactory::ArraySomeLoopContinuation(Isolate* isolate) { |
499 return Callable(isolate->builtins()->ArraySomeLoopContinuation(), | 505 return Callable(isolate->builtins()->ArraySomeLoopContinuation(), |
500 IteratingArrayBuiltinLoopContinuationDescriptor(isolate)); | 506 IteratingArrayBuiltinLoopContinuationDescriptor(isolate)); |
501 } | 507 } |
502 | 508 |
503 // static | 509 // static |
504 Callable CodeFactory::ArrayEveryLoopContinuation(Isolate* isolate) { | 510 Callable CodeFactory::ArrayEveryLoopContinuation(Isolate* isolate) { |
505 return Callable(isolate->builtins()->ArrayEveryLoopContinuation(), | 511 return Callable(isolate->builtins()->ArrayEveryLoopContinuation(), |
506 IteratingArrayBuiltinLoopContinuationDescriptor(isolate)); | 512 IteratingArrayBuiltinLoopContinuationDescriptor(isolate)); |
507 } | 513 } |
508 | 514 |
509 // static | 515 // static |
510 Callable CodeFactory::FunctionPrototypeBind(Isolate* isolate) { | 516 Callable CodeFactory::FunctionPrototypeBind(Isolate* isolate) { |
511 return Callable(isolate->builtins()->FunctionPrototypeBind(), | 517 return Callable(isolate->builtins()->FunctionPrototypeBind(), |
512 BuiltinDescriptor(isolate)); | 518 BuiltinDescriptor(isolate)); |
513 } | 519 } |
514 | 520 |
515 } // namespace internal | 521 } // namespace internal |
516 } // namespace v8 | 522 } // namespace v8 |
OLD | NEW |