| 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" |
| 11 | 11 |
| 12 namespace v8 { | 12 namespace v8 { |
| 13 namespace internal { | 13 namespace internal { |
| 14 | 14 |
| 15 // Forward declarations. | 15 // Forward declarations. |
| 16 class ExternalReference; | 16 class ExternalReference; |
| 17 class HeapObject; | 17 class HeapObject; |
| 18 template <class T> | 18 template <class T> |
| 19 class Unique; | 19 class Unique; |
| 20 template <class> |
| 21 class TypeImpl; |
| 22 struct ZoneTypeConfig; |
| 23 typedef TypeImpl<ZoneTypeConfig> Type; |
| 20 | 24 |
| 21 namespace compiler { | 25 namespace compiler { |
| 22 | 26 |
| 23 // Forward declarations. | 27 // Forward declarations. |
| 24 class BufferAccess; | 28 class BufferAccess; |
| 25 class CallDescriptor; | 29 class CallDescriptor; |
| 26 struct ElementAccess; | 30 struct ElementAccess; |
| 27 struct FieldAccess; | 31 struct FieldAccess; |
| 28 class Node; | 32 class Node; |
| 29 | 33 |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 const Matcher<Node*>& value4_matcher, const Matcher<Node*>& value5_matcher, | 124 const Matcher<Node*>& value4_matcher, const Matcher<Node*>& value5_matcher, |
| 121 const Matcher<Node*>& value6_matcher, const Matcher<Node*>& effect_matcher, | 125 const Matcher<Node*>& value6_matcher, const Matcher<Node*>& effect_matcher, |
| 122 const Matcher<Node*>& control_matcher); | 126 const Matcher<Node*>& control_matcher); |
| 123 Matcher<Node*> IsTailCall( | 127 Matcher<Node*> IsTailCall( |
| 124 const Matcher<CallDescriptor const*>& descriptor_matcher, | 128 const Matcher<CallDescriptor const*>& descriptor_matcher, |
| 125 const Matcher<Node*>& value0_matcher, const Matcher<Node*>& value1_matcher, | 129 const Matcher<Node*>& value0_matcher, const Matcher<Node*>& value1_matcher, |
| 126 const Matcher<Node*>& effect_matcher, | 130 const Matcher<Node*>& effect_matcher, |
| 127 const Matcher<Node*>& control_matcher); | 131 const Matcher<Node*>& control_matcher); |
| 128 | 132 |
| 129 Matcher<Node*> IsBooleanNot(const Matcher<Node*>& value_matcher); | 133 Matcher<Node*> IsBooleanNot(const Matcher<Node*>& value_matcher); |
| 134 Matcher<Node*> IsReferenceEqual(const Matcher<Type*>& type_matcher, |
| 135 const Matcher<Node*>& lhs_matcher, |
| 136 const Matcher<Node*>& rhs_matcher); |
| 130 Matcher<Node*> IsNumberEqual(const Matcher<Node*>& lhs_matcher, | 137 Matcher<Node*> IsNumberEqual(const Matcher<Node*>& lhs_matcher, |
| 131 const Matcher<Node*>& rhs_matcher); | 138 const Matcher<Node*>& rhs_matcher); |
| 132 Matcher<Node*> IsNumberLessThan(const Matcher<Node*>& lhs_matcher, | 139 Matcher<Node*> IsNumberLessThan(const Matcher<Node*>& lhs_matcher, |
| 133 const Matcher<Node*>& rhs_matcher); | 140 const Matcher<Node*>& rhs_matcher); |
| 134 Matcher<Node*> IsNumberSubtract(const Matcher<Node*>& lhs_matcher, | 141 Matcher<Node*> IsNumberSubtract(const Matcher<Node*>& lhs_matcher, |
| 135 const Matcher<Node*>& rhs_matcher); | 142 const Matcher<Node*>& rhs_matcher); |
| 136 Matcher<Node*> IsNumberMultiply(const Matcher<Node*>& lhs_matcher, | 143 Matcher<Node*> IsNumberMultiply(const Matcher<Node*>& lhs_matcher, |
| 137 const Matcher<Node*>& rhs_matcher); | 144 const Matcher<Node*>& rhs_matcher); |
| 138 Matcher<Node*> IsAllocate(const Matcher<Node*>& size_matcher, | 145 Matcher<Node*> IsAllocate(const Matcher<Node*>& size_matcher, |
| 139 const Matcher<Node*>& effect_matcher, | 146 const Matcher<Node*>& effect_matcher, |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 const Matcher<Node*>& effect_matcher, | 265 const Matcher<Node*>& effect_matcher, |
| 259 const Matcher<Node*>& control_matcher); | 266 const Matcher<Node*>& control_matcher); |
| 260 Matcher<Node*> IsNumberToInt32(const Matcher<Node*>& input_matcher); | 267 Matcher<Node*> IsNumberToInt32(const Matcher<Node*>& input_matcher); |
| 261 Matcher<Node*> IsNumberToUint32(const Matcher<Node*>& input_matcher); | 268 Matcher<Node*> IsNumberToUint32(const Matcher<Node*>& input_matcher); |
| 262 | 269 |
| 263 } // namespace compiler | 270 } // namespace compiler |
| 264 } // namespace internal | 271 } // namespace internal |
| 265 } // namespace v8 | 272 } // namespace v8 |
| 266 | 273 |
| 267 #endif // V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_ | 274 #endif // V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_ |
| OLD | NEW |