OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |