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/machine-type.h" | 9 #include "src/machine-type.h" |
10 #include "testing/gmock/include/gmock/gmock.h" | 10 #include "testing/gmock/include/gmock/gmock.h" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 const Matcher<Node*>& control_matcher); | 60 const Matcher<Node*>& control_matcher); |
61 Matcher<Node*> IsIfValue(const Matcher<int32_t>& value_matcher, | 61 Matcher<Node*> IsIfValue(const Matcher<int32_t>& value_matcher, |
62 const Matcher<Node*>& control_matcher); | 62 const Matcher<Node*>& control_matcher); |
63 Matcher<Node*> IsIfDefault(const Matcher<Node*>& control_matcher); | 63 Matcher<Node*> IsIfDefault(const Matcher<Node*>& control_matcher); |
64 Matcher<Node*> IsBeginRegion(const Matcher<Node*>& effect_matcher); | 64 Matcher<Node*> IsBeginRegion(const Matcher<Node*>& effect_matcher); |
65 Matcher<Node*> IsFinishRegion(const Matcher<Node*>& value_matcher, | 65 Matcher<Node*> IsFinishRegion(const Matcher<Node*>& value_matcher, |
66 const Matcher<Node*>& effect_matcher); | 66 const Matcher<Node*>& effect_matcher); |
67 Matcher<Node*> IsReturn(const Matcher<Node*>& value_matcher, | 67 Matcher<Node*> IsReturn(const Matcher<Node*>& value_matcher, |
68 const Matcher<Node*>& effect_matcher, | 68 const Matcher<Node*>& effect_matcher, |
69 const Matcher<Node*>& control_matcher); | 69 const Matcher<Node*>& control_matcher); |
| 70 Matcher<Node*> IsReturn2(const Matcher<Node*>& value_matcher, |
| 71 const Matcher<Node*>& value2_matcher, |
| 72 const Matcher<Node*>& effect_matcher, |
| 73 const Matcher<Node*>& control_matcher); |
70 Matcher<Node*> IsTerminate(const Matcher<Node*>& effect_matcher, | 74 Matcher<Node*> IsTerminate(const Matcher<Node*>& effect_matcher, |
71 const Matcher<Node*>& control_matcher); | 75 const Matcher<Node*>& control_matcher); |
72 Matcher<Node*> IsExternalConstant( | 76 Matcher<Node*> IsExternalConstant( |
73 const Matcher<ExternalReference>& value_matcher); | 77 const Matcher<ExternalReference>& value_matcher); |
74 Matcher<Node*> IsHeapConstant(Handle<HeapObject> value); | 78 Matcher<Node*> IsHeapConstant(Handle<HeapObject> value); |
75 Matcher<Node*> IsFloat32Constant(const Matcher<float>& value_matcher); | 79 Matcher<Node*> IsFloat32Constant(const Matcher<float>& value_matcher); |
76 Matcher<Node*> IsFloat64Constant(const Matcher<double>& value_matcher); | 80 Matcher<Node*> IsFloat64Constant(const Matcher<double>& value_matcher); |
77 Matcher<Node*> IsInt32Constant(const Matcher<int32_t>& value_matcher); | 81 Matcher<Node*> IsInt32Constant(const Matcher<int32_t>& value_matcher); |
78 Matcher<Node*> IsInt64Constant(const Matcher<int64_t>& value_matcher); | 82 Matcher<Node*> IsInt64Constant(const Matcher<int64_t>& value_matcher); |
79 Matcher<Node*> IsNumberConstant(const Matcher<double>& value_matcher); | 83 Matcher<Node*> IsNumberConstant(const Matcher<double>& value_matcher); |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 Matcher<Node*> IsNumberToInt32(const Matcher<Node*>& input_matcher); | 354 Matcher<Node*> IsNumberToInt32(const Matcher<Node*>& input_matcher); |
351 Matcher<Node*> IsNumberToUint32(const Matcher<Node*>& input_matcher); | 355 Matcher<Node*> IsNumberToUint32(const Matcher<Node*>& input_matcher); |
352 Matcher<Node*> IsParameter(const Matcher<int> index_matcher); | 356 Matcher<Node*> IsParameter(const Matcher<int> index_matcher); |
353 Matcher<Node*> IsLoadFramePointer(); | 357 Matcher<Node*> IsLoadFramePointer(); |
354 | 358 |
355 } // namespace compiler | 359 } // namespace compiler |
356 } // namespace internal | 360 } // namespace internal |
357 } // namespace v8 | 361 } // namespace v8 |
358 | 362 |
359 #endif // V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_ | 363 #endif // V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_ |
OLD | NEW |