OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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-stubs.h" | 5 #include "src/code-stubs.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
10 #include "src/cpu-profiler.h" | 10 #include "src/cpu-profiler.h" |
(...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
672 CodeStubDescriptor* descriptor) { | 672 CodeStubDescriptor* descriptor) { |
673 FastCloneShallowObjectDescriptor call_descriptor(isolate()); | 673 FastCloneShallowObjectDescriptor call_descriptor(isolate()); |
674 descriptor->Initialize( | 674 descriptor->Initialize( |
675 Runtime::FunctionForId(Runtime::kCreateObjectLiteral)->entry); | 675 Runtime::FunctionForId(Runtime::kCreateObjectLiteral)->entry); |
676 } | 676 } |
677 | 677 |
678 | 678 |
679 void CreateAllocationSiteStub::InitializeDescriptor(CodeStubDescriptor* d) {} | 679 void CreateAllocationSiteStub::InitializeDescriptor(CodeStubDescriptor* d) {} |
680 | 680 |
681 | 681 |
| 682 void CreateWeakCellStub::InitializeDescriptor(CodeStubDescriptor* d) {} |
| 683 |
| 684 |
682 void RegExpConstructResultStub::InitializeDescriptor( | 685 void RegExpConstructResultStub::InitializeDescriptor( |
683 CodeStubDescriptor* descriptor) { | 686 CodeStubDescriptor* descriptor) { |
684 descriptor->Initialize( | 687 descriptor->Initialize( |
685 Runtime::FunctionForId(Runtime::kRegExpConstructResult)->entry); | 688 Runtime::FunctionForId(Runtime::kRegExpConstructResult)->entry); |
686 } | 689 } |
687 | 690 |
688 | 691 |
689 void TransitionElementsKindStub::InitializeDescriptor( | 692 void TransitionElementsKindStub::InitializeDescriptor( |
690 CodeStubDescriptor* descriptor) { | 693 CodeStubDescriptor* descriptor) { |
691 descriptor->Initialize( | 694 descriptor->Initialize( |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
731 descriptor->Initialize(Runtime::FunctionForId(Runtime::kStringAdd)->entry); | 734 descriptor->Initialize(Runtime::FunctionForId(Runtime::kStringAdd)->entry); |
732 } | 735 } |
733 | 736 |
734 | 737 |
735 void CreateAllocationSiteStub::GenerateAheadOfTime(Isolate* isolate) { | 738 void CreateAllocationSiteStub::GenerateAheadOfTime(Isolate* isolate) { |
736 CreateAllocationSiteStub stub(isolate); | 739 CreateAllocationSiteStub stub(isolate); |
737 stub.GetCode(); | 740 stub.GetCode(); |
738 } | 741 } |
739 | 742 |
740 | 743 |
| 744 void CreateWeakCellStub::GenerateAheadOfTime(Isolate* isolate) { |
| 745 CreateWeakCellStub stub(isolate); |
| 746 stub.GetCode(); |
| 747 } |
| 748 |
| 749 |
741 void StoreElementStub::Generate(MacroAssembler* masm) { | 750 void StoreElementStub::Generate(MacroAssembler* masm) { |
742 switch (elements_kind()) { | 751 switch (elements_kind()) { |
743 case FAST_ELEMENTS: | 752 case FAST_ELEMENTS: |
744 case FAST_HOLEY_ELEMENTS: | 753 case FAST_HOLEY_ELEMENTS: |
745 case FAST_SMI_ELEMENTS: | 754 case FAST_SMI_ELEMENTS: |
746 case FAST_HOLEY_SMI_ELEMENTS: | 755 case FAST_HOLEY_SMI_ELEMENTS: |
747 case FAST_DOUBLE_ELEMENTS: | 756 case FAST_DOUBLE_ELEMENTS: |
748 case FAST_HOLEY_DOUBLE_ELEMENTS: | 757 case FAST_HOLEY_DOUBLE_ELEMENTS: |
749 #define TYPED_ARRAY_CASE(Type, type, TYPE, ctype, size) \ | 758 #define TYPED_ARRAY_CASE(Type, type, TYPE, ctype, size) \ |
750 case EXTERNAL_##TYPE##_ELEMENTS: \ | 759 case EXTERNAL_##TYPE##_ELEMENTS: \ |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
965 } | 974 } |
966 | 975 |
967 | 976 |
968 InternalArrayConstructorStub::InternalArrayConstructorStub( | 977 InternalArrayConstructorStub::InternalArrayConstructorStub( |
969 Isolate* isolate) : PlatformCodeStub(isolate) { | 978 Isolate* isolate) : PlatformCodeStub(isolate) { |
970 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); | 979 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); |
971 } | 980 } |
972 | 981 |
973 | 982 |
974 } } // namespace v8::internal | 983 } } // namespace v8::internal |
OLD | NEW |