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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 269 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
270 } | 270 } |
271 | 271 |
272 // static | 272 // static |
273 Callable CodeFactory::BitwiseXor(Isolate* isolate) { | 273 Callable CodeFactory::BitwiseXor(Isolate* isolate) { |
274 BitwiseXorStub stub(isolate); | 274 BitwiseXorStub stub(isolate); |
275 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 275 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
276 } | 276 } |
277 | 277 |
278 // static | 278 // static |
| 279 Callable CodeFactory::Inc(Isolate* isolate) { |
| 280 IncStub stub(isolate); |
| 281 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 282 } |
| 283 |
| 284 // static |
| 285 Callable CodeFactory::Dec(Isolate* isolate) { |
| 286 DecStub stub(isolate); |
| 287 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 288 } |
| 289 |
| 290 // static |
279 Callable CodeFactory::LessThan(Isolate* isolate) { | 291 Callable CodeFactory::LessThan(Isolate* isolate) { |
280 LessThanStub stub(isolate); | 292 LessThanStub stub(isolate); |
281 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 293 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
282 } | 294 } |
283 | 295 |
284 // static | 296 // static |
285 Callable CodeFactory::LessThanOrEqual(Isolate* isolate) { | 297 Callable CodeFactory::LessThanOrEqual(Isolate* isolate) { |
286 LessThanOrEqualStub stub(isolate); | 298 LessThanOrEqualStub stub(isolate); |
287 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 299 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
288 } | 300 } |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
558 // static | 570 // static |
559 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) { | 571 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) { |
560 // Note: If we ever use fpregs in the interpreter then we will need to | 572 // Note: If we ever use fpregs in the interpreter then we will need to |
561 // save fpregs too. | 573 // save fpregs too. |
562 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister); | 574 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister); |
563 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); | 575 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); |
564 } | 576 } |
565 | 577 |
566 } // namespace internal | 578 } // namespace internal |
567 } // namespace v8 | 579 } // namespace v8 |
OLD | NEW |