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 726 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
737 IS_BINOP_MATCHER(Int32AddWithOverflow) | 737 IS_BINOP_MATCHER(Int32AddWithOverflow) |
738 IS_BINOP_MATCHER(Uint32LessThanOrEqual) | 738 IS_BINOP_MATCHER(Uint32LessThanOrEqual) |
739 #undef IS_BINOP_MATCHER | 739 #undef IS_BINOP_MATCHER |
740 | 740 |
741 | 741 |
742 #define IS_UNOP_MATCHER(Name) \ | 742 #define IS_UNOP_MATCHER(Name) \ |
743 Matcher<Node*> Is##Name(const Matcher<Node*>& input_matcher) { \ | 743 Matcher<Node*> Is##Name(const Matcher<Node*>& input_matcher) { \ |
744 return MakeMatcher(new IsUnopMatcher(IrOpcode::k##Name, input_matcher)); \ | 744 return MakeMatcher(new IsUnopMatcher(IrOpcode::k##Name, input_matcher)); \ |
745 } | 745 } |
746 IS_UNOP_MATCHER(ChangeFloat64ToInt32) | 746 IS_UNOP_MATCHER(ChangeFloat64ToInt32) |
| 747 IS_UNOP_MATCHER(ChangeFloat64ToUint32) |
747 IS_UNOP_MATCHER(ChangeInt32ToFloat64) | 748 IS_UNOP_MATCHER(ChangeInt32ToFloat64) |
748 IS_UNOP_MATCHER(ChangeInt32ToInt64) | 749 IS_UNOP_MATCHER(ChangeInt32ToInt64) |
749 IS_UNOP_MATCHER(ChangeUint32ToFloat64) | 750 IS_UNOP_MATCHER(ChangeUint32ToFloat64) |
750 IS_UNOP_MATCHER(ChangeUint32ToUint64) | 751 IS_UNOP_MATCHER(ChangeUint32ToUint64) |
751 IS_UNOP_MATCHER(TruncateFloat64ToInt32) | 752 IS_UNOP_MATCHER(TruncateFloat64ToInt32) |
752 IS_UNOP_MATCHER(TruncateInt64ToInt32) | 753 IS_UNOP_MATCHER(TruncateInt64ToInt32) |
753 #undef IS_UNOP_MATCHER | 754 #undef IS_UNOP_MATCHER |
754 | 755 |
755 } // namespace compiler | 756 } // namespace compiler |
756 } // namespace internal | 757 } // namespace internal |
757 } // namespace v8 | 758 } // namespace v8 |
OLD | NEW |