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

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

Issue 871063002: Use a trampoline stub to load the type feedback vector for CallICs. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Ports. Created 5 years, 11 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/code-factory.h ('k') | src/code-stubs.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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 Callable CodeFactory::KeyedLoadICInOptimizedCode(Isolate* isolate) { 42 Callable CodeFactory::KeyedLoadICInOptimizedCode(Isolate* isolate) {
43 if (FLAG_vector_ics) { 43 if (FLAG_vector_ics) {
44 return Callable(KeyedLoadIC::initialize_stub_in_optimized_code(isolate), 44 return Callable(KeyedLoadIC::initialize_stub_in_optimized_code(isolate),
45 VectorLoadICDescriptor(isolate)); 45 VectorLoadICDescriptor(isolate));
46 } 46 }
47 return CodeFactory::KeyedLoadIC(isolate); 47 return CodeFactory::KeyedLoadIC(isolate);
48 } 48 }
49 49
50 50
51 // static 51 // static
52 Callable CodeFactory::CallIC(Isolate* isolate, int argc,
53 CallICState::CallType call_type) {
54 return Callable(CallIC::initialize_stub(isolate, argc, call_type),
55 CallFunctionWithFeedbackDescriptor(isolate));
56 }
57
58
59 // static
60 Callable CodeFactory::CallICInOptimizedCode(Isolate* isolate, int argc,
61 CallICState::CallType call_type) {
62 return Callable(
63 CallIC::initialize_stub_in_optimized_code(isolate, argc, call_type),
64 CallFunctionWithFeedbackAndVectorDescriptor(isolate));
65 }
66
67
68 // static
52 Callable CodeFactory::StoreIC(Isolate* isolate, StrictMode mode) { 69 Callable CodeFactory::StoreIC(Isolate* isolate, StrictMode mode) {
53 return Callable(StoreIC::initialize_stub(isolate, mode), 70 return Callable(StoreIC::initialize_stub(isolate, mode),
54 StoreDescriptor(isolate)); 71 StoreDescriptor(isolate));
55 } 72 }
56 73
57 74
58 // static 75 // static
59 Callable CodeFactory::KeyedStoreIC(Isolate* isolate, StrictMode mode) { 76 Callable CodeFactory::KeyedStoreIC(Isolate* isolate, StrictMode mode) {
60 Handle<Code> ic = mode == SLOPPY 77 Handle<Code> ic = mode == SLOPPY
61 ? isolate->builtins()->KeyedStoreIC_Initialize() 78 ? isolate->builtins()->KeyedStoreIC_Initialize()
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 129
113 // static 130 // static
114 Callable CodeFactory::CallFunction(Isolate* isolate, int argc, 131 Callable CodeFactory::CallFunction(Isolate* isolate, int argc,
115 CallFunctionFlags flags) { 132 CallFunctionFlags flags) {
116 CallFunctionStub stub(isolate, argc, flags); 133 CallFunctionStub stub(isolate, argc, flags);
117 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 134 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
118 } 135 }
119 136
120 } // namespace internal 137 } // namespace internal
121 } // namespace v8 138 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-factory.h ('k') | src/code-stubs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698