| 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 // static | 101 // static |
| 102 Callable CodeFactory::CallICInOptimizedCode(Isolate* isolate, int argc, | 102 Callable CodeFactory::CallICInOptimizedCode(Isolate* isolate, int argc, |
| 103 ConvertReceiverMode mode, | 103 ConvertReceiverMode mode, |
| 104 TailCallMode tail_call_mode) { | 104 TailCallMode tail_call_mode) { |
| 105 CallICStub stub(isolate, CallICState(argc, mode, tail_call_mode)); | 105 CallICStub stub(isolate, CallICState(argc, mode, tail_call_mode)); |
| 106 return make_callable(stub); | 106 return make_callable(stub); |
| 107 } | 107 } |
| 108 | 108 |
| 109 // static | 109 // static |
| 110 Callable CodeFactory::StoreIC(Isolate* isolate, LanguageMode language_mode) { | 110 Callable CodeFactory::StoreIC(Isolate* isolate, LanguageMode language_mode) { |
| 111 if (FLAG_tf_store_ic_stub) { |
| 112 StoreICTrampolineTFStub stub(isolate, StoreICState(language_mode)); |
| 113 return make_callable(stub); |
| 114 } |
| 111 StoreICTrampolineStub stub(isolate, StoreICState(language_mode)); | 115 StoreICTrampolineStub stub(isolate, StoreICState(language_mode)); |
| 112 return make_callable(stub); | 116 return make_callable(stub); |
| 113 } | 117 } |
| 114 | 118 |
| 115 // static | 119 // static |
| 116 Callable CodeFactory::StoreICInOptimizedCode(Isolate* isolate, | 120 Callable CodeFactory::StoreICInOptimizedCode(Isolate* isolate, |
| 117 LanguageMode language_mode) { | 121 LanguageMode language_mode) { |
| 122 if (FLAG_tf_store_ic_stub) { |
| 123 StoreICTFStub stub(isolate, StoreICState(language_mode)); |
| 124 return make_callable(stub); |
| 125 } |
| 118 StoreICStub stub(isolate, StoreICState(language_mode)); | 126 StoreICStub stub(isolate, StoreICState(language_mode)); |
| 119 return make_callable(stub); | 127 return make_callable(stub); |
| 120 } | 128 } |
| 121 | 129 |
| 122 // static | 130 // static |
| 123 Callable CodeFactory::KeyedStoreIC(Isolate* isolate, | 131 Callable CodeFactory::KeyedStoreIC(Isolate* isolate, |
| 124 LanguageMode language_mode) { | 132 LanguageMode language_mode) { |
| 125 KeyedStoreICTrampolineStub stub(isolate, StoreICState(language_mode)); | 133 KeyedStoreICTrampolineStub stub(isolate, StoreICState(language_mode)); |
| 126 return make_callable(stub); | 134 return make_callable(stub); |
| 127 } | 135 } |
| (...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 620 } | 628 } |
| 621 | 629 |
| 622 // static | 630 // static |
| 623 Callable CodeFactory::InterpreterOnStackReplacement(Isolate* isolate) { | 631 Callable CodeFactory::InterpreterOnStackReplacement(Isolate* isolate) { |
| 624 return Callable(isolate->builtins()->InterpreterOnStackReplacement(), | 632 return Callable(isolate->builtins()->InterpreterOnStackReplacement(), |
| 625 ContextOnlyDescriptor(isolate)); | 633 ContextOnlyDescriptor(isolate)); |
| 626 } | 634 } |
| 627 | 635 |
| 628 } // namespace internal | 636 } // namespace internal |
| 629 } // namespace v8 | 637 } // namespace v8 |
| OLD | NEW |