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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 Matcher<Node*> IsAnyToBoolean(const Matcher<Node*>& value_matcher); | 78 Matcher<Node*> IsAnyToBoolean(const Matcher<Node*>& value_matcher); |
79 Matcher<Node*> IsBooleanNot(const Matcher<Node*>& value_matcher); | 79 Matcher<Node*> IsBooleanNot(const Matcher<Node*>& value_matcher); |
80 Matcher<Node*> IsNumberEqual(const Matcher<Node*>& lhs_matcher, | 80 Matcher<Node*> IsNumberEqual(const Matcher<Node*>& lhs_matcher, |
81 const Matcher<Node*>& rhs_matcher); | 81 const Matcher<Node*>& rhs_matcher); |
82 Matcher<Node*> IsNumberLessThan(const Matcher<Node*>& lhs_matcher, | 82 Matcher<Node*> IsNumberLessThan(const Matcher<Node*>& lhs_matcher, |
83 const Matcher<Node*>& rhs_matcher); | 83 const Matcher<Node*>& rhs_matcher); |
84 Matcher<Node*> IsNumberSubtract(const Matcher<Node*>& lhs_matcher, | 84 Matcher<Node*> IsNumberSubtract(const Matcher<Node*>& lhs_matcher, |
85 const Matcher<Node*>& rhs_matcher); | 85 const Matcher<Node*>& rhs_matcher); |
86 Matcher<Node*> IsNumberMultiply(const Matcher<Node*>& lhs_matcher, | 86 Matcher<Node*> IsNumberMultiply(const Matcher<Node*>& lhs_matcher, |
87 const Matcher<Node*>& rhs_matcher); | 87 const Matcher<Node*>& rhs_matcher); |
| 88 Matcher<Node*> IsPlainPrimitiveToNumber(const Matcher<Node*>& value_matcher); |
88 Matcher<Node*> IsLoadField(const Matcher<FieldAccess>& access_matcher, | 89 Matcher<Node*> IsLoadField(const Matcher<FieldAccess>& access_matcher, |
89 const Matcher<Node*>& base_matcher, | 90 const Matcher<Node*>& base_matcher, |
90 const Matcher<Node*>& effect_matcher, | 91 const Matcher<Node*>& effect_matcher, |
91 const Matcher<Node*>& control_matcher); | 92 const Matcher<Node*>& control_matcher); |
92 Matcher<Node*> IsStoreField(const Matcher<FieldAccess>& access_matcher, | 93 Matcher<Node*> IsStoreField(const Matcher<FieldAccess>& access_matcher, |
93 const Matcher<Node*>& base_matcher, | 94 const Matcher<Node*>& base_matcher, |
94 const Matcher<Node*>& value_matcher, | 95 const Matcher<Node*>& value_matcher, |
95 const Matcher<Node*>& effect_matcher, | 96 const Matcher<Node*>& effect_matcher, |
96 const Matcher<Node*>& control_matcher); | 97 const Matcher<Node*>& control_matcher); |
97 Matcher<Node*> IsLoadBuffer(const Matcher<BufferAccess>& access_matcher, | 98 Matcher<Node*> IsLoadBuffer(const Matcher<BufferAccess>& access_matcher, |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 const Matcher<Node*>& effect_matcher, | 188 const Matcher<Node*>& effect_matcher, |
188 const Matcher<Node*>& control_matcher); | 189 const Matcher<Node*>& control_matcher); |
189 Matcher<Node*> IsNumberToInt32(const Matcher<Node*>& input_matcher); | 190 Matcher<Node*> IsNumberToInt32(const Matcher<Node*>& input_matcher); |
190 Matcher<Node*> IsNumberToUint32(const Matcher<Node*>& input_matcher); | 191 Matcher<Node*> IsNumberToUint32(const Matcher<Node*>& input_matcher); |
191 | 192 |
192 } // namespace compiler | 193 } // namespace compiler |
193 } // namespace internal | 194 } // namespace internal |
194 } // namespace v8 | 195 } // namespace v8 |
195 | 196 |
196 #endif // V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_ | 197 #endif // V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_ |
OLD | NEW |