| 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 1696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1707 const Matcher<Node*>& control_matcher) { | 1707 const Matcher<Node*>& control_matcher) { |
| 1708 std::vector<Matcher<Node*>> value_matchers; | 1708 std::vector<Matcher<Node*>> value_matchers; |
| 1709 value_matchers.push_back(value0_matcher); | 1709 value_matchers.push_back(value0_matcher); |
| 1710 value_matchers.push_back(value1_matcher); | 1710 value_matchers.push_back(value1_matcher); |
| 1711 value_matchers.push_back(value2_matcher); | 1711 value_matchers.push_back(value2_matcher); |
| 1712 return MakeMatcher(new IsTailCallMatcher(descriptor_matcher, value_matchers, | 1712 return MakeMatcher(new IsTailCallMatcher(descriptor_matcher, value_matchers, |
| 1713 effect_matcher, control_matcher)); | 1713 effect_matcher, control_matcher)); |
| 1714 } | 1714 } |
| 1715 | 1715 |
| 1716 | 1716 |
| 1717 Matcher<Node*> IsTailCall( |
| 1718 const Matcher<CallDescriptor const*>& descriptor_matcher, |
| 1719 const Matcher<Node*>& value0_matcher, const Matcher<Node*>& value1_matcher, |
| 1720 const Matcher<Node*>& value2_matcher, const Matcher<Node*>& value3_matcher, |
| 1721 const Matcher<Node*>& effect_matcher, |
| 1722 const Matcher<Node*>& control_matcher) { |
| 1723 std::vector<Matcher<Node*>> value_matchers; |
| 1724 value_matchers.push_back(value0_matcher); |
| 1725 value_matchers.push_back(value1_matcher); |
| 1726 value_matchers.push_back(value2_matcher); |
| 1727 value_matchers.push_back(value3_matcher); |
| 1728 return MakeMatcher(new IsTailCallMatcher(descriptor_matcher, value_matchers, |
| 1729 effect_matcher, control_matcher)); |
| 1730 } |
| 1731 |
| 1732 |
| 1717 Matcher<Node*> IsReferenceEqual(const Matcher<Type*>& type_matcher, | 1733 Matcher<Node*> IsReferenceEqual(const Matcher<Type*>& type_matcher, |
| 1718 const Matcher<Node*>& lhs_matcher, | 1734 const Matcher<Node*>& lhs_matcher, |
| 1719 const Matcher<Node*>& rhs_matcher) { | 1735 const Matcher<Node*>& rhs_matcher) { |
| 1720 return MakeMatcher( | 1736 return MakeMatcher( |
| 1721 new IsReferenceEqualMatcher(type_matcher, lhs_matcher, rhs_matcher)); | 1737 new IsReferenceEqualMatcher(type_matcher, lhs_matcher, rhs_matcher)); |
| 1722 } | 1738 } |
| 1723 | 1739 |
| 1724 | 1740 |
| 1725 Matcher<Node*> IsAllocate(const Matcher<Node*>& size_matcher, | 1741 Matcher<Node*> IsAllocate(const Matcher<Node*>& size_matcher, |
| 1726 const Matcher<Node*>& effect_matcher, | 1742 const Matcher<Node*>& effect_matcher, |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1915 IS_UNOP_MATCHER(NumberToInt32) | 1931 IS_UNOP_MATCHER(NumberToInt32) |
| 1916 IS_UNOP_MATCHER(NumberToUint32) | 1932 IS_UNOP_MATCHER(NumberToUint32) |
| 1917 IS_UNOP_MATCHER(ObjectIsSmi) | 1933 IS_UNOP_MATCHER(ObjectIsSmi) |
| 1918 IS_UNOP_MATCHER(ObjectIsNonNegativeSmi) | 1934 IS_UNOP_MATCHER(ObjectIsNonNegativeSmi) |
| 1919 IS_UNOP_MATCHER(Word32Clz) | 1935 IS_UNOP_MATCHER(Word32Clz) |
| 1920 #undef IS_UNOP_MATCHER | 1936 #undef IS_UNOP_MATCHER |
| 1921 | 1937 |
| 1922 } // namespace compiler | 1938 } // namespace compiler |
| 1923 } // namespace internal | 1939 } // namespace internal |
| 1924 } // namespace v8 | 1940 } // namespace v8 |
| OLD | NEW |