Index: test/unittests/compiler/node-test-utils.cc |
diff --git a/test/unittests/compiler/node-test-utils.cc b/test/unittests/compiler/node-test-utils.cc |
index d097ee4b66ac170f47e759f0ad7a3410a4df67a2..4112e224a4b0fa56195196e2a7291cc745d8aea0 100644 |
--- a/test/unittests/compiler/node-test-utils.cc |
+++ b/test/unittests/compiler/node-test-utils.cc |
@@ -1766,6 +1766,48 @@ Matcher<Node*> IsTailCall( |
} |
+Matcher<Node*> IsTailCall( |
+ const Matcher<CallDescriptor const*>& descriptor_matcher, |
+ const Matcher<Node*>& value0_matcher, const Matcher<Node*>& value1_matcher, |
+ const Matcher<Node*>& value2_matcher, const Matcher<Node*>& value3_matcher, |
+ const Matcher<Node*>& value4_matcher, const Matcher<Node*>& value5_matcher, |
+ const Matcher<Node*>& value6_matcher, const Matcher<Node*>& effect_matcher, |
+ const Matcher<Node*>& control_matcher) { |
+ std::vector<Matcher<Node*>> value_matchers; |
+ value_matchers.push_back(value0_matcher); |
+ value_matchers.push_back(value1_matcher); |
+ value_matchers.push_back(value2_matcher); |
+ value_matchers.push_back(value3_matcher); |
+ value_matchers.push_back(value4_matcher); |
+ value_matchers.push_back(value5_matcher); |
+ value_matchers.push_back(value6_matcher); |
+ return MakeMatcher(new IsTailCallMatcher(descriptor_matcher, value_matchers, |
+ effect_matcher, control_matcher)); |
+} |
+ |
+ |
+Matcher<Node*> IsTailCall( |
+ const Matcher<CallDescriptor const*>& descriptor_matcher, |
+ const Matcher<Node*>& value0_matcher, const Matcher<Node*>& value1_matcher, |
+ const Matcher<Node*>& value2_matcher, const Matcher<Node*>& value3_matcher, |
+ const Matcher<Node*>& value4_matcher, const Matcher<Node*>& value5_matcher, |
+ const Matcher<Node*>& value6_matcher, const Matcher<Node*>& value7_matcher, |
+ const Matcher<Node*>& effect_matcher, |
+ const Matcher<Node*>& control_matcher) { |
+ std::vector<Matcher<Node*>> value_matchers; |
+ value_matchers.push_back(value0_matcher); |
+ value_matchers.push_back(value1_matcher); |
+ value_matchers.push_back(value2_matcher); |
+ value_matchers.push_back(value3_matcher); |
+ value_matchers.push_back(value4_matcher); |
+ value_matchers.push_back(value5_matcher); |
+ value_matchers.push_back(value6_matcher); |
+ value_matchers.push_back(value7_matcher); |
+ return MakeMatcher(new IsTailCallMatcher(descriptor_matcher, value_matchers, |
+ effect_matcher, control_matcher)); |
+} |
+ |
+ |
Matcher<Node*> IsReferenceEqual(const Matcher<Type*>& type_matcher, |
const Matcher<Node*>& lhs_matcher, |
const Matcher<Node*>& rhs_matcher) { |