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

Side by Side Diff: src/ic/ic.cc

Issue 1144063002: Cleanup interface descriptors to reflect that vectors are part of loads. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixes for test failures. Created 5 years, 7 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
« no previous file with comments | « src/ic/ia32/stub-cache-ia32.cc ('k') | src/ic/mips/ic-mips.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/accessors.h" 7 #include "src/accessors.h"
8 #include "src/api.h" 8 #include "src/api.h"
9 #include "src/arguments.h" 9 #include "src/arguments.h"
10 #include "src/base/bits.h" 10 #include "src/base/bits.h"
(...skipping 904 matching lines...) Expand 10 before | Expand all | Expand 10 after
915 915
916 916
917 Handle<Code> LoadIC::initialize_stub(Isolate* isolate, 917 Handle<Code> LoadIC::initialize_stub(Isolate* isolate,
918 ExtraICState extra_state) { 918 ExtraICState extra_state) {
919 return LoadICTrampolineStub(isolate, LoadICState(extra_state)).GetCode(); 919 return LoadICTrampolineStub(isolate, LoadICState(extra_state)).GetCode();
920 } 920 }
921 921
922 922
923 Handle<Code> LoadIC::initialize_stub_in_optimized_code( 923 Handle<Code> LoadIC::initialize_stub_in_optimized_code(
924 Isolate* isolate, ExtraICState extra_state, State initialization_state) { 924 Isolate* isolate, ExtraICState extra_state, State initialization_state) {
925 return VectorRawLoadStub(isolate, LoadICState(extra_state)).GetCode(); 925 return LoadICStub(isolate, LoadICState(extra_state)).GetCode();
926 } 926 }
927 927
928 928
929 Handle<Code> KeyedLoadIC::initialize_stub(Isolate* isolate) { 929 Handle<Code> KeyedLoadIC::initialize_stub(Isolate* isolate) {
930 return KeyedLoadICTrampolineStub(isolate).GetCode(); 930 return KeyedLoadICTrampolineStub(isolate).GetCode();
931 } 931 }
932 932
933 933
934 Handle<Code> KeyedLoadIC::initialize_stub_in_optimized_code( 934 Handle<Code> KeyedLoadIC::initialize_stub_in_optimized_code(
935 Isolate* isolate, State initialization_state) { 935 Isolate* isolate, State initialization_state) {
936 if (initialization_state != MEGAMORPHIC) { 936 if (initialization_state != MEGAMORPHIC) {
937 return VectorRawKeyedLoadStub(isolate).GetCode(); 937 return KeyedLoadICStub(isolate).GetCode();
938 } 938 }
939 switch (initialization_state) { 939 switch (initialization_state) {
940 case UNINITIALIZED: 940 case UNINITIALIZED:
941 return isolate->builtins()->KeyedLoadIC_Initialize(); 941 return isolate->builtins()->KeyedLoadIC_Initialize();
942 case MEGAMORPHIC: 942 case MEGAMORPHIC:
943 return isolate->builtins()->KeyedLoadIC_Megamorphic(); 943 return isolate->builtins()->KeyedLoadIC_Megamorphic();
944 default: 944 default:
945 UNREACHABLE(); 945 UNREACHABLE();
946 } 946 }
947 return Handle<Code>(); 947 return Handle<Code>();
(...skipping 1963 matching lines...) Expand 10 before | Expand all | Expand 10 after
2911 static const Address IC_utilities[] = { 2911 static const Address IC_utilities[] = {
2912 #define ADDR(name) FUNCTION_ADDR(name), 2912 #define ADDR(name) FUNCTION_ADDR(name),
2913 IC_UTIL_LIST(ADDR) NULL 2913 IC_UTIL_LIST(ADDR) NULL
2914 #undef ADDR 2914 #undef ADDR
2915 }; 2915 };
2916 2916
2917 2917
2918 Address IC::AddressFromUtilityId(IC::UtilityId id) { return IC_utilities[id]; } 2918 Address IC::AddressFromUtilityId(IC::UtilityId id) { return IC_utilities[id]; }
2919 } 2919 }
2920 } // namespace v8::internal 2920 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ic/ia32/stub-cache-ia32.cc ('k') | src/ic/mips/ic-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698