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 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
569 // static | 569 // static |
570 Callable CodeFactory::InterpreterPushArgsAndCall(Isolate* isolate, | 570 Callable CodeFactory::InterpreterPushArgsAndCall(Isolate* isolate, |
571 TailCallMode tail_call_mode, | 571 TailCallMode tail_call_mode, |
572 CallableType function_type) { | 572 CallableType function_type) { |
573 return Callable(isolate->builtins()->InterpreterPushArgsAndCall( | 573 return Callable(isolate->builtins()->InterpreterPushArgsAndCall( |
574 tail_call_mode, function_type), | 574 tail_call_mode, function_type), |
575 InterpreterPushArgsAndCallDescriptor(isolate)); | 575 InterpreterPushArgsAndCallDescriptor(isolate)); |
576 } | 576 } |
577 | 577 |
578 // static | 578 // static |
579 Callable CodeFactory::InterpreterPushArgsAndConstruct( | 579 Callable CodeFactory::InterpreterPushArgsAndConstruct(Isolate* isolate) { |
580 Isolate* isolate, CallableType function_type) { | 580 return Callable(isolate->builtins()->InterpreterPushArgsAndConstruct(), |
581 return Callable( | 581 InterpreterPushArgsAndConstructDescriptor(isolate)); |
582 isolate->builtins()->InterpreterPushArgsAndConstruct(function_type), | |
583 InterpreterPushArgsAndConstructDescriptor(isolate)); | |
584 } | 582 } |
585 | 583 |
586 // static | 584 // static |
587 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) { | 585 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) { |
588 // Note: If we ever use fpregs in the interpreter then we will need to | 586 // Note: If we ever use fpregs in the interpreter then we will need to |
589 // save fpregs too. | 587 // save fpregs too. |
590 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister); | 588 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister); |
591 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); | 589 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); |
592 } | 590 } |
593 | 591 |
594 // static | 592 // static |
595 Callable CodeFactory::InterpreterOnStackReplacement(Isolate* isolate) { | 593 Callable CodeFactory::InterpreterOnStackReplacement(Isolate* isolate) { |
596 return Callable(isolate->builtins()->InterpreterOnStackReplacement(), | 594 return Callable(isolate->builtins()->InterpreterOnStackReplacement(), |
597 ContextOnlyDescriptor(isolate)); | 595 ContextOnlyDescriptor(isolate)); |
598 } | 596 } |
599 | 597 |
600 } // namespace internal | 598 } // namespace internal |
601 } // namespace v8 | 599 } // namespace v8 |
OLD | NEW |