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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 224 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
225 } | 225 } |
226 | 226 |
227 // static | 227 // static |
228 Callable CodeFactory::Multiply(Isolate* isolate) { | 228 Callable CodeFactory::Multiply(Isolate* isolate) { |
229 MultiplyStub stub(isolate); | 229 MultiplyStub stub(isolate); |
230 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 230 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
231 } | 231 } |
232 | 232 |
233 // static | 233 // static |
| 234 Callable CodeFactory::Divide(Isolate* isolate) { |
| 235 DivideStub stub(isolate); |
| 236 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 237 } |
| 238 |
| 239 // static |
234 Callable CodeFactory::BitwiseAnd(Isolate* isolate) { | 240 Callable CodeFactory::BitwiseAnd(Isolate* isolate) { |
235 BitwiseAndStub stub(isolate); | 241 BitwiseAndStub stub(isolate); |
236 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 242 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
237 } | 243 } |
238 | 244 |
239 // static | 245 // static |
240 Callable CodeFactory::BitwiseOr(Isolate* isolate) { | 246 Callable CodeFactory::BitwiseOr(Isolate* isolate) { |
241 BitwiseOrStub stub(isolate); | 247 BitwiseOrStub stub(isolate); |
242 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 248 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
243 } | 249 } |
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
538 // static | 544 // static |
539 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) { | 545 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) { |
540 // Note: If we ever use fpregs in the interpreter then we will need to | 546 // Note: If we ever use fpregs in the interpreter then we will need to |
541 // save fpregs too. | 547 // save fpregs too. |
542 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister); | 548 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister); |
543 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); | 549 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); |
544 } | 550 } |
545 | 551 |
546 } // namespace internal | 552 } // namespace internal |
547 } // namespace v8 | 553 } // namespace v8 |
OLD | NEW |