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

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

Issue 504183002: Remove dead code from LookupResult (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Install the LoadFastElementStub descriptor and addressed comments Created 6 years, 3 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/field-index.h » ('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 976 matching lines...) Expand 10 before | Expand all | Expand 10 after
987 987
988 988
989 // static 989 // static
990 void StoreFieldStub::InstallDescriptors(Isolate* isolate) { 990 void StoreFieldStub::InstallDescriptors(Isolate* isolate) {
991 StoreFieldStub stub(isolate, FieldIndex::ForInObjectOffset(0), 991 StoreFieldStub stub(isolate, FieldIndex::ForInObjectOffset(0),
992 Representation::None()); 992 Representation::None());
993 InstallDescriptor(isolate, &stub); 993 InstallDescriptor(isolate, &stub);
994 } 994 }
995 995
996 996
997 // static
998 void LoadFastElementStub::InstallDescriptors(Isolate* isolate) {
999 LoadFastElementStub stub(isolate, true, FAST_ELEMENTS);
1000 InstallDescriptor(isolate, &stub);
1001 }
1002
1003
997 ArrayConstructorStub::ArrayConstructorStub(Isolate* isolate) 1004 ArrayConstructorStub::ArrayConstructorStub(Isolate* isolate)
998 : PlatformCodeStub(isolate) { 1005 : PlatformCodeStub(isolate) {
999 minor_key_ = ArgumentCountBits::encode(ANY); 1006 minor_key_ = ArgumentCountBits::encode(ANY);
1000 ArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); 1007 ArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate);
1001 } 1008 }
1002 1009
1003 1010
1004 ArrayConstructorStub::ArrayConstructorStub(Isolate* isolate, 1011 ArrayConstructorStub::ArrayConstructorStub(Isolate* isolate,
1005 int argument_count) 1012 int argument_count)
1006 : PlatformCodeStub(isolate) { 1013 : PlatformCodeStub(isolate) {
(...skipping 19 matching lines...) Expand all
1026 InstallDescriptor(isolate, &stub3); 1033 InstallDescriptor(isolate, &stub3);
1027 } 1034 }
1028 1035
1029 InternalArrayConstructorStub::InternalArrayConstructorStub( 1036 InternalArrayConstructorStub::InternalArrayConstructorStub(
1030 Isolate* isolate) : PlatformCodeStub(isolate) { 1037 Isolate* isolate) : PlatformCodeStub(isolate) {
1031 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); 1038 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate);
1032 } 1039 }
1033 1040
1034 1041
1035 } } // namespace v8::internal 1042 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/field-index.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698