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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 }; | 316 }; |
317 | 317 |
318 | 318 |
319 class IsReturnMatcher final : public NodeMatcher { | 319 class IsReturnMatcher final : public NodeMatcher { |
320 public: | 320 public: |
321 IsReturnMatcher(const Matcher<Node*>& value_matcher, | 321 IsReturnMatcher(const Matcher<Node*>& value_matcher, |
322 const Matcher<Node*>& effect_matcher, | 322 const Matcher<Node*>& effect_matcher, |
323 const Matcher<Node*>& control_matcher) | 323 const Matcher<Node*>& control_matcher) |
324 : NodeMatcher(IrOpcode::kReturn), | 324 : NodeMatcher(IrOpcode::kReturn), |
325 value_matcher_(value_matcher), | 325 value_matcher_(value_matcher), |
326 value2_matcher_(value_matcher), // Just for initialization. | 326 value2_matcher_(_), |
327 effect_matcher_(effect_matcher), | 327 effect_matcher_(effect_matcher), |
328 control_matcher_(control_matcher), | 328 control_matcher_(control_matcher), |
329 has_second_return_value_(false) {} | 329 has_second_return_value_(false) {} |
330 | 330 |
331 IsReturnMatcher(const Matcher<Node*>& value_matcher, | 331 IsReturnMatcher(const Matcher<Node*>& value_matcher, |
332 const Matcher<Node*>& value2_matcher, | 332 const Matcher<Node*>& value2_matcher, |
333 const Matcher<Node*>& effect_matcher, | 333 const Matcher<Node*>& effect_matcher, |
334 const Matcher<Node*>& control_matcher) | 334 const Matcher<Node*>& control_matcher) |
335 : NodeMatcher(IrOpcode::kReturn), | 335 : NodeMatcher(IrOpcode::kReturn), |
336 value_matcher_(value_matcher), | 336 value_matcher_(value_matcher), |
(...skipping 1808 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2145 IS_UNOP_MATCHER(NumberToInt32) | 2145 IS_UNOP_MATCHER(NumberToInt32) |
2146 IS_UNOP_MATCHER(NumberToUint32) | 2146 IS_UNOP_MATCHER(NumberToUint32) |
2147 IS_UNOP_MATCHER(ObjectIsReceiver) | 2147 IS_UNOP_MATCHER(ObjectIsReceiver) |
2148 IS_UNOP_MATCHER(ObjectIsSmi) | 2148 IS_UNOP_MATCHER(ObjectIsSmi) |
2149 IS_UNOP_MATCHER(Word32Clz) | 2149 IS_UNOP_MATCHER(Word32Clz) |
2150 #undef IS_UNOP_MATCHER | 2150 #undef IS_UNOP_MATCHER |
2151 | 2151 |
2152 } // namespace compiler | 2152 } // namespace compiler |
2153 } // namespace internal | 2153 } // namespace internal |
2154 } // namespace v8 | 2154 } // namespace v8 |
OLD | NEW |