OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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/compiler/code-assembler.h" | 5 #include "src/compiler/code-assembler.h" |
6 | 6 |
7 #include <ostream> | 7 #include <ostream> |
8 | 8 |
9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
10 #include "src/compiler/graph.h" | 10 #include "src/compiler/graph.h" |
(...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
595 | 595 |
596 Node* nodes[] = {target, args...}; | 596 Node* nodes[] = {target, args...}; |
597 return raw_assembler()->TailCallN(desc, arraysize(nodes), nodes); | 597 return raw_assembler()->TailCallN(desc, arraysize(nodes), nodes); |
598 } | 598 } |
599 | 599 |
600 // Instantiate TailCallBytecodeDispatch() with 4 arguments. | 600 // Instantiate TailCallBytecodeDispatch() with 4 arguments. |
601 template V8_EXPORT_PRIVATE Node* CodeAssembler::TailCallBytecodeDispatch( | 601 template V8_EXPORT_PRIVATE Node* CodeAssembler::TailCallBytecodeDispatch( |
602 const CallInterfaceDescriptor& descriptor, Node* target, Node*, Node*, | 602 const CallInterfaceDescriptor& descriptor, Node* target, Node*, Node*, |
603 Node*, Node*); | 603 Node*, Node*); |
604 | 604 |
| 605 Node* CodeAssembler::CallCFunctionN(CallDescriptor* descriptor, int input_count, |
| 606 Node* const* inputs) { |
| 607 return raw_assembler()->CallN(descriptor, input_count, inputs); |
| 608 } |
| 609 |
605 Node* CodeAssembler::CallCFunction2(MachineType return_type, | 610 Node* CodeAssembler::CallCFunction2(MachineType return_type, |
606 MachineType arg0_type, | 611 MachineType arg0_type, |
607 MachineType arg1_type, Node* function, | 612 MachineType arg1_type, Node* function, |
608 Node* arg0, Node* arg1) { | 613 Node* arg0, Node* arg1) { |
609 return raw_assembler()->CallCFunction2(return_type, arg0_type, arg1_type, | 614 return raw_assembler()->CallCFunction2(return_type, arg0_type, arg1_type, |
610 function, arg0, arg1); | 615 function, arg0, arg1); |
611 } | 616 } |
612 | 617 |
613 Node* CodeAssembler::CallCFunction3(MachineType return_type, | 618 Node* CodeAssembler::CallCFunction3(MachineType return_type, |
614 MachineType arg0_type, | 619 MachineType arg0_type, |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
818 } | 823 } |
819 } | 824 } |
820 } | 825 } |
821 | 826 |
822 bound_ = true; | 827 bound_ = true; |
823 } | 828 } |
824 | 829 |
825 } // namespace compiler | 830 } // namespace compiler |
826 } // namespace internal | 831 } // namespace internal |
827 } // namespace v8 | 832 } // namespace v8 |
OLD | NEW |