| 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 2139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2150 | 2150 |
| 2151 #define IS_QUADOP_MATCHER(Name) \ | 2151 #define IS_QUADOP_MATCHER(Name) \ |
| 2152 Matcher<Node*> Is##Name( \ | 2152 Matcher<Node*> Is##Name( \ |
| 2153 const Matcher<Node*>& a_matcher, const Matcher<Node*>& b_matcher, \ | 2153 const Matcher<Node*>& a_matcher, const Matcher<Node*>& b_matcher, \ |
| 2154 const Matcher<Node*>& c_matcher, const Matcher<Node*>& d_matcher) { \ | 2154 const Matcher<Node*>& c_matcher, const Matcher<Node*>& d_matcher) { \ |
| 2155 return MakeMatcher(new IsQuadopMatcher(IrOpcode::k##Name, a_matcher, \ | 2155 return MakeMatcher(new IsQuadopMatcher(IrOpcode::k##Name, a_matcher, \ |
| 2156 b_matcher, c_matcher, d_matcher)); \ | 2156 b_matcher, c_matcher, d_matcher)); \ |
| 2157 } | 2157 } |
| 2158 | 2158 |
| 2159 IS_QUADOP_MATCHER(Int32PairAdd) | 2159 IS_QUADOP_MATCHER(Int32PairAdd) |
| 2160 IS_QUADOP_MATCHER(Int32PairSub) |
| 2160 | 2161 |
| 2161 #define IS_TERNOP_MATCHER(Name) \ | 2162 #define IS_TERNOP_MATCHER(Name) \ |
| 2162 Matcher<Node*> Is##Name(const Matcher<Node*>& lhs_matcher, \ | 2163 Matcher<Node*> Is##Name(const Matcher<Node*>& lhs_matcher, \ |
| 2163 const Matcher<Node*>& mid_matcher, \ | 2164 const Matcher<Node*>& mid_matcher, \ |
| 2164 const Matcher<Node*>& rhs_matcher) { \ | 2165 const Matcher<Node*>& rhs_matcher) { \ |
| 2165 return MakeMatcher(new IsTernopMatcher(IrOpcode::k##Name, lhs_matcher, \ | 2166 return MakeMatcher(new IsTernopMatcher(IrOpcode::k##Name, lhs_matcher, \ |
| 2166 mid_matcher, rhs_matcher)); \ | 2167 mid_matcher, rhs_matcher)); \ |
| 2167 } | 2168 } |
| 2168 | 2169 |
| 2169 IS_TERNOP_MATCHER(Word32PairShl) | 2170 IS_TERNOP_MATCHER(Word32PairShl) |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2245 IS_UNOP_MATCHER(NumberToInt32) | 2246 IS_UNOP_MATCHER(NumberToInt32) |
| 2246 IS_UNOP_MATCHER(NumberToUint32) | 2247 IS_UNOP_MATCHER(NumberToUint32) |
| 2247 IS_UNOP_MATCHER(ObjectIsReceiver) | 2248 IS_UNOP_MATCHER(ObjectIsReceiver) |
| 2248 IS_UNOP_MATCHER(ObjectIsSmi) | 2249 IS_UNOP_MATCHER(ObjectIsSmi) |
| 2249 IS_UNOP_MATCHER(Word32Clz) | 2250 IS_UNOP_MATCHER(Word32Clz) |
| 2250 #undef IS_UNOP_MATCHER | 2251 #undef IS_UNOP_MATCHER |
| 2251 | 2252 |
| 2252 } // namespace compiler | 2253 } // namespace compiler |
| 2253 } // namespace internal | 2254 } // namespace internal |
| 2254 } // namespace v8 | 2255 } // namespace v8 |
| OLD | NEW |