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 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
503 } | 503 } |
504 | 504 |
505 // static | 505 // static |
506 Callable CodeFactory::FastNewStrictArguments(Isolate* isolate, | 506 Callable CodeFactory::FastNewStrictArguments(Isolate* isolate, |
507 bool skip_stub_frame) { | 507 bool skip_stub_frame) { |
508 FastNewStrictArgumentsStub stub(isolate, skip_stub_frame); | 508 FastNewStrictArgumentsStub stub(isolate, skip_stub_frame); |
509 return make_callable(stub); | 509 return make_callable(stub); |
510 } | 510 } |
511 | 511 |
512 // static | 512 // static |
513 Callable CodeFactory::CopyFixedArray(Isolate* isolate) { | |
514 return Callable(isolate->builtins()->CopyFixedArray(), | |
515 CopyFixedArrayDescriptor(isolate)); | |
516 } | |
517 | |
518 // static | |
519 Callable CodeFactory::AllocateHeapNumber(Isolate* isolate) { | 513 Callable CodeFactory::AllocateHeapNumber(Isolate* isolate) { |
520 AllocateHeapNumberStub stub(isolate); | 514 AllocateHeapNumberStub stub(isolate); |
521 return make_callable(stub); | 515 return make_callable(stub); |
522 } | 516 } |
523 | 517 |
524 #define SIMD128_ALLOC(TYPE, Type, type, lane_count, lane_type) \ | 518 #define SIMD128_ALLOC(TYPE, Type, type, lane_count, lane_type) \ |
525 Callable CodeFactory::Allocate##Type(Isolate* isolate) { \ | 519 Callable CodeFactory::Allocate##Type(Isolate* isolate) { \ |
526 Allocate##Type##Stub stub(isolate); \ | 520 Allocate##Type##Stub stub(isolate); \ |
527 return make_callable(stub); \ | 521 return make_callable(stub); \ |
528 } | 522 } |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
596 } | 590 } |
597 | 591 |
598 // static | 592 // static |
599 Callable CodeFactory::InterpreterOnStackReplacement(Isolate* isolate) { | 593 Callable CodeFactory::InterpreterOnStackReplacement(Isolate* isolate) { |
600 return Callable(isolate->builtins()->InterpreterOnStackReplacement(), | 594 return Callable(isolate->builtins()->InterpreterOnStackReplacement(), |
601 ContextOnlyDescriptor(isolate)); | 595 ContextOnlyDescriptor(isolate)); |
602 } | 596 } |
603 | 597 |
604 } // namespace internal | 598 } // namespace internal |
605 } // namespace v8 | 599 } // namespace v8 |
OLD | NEW |