| 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/js-operator.h" | 10 #include "src/compiler/js-operator.h" |
| (...skipping 1360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1371 "input", input_matcher_, listener)); | 1371 "input", input_matcher_, listener)); |
| 1372 } | 1372 } |
| 1373 | 1373 |
| 1374 private: | 1374 private: |
| 1375 const Matcher<Node*> input_matcher_; | 1375 const Matcher<Node*> input_matcher_; |
| 1376 }; | 1376 }; |
| 1377 | 1377 |
| 1378 } // namespace | 1378 } // namespace |
| 1379 | 1379 |
| 1380 | 1380 |
| 1381 Matcher<Node*> IsDead() { |
| 1382 return MakeMatcher(new NodeMatcher(IrOpcode::kDead)); |
| 1383 } |
| 1384 |
| 1385 |
| 1381 Matcher<Node*> IsEnd(const Matcher<Node*>& control0_matcher) { | 1386 Matcher<Node*> IsEnd(const Matcher<Node*>& control0_matcher) { |
| 1382 return MakeMatcher(new IsControl1Matcher(IrOpcode::kEnd, control0_matcher)); | 1387 return MakeMatcher(new IsControl1Matcher(IrOpcode::kEnd, control0_matcher)); |
| 1383 } | 1388 } |
| 1384 | 1389 |
| 1385 | 1390 |
| 1386 Matcher<Node*> IsEnd(const Matcher<Node*>& control0_matcher, | 1391 Matcher<Node*> IsEnd(const Matcher<Node*>& control0_matcher, |
| 1387 const Matcher<Node*>& control1_matcher) { | 1392 const Matcher<Node*>& control1_matcher) { |
| 1388 return MakeMatcher(new IsControl2Matcher(IrOpcode::kEnd, control0_matcher, | 1393 return MakeMatcher(new IsControl2Matcher(IrOpcode::kEnd, control0_matcher, |
| 1389 control1_matcher)); | 1394 control1_matcher)); |
| 1390 } | 1395 } |
| (...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1849 IS_UNOP_MATCHER(NumberToInt32) | 1854 IS_UNOP_MATCHER(NumberToInt32) |
| 1850 IS_UNOP_MATCHER(NumberToUint32) | 1855 IS_UNOP_MATCHER(NumberToUint32) |
| 1851 IS_UNOP_MATCHER(ObjectIsSmi) | 1856 IS_UNOP_MATCHER(ObjectIsSmi) |
| 1852 IS_UNOP_MATCHER(ObjectIsNonNegativeSmi) | 1857 IS_UNOP_MATCHER(ObjectIsNonNegativeSmi) |
| 1853 IS_UNOP_MATCHER(Word32Clz) | 1858 IS_UNOP_MATCHER(Word32Clz) |
| 1854 #undef IS_UNOP_MATCHER | 1859 #undef IS_UNOP_MATCHER |
| 1855 | 1860 |
| 1856 } // namespace compiler | 1861 } // namespace compiler |
| 1857 } // namespace internal | 1862 } // namespace internal |
| 1858 } // namespace v8 | 1863 } // namespace v8 |
| OLD | NEW |