| 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 860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 871 args[0] = function; | 871 args[0] = function; |
| 872 args[1] = Int32Constant(argc); | 872 args[1] = Int32Constant(argc); |
| 873 args[2] = receiver; | 873 args[2] = receiver; |
| 874 args[3] = arg1; | 874 args[3] = arg1; |
| 875 args[4] = arg2; | 875 args[4] = arg2; |
| 876 args[5] = context; | 876 args[5] = context; |
| 877 | 877 |
| 878 return CallN(call_descriptor, target, args); | 878 return CallN(call_descriptor, target, args); |
| 879 } | 879 } |
| 880 | 880 |
| 881 Node* CodeAssembler::CallCFunction2(MachineType return_type, |
| 882 MachineType arg0_type, |
| 883 MachineType arg1_type, Node* function, |
| 884 Node* arg0, Node* arg1) { |
| 885 return raw_assembler_->CallCFunction2(return_type, arg0_type, arg1_type, |
| 886 function, arg0, arg1); |
| 887 } |
| 888 |
| 881 void CodeAssembler::Goto(CodeAssembler::Label* label) { | 889 void CodeAssembler::Goto(CodeAssembler::Label* label) { |
| 882 label->MergeVariables(); | 890 label->MergeVariables(); |
| 883 raw_assembler_->Goto(label->label_); | 891 raw_assembler_->Goto(label->label_); |
| 884 } | 892 } |
| 885 | 893 |
| 886 void CodeAssembler::GotoIf(Node* condition, Label* true_label) { | 894 void CodeAssembler::GotoIf(Node* condition, Label* true_label) { |
| 887 Label false_label(this); | 895 Label false_label(this); |
| 888 Branch(condition, true_label, &false_label); | 896 Branch(condition, true_label, &false_label); |
| 889 Bind(&false_label); | 897 Bind(&false_label); |
| 890 } | 898 } |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1091 } | 1099 } |
| 1092 } | 1100 } |
| 1093 } | 1101 } |
| 1094 | 1102 |
| 1095 bound_ = true; | 1103 bound_ = true; |
| 1096 } | 1104 } |
| 1097 | 1105 |
| 1098 } // namespace compiler | 1106 } // namespace compiler |
| 1099 } // namespace internal | 1107 } // namespace internal |
| 1100 } // namespace v8 | 1108 } // namespace v8 |
| OLD | NEW |