| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 const Matcher<Node*>& control1_matcher, | 56 const Matcher<Node*>& control1_matcher, |
| 57 const Matcher<Node*>& control2_matcher); | 57 const Matcher<Node*>& control2_matcher); |
| 58 Matcher<Node*> IsIfTrue(const Matcher<Node*>& control_matcher); | 58 Matcher<Node*> IsIfTrue(const Matcher<Node*>& control_matcher); |
| 59 Matcher<Node*> IsIfFalse(const Matcher<Node*>& control_matcher); | 59 Matcher<Node*> IsIfFalse(const Matcher<Node*>& control_matcher); |
| 60 Matcher<Node*> IsIfSuccess(const Matcher<Node*>& control_matcher); | 60 Matcher<Node*> IsIfSuccess(const Matcher<Node*>& control_matcher); |
| 61 Matcher<Node*> IsSwitch(const Matcher<Node*>& value_matcher, | 61 Matcher<Node*> IsSwitch(const Matcher<Node*>& value_matcher, |
| 62 const Matcher<Node*>& control_matcher); | 62 const Matcher<Node*>& control_matcher); |
| 63 Matcher<Node*> IsIfValue(const Matcher<int32_t>& value_matcher, | 63 Matcher<Node*> IsIfValue(const Matcher<int32_t>& value_matcher, |
| 64 const Matcher<Node*>& control_matcher); | 64 const Matcher<Node*>& control_matcher); |
| 65 Matcher<Node*> IsIfDefault(const Matcher<Node*>& control_matcher); | 65 Matcher<Node*> IsIfDefault(const Matcher<Node*>& control_matcher); |
| 66 Matcher<Node*> IsValueEffect(const Matcher<Node*>& value_matcher); | 66 Matcher<Node*> IsBeginRegion(const Matcher<Node*>& effect_matcher); |
| 67 Matcher<Node*> IsFinish(const Matcher<Node*>& value_matcher, | 67 Matcher<Node*> IsFinishRegion(const Matcher<Node*>& value_matcher, |
| 68 const Matcher<Node*>& effect_matcher); | 68 const Matcher<Node*>& effect_matcher); |
| 69 Matcher<Node*> IsReturn(const Matcher<Node*>& value_matcher, | 69 Matcher<Node*> IsReturn(const Matcher<Node*>& value_matcher, |
| 70 const Matcher<Node*>& effect_matcher, | 70 const Matcher<Node*>& effect_matcher, |
| 71 const Matcher<Node*>& control_matcher); | 71 const Matcher<Node*>& control_matcher); |
| 72 Matcher<Node*> IsTerminate(const Matcher<Node*>& effect_matcher, | 72 Matcher<Node*> IsTerminate(const Matcher<Node*>& effect_matcher, |
| 73 const Matcher<Node*>& control_matcher); | 73 const Matcher<Node*>& control_matcher); |
| 74 Matcher<Node*> IsExternalConstant( | 74 Matcher<Node*> IsExternalConstant( |
| 75 const Matcher<ExternalReference>& value_matcher); | 75 const Matcher<ExternalReference>& value_matcher); |
| 76 Matcher<Node*> IsHeapConstant(Handle<HeapObject> value); | 76 Matcher<Node*> IsHeapConstant(Handle<HeapObject> value); |
| 77 Matcher<Node*> IsFloat32Constant(const Matcher<float>& value_matcher); | 77 Matcher<Node*> IsFloat32Constant(const Matcher<float>& value_matcher); |
| 78 Matcher<Node*> IsFloat64Constant(const Matcher<double>& value_matcher); | 78 Matcher<Node*> IsFloat64Constant(const Matcher<double>& value_matcher); |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 Matcher<Node*> IsNumberToInt32(const Matcher<Node*>& input_matcher); | 347 Matcher<Node*> IsNumberToInt32(const Matcher<Node*>& input_matcher); |
| 348 Matcher<Node*> IsNumberToUint32(const Matcher<Node*>& input_matcher); | 348 Matcher<Node*> IsNumberToUint32(const Matcher<Node*>& input_matcher); |
| 349 Matcher<Node*> IsParameter(const Matcher<int> index_matcher); | 349 Matcher<Node*> IsParameter(const Matcher<int> index_matcher); |
| 350 Matcher<Node*> IsLoadFramePointer(); | 350 Matcher<Node*> IsLoadFramePointer(); |
| 351 | 351 |
| 352 } // namespace compiler | 352 } // namespace compiler |
| 353 } // namespace internal | 353 } // namespace internal |
| 354 } // namespace v8 | 354 } // namespace v8 |
| 355 | 355 |
| 356 #endif // V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_ | 356 #endif // V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_ |
| OLD | NEW |