| 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |