Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: src/code-stubs.cc

Issue 726693004: Re-land r25392 Use a stub in crankshaft for grow store arrays. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix. Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/code-stubs.h ('k') | src/code-stubs-hydrogen.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/code-stubs-hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698