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/simplified-operator.h" | 9 #include "src/compiler/simplified-operator.h" |
10 #include "src/machine-type.h" | 10 #include "src/machine-type.h" |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 const Matcher<CallDescriptor const*>& descriptor_matcher, | 198 const Matcher<CallDescriptor const*>& descriptor_matcher, |
199 const Matcher<Node*>& value0_matcher, const Matcher<Node*>& value1_matcher, | 199 const Matcher<Node*>& value0_matcher, const Matcher<Node*>& value1_matcher, |
200 const Matcher<Node*>& value2_matcher, const Matcher<Node*>& value3_matcher, | 200 const Matcher<Node*>& value2_matcher, const Matcher<Node*>& value3_matcher, |
201 const Matcher<Node*>& value4_matcher, const Matcher<Node*>& value5_matcher, | 201 const Matcher<Node*>& value4_matcher, const Matcher<Node*>& value5_matcher, |
202 const Matcher<Node*>& value6_matcher, const Matcher<Node*>& value7_matcher, | 202 const Matcher<Node*>& value6_matcher, const Matcher<Node*>& value7_matcher, |
203 const Matcher<Node*>& effect_matcher, | 203 const Matcher<Node*>& effect_matcher, |
204 const Matcher<Node*>& control_matcher); | 204 const Matcher<Node*>& control_matcher); |
205 | 205 |
206 | 206 |
207 Matcher<Node*> IsBooleanNot(const Matcher<Node*>& value_matcher); | 207 Matcher<Node*> IsBooleanNot(const Matcher<Node*>& value_matcher); |
208 Matcher<Node*> IsReferenceEqual(const Matcher<Type*>& type_matcher, | 208 Matcher<Node*> IsReferenceEqual(const Matcher<Node*>& lhs_matcher, |
209 const Matcher<Node*>& lhs_matcher, | |
210 const Matcher<Node*>& rhs_matcher); | 209 const Matcher<Node*>& rhs_matcher); |
211 Matcher<Node*> IsNumberEqual(const Matcher<Node*>& lhs_matcher, | 210 Matcher<Node*> IsNumberEqual(const Matcher<Node*>& lhs_matcher, |
212 const Matcher<Node*>& rhs_matcher); | 211 const Matcher<Node*>& rhs_matcher); |
213 Matcher<Node*> IsNumberLessThan(const Matcher<Node*>& lhs_matcher, | 212 Matcher<Node*> IsNumberLessThan(const Matcher<Node*>& lhs_matcher, |
214 const Matcher<Node*>& rhs_matcher); | 213 const Matcher<Node*>& rhs_matcher); |
215 Matcher<Node*> IsNumberAdd(const Matcher<Node*>& lhs_matcher, | 214 Matcher<Node*> IsNumberAdd(const Matcher<Node*>& lhs_matcher, |
216 const Matcher<Node*>& rhs_matcher); | 215 const Matcher<Node*>& rhs_matcher); |
217 | 216 |
218 #define DECLARE_SPECULATIVE_BINOP_MATCHER(opcode) \ | 217 #define DECLARE_SPECULATIVE_BINOP_MATCHER(opcode) \ |
219 Matcher<Node*> Is##opcode(const Matcher<NumberOperationHint>& hint_matcher, \ | 218 Matcher<Node*> Is##opcode(const Matcher<NumberOperationHint>& hint_matcher, \ |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 const Matcher<Node*>& control_matcher, | 303 const Matcher<Node*>& control_matcher, |
305 const Matcher<Node*>& effect_matcher); | 304 const Matcher<Node*>& effect_matcher); |
306 Matcher<Node*> IsStoreElement(const Matcher<ElementAccess>& access_matcher, | 305 Matcher<Node*> IsStoreElement(const Matcher<ElementAccess>& access_matcher, |
307 const Matcher<Node*>& base_matcher, | 306 const Matcher<Node*>& base_matcher, |
308 const Matcher<Node*>& index_matcher, | 307 const Matcher<Node*>& index_matcher, |
309 const Matcher<Node*>& value_matcher, | 308 const Matcher<Node*>& value_matcher, |
310 const Matcher<Node*>& effect_matcher, | 309 const Matcher<Node*>& effect_matcher, |
311 const Matcher<Node*>& control_matcher); | 310 const Matcher<Node*>& control_matcher); |
312 Matcher<Node*> IsObjectIsReceiver(const Matcher<Node*>& value_matcher); | 311 Matcher<Node*> IsObjectIsReceiver(const Matcher<Node*>& value_matcher); |
313 Matcher<Node*> IsObjectIsSmi(const Matcher<Node*>& value_matcher); | 312 Matcher<Node*> IsObjectIsSmi(const Matcher<Node*>& value_matcher); |
| 313 Matcher<Node*> IsObjectIsUndetectable(const Matcher<Node*>& value_matcher); |
314 | 314 |
315 Matcher<Node*> IsLoad(const Matcher<LoadRepresentation>& rep_matcher, | 315 Matcher<Node*> IsLoad(const Matcher<LoadRepresentation>& rep_matcher, |
316 const Matcher<Node*>& base_matcher, | 316 const Matcher<Node*>& base_matcher, |
317 const Matcher<Node*>& index_matcher, | 317 const Matcher<Node*>& index_matcher, |
318 const Matcher<Node*>& effect_matcher, | 318 const Matcher<Node*>& effect_matcher, |
319 const Matcher<Node*>& control_matcher); | 319 const Matcher<Node*>& control_matcher); |
320 Matcher<Node*> IsUnalignedLoad( | 320 Matcher<Node*> IsUnalignedLoad( |
321 const Matcher<UnalignedLoadRepresentation>& rep_matcher, | 321 const Matcher<UnalignedLoadRepresentation>& rep_matcher, |
322 const Matcher<Node*>& base_matcher, const Matcher<Node*>& index_matcher, | 322 const Matcher<Node*>& base_matcher, const Matcher<Node*>& index_matcher, |
323 const Matcher<Node*>& effect_matcher, | 323 const Matcher<Node*>& effect_matcher, |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
468 const Matcher<Node*>& rhs_matcher); | 468 const Matcher<Node*>& rhs_matcher); |
469 Matcher<Node*> IsWord32ReverseBytes(const Matcher<Node*>& value_matcher); | 469 Matcher<Node*> IsWord32ReverseBytes(const Matcher<Node*>& value_matcher); |
470 | 470 |
471 Matcher<Node*> IsStackSlot(); | 471 Matcher<Node*> IsStackSlot(); |
472 | 472 |
473 } // namespace compiler | 473 } // namespace compiler |
474 } // namespace internal | 474 } // namespace internal |
475 } // namespace v8 | 475 } // namespace v8 |
476 | 476 |
477 #endif // V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_ | 477 #endif // V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_ |
OLD | NEW |