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

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

Issue 443963002: Always use the StoreFieldStub to do the actual storing. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 months 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 | Annotate | Revision Log
« no previous file with comments | « src/code-stubs.h ('k') | src/ia32/stub-cache-ia32.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/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/bootstrapper.h" 7 #include "src/bootstrapper.h"
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/cpu-profiler.h" 9 #include "src/cpu-profiler.h"
10 #include "src/factory.h" 10 #include "src/factory.h"
(...skipping 919 matching lines...) Expand 10 before | Expand all | Expand 10 after
930 } 930 }
931 931
932 932
933 // static 933 // static
934 void KeyedLoadGenericStub::InstallDescriptors(Isolate* isolate) { 934 void KeyedLoadGenericStub::InstallDescriptors(Isolate* isolate) {
935 KeyedLoadGenericStub stub(isolate); 935 KeyedLoadGenericStub stub(isolate);
936 InstallDescriptor(isolate, &stub); 936 InstallDescriptor(isolate, &stub);
937 } 937 }
938 938
939 939
940 // static
941 void StoreFieldStub::InstallDescriptors(Isolate* isolate) {
942 StoreFieldStub stub(isolate, FieldIndex::ForInObjectOffset(0),
943 Representation::None());
944 InstallDescriptor(isolate, &stub);
945 }
946
947
940 ArrayConstructorStub::ArrayConstructorStub(Isolate* isolate) 948 ArrayConstructorStub::ArrayConstructorStub(Isolate* isolate)
941 : PlatformCodeStub(isolate), argument_count_(ANY) { 949 : PlatformCodeStub(isolate), argument_count_(ANY) {
942 ArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); 950 ArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate);
943 } 951 }
944 952
945 953
946 ArrayConstructorStub::ArrayConstructorStub(Isolate* isolate, 954 ArrayConstructorStub::ArrayConstructorStub(Isolate* isolate,
947 int argument_count) 955 int argument_count)
948 : PlatformCodeStub(isolate) { 956 : PlatformCodeStub(isolate) {
949 if (argument_count == 0) { 957 if (argument_count == 0) {
(...skipping 18 matching lines...) Expand all
968 InstallDescriptor(isolate, &stub3); 976 InstallDescriptor(isolate, &stub3);
969 } 977 }
970 978
971 InternalArrayConstructorStub::InternalArrayConstructorStub( 979 InternalArrayConstructorStub::InternalArrayConstructorStub(
972 Isolate* isolate) : PlatformCodeStub(isolate) { 980 Isolate* isolate) : PlatformCodeStub(isolate) {
973 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); 981 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate);
974 } 982 }
975 983
976 984
977 } } // namespace v8::internal 985 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/ia32/stub-cache-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698