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 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
548 ConstructTrampolineDescriptor(isolate)); | 548 ConstructTrampolineDescriptor(isolate)); |
549 } | 549 } |
550 | 550 |
551 // static | 551 // static |
552 Callable CodeFactory::HasProperty(Isolate* isolate) { | 552 Callable CodeFactory::HasProperty(Isolate* isolate) { |
553 HasPropertyStub stub(isolate); | 553 HasPropertyStub stub(isolate); |
554 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 554 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
555 } | 555 } |
556 | 556 |
557 // static | 557 // static |
| 558 Callable CodeFactory::MathPow(Isolate* isolate) { |
| 559 MathPowStub stub(isolate, MathPowStub::ON_STACK); |
| 560 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 561 } |
| 562 |
| 563 // static |
558 Callable CodeFactory::InterpreterPushArgsAndCall(Isolate* isolate, | 564 Callable CodeFactory::InterpreterPushArgsAndCall(Isolate* isolate, |
559 TailCallMode tail_call_mode) { | 565 TailCallMode tail_call_mode) { |
560 return Callable( | 566 return Callable( |
561 isolate->builtins()->InterpreterPushArgsAndCall(tail_call_mode), | 567 isolate->builtins()->InterpreterPushArgsAndCall(tail_call_mode), |
562 InterpreterPushArgsAndCallDescriptor(isolate)); | 568 InterpreterPushArgsAndCallDescriptor(isolate)); |
563 } | 569 } |
564 | 570 |
565 | 571 |
566 // static | 572 // static |
567 Callable CodeFactory::InterpreterPushArgsAndConstruct(Isolate* isolate) { | 573 Callable CodeFactory::InterpreterPushArgsAndConstruct(Isolate* isolate) { |
568 return Callable(isolate->builtins()->InterpreterPushArgsAndConstruct(), | 574 return Callable(isolate->builtins()->InterpreterPushArgsAndConstruct(), |
569 InterpreterPushArgsAndConstructDescriptor(isolate)); | 575 InterpreterPushArgsAndConstructDescriptor(isolate)); |
570 } | 576 } |
571 | 577 |
572 | 578 |
573 // static | 579 // static |
574 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) { | 580 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) { |
575 // Note: If we ever use fpregs in the interpreter then we will need to | 581 // Note: If we ever use fpregs in the interpreter then we will need to |
576 // save fpregs too. | 582 // save fpregs too. |
577 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister); | 583 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister); |
578 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); | 584 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); |
579 } | 585 } |
580 | 586 |
581 } // namespace internal | 587 } // namespace internal |
582 } // namespace v8 | 588 } // namespace v8 |
OLD | NEW |