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 1613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1624 value_matchers.push_back(value1_matcher); | 1624 value_matchers.push_back(value1_matcher); |
1625 return MakeMatcher(new IsCallMatcher(descriptor_matcher, value_matchers, | 1625 return MakeMatcher(new IsCallMatcher(descriptor_matcher, value_matchers, |
1626 effect_matcher, control_matcher)); | 1626 effect_matcher, control_matcher)); |
1627 } | 1627 } |
1628 | 1628 |
1629 | 1629 |
1630 Matcher<Node*> IsCall(const Matcher<CallDescriptor*>& descriptor_matcher, | 1630 Matcher<Node*> IsCall(const Matcher<CallDescriptor*>& descriptor_matcher, |
1631 const Matcher<Node*>& value0_matcher, | 1631 const Matcher<Node*>& value0_matcher, |
1632 const Matcher<Node*>& value1_matcher, | 1632 const Matcher<Node*>& value1_matcher, |
1633 const Matcher<Node*>& value2_matcher, | 1633 const Matcher<Node*>& value2_matcher, |
| 1634 const Matcher<Node*>& effect_matcher, |
| 1635 const Matcher<Node*>& control_matcher) { |
| 1636 std::vector<Matcher<Node*>> value_matchers; |
| 1637 value_matchers.push_back(value0_matcher); |
| 1638 value_matchers.push_back(value1_matcher); |
| 1639 value_matchers.push_back(value2_matcher); |
| 1640 return MakeMatcher(new IsCallMatcher(descriptor_matcher, value_matchers, |
| 1641 effect_matcher, control_matcher)); |
| 1642 } |
| 1643 |
| 1644 |
| 1645 Matcher<Node*> IsCall(const Matcher<CallDescriptor*>& descriptor_matcher, |
| 1646 const Matcher<Node*>& value0_matcher, |
| 1647 const Matcher<Node*>& value1_matcher, |
| 1648 const Matcher<Node*>& value2_matcher, |
| 1649 const Matcher<Node*>& value3_matcher, |
| 1650 const Matcher<Node*>& effect_matcher, |
| 1651 const Matcher<Node*>& control_matcher) { |
| 1652 std::vector<Matcher<Node*>> value_matchers; |
| 1653 value_matchers.push_back(value0_matcher); |
| 1654 value_matchers.push_back(value1_matcher); |
| 1655 value_matchers.push_back(value2_matcher); |
| 1656 value_matchers.push_back(value3_matcher); |
| 1657 return MakeMatcher(new IsCallMatcher(descriptor_matcher, value_matchers, |
| 1658 effect_matcher, control_matcher)); |
| 1659 } |
| 1660 |
| 1661 |
| 1662 Matcher<Node*> IsCall(const Matcher<CallDescriptor*>& descriptor_matcher, |
| 1663 const Matcher<Node*>& value0_matcher, |
| 1664 const Matcher<Node*>& value1_matcher, |
| 1665 const Matcher<Node*>& value2_matcher, |
1634 const Matcher<Node*>& value3_matcher, | 1666 const Matcher<Node*>& value3_matcher, |
1635 const Matcher<Node*>& value4_matcher, | 1667 const Matcher<Node*>& value4_matcher, |
1636 const Matcher<Node*>& effect_matcher, | 1668 const Matcher<Node*>& effect_matcher, |
1637 const Matcher<Node*>& control_matcher) { | 1669 const Matcher<Node*>& control_matcher) { |
1638 std::vector<Matcher<Node*>> value_matchers; | 1670 std::vector<Matcher<Node*>> value_matchers; |
1639 value_matchers.push_back(value0_matcher); | 1671 value_matchers.push_back(value0_matcher); |
1640 value_matchers.push_back(value1_matcher); | 1672 value_matchers.push_back(value1_matcher); |
1641 value_matchers.push_back(value2_matcher); | 1673 value_matchers.push_back(value2_matcher); |
1642 value_matchers.push_back(value3_matcher); | 1674 value_matchers.push_back(value3_matcher); |
1643 value_matchers.push_back(value4_matcher); | 1675 value_matchers.push_back(value4_matcher); |
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2010 IS_UNOP_MATCHER(NumberToInt32) | 2042 IS_UNOP_MATCHER(NumberToInt32) |
2011 IS_UNOP_MATCHER(NumberToUint32) | 2043 IS_UNOP_MATCHER(NumberToUint32) |
2012 IS_UNOP_MATCHER(ObjectIsSmi) | 2044 IS_UNOP_MATCHER(ObjectIsSmi) |
2013 IS_UNOP_MATCHER(ObjectIsNonNegativeSmi) | 2045 IS_UNOP_MATCHER(ObjectIsNonNegativeSmi) |
2014 IS_UNOP_MATCHER(Word32Clz) | 2046 IS_UNOP_MATCHER(Word32Clz) |
2015 #undef IS_UNOP_MATCHER | 2047 #undef IS_UNOP_MATCHER |
2016 | 2048 |
2017 } // namespace compiler | 2049 } // namespace compiler |
2018 } // namespace internal | 2050 } // namespace internal |
2019 } // namespace v8 | 2051 } // namespace v8 |
OLD | NEW |