| 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/compiler-unittests/graph-unittest.h" | 5 #include "test/compiler-unittests/graph-unittest.h" |
| 6 | 6 |
| 7 #include <ostream> // NOLINT(readability/streams) | 7 #include <ostream> // NOLINT(readability/streams) |
| 8 | 8 |
| 9 #include "src/compiler/node-properties-inl.h" | 9 #include "src/compiler/node-properties-inl.h" |
| 10 | 10 |
| (...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 655 | 655 |
| 656 | 656 |
| 657 #define IS_BINOP_MATCHER(Name) \ | 657 #define IS_BINOP_MATCHER(Name) \ |
| 658 Matcher<Node*> Is##Name(const Matcher<Node*>& lhs_matcher, \ | 658 Matcher<Node*> Is##Name(const Matcher<Node*>& lhs_matcher, \ |
| 659 const Matcher<Node*>& rhs_matcher) { \ | 659 const Matcher<Node*>& rhs_matcher) { \ |
| 660 return MakeMatcher( \ | 660 return MakeMatcher( \ |
| 661 new IsBinopMatcher(IrOpcode::k##Name, lhs_matcher, rhs_matcher)); \ | 661 new IsBinopMatcher(IrOpcode::k##Name, lhs_matcher, rhs_matcher)); \ |
| 662 } | 662 } |
| 663 IS_BINOP_MATCHER(Word32And) | 663 IS_BINOP_MATCHER(Word32And) |
| 664 IS_BINOP_MATCHER(Word32Sar) | 664 IS_BINOP_MATCHER(Word32Sar) |
| 665 IS_BINOP_MATCHER(Word32Shl) |
| 665 IS_BINOP_MATCHER(Word32Ror) | 666 IS_BINOP_MATCHER(Word32Ror) |
| 666 IS_BINOP_MATCHER(Word32Equal) | 667 IS_BINOP_MATCHER(Word32Equal) |
| 667 IS_BINOP_MATCHER(Word64And) | 668 IS_BINOP_MATCHER(Word64And) |
| 668 IS_BINOP_MATCHER(Word64Sar) | 669 IS_BINOP_MATCHER(Word64Sar) |
| 669 IS_BINOP_MATCHER(Word64Shl) | 670 IS_BINOP_MATCHER(Word64Shl) |
| 670 IS_BINOP_MATCHER(Word64Equal) | 671 IS_BINOP_MATCHER(Word64Equal) |
| 671 IS_BINOP_MATCHER(Int32AddWithOverflow) | 672 IS_BINOP_MATCHER(Int32AddWithOverflow) |
| 673 IS_BINOP_MATCHER(Uint32LessThanOrEqual) |
| 672 #undef IS_BINOP_MATCHER | 674 #undef IS_BINOP_MATCHER |
| 673 | 675 |
| 674 | 676 |
| 675 #define IS_UNOP_MATCHER(Name) \ | 677 #define IS_UNOP_MATCHER(Name) \ |
| 676 Matcher<Node*> Is##Name(const Matcher<Node*>& input_matcher) { \ | 678 Matcher<Node*> Is##Name(const Matcher<Node*>& input_matcher) { \ |
| 677 return MakeMatcher(new IsUnopMatcher(IrOpcode::k##Name, input_matcher)); \ | 679 return MakeMatcher(new IsUnopMatcher(IrOpcode::k##Name, input_matcher)); \ |
| 678 } | 680 } |
| 679 IS_UNOP_MATCHER(ChangeFloat64ToInt32) | 681 IS_UNOP_MATCHER(ChangeFloat64ToInt32) |
| 680 IS_UNOP_MATCHER(ChangeInt32ToFloat64) | 682 IS_UNOP_MATCHER(ChangeInt32ToFloat64) |
| 681 IS_UNOP_MATCHER(ChangeInt32ToInt64) | 683 IS_UNOP_MATCHER(ChangeInt32ToInt64) |
| 684 IS_UNOP_MATCHER(ChangeUint32ToFloat64) |
| 682 IS_UNOP_MATCHER(ChangeUint32ToUint64) | 685 IS_UNOP_MATCHER(ChangeUint32ToUint64) |
| 683 IS_UNOP_MATCHER(TruncateFloat64ToInt32) | 686 IS_UNOP_MATCHER(TruncateFloat64ToInt32) |
| 684 IS_UNOP_MATCHER(TruncateInt64ToInt32) | 687 IS_UNOP_MATCHER(TruncateInt64ToInt32) |
| 685 #undef IS_UNOP_MATCHER | 688 #undef IS_UNOP_MATCHER |
| 686 | 689 |
| 687 } // namespace compiler | 690 } // namespace compiler |
| 688 } // namespace internal | 691 } // namespace internal |
| 689 } // namespace v8 | 692 } // namespace v8 |
| OLD | NEW |