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 83 matching lines...) Loading... |
94 const Matcher<Node*>& merge_matcher); | 94 const Matcher<Node*>& merge_matcher); |
95 Matcher<Node*> IsEffectPhi(const Matcher<Node*>& effect0_matcher, | 95 Matcher<Node*> IsEffectPhi(const Matcher<Node*>& effect0_matcher, |
96 const Matcher<Node*>& effect1_matcher, | 96 const Matcher<Node*>& effect1_matcher, |
97 const Matcher<Node*>& merge_matcher); | 97 const Matcher<Node*>& merge_matcher); |
98 Matcher<Node*> IsEffectSet(const Matcher<Node*>& effect0_matcher, | 98 Matcher<Node*> IsEffectSet(const Matcher<Node*>& effect0_matcher, |
99 const Matcher<Node*>& effect1_matcher); | 99 const Matcher<Node*>& effect1_matcher); |
100 Matcher<Node*> IsProjection(const Matcher<size_t>& index_matcher, | 100 Matcher<Node*> IsProjection(const Matcher<size_t>& index_matcher, |
101 const Matcher<Node*>& base_matcher); | 101 const Matcher<Node*>& base_matcher); |
102 Matcher<Node*> IsCall(const Matcher<const CallDescriptor*>& descriptor_matcher, | 102 Matcher<Node*> IsCall(const Matcher<const CallDescriptor*>& descriptor_matcher, |
103 const Matcher<Node*>& value0_matcher, | 103 const Matcher<Node*>& value0_matcher, |
| 104 const Matcher<Node*>& effect_matcher, |
| 105 const Matcher<Node*>& control_matcher); |
| 106 Matcher<Node*> IsCall(const Matcher<const CallDescriptor*>& descriptor_matcher, |
| 107 const Matcher<Node*>& value0_matcher, |
104 const Matcher<Node*>& value1_matcher, | 108 const Matcher<Node*>& value1_matcher, |
105 const Matcher<Node*>& effect_matcher, | 109 const Matcher<Node*>& effect_matcher, |
106 const Matcher<Node*>& control_matcher); | 110 const Matcher<Node*>& control_matcher); |
107 Matcher<Node*> IsCall(const Matcher<const CallDescriptor*>& descriptor_matcher, | 111 Matcher<Node*> IsCall(const Matcher<const CallDescriptor*>& descriptor_matcher, |
108 const Matcher<Node*>& value0_matcher, | 112 const Matcher<Node*>& value0_matcher, |
109 const Matcher<Node*>& value1_matcher, | 113 const Matcher<Node*>& value1_matcher, |
110 const Matcher<Node*>& value2_matcher, | 114 const Matcher<Node*>& value2_matcher, |
111 const Matcher<Node*>& effect_matcher, | 115 const Matcher<Node*>& effect_matcher, |
112 const Matcher<Node*>& control_matcher); | 116 const Matcher<Node*>& control_matcher); |
113 Matcher<Node*> IsCall(const Matcher<const CallDescriptor*>& descriptor_matcher, | 117 Matcher<Node*> IsCall(const Matcher<const CallDescriptor*>& descriptor_matcher, |
(...skipping 237 matching lines...) Loading... |
351 const Matcher<Node*>& context_matcher); | 355 const Matcher<Node*>& context_matcher); |
352 Matcher<Node*> IsNumberToInt32(const Matcher<Node*>& input_matcher); | 356 Matcher<Node*> IsNumberToInt32(const Matcher<Node*>& input_matcher); |
353 Matcher<Node*> IsNumberToUint32(const Matcher<Node*>& input_matcher); | 357 Matcher<Node*> IsNumberToUint32(const Matcher<Node*>& input_matcher); |
354 Matcher<Node*> IsParameter(const Matcher<int> index_matcher); | 358 Matcher<Node*> IsParameter(const Matcher<int> index_matcher); |
355 Matcher<Node*> IsLoadFramePointer(); | 359 Matcher<Node*> IsLoadFramePointer(); |
356 Matcher<Node*> IsJSLoadNamed(const Handle<Name> name, | 360 Matcher<Node*> IsJSLoadNamed(const Handle<Name> name, |
357 const Matcher<Node*>& object_value_matcher, | 361 const Matcher<Node*>& object_value_matcher, |
358 const Matcher<Node*>& feedback_vector_matcher, | 362 const Matcher<Node*>& feedback_vector_matcher, |
359 const Matcher<Node*>& effect_matcher, | 363 const Matcher<Node*>& effect_matcher, |
360 const Matcher<Node*>& control_matcher); | 364 const Matcher<Node*>& control_matcher); |
| 365 Matcher<Node*> IsJSCallFunction(std::vector<Matcher<Node*>> value_matchers, |
| 366 const Matcher<Node*>& effect_matcher, |
| 367 const Matcher<Node*>& control_matcher); |
361 | 368 |
362 } // namespace compiler | 369 } // namespace compiler |
363 } // namespace internal | 370 } // namespace internal |
364 } // namespace v8 | 371 } // namespace v8 |
365 | 372 |
366 #endif // V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_ | 373 #endif // V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_ |
OLD | NEW |