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

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

Issue 1060263003: Revert of VectorICs: megamorphic keyed loads in crankshaft don't need a vector. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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/ia32/lithium-codegen-ia32.cc ('k') | src/mips/lithium-codegen-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 987 matching lines...) Expand 10 before | Expand all | Expand 10 after
998 if (FLAG_vector_ics) { 998 if (FLAG_vector_ics) {
999 return KeyedLoadICTrampolineStub(isolate).GetCode(); 999 return KeyedLoadICTrampolineStub(isolate).GetCode();
1000 } 1000 }
1001 1001
1002 return isolate->builtins()->KeyedLoadIC_Initialize(); 1002 return isolate->builtins()->KeyedLoadIC_Initialize();
1003 } 1003 }
1004 1004
1005 1005
1006 Handle<Code> KeyedLoadIC::initialize_stub_in_optimized_code( 1006 Handle<Code> KeyedLoadIC::initialize_stub_in_optimized_code(
1007 Isolate* isolate, State initialization_state) { 1007 Isolate* isolate, State initialization_state) {
1008 if (FLAG_vector_ics && initialization_state != MEGAMORPHIC) { 1008 if (FLAG_vector_ics) {
1009 return VectorRawKeyedLoadStub(isolate).GetCode(); 1009 return VectorRawKeyedLoadStub(isolate).GetCode();
1010 } 1010 }
1011 switch (initialization_state) { 1011 switch (initialization_state) {
1012 case UNINITIALIZED: 1012 case UNINITIALIZED:
1013 return isolate->builtins()->KeyedLoadIC_Initialize(); 1013 return isolate->builtins()->KeyedLoadIC_Initialize();
1014 case PREMONOMORPHIC: 1014 case PREMONOMORPHIC:
1015 return isolate->builtins()->KeyedLoadIC_PreMonomorphic(); 1015 return isolate->builtins()->KeyedLoadIC_PreMonomorphic();
1016 case MEGAMORPHIC: 1016 case MEGAMORPHIC:
1017 return isolate->builtins()->KeyedLoadIC_Megamorphic(); 1017 return isolate->builtins()->KeyedLoadIC_Megamorphic();
1018 default: 1018 default:
(...skipping 2026 matching lines...) Expand 10 before | Expand all | Expand 10 after
3045 static const Address IC_utilities[] = { 3045 static const Address IC_utilities[] = {
3046 #define ADDR(name) FUNCTION_ADDR(name), 3046 #define ADDR(name) FUNCTION_ADDR(name),
3047 IC_UTIL_LIST(ADDR) NULL 3047 IC_UTIL_LIST(ADDR) NULL
3048 #undef ADDR 3048 #undef ADDR
3049 }; 3049 };
3050 3050
3051 3051
3052 Address IC::AddressFromUtilityId(IC::UtilityId id) { return IC_utilities[id]; } 3052 Address IC::AddressFromUtilityId(IC::UtilityId id) { return IC_utilities[id]; }
3053 } 3053 }
3054 } // namespace v8::internal 3054 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698