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 | |
564 Callable CodeFactory::InterpreterPushArgsAndCall(Isolate* isolate, | 558 Callable CodeFactory::InterpreterPushArgsAndCall(Isolate* isolate, |
565 TailCallMode tail_call_mode) { | 559 TailCallMode tail_call_mode) { |
566 return Callable( | 560 return Callable( |
567 isolate->builtins()->InterpreterPushArgsAndCall(tail_call_mode), | 561 isolate->builtins()->InterpreterPushArgsAndCall(tail_call_mode), |
568 InterpreterPushArgsAndCallDescriptor(isolate)); | 562 InterpreterPushArgsAndCallDescriptor(isolate)); |
569 } | 563 } |
570 | 564 |
571 | 565 |
572 // static | 566 // static |
573 Callable CodeFactory::InterpreterPushArgsAndConstruct(Isolate* isolate) { | 567 Callable CodeFactory::InterpreterPushArgsAndConstruct(Isolate* isolate) { |
574 return Callable(isolate->builtins()->InterpreterPushArgsAndConstruct(), | 568 return Callable(isolate->builtins()->InterpreterPushArgsAndConstruct(), |
575 InterpreterPushArgsAndConstructDescriptor(isolate)); | 569 InterpreterPushArgsAndConstructDescriptor(isolate)); |
576 } | 570 } |
577 | 571 |
578 | 572 |
579 // static | 573 // static |
580 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) { | 574 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) { |
581 // Note: If we ever use fpregs in the interpreter then we will need to | 575 // Note: If we ever use fpregs in the interpreter then we will need to |
582 // save fpregs too. | 576 // save fpregs too. |
583 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister); | 577 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister); |
584 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); | 578 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); |
585 } | 579 } |
586 | 580 |
587 } // namespace internal | 581 } // namespace internal |
588 } // namespace v8 | 582 } // namespace v8 |
OLD | NEW |