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 #include "test/unittests/compiler/node-test-utils.h" | 5 #include "test/unittests/compiler/node-test-utils.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "src/assembler.h" | 9 #include "src/assembler.h" |
10 #include "src/compiler/common-operator.h" | 10 #include "src/compiler/common-operator.h" |
(...skipping 2164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2175 #define IS_QUADOP_MATCHER(Name) \ | 2175 #define IS_QUADOP_MATCHER(Name) \ |
2176 Matcher<Node*> Is##Name( \ | 2176 Matcher<Node*> Is##Name( \ |
2177 const Matcher<Node*>& a_matcher, const Matcher<Node*>& b_matcher, \ | 2177 const Matcher<Node*>& a_matcher, const Matcher<Node*>& b_matcher, \ |
2178 const Matcher<Node*>& c_matcher, const Matcher<Node*>& d_matcher) { \ | 2178 const Matcher<Node*>& c_matcher, const Matcher<Node*>& d_matcher) { \ |
2179 return MakeMatcher(new IsQuadopMatcher(IrOpcode::k##Name, a_matcher, \ | 2179 return MakeMatcher(new IsQuadopMatcher(IrOpcode::k##Name, a_matcher, \ |
2180 b_matcher, c_matcher, d_matcher)); \ | 2180 b_matcher, c_matcher, d_matcher)); \ |
2181 } | 2181 } |
2182 | 2182 |
2183 IS_QUADOP_MATCHER(Int32PairAdd) | 2183 IS_QUADOP_MATCHER(Int32PairAdd) |
2184 IS_QUADOP_MATCHER(Int32PairSub) | 2184 IS_QUADOP_MATCHER(Int32PairSub) |
| 2185 IS_QUADOP_MATCHER(Int32PairMul) |
2185 | 2186 |
2186 #define IS_TERNOP_MATCHER(Name) \ | 2187 #define IS_TERNOP_MATCHER(Name) \ |
2187 Matcher<Node*> Is##Name(const Matcher<Node*>& lhs_matcher, \ | 2188 Matcher<Node*> Is##Name(const Matcher<Node*>& lhs_matcher, \ |
2188 const Matcher<Node*>& mid_matcher, \ | 2189 const Matcher<Node*>& mid_matcher, \ |
2189 const Matcher<Node*>& rhs_matcher) { \ | 2190 const Matcher<Node*>& rhs_matcher) { \ |
2190 return MakeMatcher(new IsTernopMatcher(IrOpcode::k##Name, lhs_matcher, \ | 2191 return MakeMatcher(new IsTernopMatcher(IrOpcode::k##Name, lhs_matcher, \ |
2191 mid_matcher, rhs_matcher)); \ | 2192 mid_matcher, rhs_matcher)); \ |
2192 } | 2193 } |
2193 | 2194 |
2194 IS_TERNOP_MATCHER(Word32PairShl) | 2195 IS_TERNOP_MATCHER(Word32PairShl) |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2272 IS_UNOP_MATCHER(ObjectIsReceiver) | 2273 IS_UNOP_MATCHER(ObjectIsReceiver) |
2273 IS_UNOP_MATCHER(ObjectIsSmi) | 2274 IS_UNOP_MATCHER(ObjectIsSmi) |
2274 IS_UNOP_MATCHER(Word32Clz) | 2275 IS_UNOP_MATCHER(Word32Clz) |
2275 IS_UNOP_MATCHER(Word32Ctz) | 2276 IS_UNOP_MATCHER(Word32Ctz) |
2276 IS_UNOP_MATCHER(Word32Popcnt) | 2277 IS_UNOP_MATCHER(Word32Popcnt) |
2277 #undef IS_UNOP_MATCHER | 2278 #undef IS_UNOP_MATCHER |
2278 | 2279 |
2279 } // namespace compiler | 2280 } // namespace compiler |
2280 } // namespace internal | 2281 } // namespace internal |
2281 } // namespace v8 | 2282 } // namespace v8 |
OLD | NEW |