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

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

Issue 2523473002: [cleanup] Drop handwritten KeyedStoreIC code (Closed)
Patch Set: rebased Created 4 years, 1 month 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/builtins/builtins-handler.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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 // static 94 // static
95 Callable CodeFactory::StoreICInOptimizedCode(Isolate* isolate, 95 Callable CodeFactory::StoreICInOptimizedCode(Isolate* isolate,
96 LanguageMode language_mode) { 96 LanguageMode language_mode) {
97 StoreICStub stub(isolate, StoreICState(language_mode)); 97 StoreICStub stub(isolate, StoreICState(language_mode));
98 return make_callable(stub); 98 return make_callable(stub);
99 } 99 }
100 100
101 // static 101 // static
102 Callable CodeFactory::KeyedStoreIC(Isolate* isolate, 102 Callable CodeFactory::KeyedStoreIC(Isolate* isolate,
103 LanguageMode language_mode) { 103 LanguageMode language_mode) {
104 if (FLAG_tf_store_ic_stub) { 104 KeyedStoreICTrampolineTFStub stub(isolate, StoreICState(language_mode));
105 KeyedStoreICTrampolineTFStub stub(isolate, StoreICState(language_mode));
106 return make_callable(stub);
107 }
108 KeyedStoreICTrampolineStub stub(isolate, StoreICState(language_mode));
109 return make_callable(stub); 105 return make_callable(stub);
110 } 106 }
111 107
112 // static 108 // static
113 Callable CodeFactory::KeyedStoreICInOptimizedCode(Isolate* isolate, 109 Callable CodeFactory::KeyedStoreICInOptimizedCode(Isolate* isolate,
114 LanguageMode language_mode) { 110 LanguageMode language_mode) {
115 if (FLAG_tf_store_ic_stub) { 111 KeyedStoreICTFStub stub(isolate, StoreICState(language_mode));
116 KeyedStoreICTFStub stub(isolate, StoreICState(language_mode));
117 return make_callable(stub);
118 }
119 KeyedStoreICStub stub(isolate, StoreICState(language_mode));
120 return make_callable(stub); 112 return make_callable(stub);
121 } 113 }
122 114
123 // static 115 // static
124 Callable CodeFactory::KeyedStoreIC_Megamorphic(Isolate* isolate, 116 Callable CodeFactory::KeyedStoreIC_Megamorphic(Isolate* isolate,
125 LanguageMode language_mode) { 117 LanguageMode language_mode) {
126 if (FLAG_tf_store_ic_stub) { 118 return Callable(
127 return Callable( 119 language_mode == STRICT
128 language_mode == STRICT 120 ? isolate->builtins()->KeyedStoreIC_Megamorphic_Strict_TF()
129 ? isolate->builtins()->KeyedStoreIC_Megamorphic_Strict_TF() 121 : isolate->builtins()->KeyedStoreIC_Megamorphic_TF(),
130 : isolate->builtins()->KeyedStoreIC_Megamorphic_TF(), 122 StoreWithVectorDescriptor(isolate));
131 StoreWithVectorDescriptor(isolate));
132 }
133 return Callable(language_mode == STRICT
134 ? isolate->builtins()->KeyedStoreIC_Megamorphic_Strict()
135 : isolate->builtins()->KeyedStoreIC_Megamorphic(),
136 StoreWithVectorDescriptor(isolate));
137 } 123 }
138 124
139 // static 125 // static
140 Callable CodeFactory::CompareIC(Isolate* isolate, Token::Value op) { 126 Callable CodeFactory::CompareIC(Isolate* isolate, Token::Value op) {
141 CompareICStub stub(isolate, op); 127 CompareICStub stub(isolate, op);
142 return make_callable(stub); 128 return make_callable(stub);
143 } 129 }
144 130
145 // static 131 // static
146 Callable CodeFactory::BinaryOpIC(Isolate* isolate, Token::Value op) { 132 Callable CodeFactory::BinaryOpIC(Isolate* isolate, Token::Value op) {
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 } 490 }
505 491
506 // static 492 // static
507 Callable CodeFactory::InterpreterOnStackReplacement(Isolate* isolate) { 493 Callable CodeFactory::InterpreterOnStackReplacement(Isolate* isolate) {
508 return Callable(isolate->builtins()->InterpreterOnStackReplacement(), 494 return Callable(isolate->builtins()->InterpreterOnStackReplacement(),
509 ContextOnlyDescriptor(isolate)); 495 ContextOnlyDescriptor(isolate));
510 } 496 }
511 497
512 } // namespace internal 498 } // namespace internal
513 } // namespace v8 499 } // namespace v8
OLDNEW
« no previous file with comments | « src/builtins/builtins-handler.cc ('k') | src/code-stubs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698