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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 const Matcher<Node*>& value0_matcher, const Matcher<Node*>& value1_matcher, | 127 const Matcher<Node*>& value0_matcher, const Matcher<Node*>& value1_matcher, |
128 const Matcher<Node*>& value2_matcher, const Matcher<Node*>& value3_matcher, | 128 const Matcher<Node*>& value2_matcher, const Matcher<Node*>& value3_matcher, |
129 const Matcher<Node*>& value4_matcher, const Matcher<Node*>& value5_matcher, | 129 const Matcher<Node*>& value4_matcher, const Matcher<Node*>& value5_matcher, |
130 const Matcher<Node*>& value6_matcher, const Matcher<Node*>& effect_matcher, | 130 const Matcher<Node*>& value6_matcher, const Matcher<Node*>& effect_matcher, |
131 const Matcher<Node*>& control_matcher); | 131 const Matcher<Node*>& control_matcher); |
132 Matcher<Node*> IsTailCall( | 132 Matcher<Node*> IsTailCall( |
133 const Matcher<CallDescriptor const*>& descriptor_matcher, | 133 const Matcher<CallDescriptor const*>& descriptor_matcher, |
134 const Matcher<Node*>& value0_matcher, const Matcher<Node*>& value1_matcher, | 134 const Matcher<Node*>& value0_matcher, const Matcher<Node*>& value1_matcher, |
135 const Matcher<Node*>& effect_matcher, | 135 const Matcher<Node*>& effect_matcher, |
136 const Matcher<Node*>& control_matcher); | 136 const Matcher<Node*>& control_matcher); |
| 137 Matcher<Node*> IsTailCall( |
| 138 const Matcher<CallDescriptor const*>& descriptor_matcher, |
| 139 const Matcher<Node*>& value0_matcher, const Matcher<Node*>& value1_matcher, |
| 140 const Matcher<Node*>& value2_matcher, const Matcher<Node*>& effect_matcher, |
| 141 const Matcher<Node*>& control_matcher); |
137 | 142 |
138 Matcher<Node*> IsBooleanNot(const Matcher<Node*>& value_matcher); | 143 Matcher<Node*> IsBooleanNot(const Matcher<Node*>& value_matcher); |
139 Matcher<Node*> IsReferenceEqual(const Matcher<Type*>& type_matcher, | 144 Matcher<Node*> IsReferenceEqual(const Matcher<Type*>& type_matcher, |
140 const Matcher<Node*>& lhs_matcher, | 145 const Matcher<Node*>& lhs_matcher, |
141 const Matcher<Node*>& rhs_matcher); | 146 const Matcher<Node*>& rhs_matcher); |
142 Matcher<Node*> IsNumberEqual(const Matcher<Node*>& lhs_matcher, | 147 Matcher<Node*> IsNumberEqual(const Matcher<Node*>& lhs_matcher, |
143 const Matcher<Node*>& rhs_matcher); | 148 const Matcher<Node*>& rhs_matcher); |
144 Matcher<Node*> IsNumberLessThan(const Matcher<Node*>& lhs_matcher, | 149 Matcher<Node*> IsNumberLessThan(const Matcher<Node*>& lhs_matcher, |
145 const Matcher<Node*>& rhs_matcher); | 150 const Matcher<Node*>& rhs_matcher); |
146 Matcher<Node*> IsNumberSubtract(const Matcher<Node*>& lhs_matcher, | 151 Matcher<Node*> IsNumberSubtract(const Matcher<Node*>& lhs_matcher, |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 const Matcher<Node*>& rhs_matcher); | 222 const Matcher<Node*>& rhs_matcher); |
218 Matcher<Node*> IsWord32Clz(const Matcher<Node*>& value_matcher); | 223 Matcher<Node*> IsWord32Clz(const Matcher<Node*>& value_matcher); |
219 Matcher<Node*> IsWord64And(const Matcher<Node*>& lhs_matcher, | 224 Matcher<Node*> IsWord64And(const Matcher<Node*>& lhs_matcher, |
220 const Matcher<Node*>& rhs_matcher); | 225 const Matcher<Node*>& rhs_matcher); |
221 Matcher<Node*> IsWord64Shl(const Matcher<Node*>& lhs_matcher, | 226 Matcher<Node*> IsWord64Shl(const Matcher<Node*>& lhs_matcher, |
222 const Matcher<Node*>& rhs_matcher); | 227 const Matcher<Node*>& rhs_matcher); |
223 Matcher<Node*> IsWord64Sar(const Matcher<Node*>& lhs_matcher, | 228 Matcher<Node*> IsWord64Sar(const Matcher<Node*>& lhs_matcher, |
224 const Matcher<Node*>& rhs_matcher); | 229 const Matcher<Node*>& rhs_matcher); |
225 Matcher<Node*> IsWord64Equal(const Matcher<Node*>& lhs_matcher, | 230 Matcher<Node*> IsWord64Equal(const Matcher<Node*>& lhs_matcher, |
226 const Matcher<Node*>& rhs_matcher); | 231 const Matcher<Node*>& rhs_matcher); |
| 232 Matcher<Node*> IsIntPtrAdd(const Matcher<Node*>& lhs_matcher, |
| 233 const Matcher<Node*>& rhs_matcher); |
227 Matcher<Node*> IsInt32AddWithOverflow(const Matcher<Node*>& lhs_matcher, | 234 Matcher<Node*> IsInt32AddWithOverflow(const Matcher<Node*>& lhs_matcher, |
228 const Matcher<Node*>& rhs_matcher); | 235 const Matcher<Node*>& rhs_matcher); |
229 Matcher<Node*> IsInt32Add(const Matcher<Node*>& lhs_matcher, | 236 Matcher<Node*> IsInt32Add(const Matcher<Node*>& lhs_matcher, |
230 const Matcher<Node*>& rhs_matcher); | 237 const Matcher<Node*>& rhs_matcher); |
231 Matcher<Node*> IsInt32Sub(const Matcher<Node*>& lhs_matcher, | 238 Matcher<Node*> IsInt32Sub(const Matcher<Node*>& lhs_matcher, |
232 const Matcher<Node*>& rhs_matcher); | 239 const Matcher<Node*>& rhs_matcher); |
233 Matcher<Node*> IsInt32Mul(const Matcher<Node*>& lhs_matcher, | 240 Matcher<Node*> IsInt32Mul(const Matcher<Node*>& lhs_matcher, |
234 const Matcher<Node*>& rhs_matcher); | 241 const Matcher<Node*>& rhs_matcher); |
235 Matcher<Node*> IsInt32MulHigh(const Matcher<Node*>& lhs_matcher, | 242 Matcher<Node*> IsInt32MulHigh(const Matcher<Node*>& lhs_matcher, |
236 const Matcher<Node*>& rhs_matcher); | 243 const Matcher<Node*>& rhs_matcher); |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 Matcher<Node*> IsFloat64InsertHighWord32(const Matcher<Node*>& lhs_matcher, | 285 Matcher<Node*> IsFloat64InsertHighWord32(const Matcher<Node*>& lhs_matcher, |
279 const Matcher<Node*>& rhs_matcher); | 286 const Matcher<Node*>& rhs_matcher); |
280 Matcher<Node*> IsToNumber(const Matcher<Node*>& base_matcher, | 287 Matcher<Node*> IsToNumber(const Matcher<Node*>& base_matcher, |
281 const Matcher<Node*>& context_matcher, | 288 const Matcher<Node*>& context_matcher, |
282 const Matcher<Node*>& effect_matcher, | 289 const Matcher<Node*>& effect_matcher, |
283 const Matcher<Node*>& control_matcher); | 290 const Matcher<Node*>& control_matcher); |
284 Matcher<Node*> IsLoadContext(const Matcher<ContextAccess>& access_matcher, | 291 Matcher<Node*> IsLoadContext(const Matcher<ContextAccess>& access_matcher, |
285 const Matcher<Node*>& context_matcher); | 292 const Matcher<Node*>& context_matcher); |
286 Matcher<Node*> IsNumberToInt32(const Matcher<Node*>& input_matcher); | 293 Matcher<Node*> IsNumberToInt32(const Matcher<Node*>& input_matcher); |
287 Matcher<Node*> IsNumberToUint32(const Matcher<Node*>& input_matcher); | 294 Matcher<Node*> IsNumberToUint32(const Matcher<Node*>& input_matcher); |
| 295 Matcher<Node*> IsParameter(const Matcher<int> index_matcher); |
| 296 Matcher<Node*> IsLoadFramePointer(); |
288 | 297 |
289 } // namespace compiler | 298 } // namespace compiler |
290 } // namespace internal | 299 } // namespace internal |
291 } // namespace v8 | 300 } // namespace v8 |
292 | 301 |
293 #endif // V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_ | 302 #endif // V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_ |
OLD | NEW |