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 841 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
852 args[0] = function; | 852 args[0] = function; |
853 args[1] = Int32Constant(argc); | 853 args[1] = Int32Constant(argc); |
854 args[2] = receiver; | 854 args[2] = receiver; |
855 args[3] = arg1; | 855 args[3] = arg1; |
856 args[4] = arg2; | 856 args[4] = arg2; |
857 args[5] = context; | 857 args[5] = context; |
858 | 858 |
859 return CallN(call_descriptor, target, args); | 859 return CallN(call_descriptor, target, args); |
860 } | 860 } |
861 | 861 |
| 862 Node* CodeAssembler::CallCFunction2(MachineType return_type, |
| 863 MachineType arg0_type, |
| 864 MachineType arg1_type, Node* function, |
| 865 Node* arg0, Node* arg1) { |
| 866 return raw_assembler_->CallCFunction2(return_type, arg0_type, arg1_type, |
| 867 function, arg0, arg1); |
| 868 } |
| 869 |
862 void CodeAssembler::Goto(CodeAssembler::Label* label) { | 870 void CodeAssembler::Goto(CodeAssembler::Label* label) { |
863 label->MergeVariables(); | 871 label->MergeVariables(); |
864 raw_assembler_->Goto(label->label_); | 872 raw_assembler_->Goto(label->label_); |
865 } | 873 } |
866 | 874 |
867 void CodeAssembler::GotoIf(Node* condition, Label* true_label) { | 875 void CodeAssembler::GotoIf(Node* condition, Label* true_label) { |
868 Label false_label(this); | 876 Label false_label(this); |
869 Branch(condition, true_label, &false_label); | 877 Branch(condition, true_label, &false_label); |
870 Bind(&false_label); | 878 Bind(&false_label); |
871 } | 879 } |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1072 } | 1080 } |
1073 } | 1081 } |
1074 } | 1082 } |
1075 | 1083 |
1076 bound_ = true; | 1084 bound_ = true; |
1077 } | 1085 } |
1078 | 1086 |
1079 } // namespace compiler | 1087 } // namespace compiler |
1080 } // namespace internal | 1088 } // namespace internal |
1081 } // namespace v8 | 1089 } // namespace v8 |
OLD | NEW |