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

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

Issue 2413653003: [stubs] Drop StoreICStub and StoreICTrampolineStub (the non-TurboFan implementations of StoreIC dis… (Closed)
Patch Set: Created 4 years, 2 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/code-stubs-arm64.cc ('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/code-factory.h" 5 #include "src/code-factory.h"
6 6
7 #include "src/bootstrapper.h" 7 #include "src/bootstrapper.h"
8 #include "src/ic/ic.h" 8 #include "src/ic/ic.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 // static 93 // static
94 Callable CodeFactory::CallICInOptimizedCode(Isolate* isolate, int argc, 94 Callable CodeFactory::CallICInOptimizedCode(Isolate* isolate, int argc,
95 ConvertReceiverMode mode, 95 ConvertReceiverMode mode,
96 TailCallMode tail_call_mode) { 96 TailCallMode tail_call_mode) {
97 CallICStub stub(isolate, CallICState(argc, mode, tail_call_mode)); 97 CallICStub stub(isolate, CallICState(argc, mode, tail_call_mode));
98 return make_callable(stub); 98 return make_callable(stub);
99 } 99 }
100 100
101 // static 101 // static
102 Callable CodeFactory::StoreIC(Isolate* isolate, LanguageMode language_mode) { 102 Callable CodeFactory::StoreIC(Isolate* isolate, LanguageMode language_mode) {
103 if (FLAG_tf_store_ic_stub) { 103 StoreICTrampolineTFStub stub(isolate, StoreICState(language_mode));
104 StoreICTrampolineTFStub stub(isolate, StoreICState(language_mode));
105 return make_callable(stub);
106 }
107 StoreICTrampolineStub stub(isolate, StoreICState(language_mode));
108 return make_callable(stub); 104 return make_callable(stub);
109 } 105 }
110 106
111 // static 107 // static
112 Callable CodeFactory::StoreICInOptimizedCode(Isolate* isolate, 108 Callable CodeFactory::StoreICInOptimizedCode(Isolate* isolate,
113 LanguageMode language_mode) { 109 LanguageMode language_mode) {
114 if (FLAG_tf_store_ic_stub) { 110 StoreICTFStub stub(isolate, StoreICState(language_mode));
115 StoreICTFStub stub(isolate, StoreICState(language_mode));
116 return make_callable(stub);
117 }
118 StoreICStub stub(isolate, StoreICState(language_mode));
119 return make_callable(stub); 111 return make_callable(stub);
120 } 112 }
121 113
122 // static 114 // static
123 Callable CodeFactory::KeyedStoreIC(Isolate* isolate, 115 Callable CodeFactory::KeyedStoreIC(Isolate* isolate,
124 LanguageMode language_mode) { 116 LanguageMode language_mode) {
125 KeyedStoreICTrampolineStub stub(isolate, StoreICState(language_mode)); 117 KeyedStoreICTrampolineStub stub(isolate, StoreICState(language_mode));
126 return make_callable(stub); 118 return make_callable(stub);
127 } 119 }
128 120
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 } 490 }
499 491
500 // static 492 // static
501 Callable CodeFactory::InterpreterOnStackReplacement(Isolate* isolate) { 493 Callable CodeFactory::InterpreterOnStackReplacement(Isolate* isolate) {
502 return Callable(isolate->builtins()->InterpreterOnStackReplacement(), 494 return Callable(isolate->builtins()->InterpreterOnStackReplacement(),
503 ContextOnlyDescriptor(isolate)); 495 ContextOnlyDescriptor(isolate));
504 } 496 }
505 497
506 } // namespace internal 498 } // namespace internal
507 } // namespace v8 499 } // namespace v8
OLDNEW
« no previous file with comments | « src/arm64/code-stubs-arm64.cc ('k') | src/code-stubs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698