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(Isolate* isolate) { | 579 Callable CodeFactory::InterpreterPushArgsAndConstruct( |
580 return Callable(isolate->builtins()->InterpreterPushArgsAndConstruct(), | 580 Isolate* isolate, CallableType function_type) { |
581 InterpreterPushArgsAndConstructDescriptor(isolate)); | 581 return Callable( |
| 582 isolate->builtins()->InterpreterPushArgsAndConstruct(function_type), |
| 583 InterpreterPushArgsAndConstructDescriptor(isolate)); |
582 } | 584 } |
583 | 585 |
584 // static | 586 // static |
585 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) { | 587 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) { |
586 // Note: If we ever use fpregs in the interpreter then we will need to | 588 // Note: If we ever use fpregs in the interpreter then we will need to |
587 // save fpregs too. | 589 // save fpregs too. |
588 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister); | 590 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister); |
589 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); | 591 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); |
590 } | 592 } |
591 | 593 |
592 // static | 594 // static |
593 Callable CodeFactory::InterpreterOnStackReplacement(Isolate* isolate) { | 595 Callable CodeFactory::InterpreterOnStackReplacement(Isolate* isolate) { |
594 return Callable(isolate->builtins()->InterpreterOnStackReplacement(), | 596 return Callable(isolate->builtins()->InterpreterOnStackReplacement(), |
595 ContextOnlyDescriptor(isolate)); | 597 ContextOnlyDescriptor(isolate)); |
596 } | 598 } |
597 | 599 |
598 } // namespace internal | 600 } // namespace internal |
599 } // namespace v8 | 601 } // namespace v8 |
OLD | NEW |