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/node-properties.h" | 10 #include "src/compiler/node-properties.h" |
(...skipping 1302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1313 "input", input_matcher_, listener)); | 1313 "input", input_matcher_, listener)); |
1314 } | 1314 } |
1315 | 1315 |
1316 private: | 1316 private: |
1317 const Matcher<Node*> input_matcher_; | 1317 const Matcher<Node*> input_matcher_; |
1318 }; | 1318 }; |
1319 | 1319 |
1320 } // namespace | 1320 } // namespace |
1321 | 1321 |
1322 | 1322 |
1323 Matcher<Node*> IsEnd(const Matcher<Node*>& control_matcher) { | 1323 Matcher<Node*> IsEnd(const Matcher<Node*>& control0_matcher) { |
1324 return MakeMatcher(new IsControl1Matcher(IrOpcode::kEnd, control_matcher)); | 1324 return MakeMatcher(new IsControl1Matcher(IrOpcode::kEnd, control0_matcher)); |
1325 } | 1325 } |
1326 | 1326 |
1327 | 1327 |
| 1328 Matcher<Node*> IsEnd(const Matcher<Node*>& control0_matcher, |
| 1329 const Matcher<Node*>& control1_matcher) { |
| 1330 return MakeMatcher(new IsControl2Matcher(IrOpcode::kEnd, control0_matcher, |
| 1331 control1_matcher)); |
| 1332 } |
| 1333 |
| 1334 |
1328 Matcher<Node*> IsBranch(const Matcher<Node*>& value_matcher, | 1335 Matcher<Node*> IsBranch(const Matcher<Node*>& value_matcher, |
1329 const Matcher<Node*>& control_matcher) { | 1336 const Matcher<Node*>& control_matcher) { |
1330 return MakeMatcher(new IsBranchMatcher(value_matcher, control_matcher)); | 1337 return MakeMatcher(new IsBranchMatcher(value_matcher, control_matcher)); |
1331 } | 1338 } |
1332 | 1339 |
1333 | 1340 |
1334 Matcher<Node*> IsMerge(const Matcher<Node*>& control0_matcher, | 1341 Matcher<Node*> IsMerge(const Matcher<Node*>& control0_matcher, |
1335 const Matcher<Node*>& control1_matcher) { | 1342 const Matcher<Node*>& control1_matcher) { |
1336 return MakeMatcher(new IsControl2Matcher(IrOpcode::kMerge, control0_matcher, | 1343 return MakeMatcher(new IsControl2Matcher(IrOpcode::kMerge, control0_matcher, |
1337 control1_matcher)); | 1344 control1_matcher)); |
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1770 IS_UNOP_MATCHER(NumberToInt32) | 1777 IS_UNOP_MATCHER(NumberToInt32) |
1771 IS_UNOP_MATCHER(NumberToUint32) | 1778 IS_UNOP_MATCHER(NumberToUint32) |
1772 IS_UNOP_MATCHER(ObjectIsSmi) | 1779 IS_UNOP_MATCHER(ObjectIsSmi) |
1773 IS_UNOP_MATCHER(ObjectIsNonNegativeSmi) | 1780 IS_UNOP_MATCHER(ObjectIsNonNegativeSmi) |
1774 IS_UNOP_MATCHER(Word32Clz) | 1781 IS_UNOP_MATCHER(Word32Clz) |
1775 #undef IS_UNOP_MATCHER | 1782 #undef IS_UNOP_MATCHER |
1776 | 1783 |
1777 } // namespace compiler | 1784 } // namespace compiler |
1778 } // namespace internal | 1785 } // namespace internal |
1779 } // namespace v8 | 1786 } // namespace v8 |
OLD | NEW |