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/type-hints.h" |
9 #include "src/machine-type.h" | 10 #include "src/machine-type.h" |
10 #include "testing/gmock/include/gmock/gmock.h" | 11 #include "testing/gmock/include/gmock/gmock.h" |
11 | 12 |
12 namespace v8 { | 13 namespace v8 { |
13 namespace internal { | 14 namespace internal { |
14 | 15 |
15 // Forward declarations. | 16 // Forward declarations. |
16 class ExternalReference; | 17 class ExternalReference; |
17 template <typename T> | 18 template <typename T> |
18 class Handle; | 19 class Handle; |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 | 193 |
193 | 194 |
194 Matcher<Node*> IsBooleanNot(const Matcher<Node*>& value_matcher); | 195 Matcher<Node*> IsBooleanNot(const Matcher<Node*>& value_matcher); |
195 Matcher<Node*> IsReferenceEqual(const Matcher<Type*>& type_matcher, | 196 Matcher<Node*> IsReferenceEqual(const Matcher<Type*>& type_matcher, |
196 const Matcher<Node*>& lhs_matcher, | 197 const Matcher<Node*>& lhs_matcher, |
197 const Matcher<Node*>& rhs_matcher); | 198 const Matcher<Node*>& rhs_matcher); |
198 Matcher<Node*> IsNumberEqual(const Matcher<Node*>& lhs_matcher, | 199 Matcher<Node*> IsNumberEqual(const Matcher<Node*>& lhs_matcher, |
199 const Matcher<Node*>& rhs_matcher); | 200 const Matcher<Node*>& rhs_matcher); |
200 Matcher<Node*> IsNumberLessThan(const Matcher<Node*>& lhs_matcher, | 201 Matcher<Node*> IsNumberLessThan(const Matcher<Node*>& lhs_matcher, |
201 const Matcher<Node*>& rhs_matcher); | 202 const Matcher<Node*>& rhs_matcher); |
| 203 Matcher<Node*> IsNumberAdd(const Matcher<Node*>& lhs_matcher, |
| 204 const Matcher<Node*>& rhs_matcher); |
| 205 Matcher<Node*> IsSpeculativeNumberAdd( |
| 206 const Matcher<BinaryOperationHints::Hint>& hint_matcher, |
| 207 const Matcher<Node*>& lhs_matcher, const Matcher<Node*>& rhs_matcher, |
| 208 const Matcher<Node*>& frame_state_matcher, |
| 209 const Matcher<Node*>& effect_matcher, |
| 210 const Matcher<Node*>& control_matcher); |
| 211 Matcher<Node*> IsSpeculativeNumberSubtract( |
| 212 const Matcher<BinaryOperationHints::Hint>& hint_matcher, |
| 213 const Matcher<Node*>& lhs_matcher, const Matcher<Node*>& rhs_matcher, |
| 214 const Matcher<Node*>& frame_state_matcher, |
| 215 const Matcher<Node*>& effect_matcher, |
| 216 const Matcher<Node*>& control_matcher); |
202 Matcher<Node*> IsNumberSubtract(const Matcher<Node*>& lhs_matcher, | 217 Matcher<Node*> IsNumberSubtract(const Matcher<Node*>& lhs_matcher, |
203 const Matcher<Node*>& rhs_matcher); | 218 const Matcher<Node*>& rhs_matcher); |
204 Matcher<Node*> IsNumberMultiply(const Matcher<Node*>& lhs_matcher, | 219 Matcher<Node*> IsNumberMultiply(const Matcher<Node*>& lhs_matcher, |
205 const Matcher<Node*>& rhs_matcher); | 220 const Matcher<Node*>& rhs_matcher); |
206 Matcher<Node*> IsNumberShiftLeft(const Matcher<Node*>& lhs_matcher, | 221 Matcher<Node*> IsNumberShiftLeft(const Matcher<Node*>& lhs_matcher, |
207 const Matcher<Node*>& rhs_matcher); | 222 const Matcher<Node*>& rhs_matcher); |
208 Matcher<Node*> IsNumberShiftRight(const Matcher<Node*>& lhs_matcher, | 223 Matcher<Node*> IsNumberShiftRight(const Matcher<Node*>& lhs_matcher, |
209 const Matcher<Node*>& rhs_matcher); | 224 const Matcher<Node*>& rhs_matcher); |
210 Matcher<Node*> IsNumberShiftRightLogical(const Matcher<Node*>& lhs_matcher, | 225 Matcher<Node*> IsNumberShiftRightLogical(const Matcher<Node*>& lhs_matcher, |
211 const Matcher<Node*>& rhs_matcher); | 226 const Matcher<Node*>& rhs_matcher); |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 Matcher<Node*> IsStackSlot(); | 405 Matcher<Node*> IsStackSlot(); |
391 Matcher<Node*> IsTypeGuard(const Matcher<Type*>& type_matcher, | 406 Matcher<Node*> IsTypeGuard(const Matcher<Type*>& type_matcher, |
392 const Matcher<Node*>& value_matcher, | 407 const Matcher<Node*>& value_matcher, |
393 const Matcher<Node*>& control_matcher); | 408 const Matcher<Node*>& control_matcher); |
394 | 409 |
395 } // namespace compiler | 410 } // namespace compiler |
396 } // namespace internal | 411 } // namespace internal |
397 } // namespace v8 | 412 } // namespace v8 |
398 | 413 |
399 #endif // V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_ | 414 #endif // V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_ |
OLD | NEW |