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 715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
726 CodeStubDescriptor* descriptor) { | 726 CodeStubDescriptor* descriptor) { |
727 descriptor->Initialize(FUNCTION_ADDR(BinaryOpIC_MissWithAllocationSite)); | 727 descriptor->Initialize(FUNCTION_ADDR(BinaryOpIC_MissWithAllocationSite)); |
728 } | 728 } |
729 | 729 |
730 | 730 |
731 void StringAddStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { | 731 void StringAddStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { |
732 descriptor->Initialize(Runtime::FunctionForId(Runtime::kStringAdd)->entry); | 732 descriptor->Initialize(Runtime::FunctionForId(Runtime::kStringAdd)->entry); |
733 } | 733 } |
734 | 734 |
735 | 735 |
736 void GrowArrayElementsStub::InitializeDescriptor( | |
737 CodeStubDescriptor* descriptor) { | |
738 descriptor->Initialize( | |
739 Runtime::FunctionForId(Runtime::kGrowArrayElements)->entry); | |
740 } | |
741 | |
742 | |
743 void CreateAllocationSiteStub::GenerateAheadOfTime(Isolate* isolate) { | 736 void CreateAllocationSiteStub::GenerateAheadOfTime(Isolate* isolate) { |
744 CreateAllocationSiteStub stub(isolate); | 737 CreateAllocationSiteStub stub(isolate); |
745 stub.GetCode(); | 738 stub.GetCode(); |
746 } | 739 } |
747 | 740 |
748 | 741 |
749 void StoreElementStub::Generate(MacroAssembler* masm) { | 742 void StoreElementStub::Generate(MacroAssembler* masm) { |
750 switch (elements_kind()) { | 743 switch (elements_kind()) { |
751 case FAST_ELEMENTS: | 744 case FAST_ELEMENTS: |
752 case FAST_HOLEY_ELEMENTS: | 745 case FAST_HOLEY_ELEMENTS: |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
973 } | 966 } |
974 | 967 |
975 | 968 |
976 InternalArrayConstructorStub::InternalArrayConstructorStub( | 969 InternalArrayConstructorStub::InternalArrayConstructorStub( |
977 Isolate* isolate) : PlatformCodeStub(isolate) { | 970 Isolate* isolate) : PlatformCodeStub(isolate) { |
978 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); | 971 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); |
979 } | 972 } |
980 | 973 |
981 | 974 |
982 } } // namespace v8::internal | 975 } } // namespace v8::internal |
OLD | NEW |