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 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
675 CodeStubDescriptor* descriptor) { | 675 CodeStubDescriptor* descriptor) { |
676 FastCloneShallowObjectDescriptor call_descriptor(isolate()); | 676 FastCloneShallowObjectDescriptor call_descriptor(isolate()); |
677 descriptor->Initialize( | 677 descriptor->Initialize( |
678 Runtime::FunctionForId(Runtime::kCreateObjectLiteral)->entry); | 678 Runtime::FunctionForId(Runtime::kCreateObjectLiteral)->entry); |
679 } | 679 } |
680 | 680 |
681 | 681 |
682 void CreateAllocationSiteStub::InitializeDescriptor(CodeStubDescriptor* d) {} | 682 void CreateAllocationSiteStub::InitializeDescriptor(CodeStubDescriptor* d) {} |
683 | 683 |
684 | 684 |
| 685 void CreateWeakCellStub::InitializeDescriptor(CodeStubDescriptor* d) {} |
| 686 |
| 687 |
685 void RegExpConstructResultStub::InitializeDescriptor( | 688 void RegExpConstructResultStub::InitializeDescriptor( |
686 CodeStubDescriptor* descriptor) { | 689 CodeStubDescriptor* descriptor) { |
687 descriptor->Initialize( | 690 descriptor->Initialize( |
688 Runtime::FunctionForId(Runtime::kRegExpConstructResult)->entry); | 691 Runtime::FunctionForId(Runtime::kRegExpConstructResult)->entry); |
689 } | 692 } |
690 | 693 |
691 | 694 |
692 void TransitionElementsKindStub::InitializeDescriptor( | 695 void TransitionElementsKindStub::InitializeDescriptor( |
693 CodeStubDescriptor* descriptor) { | 696 CodeStubDescriptor* descriptor) { |
694 descriptor->Initialize( | 697 descriptor->Initialize( |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
734 descriptor->Initialize(Runtime::FunctionForId(Runtime::kStringAdd)->entry); | 737 descriptor->Initialize(Runtime::FunctionForId(Runtime::kStringAdd)->entry); |
735 } | 738 } |
736 | 739 |
737 | 740 |
738 void CreateAllocationSiteStub::GenerateAheadOfTime(Isolate* isolate) { | 741 void CreateAllocationSiteStub::GenerateAheadOfTime(Isolate* isolate) { |
739 CreateAllocationSiteStub stub(isolate); | 742 CreateAllocationSiteStub stub(isolate); |
740 stub.GetCode(); | 743 stub.GetCode(); |
741 } | 744 } |
742 | 745 |
743 | 746 |
| 747 void CreateWeakCellStub::GenerateAheadOfTime(Isolate* isolate) { |
| 748 CreateWeakCellStub stub(isolate); |
| 749 stub.GetCode(); |
| 750 } |
| 751 |
| 752 |
744 void StoreElementStub::Generate(MacroAssembler* masm) { | 753 void StoreElementStub::Generate(MacroAssembler* masm) { |
745 switch (elements_kind()) { | 754 switch (elements_kind()) { |
746 case FAST_ELEMENTS: | 755 case FAST_ELEMENTS: |
747 case FAST_HOLEY_ELEMENTS: | 756 case FAST_HOLEY_ELEMENTS: |
748 case FAST_SMI_ELEMENTS: | 757 case FAST_SMI_ELEMENTS: |
749 case FAST_HOLEY_SMI_ELEMENTS: | 758 case FAST_HOLEY_SMI_ELEMENTS: |
750 case FAST_DOUBLE_ELEMENTS: | 759 case FAST_DOUBLE_ELEMENTS: |
751 case FAST_HOLEY_DOUBLE_ELEMENTS: | 760 case FAST_HOLEY_DOUBLE_ELEMENTS: |
752 #define TYPED_ARRAY_CASE(Type, type, TYPE, ctype, size) \ | 761 #define TYPED_ARRAY_CASE(Type, type, TYPE, ctype, size) \ |
753 case EXTERNAL_##TYPE##_ELEMENTS: \ | 762 case EXTERNAL_##TYPE##_ELEMENTS: \ |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
968 } | 977 } |
969 | 978 |
970 | 979 |
971 InternalArrayConstructorStub::InternalArrayConstructorStub( | 980 InternalArrayConstructorStub::InternalArrayConstructorStub( |
972 Isolate* isolate) : PlatformCodeStub(isolate) { | 981 Isolate* isolate) : PlatformCodeStub(isolate) { |
973 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); | 982 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); |
974 } | 983 } |
975 | 984 |
976 | 985 |
977 } } // namespace v8::internal | 986 } } // namespace v8::internal |
OLD | NEW |