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 #ifndef V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_ | 5 #ifndef V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_ |
6 #define V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_ | 6 #define V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_ |
7 | 7 |
8 #include "src/compiler/machine-operator.h" | 8 #include "src/compiler/machine-operator.h" |
9 #include "src/compiler/machine-type.h" | 9 #include "src/compiler/machine-type.h" |
10 #include "testing/gmock/include/gmock/gmock.h" | 10 #include "testing/gmock/include/gmock/gmock.h" |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 const Matcher<CallDescriptor const*>& descriptor_matcher, | 138 const Matcher<CallDescriptor const*>& descriptor_matcher, |
139 const Matcher<Node*>& value0_matcher, const Matcher<Node*>& value1_matcher, | 139 const Matcher<Node*>& value0_matcher, const Matcher<Node*>& value1_matcher, |
140 const Matcher<Node*>& value2_matcher, const Matcher<Node*>& effect_matcher, | 140 const Matcher<Node*>& value2_matcher, const Matcher<Node*>& effect_matcher, |
141 const Matcher<Node*>& control_matcher); | 141 const Matcher<Node*>& control_matcher); |
142 Matcher<Node*> IsTailCall( | 142 Matcher<Node*> IsTailCall( |
143 const Matcher<CallDescriptor const*>& descriptor_matcher, | 143 const Matcher<CallDescriptor const*>& descriptor_matcher, |
144 const Matcher<Node*>& value0_matcher, const Matcher<Node*>& value1_matcher, | 144 const Matcher<Node*>& value0_matcher, const Matcher<Node*>& value1_matcher, |
145 const Matcher<Node*>& value2_matcher, const Matcher<Node*>& value3_matcher, | 145 const Matcher<Node*>& value2_matcher, const Matcher<Node*>& value3_matcher, |
146 const Matcher<Node*>& effect_matcher, | 146 const Matcher<Node*>& effect_matcher, |
147 const Matcher<Node*>& control_matcher); | 147 const Matcher<Node*>& control_matcher); |
| 148 Matcher<Node*> IsTailCall( |
| 149 const Matcher<CallDescriptor const*>& descriptor_matcher, |
| 150 const Matcher<Node*>& value0_matcher, const Matcher<Node*>& value1_matcher, |
| 151 const Matcher<Node*>& value2_matcher, const Matcher<Node*>& value3_matcher, |
| 152 const Matcher<Node*>& value4_matcher, const Matcher<Node*>& effect_matcher, |
| 153 const Matcher<Node*>& control_matcher); |
| 154 Matcher<Node*> IsTailCall( |
| 155 const Matcher<CallDescriptor const*>& descriptor_matcher, |
| 156 const Matcher<Node*>& value0_matcher, const Matcher<Node*>& value1_matcher, |
| 157 const Matcher<Node*>& value2_matcher, const Matcher<Node*>& value3_matcher, |
| 158 const Matcher<Node*>& value4_matcher, const Matcher<Node*>& value5_matcher, |
| 159 const Matcher<Node*>& effect_matcher, |
| 160 const Matcher<Node*>& control_matcher); |
| 161 |
148 | 162 |
149 Matcher<Node*> IsBooleanNot(const Matcher<Node*>& value_matcher); | 163 Matcher<Node*> IsBooleanNot(const Matcher<Node*>& value_matcher); |
150 Matcher<Node*> IsReferenceEqual(const Matcher<Type*>& type_matcher, | 164 Matcher<Node*> IsReferenceEqual(const Matcher<Type*>& type_matcher, |
151 const Matcher<Node*>& lhs_matcher, | 165 const Matcher<Node*>& lhs_matcher, |
152 const Matcher<Node*>& rhs_matcher); | 166 const Matcher<Node*>& rhs_matcher); |
153 Matcher<Node*> IsNumberEqual(const Matcher<Node*>& lhs_matcher, | 167 Matcher<Node*> IsNumberEqual(const Matcher<Node*>& lhs_matcher, |
154 const Matcher<Node*>& rhs_matcher); | 168 const Matcher<Node*>& rhs_matcher); |
155 Matcher<Node*> IsNumberLessThan(const Matcher<Node*>& lhs_matcher, | 169 Matcher<Node*> IsNumberLessThan(const Matcher<Node*>& lhs_matcher, |
156 const Matcher<Node*>& rhs_matcher); | 170 const Matcher<Node*>& rhs_matcher); |
157 Matcher<Node*> IsNumberSubtract(const Matcher<Node*>& lhs_matcher, | 171 Matcher<Node*> IsNumberSubtract(const Matcher<Node*>& lhs_matcher, |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 Matcher<Node*> IsNumberToInt32(const Matcher<Node*>& input_matcher); | 315 Matcher<Node*> IsNumberToInt32(const Matcher<Node*>& input_matcher); |
302 Matcher<Node*> IsNumberToUint32(const Matcher<Node*>& input_matcher); | 316 Matcher<Node*> IsNumberToUint32(const Matcher<Node*>& input_matcher); |
303 Matcher<Node*> IsParameter(const Matcher<int> index_matcher); | 317 Matcher<Node*> IsParameter(const Matcher<int> index_matcher); |
304 Matcher<Node*> IsLoadFramePointer(); | 318 Matcher<Node*> IsLoadFramePointer(); |
305 | 319 |
306 } // namespace compiler | 320 } // namespace compiler |
307 } // namespace internal | 321 } // namespace internal |
308 } // namespace v8 | 322 } // namespace v8 |
309 | 323 |
310 #endif // V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_ | 324 #endif // V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_ |
OLD | NEW |