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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 DivideStub stub(isolate); | 232 DivideStub stub(isolate); |
233 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 233 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
234 } | 234 } |
235 | 235 |
236 // static | 236 // static |
237 Callable CodeFactory::Modulus(Isolate* isolate) { | 237 Callable CodeFactory::Modulus(Isolate* isolate) { |
238 ModulusStub stub(isolate); | 238 ModulusStub stub(isolate); |
239 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 239 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
240 } | 240 } |
241 | 241 |
242 // static | |
243 Callable CodeFactory::ShiftRight(Isolate* isolate) { | |
244 ShiftRightStub stub(isolate); | |
245 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | |
246 } | |
247 | |
248 // static | |
249 Callable CodeFactory::ShiftRightLogical(Isolate* isolate) { | |
250 ShiftRightLogicalStub stub(isolate); | |
251 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | |
252 } | |
253 | |
254 // static | |
255 Callable CodeFactory::ShiftLeft(Isolate* isolate) { | |
256 ShiftLeftStub stub(isolate); | |
257 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | |
258 } | |
259 | |
260 // static | 242 // static |
261 Callable CodeFactory::BitwiseAnd(Isolate* isolate) { | 243 Callable CodeFactory::BitwiseAnd(Isolate* isolate) { |
262 BitwiseAndStub stub(isolate); | 244 BitwiseAndStub stub(isolate); |
263 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 245 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
264 } | 246 } |
265 | 247 |
266 // static | 248 // static |
267 Callable CodeFactory::BitwiseOr(Isolate* isolate) { | 249 Callable CodeFactory::BitwiseOr(Isolate* isolate) { |
268 BitwiseOrStub stub(isolate); | 250 BitwiseOrStub stub(isolate); |
269 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 251 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
563 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); | 545 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); |
564 } | 546 } |
565 | 547 |
566 Callable CodeFactory::AtomicsLoad(Isolate* isolate) { | 548 Callable CodeFactory::AtomicsLoad(Isolate* isolate) { |
567 AtomicsLoadStub stub(isolate); | 549 AtomicsLoadStub stub(isolate); |
568 return Callable(stub.GetCode(), AtomicsLoadDescriptor(isolate)); | 550 return Callable(stub.GetCode(), AtomicsLoadDescriptor(isolate)); |
569 } | 551 } |
570 | 552 |
571 } // namespace internal | 553 } // namespace internal |
572 } // namespace v8 | 554 } // namespace v8 |
OLD | NEW |