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 2196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2207 #define IS_QUADOP_MATCHER(Name) \ | 2207 #define IS_QUADOP_MATCHER(Name) \ |
2208 Matcher<Node*> Is##Name( \ | 2208 Matcher<Node*> Is##Name( \ |
2209 const Matcher<Node*>& a_matcher, const Matcher<Node*>& b_matcher, \ | 2209 const Matcher<Node*>& a_matcher, const Matcher<Node*>& b_matcher, \ |
2210 const Matcher<Node*>& c_matcher, const Matcher<Node*>& d_matcher) { \ | 2210 const Matcher<Node*>& c_matcher, const Matcher<Node*>& d_matcher) { \ |
2211 return MakeMatcher(new IsQuadopMatcher(IrOpcode::k##Name, a_matcher, \ | 2211 return MakeMatcher(new IsQuadopMatcher(IrOpcode::k##Name, a_matcher, \ |
2212 b_matcher, c_matcher, d_matcher)); \ | 2212 b_matcher, c_matcher, d_matcher)); \ |
2213 } | 2213 } |
2214 | 2214 |
2215 IS_QUADOP_MATCHER(Int32PairAdd) | 2215 IS_QUADOP_MATCHER(Int32PairAdd) |
2216 IS_QUADOP_MATCHER(Int32PairSub) | 2216 IS_QUADOP_MATCHER(Int32PairSub) |
| 2217 IS_QUADOP_MATCHER(Int32PairMul) |
2217 | 2218 |
2218 #define IS_TERNOP_MATCHER(Name) \ | 2219 #define IS_TERNOP_MATCHER(Name) \ |
2219 Matcher<Node*> Is##Name(const Matcher<Node*>& lhs_matcher, \ | 2220 Matcher<Node*> Is##Name(const Matcher<Node*>& lhs_matcher, \ |
2220 const Matcher<Node*>& mid_matcher, \ | 2221 const Matcher<Node*>& mid_matcher, \ |
2221 const Matcher<Node*>& rhs_matcher) { \ | 2222 const Matcher<Node*>& rhs_matcher) { \ |
2222 return MakeMatcher(new IsTernopMatcher(IrOpcode::k##Name, lhs_matcher, \ | 2223 return MakeMatcher(new IsTernopMatcher(IrOpcode::k##Name, lhs_matcher, \ |
2223 mid_matcher, rhs_matcher)); \ | 2224 mid_matcher, rhs_matcher)); \ |
2224 } | 2225 } |
2225 | 2226 |
2226 IS_TERNOP_MATCHER(Word32PairShl) | 2227 IS_TERNOP_MATCHER(Word32PairShl) |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2304 IS_UNOP_MATCHER(ObjectIsReceiver) | 2305 IS_UNOP_MATCHER(ObjectIsReceiver) |
2305 IS_UNOP_MATCHER(ObjectIsSmi) | 2306 IS_UNOP_MATCHER(ObjectIsSmi) |
2306 IS_UNOP_MATCHER(Word32Clz) | 2307 IS_UNOP_MATCHER(Word32Clz) |
2307 IS_UNOP_MATCHER(Word32Ctz) | 2308 IS_UNOP_MATCHER(Word32Ctz) |
2308 IS_UNOP_MATCHER(Word32Popcnt) | 2309 IS_UNOP_MATCHER(Word32Popcnt) |
2309 #undef IS_UNOP_MATCHER | 2310 #undef IS_UNOP_MATCHER |
2310 | 2311 |
2311 } // namespace compiler | 2312 } // namespace compiler |
2312 } // namespace internal | 2313 } // namespace internal |
2313 } // namespace v8 | 2314 } // namespace v8 |
OLD | NEW |