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 |
736 void CreateAllocationSiteStub::GenerateAheadOfTime(Isolate* isolate) { | 743 void CreateAllocationSiteStub::GenerateAheadOfTime(Isolate* isolate) { |
737 CreateAllocationSiteStub stub(isolate); | 744 CreateAllocationSiteStub stub(isolate); |
738 stub.GetCode(); | 745 stub.GetCode(); |
739 } | 746 } |
740 | 747 |
741 | 748 |
742 void StoreElementStub::Generate(MacroAssembler* masm) { | 749 void StoreElementStub::Generate(MacroAssembler* masm) { |
743 switch (elements_kind()) { | 750 switch (elements_kind()) { |
744 case FAST_ELEMENTS: | 751 case FAST_ELEMENTS: |
745 case FAST_HOLEY_ELEMENTS: | 752 case FAST_HOLEY_ELEMENTS: |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
966 } | 973 } |
967 | 974 |
968 | 975 |
969 InternalArrayConstructorStub::InternalArrayConstructorStub( | 976 InternalArrayConstructorStub::InternalArrayConstructorStub( |
970 Isolate* isolate) : PlatformCodeStub(isolate) { | 977 Isolate* isolate) : PlatformCodeStub(isolate) { |
971 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); | 978 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); |
972 } | 979 } |
973 | 980 |
974 | 981 |
975 } } // namespace v8::internal | 982 } } // namespace v8::internal |
OLD | NEW |