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 StoreICTrampolineTFStub stub(isolate, StoreICState(language_mode)); | 103 StoreICTrampolineStub stub(isolate, StoreICState(language_mode)); |
104 return make_callable(stub); | 104 return make_callable(stub); |
105 } | 105 } |
106 | 106 |
107 // static | 107 // static |
108 Callable CodeFactory::StoreICInOptimizedCode(Isolate* isolate, | 108 Callable CodeFactory::StoreICInOptimizedCode(Isolate* isolate, |
109 LanguageMode language_mode) { | 109 LanguageMode language_mode) { |
110 StoreICTFStub stub(isolate, StoreICState(language_mode)); | 110 StoreICStub stub(isolate, StoreICState(language_mode)); |
111 return make_callable(stub); | 111 return make_callable(stub); |
112 } | 112 } |
113 | 113 |
114 // static | 114 // static |
115 Callable CodeFactory::KeyedStoreIC(Isolate* isolate, | 115 Callable CodeFactory::KeyedStoreIC(Isolate* isolate, |
116 LanguageMode language_mode) { | 116 LanguageMode language_mode) { |
117 KeyedStoreICTrampolineStub stub(isolate, StoreICState(language_mode)); | 117 KeyedStoreICTrampolineStub stub(isolate, StoreICState(language_mode)); |
118 return make_callable(stub); | 118 return make_callable(stub); |
119 } | 119 } |
120 | 120 |
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
490 } | 490 } |
491 | 491 |
492 // static | 492 // static |
493 Callable CodeFactory::InterpreterOnStackReplacement(Isolate* isolate) { | 493 Callable CodeFactory::InterpreterOnStackReplacement(Isolate* isolate) { |
494 return Callable(isolate->builtins()->InterpreterOnStackReplacement(), | 494 return Callable(isolate->builtins()->InterpreterOnStackReplacement(), |
495 ContextOnlyDescriptor(isolate)); | 495 ContextOnlyDescriptor(isolate)); |
496 } | 496 } |
497 | 497 |
498 } // namespace internal | 498 } // namespace internal |
499 } // namespace v8 | 499 } // namespace v8 |
OLD | NEW |