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/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/bootstrapper.h" | 7 #include "src/bootstrapper.h" |
8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
9 #include "src/ic/ic.h" | 9 #include "src/ic/ic.h" |
10 | 10 |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 | 132 |
133 // static | 133 // static |
134 Callable CodeFactory::BinaryOpIC(Isolate* isolate, Token::Value op, | 134 Callable CodeFactory::BinaryOpIC(Isolate* isolate, Token::Value op, |
135 Strength strength) { | 135 Strength strength) { |
136 BinaryOpICStub stub(isolate, op, strength); | 136 BinaryOpICStub stub(isolate, op, strength); |
137 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 137 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
138 } | 138 } |
139 | 139 |
140 | 140 |
141 // static | 141 // static |
| 142 Callable CodeFactory::LoadGlobalViaContext(Isolate* isolate, int depth) { |
| 143 LoadGlobalViaContextStub stub(isolate, depth); |
| 144 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 145 } |
| 146 |
| 147 |
| 148 // static |
| 149 Callable CodeFactory::StoreGlobalViaContext(Isolate* isolate, int depth, |
| 150 LanguageMode language_mode) { |
| 151 StoreGlobalViaContextStub stub(isolate, depth, language_mode); |
| 152 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 153 } |
| 154 |
| 155 |
| 156 // static |
142 Callable CodeFactory::Instanceof(Isolate* isolate, | 157 Callable CodeFactory::Instanceof(Isolate* isolate, |
143 InstanceofStub::Flags flags) { | 158 InstanceofStub::Flags flags) { |
144 InstanceofStub stub(isolate, flags); | 159 InstanceofStub stub(isolate, flags); |
145 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 160 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
146 } | 161 } |
147 | 162 |
148 | 163 |
149 // static | 164 // static |
150 Callable CodeFactory::ToBoolean(Isolate* isolate, | 165 Callable CodeFactory::ToBoolean(Isolate* isolate, |
151 ToBooleanStub::ResultMode mode, | 166 ToBooleanStub::ResultMode mode, |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 | 225 |
211 // static | 226 // static |
212 Callable CodeFactory::CallFunction(Isolate* isolate, int argc, | 227 Callable CodeFactory::CallFunction(Isolate* isolate, int argc, |
213 CallFunctionFlags flags) { | 228 CallFunctionFlags flags) { |
214 CallFunctionStub stub(isolate, argc, flags); | 229 CallFunctionStub stub(isolate, argc, flags); |
215 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 230 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
216 } | 231 } |
217 | 232 |
218 } // namespace internal | 233 } // namespace internal |
219 } // namespace v8 | 234 } // namespace v8 |
OLD | NEW |