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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 242 // static |
| 243 Callable CodeFactory::SignedRightShift(Isolate* isolate) { |
| 244 SignedRightShiftStub stub(isolate); |
| 245 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 246 } |
| 247 |
| 248 // static |
| 249 Callable CodeFactory::UnsignedRightShift(Isolate* isolate) { |
| 250 UnsignedRightShiftStub stub(isolate); |
| 251 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 252 } |
| 253 |
| 254 // static |
| 255 Callable CodeFactory::LeftShift(Isolate* isolate) { |
| 256 LeftShiftStub stub(isolate); |
| 257 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 258 } |
| 259 |
| 260 // static |
243 Callable CodeFactory::BitwiseAnd(Isolate* isolate) { | 261 Callable CodeFactory::BitwiseAnd(Isolate* isolate) { |
244 BitwiseAndStub stub(isolate); | 262 BitwiseAndStub stub(isolate); |
245 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 263 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
246 } | 264 } |
247 | 265 |
248 // static | 266 // static |
249 Callable CodeFactory::BitwiseOr(Isolate* isolate) { | 267 Callable CodeFactory::BitwiseOr(Isolate* isolate) { |
250 BitwiseOrStub stub(isolate); | 268 BitwiseOrStub stub(isolate); |
251 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 269 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
252 } | 270 } |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
541 // static | 559 // static |
542 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) { | 560 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) { |
543 // Note: If we ever use fpregs in the interpreter then we will need to | 561 // Note: If we ever use fpregs in the interpreter then we will need to |
544 // save fpregs too. | 562 // save fpregs too. |
545 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister); | 563 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister); |
546 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); | 564 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); |
547 } | 565 } |
548 | 566 |
549 } // namespace internal | 567 } // namespace internal |
550 } // namespace v8 | 568 } // namespace v8 |
OLD | NEW |