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