| 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 "src/compiler/graph-unittest.h" | 5 #include "src/compiler/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 726 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 737 } | 737 } |
| 738 | 738 |
| 739 | 739 |
| 740 #define IS_BINOP_MATCHER(Name) \ | 740 #define IS_BINOP_MATCHER(Name) \ |
| 741 Matcher<Node*> Is##Name(const Matcher<Node*>& lhs_matcher, \ | 741 Matcher<Node*> Is##Name(const Matcher<Node*>& lhs_matcher, \ |
| 742 const Matcher<Node*>& rhs_matcher) { \ | 742 const Matcher<Node*>& rhs_matcher) { \ |
| 743 return MakeMatcher( \ | 743 return MakeMatcher( \ |
| 744 new IsBinopMatcher(IrOpcode::k##Name, lhs_matcher, rhs_matcher)); \ | 744 new IsBinopMatcher(IrOpcode::k##Name, lhs_matcher, rhs_matcher)); \ |
| 745 } | 745 } |
| 746 IS_BINOP_MATCHER(NumberLessThan) | 746 IS_BINOP_MATCHER(NumberLessThan) |
| 747 IS_BINOP_MATCHER(NumberSubtract) |
| 747 IS_BINOP_MATCHER(Word32And) | 748 IS_BINOP_MATCHER(Word32And) |
| 748 IS_BINOP_MATCHER(Word32Sar) | 749 IS_BINOP_MATCHER(Word32Sar) |
| 749 IS_BINOP_MATCHER(Word32Shl) | 750 IS_BINOP_MATCHER(Word32Shl) |
| 750 IS_BINOP_MATCHER(Word32Ror) | 751 IS_BINOP_MATCHER(Word32Ror) |
| 751 IS_BINOP_MATCHER(Word32Equal) | 752 IS_BINOP_MATCHER(Word32Equal) |
| 752 IS_BINOP_MATCHER(Word64And) | 753 IS_BINOP_MATCHER(Word64And) |
| 753 IS_BINOP_MATCHER(Word64Sar) | 754 IS_BINOP_MATCHER(Word64Sar) |
| 754 IS_BINOP_MATCHER(Word64Shl) | 755 IS_BINOP_MATCHER(Word64Shl) |
| 755 IS_BINOP_MATCHER(Word64Equal) | 756 IS_BINOP_MATCHER(Word64Equal) |
| 756 IS_BINOP_MATCHER(Int32AddWithOverflow) | 757 IS_BINOP_MATCHER(Int32AddWithOverflow) |
| (...skipping 14 matching lines...) Expand all Loading... |
| 771 IS_UNOP_MATCHER(ChangeUint32ToUint64) | 772 IS_UNOP_MATCHER(ChangeUint32ToUint64) |
| 772 IS_UNOP_MATCHER(TruncateFloat64ToFloat32) | 773 IS_UNOP_MATCHER(TruncateFloat64ToFloat32) |
| 773 IS_UNOP_MATCHER(TruncateFloat64ToInt32) | 774 IS_UNOP_MATCHER(TruncateFloat64ToInt32) |
| 774 IS_UNOP_MATCHER(TruncateInt64ToInt32) | 775 IS_UNOP_MATCHER(TruncateInt64ToInt32) |
| 775 IS_UNOP_MATCHER(Float64Sqrt) | 776 IS_UNOP_MATCHER(Float64Sqrt) |
| 776 #undef IS_UNOP_MATCHER | 777 #undef IS_UNOP_MATCHER |
| 777 | 778 |
| 778 } // namespace compiler | 779 } // namespace compiler |
| 779 } // namespace internal | 780 } // namespace internal |
| 780 } // namespace v8 | 781 } // namespace v8 |
| OLD | NEW |