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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 const Matcher<Node*>& lhs_matcher, | 140 const Matcher<Node*>& lhs_matcher, |
141 const Matcher<Node*>& rhs_matcher); | 141 const Matcher<Node*>& rhs_matcher); |
142 Matcher<Node*> IsNumberEqual(const Matcher<Node*>& lhs_matcher, | 142 Matcher<Node*> IsNumberEqual(const Matcher<Node*>& lhs_matcher, |
143 const Matcher<Node*>& rhs_matcher); | 143 const Matcher<Node*>& rhs_matcher); |
144 Matcher<Node*> IsNumberLessThan(const Matcher<Node*>& lhs_matcher, | 144 Matcher<Node*> IsNumberLessThan(const Matcher<Node*>& lhs_matcher, |
145 const Matcher<Node*>& rhs_matcher); | 145 const Matcher<Node*>& rhs_matcher); |
146 Matcher<Node*> IsNumberSubtract(const Matcher<Node*>& lhs_matcher, | 146 Matcher<Node*> IsNumberSubtract(const Matcher<Node*>& lhs_matcher, |
147 const Matcher<Node*>& rhs_matcher); | 147 const Matcher<Node*>& rhs_matcher); |
148 Matcher<Node*> IsNumberMultiply(const Matcher<Node*>& lhs_matcher, | 148 Matcher<Node*> IsNumberMultiply(const Matcher<Node*>& lhs_matcher, |
149 const Matcher<Node*>& rhs_matcher); | 149 const Matcher<Node*>& rhs_matcher); |
| 150 Matcher<Node*> IsNumberShiftLeft(const Matcher<Node*>& lhs_matcher, |
| 151 const Matcher<Node*>& rhs_matcher); |
| 152 Matcher<Node*> IsNumberShiftRight(const Matcher<Node*>& lhs_matcher, |
| 153 const Matcher<Node*>& rhs_matcher); |
| 154 Matcher<Node*> IsNumberShiftRightLogical(const Matcher<Node*>& lhs_matcher, |
| 155 const Matcher<Node*>& rhs_matcher); |
150 Matcher<Node*> IsAllocate(const Matcher<Node*>& size_matcher, | 156 Matcher<Node*> IsAllocate(const Matcher<Node*>& size_matcher, |
151 const Matcher<Node*>& effect_matcher, | 157 const Matcher<Node*>& effect_matcher, |
152 const Matcher<Node*>& control_matcher); | 158 const Matcher<Node*>& control_matcher); |
153 Matcher<Node*> IsLoadField(const Matcher<FieldAccess>& access_matcher, | 159 Matcher<Node*> IsLoadField(const Matcher<FieldAccess>& access_matcher, |
154 const Matcher<Node*>& base_matcher, | 160 const Matcher<Node*>& base_matcher, |
155 const Matcher<Node*>& effect_matcher, | 161 const Matcher<Node*>& effect_matcher, |
156 const Matcher<Node*>& control_matcher); | 162 const Matcher<Node*>& control_matcher); |
157 Matcher<Node*> IsStoreField(const Matcher<FieldAccess>& access_matcher, | 163 Matcher<Node*> IsStoreField(const Matcher<FieldAccess>& access_matcher, |
158 const Matcher<Node*>& base_matcher, | 164 const Matcher<Node*>& base_matcher, |
159 const Matcher<Node*>& value_matcher, | 165 const Matcher<Node*>& value_matcher, |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 Matcher<Node*> IsLoadContext(const Matcher<ContextAccess>& access_matcher, | 278 Matcher<Node*> IsLoadContext(const Matcher<ContextAccess>& access_matcher, |
273 const Matcher<Node*>& context_matcher); | 279 const Matcher<Node*>& context_matcher); |
274 Matcher<Node*> IsNumberToInt32(const Matcher<Node*>& input_matcher); | 280 Matcher<Node*> IsNumberToInt32(const Matcher<Node*>& input_matcher); |
275 Matcher<Node*> IsNumberToUint32(const Matcher<Node*>& input_matcher); | 281 Matcher<Node*> IsNumberToUint32(const Matcher<Node*>& input_matcher); |
276 | 282 |
277 } // namespace compiler | 283 } // namespace compiler |
278 } // namespace internal | 284 } // namespace internal |
279 } // namespace v8 | 285 } // namespace v8 |
280 | 286 |
281 #endif // V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_ | 287 #endif // V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_ |
OLD | NEW |