| 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) { | 513 Callable CodeFactory::CopyFastSmiOrObjectElements(Isolate* isolate) { |
| 514 return Callable(isolate->builtins()->CopyFixedArray(), | 514 return Callable(isolate->builtins()->CopyFastSmiOrObjectElements(), |
| 515 CopyFixedArrayDescriptor(isolate)); | 515 CopyFastSmiOrObjectElementsDescriptor(isolate)); |
| 516 } | 516 } |
| 517 | 517 |
| 518 // static | 518 // static |
| 519 Callable CodeFactory::GrowFastDoubleElements(Isolate* isolate) { |
| 520 return Callable(isolate->builtins()->GrowFastDoubleElements(), |
| 521 GrowArrayElementsDescriptor(isolate)); |
| 522 } |
| 523 |
| 524 // static |
| 525 Callable CodeFactory::GrowFastSmiOrObjectElements(Isolate* isolate) { |
| 526 return Callable(isolate->builtins()->GrowFastSmiOrObjectElements(), |
| 527 GrowArrayElementsDescriptor(isolate)); |
| 528 } |
| 529 |
| 530 // static |
| 519 Callable CodeFactory::AllocateHeapNumber(Isolate* isolate) { | 531 Callable CodeFactory::AllocateHeapNumber(Isolate* isolate) { |
| 520 AllocateHeapNumberStub stub(isolate); | 532 AllocateHeapNumberStub stub(isolate); |
| 521 return make_callable(stub); | 533 return make_callable(stub); |
| 522 } | 534 } |
| 523 | 535 |
| 524 #define SIMD128_ALLOC(TYPE, Type, type, lane_count, lane_type) \ | 536 #define SIMD128_ALLOC(TYPE, Type, type, lane_count, lane_type) \ |
| 525 Callable CodeFactory::Allocate##Type(Isolate* isolate) { \ | 537 Callable CodeFactory::Allocate##Type(Isolate* isolate) { \ |
| 526 Allocate##Type##Stub stub(isolate); \ | 538 Allocate##Type##Stub stub(isolate); \ |
| 527 return make_callable(stub); \ | 539 return make_callable(stub); \ |
| 528 } | 540 } |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 596 } | 608 } |
| 597 | 609 |
| 598 // static | 610 // static |
| 599 Callable CodeFactory::InterpreterOnStackReplacement(Isolate* isolate) { | 611 Callable CodeFactory::InterpreterOnStackReplacement(Isolate* isolate) { |
| 600 return Callable(isolate->builtins()->InterpreterOnStackReplacement(), | 612 return Callable(isolate->builtins()->InterpreterOnStackReplacement(), |
| 601 ContextOnlyDescriptor(isolate)); | 613 ContextOnlyDescriptor(isolate)); |
| 602 } | 614 } |
| 603 | 615 |
| 604 } // namespace internal | 616 } // namespace internal |
| 605 } // namespace v8 | 617 } // namespace v8 |
| OLD | NEW |