| 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 715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 726 | 726 |
| 727 Node* CodeAssembler::CallCFunction3(MachineType return_type, | 727 Node* CodeAssembler::CallCFunction3(MachineType return_type, |
| 728 MachineType arg0_type, | 728 MachineType arg0_type, |
| 729 MachineType arg1_type, | 729 MachineType arg1_type, |
| 730 MachineType arg2_type, Node* function, | 730 MachineType arg2_type, Node* function, |
| 731 Node* arg0, Node* arg1, Node* arg2) { | 731 Node* arg0, Node* arg1, Node* arg2) { |
| 732 return raw_assembler()->CallCFunction3(return_type, arg0_type, arg1_type, | 732 return raw_assembler()->CallCFunction3(return_type, arg0_type, arg1_type, |
| 733 arg2_type, function, arg0, arg1, arg2); | 733 arg2_type, function, arg0, arg1, arg2); |
| 734 } | 734 } |
| 735 | 735 |
| 736 Node* CodeAssembler::CallCFunction6( |
| 737 MachineType return_type, MachineType arg0_type, MachineType arg1_type, |
| 738 MachineType arg2_type, MachineType arg3_type, MachineType arg4_type, |
| 739 MachineType arg5_type, Node* function, Node* arg0, Node* arg1, Node* arg2, |
| 740 Node* arg3, Node* arg4, Node* arg5) { |
| 741 return raw_assembler()->CallCFunction6( |
| 742 return_type, arg0_type, arg1_type, arg2_type, arg3_type, arg4_type, |
| 743 arg5_type, function, arg0, arg1, arg2, arg3, arg4, arg5); |
| 744 } |
| 745 |
| 736 void CodeAssembler::Goto(Label* label) { | 746 void CodeAssembler::Goto(Label* label) { |
| 737 label->MergeVariables(); | 747 label->MergeVariables(); |
| 738 raw_assembler()->Goto(label->label_); | 748 raw_assembler()->Goto(label->label_); |
| 739 } | 749 } |
| 740 | 750 |
| 741 void CodeAssembler::GotoIf(Node* condition, Label* true_label) { | 751 void CodeAssembler::GotoIf(Node* condition, Label* true_label) { |
| 742 Label false_label(this); | 752 Label false_label(this); |
| 743 Branch(condition, true_label, &false_label); | 753 Branch(condition, true_label, &false_label); |
| 744 Bind(&false_label); | 754 Bind(&false_label); |
| 745 } | 755 } |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1036 } | 1046 } |
| 1037 } | 1047 } |
| 1038 } | 1048 } |
| 1039 | 1049 |
| 1040 bound_ = true; | 1050 bound_ = true; |
| 1041 } | 1051 } |
| 1042 | 1052 |
| 1043 } // namespace compiler | 1053 } // namespace compiler |
| 1044 } // namespace internal | 1054 } // namespace internal |
| 1045 } // namespace v8 | 1055 } // namespace v8 |
| OLD | NEW |