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

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

Issue 2444353002: [stubs] Port KeyedStoreIC_Megamorphic stub to Turbofan (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
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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 KeyedStoreICTFStub stub(isolate, StoreICState(language_mode)); 116 KeyedStoreICTFStub stub(isolate, StoreICState(language_mode));
117 return make_callable(stub); 117 return make_callable(stub);
118 } 118 }
119 KeyedStoreICStub stub(isolate, StoreICState(language_mode)); 119 KeyedStoreICStub stub(isolate, StoreICState(language_mode));
120 return make_callable(stub); 120 return make_callable(stub);
121 } 121 }
122 122
123 // static 123 // static
124 Callable CodeFactory::KeyedStoreIC_Megamorphic(Isolate* isolate, 124 Callable CodeFactory::KeyedStoreIC_Megamorphic(Isolate* isolate,
125 LanguageMode language_mode) { 125 LanguageMode language_mode) {
126 if (FLAG_tf_store_ic_stub) {
127 return Callable(
128 language_mode == STRICT
129 ? isolate->builtins()->KeyedStoreIC_Megamorphic_Strict_TF()
130 : isolate->builtins()->KeyedStoreIC_Megamorphic_TF(),
131 StoreWithVectorDescriptor(isolate));
132 }
126 return Callable(language_mode == STRICT 133 return Callable(language_mode == STRICT
127 ? isolate->builtins()->KeyedStoreIC_Megamorphic_Strict() 134 ? isolate->builtins()->KeyedStoreIC_Megamorphic_Strict()
128 : isolate->builtins()->KeyedStoreIC_Megamorphic(), 135 : isolate->builtins()->KeyedStoreIC_Megamorphic(),
129 StoreWithVectorDescriptor(isolate)); 136 StoreWithVectorDescriptor(isolate));
130 } 137 }
131 138
132 // static 139 // static
133 Callable CodeFactory::CompareIC(Isolate* isolate, Token::Value op) { 140 Callable CodeFactory::CompareIC(Isolate* isolate, Token::Value op) {
134 CompareICStub stub(isolate, op); 141 CompareICStub stub(isolate, op);
135 return make_callable(stub); 142 return make_callable(stub);
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 } 501 }
495 502
496 // static 503 // static
497 Callable CodeFactory::InterpreterOnStackReplacement(Isolate* isolate) { 504 Callable CodeFactory::InterpreterOnStackReplacement(Isolate* isolate) {
498 return Callable(isolate->builtins()->InterpreterOnStackReplacement(), 505 return Callable(isolate->builtins()->InterpreterOnStackReplacement(),
499 ContextOnlyDescriptor(isolate)); 506 ContextOnlyDescriptor(isolate));
500 } 507 }
501 508
502 } // namespace internal 509 } // namespace internal
503 } // namespace v8 510 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698