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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 | 81 |
82 // static | 82 // static |
83 Callable CodeFactory::KeyedLoadICInOptimizedCode(Isolate* isolate) { | 83 Callable CodeFactory::KeyedLoadICInOptimizedCode(Isolate* isolate) { |
84 return Callable(isolate->builtins()->KeyedLoadIC(), | 84 return Callable(isolate->builtins()->KeyedLoadIC(), |
85 LoadWithVectorDescriptor(isolate)); | 85 LoadWithVectorDescriptor(isolate)); |
86 } | 86 } |
87 | 87 |
88 // static | 88 // static |
89 Callable CodeFactory::CallIC(Isolate* isolate, ConvertReceiverMode mode, | 89 Callable CodeFactory::CallIC(Isolate* isolate, ConvertReceiverMode mode, |
90 TailCallMode tail_call_mode) { | 90 TailCallMode tail_call_mode) { |
91 CallICStub stub(isolate, CallICState(mode, tail_call_mode)); | 91 CallICStub stub(isolate, mode, tail_call_mode); |
92 return make_callable(stub); | 92 return make_callable(stub); |
93 } | 93 } |
94 | 94 |
95 // static | 95 // static |
96 Callable CodeFactory::CallICTrampoline(Isolate* isolate, | 96 Callable CodeFactory::CallICTrampoline(Isolate* isolate, |
97 ConvertReceiverMode mode, | 97 ConvertReceiverMode mode, |
98 TailCallMode tail_call_mode) { | 98 TailCallMode tail_call_mode) { |
99 CallICTrampolineStub stub(isolate, CallICState(mode, tail_call_mode)); | 99 CallICTrampolineStub stub(isolate, mode, tail_call_mode); |
100 return make_callable(stub); | 100 return make_callable(stub); |
101 } | 101 } |
102 | 102 |
103 // static | 103 // static |
104 Callable CodeFactory::StoreIC(Isolate* isolate, LanguageMode language_mode) { | 104 Callable CodeFactory::StoreIC(Isolate* isolate, LanguageMode language_mode) { |
105 return Callable(language_mode == STRICT | 105 return Callable(language_mode == STRICT |
106 ? isolate->builtins()->StoreICStrictTrampoline() | 106 ? isolate->builtins()->StoreICStrictTrampoline() |
107 : isolate->builtins()->StoreICTrampoline(), | 107 : isolate->builtins()->StoreICTrampoline(), |
108 StoreDescriptor(isolate)); | 108 StoreDescriptor(isolate)); |
109 } | 109 } |
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
475 } | 475 } |
476 | 476 |
477 // static | 477 // static |
478 Callable CodeFactory::FunctionPrototypeBind(Isolate* isolate) { | 478 Callable CodeFactory::FunctionPrototypeBind(Isolate* isolate) { |
479 return Callable(isolate->builtins()->FunctionPrototypeBind(), | 479 return Callable(isolate->builtins()->FunctionPrototypeBind(), |
480 BuiltinDescriptor(isolate)); | 480 BuiltinDescriptor(isolate)); |
481 } | 481 } |
482 | 482 |
483 } // namespace internal | 483 } // namespace internal |
484 } // namespace v8 | 484 } // namespace v8 |
OLD | NEW |