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 2186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2197 | 2197 |
2198 Matcher<Node*> IsParameter(const Matcher<int> index_matcher) { | 2198 Matcher<Node*> IsParameter(const Matcher<int> index_matcher) { |
2199 return MakeMatcher(new IsParameterMatcher(index_matcher)); | 2199 return MakeMatcher(new IsParameterMatcher(index_matcher)); |
2200 } | 2200 } |
2201 | 2201 |
2202 | 2202 |
2203 Matcher<Node*> IsLoadFramePointer() { | 2203 Matcher<Node*> IsLoadFramePointer() { |
2204 return MakeMatcher(new NodeMatcher(IrOpcode::kLoadFramePointer)); | 2204 return MakeMatcher(new NodeMatcher(IrOpcode::kLoadFramePointer)); |
2205 } | 2205 } |
2206 | 2206 |
| 2207 Matcher<Node*> IsLoadParentFramePointer() { |
| 2208 return MakeMatcher(new NodeMatcher(IrOpcode::kLoadParentFramePointer)); |
| 2209 } |
| 2210 |
2207 #define IS_QUADOP_MATCHER(Name) \ | 2211 #define IS_QUADOP_MATCHER(Name) \ |
2208 Matcher<Node*> Is##Name( \ | 2212 Matcher<Node*> Is##Name( \ |
2209 const Matcher<Node*>& a_matcher, const Matcher<Node*>& b_matcher, \ | 2213 const Matcher<Node*>& a_matcher, const Matcher<Node*>& b_matcher, \ |
2210 const Matcher<Node*>& c_matcher, const Matcher<Node*>& d_matcher) { \ | 2214 const Matcher<Node*>& c_matcher, const Matcher<Node*>& d_matcher) { \ |
2211 return MakeMatcher(new IsQuadopMatcher(IrOpcode::k##Name, a_matcher, \ | 2215 return MakeMatcher(new IsQuadopMatcher(IrOpcode::k##Name, a_matcher, \ |
2212 b_matcher, c_matcher, d_matcher)); \ | 2216 b_matcher, c_matcher, d_matcher)); \ |
2213 } | 2217 } |
2214 | 2218 |
2215 IS_QUADOP_MATCHER(Int32PairAdd) | 2219 IS_QUADOP_MATCHER(Int32PairAdd) |
2216 IS_QUADOP_MATCHER(Int32PairSub) | 2220 IS_QUADOP_MATCHER(Int32PairSub) |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2305 IS_UNOP_MATCHER(ObjectIsReceiver) | 2309 IS_UNOP_MATCHER(ObjectIsReceiver) |
2306 IS_UNOP_MATCHER(ObjectIsSmi) | 2310 IS_UNOP_MATCHER(ObjectIsSmi) |
2307 IS_UNOP_MATCHER(Word32Clz) | 2311 IS_UNOP_MATCHER(Word32Clz) |
2308 IS_UNOP_MATCHER(Word32Ctz) | 2312 IS_UNOP_MATCHER(Word32Ctz) |
2309 IS_UNOP_MATCHER(Word32Popcnt) | 2313 IS_UNOP_MATCHER(Word32Popcnt) |
2310 #undef IS_UNOP_MATCHER | 2314 #undef IS_UNOP_MATCHER |
2311 | 2315 |
2312 } // namespace compiler | 2316 } // namespace compiler |
2313 } // namespace internal | 2317 } // namespace internal |
2314 } // namespace v8 | 2318 } // namespace v8 |
OLD | NEW |