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

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

Issue 1067573003: VectorICs: megamorphic keyed loads in crankshaft don't need a vector. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Ports. 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/arm64/lithium-codegen-arm64.cc ('k') | src/hydrogen.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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-factory.h" 8 #include "src/code-factory.h"
9 #include "src/ic/ic.h" 9 #include "src/ic/ic.h"
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 return Callable(KeyedLoadIC::initialize_stub(isolate), 46 return Callable(KeyedLoadIC::initialize_stub(isolate),
47 LoadDescriptor(isolate)); 47 LoadDescriptor(isolate));
48 } 48 }
49 49
50 50
51 // static 51 // static
52 Callable CodeFactory::KeyedLoadICInOptimizedCode( 52 Callable CodeFactory::KeyedLoadICInOptimizedCode(
53 Isolate* isolate, InlineCacheState initialization_state) { 53 Isolate* isolate, InlineCacheState initialization_state) {
54 auto code = KeyedLoadIC::initialize_stub_in_optimized_code( 54 auto code = KeyedLoadIC::initialize_stub_in_optimized_code(
55 isolate, initialization_state); 55 isolate, initialization_state);
56 if (FLAG_vector_ics) { 56 if (FLAG_vector_ics && initialization_state != MEGAMORPHIC) {
57 return Callable(code, VectorLoadICDescriptor(isolate)); 57 return Callable(code, VectorLoadICDescriptor(isolate));
58 } 58 }
59 return Callable(code, LoadDescriptor(isolate)); 59 return Callable(code, LoadDescriptor(isolate));
60 } 60 }
61 61
62 62
63 // static 63 // static
64 Callable CodeFactory::CallIC(Isolate* isolate, int argc, 64 Callable CodeFactory::CallIC(Isolate* isolate, int argc,
65 CallICState::CallType call_type) { 65 CallICState::CallType call_type) {
66 return Callable(CallIC::initialize_stub(isolate, argc, call_type), 66 return Callable(CallIC::initialize_stub(isolate, argc, call_type),
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 151
152 // static 152 // static
153 Callable CodeFactory::CallFunction(Isolate* isolate, int argc, 153 Callable CodeFactory::CallFunction(Isolate* isolate, int argc,
154 CallFunctionFlags flags) { 154 CallFunctionFlags flags) {
155 CallFunctionStub stub(isolate, argc, flags); 155 CallFunctionStub stub(isolate, argc, flags);
156 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 156 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
157 } 157 }
158 158
159 } // namespace internal 159 } // namespace internal
160 } // namespace v8 160 } // namespace v8
OLDNEW
« no previous file with comments | « src/arm64/lithium-codegen-arm64.cc ('k') | src/hydrogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698