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/graph-unittest.h" | 5 #include "test/unittests/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 #include "src/compiler/simplified-operator.h" | 10 #include "src/compiler/simplified-operator.h" |
(...skipping 923 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
934 Matcher<Node*> Is##Name(const Matcher<Node*>& lhs_matcher, \ | 934 Matcher<Node*> Is##Name(const Matcher<Node*>& lhs_matcher, \ |
935 const Matcher<Node*>& rhs_matcher) { \ | 935 const Matcher<Node*>& rhs_matcher) { \ |
936 return MakeMatcher( \ | 936 return MakeMatcher( \ |
937 new IsBinopMatcher(IrOpcode::k##Name, lhs_matcher, rhs_matcher)); \ | 937 new IsBinopMatcher(IrOpcode::k##Name, lhs_matcher, rhs_matcher)); \ |
938 } | 938 } |
939 IS_BINOP_MATCHER(NumberLessThan) | 939 IS_BINOP_MATCHER(NumberLessThan) |
940 IS_BINOP_MATCHER(NumberSubtract) | 940 IS_BINOP_MATCHER(NumberSubtract) |
941 IS_BINOP_MATCHER(Word32And) | 941 IS_BINOP_MATCHER(Word32And) |
942 IS_BINOP_MATCHER(Word32Sar) | 942 IS_BINOP_MATCHER(Word32Sar) |
943 IS_BINOP_MATCHER(Word32Shl) | 943 IS_BINOP_MATCHER(Word32Shl) |
| 944 IS_BINOP_MATCHER(Word32Shr) |
944 IS_BINOP_MATCHER(Word32Ror) | 945 IS_BINOP_MATCHER(Word32Ror) |
945 IS_BINOP_MATCHER(Word32Equal) | 946 IS_BINOP_MATCHER(Word32Equal) |
946 IS_BINOP_MATCHER(Word64And) | 947 IS_BINOP_MATCHER(Word64And) |
947 IS_BINOP_MATCHER(Word64Sar) | 948 IS_BINOP_MATCHER(Word64Sar) |
948 IS_BINOP_MATCHER(Word64Shl) | 949 IS_BINOP_MATCHER(Word64Shl) |
949 IS_BINOP_MATCHER(Word64Equal) | 950 IS_BINOP_MATCHER(Word64Equal) |
950 IS_BINOP_MATCHER(Int32AddWithOverflow) | 951 IS_BINOP_MATCHER(Int32AddWithOverflow) |
| 952 IS_BINOP_MATCHER(Int32Add) |
951 IS_BINOP_MATCHER(Int32Sub) | 953 IS_BINOP_MATCHER(Int32Sub) |
952 IS_BINOP_MATCHER(Int32Mul) | 954 IS_BINOP_MATCHER(Int32Mul) |
| 955 IS_BINOP_MATCHER(Int32MulHigh) |
953 IS_BINOP_MATCHER(Int32LessThan) | 956 IS_BINOP_MATCHER(Int32LessThan) |
954 IS_BINOP_MATCHER(Uint32LessThan) | 957 IS_BINOP_MATCHER(Uint32LessThan) |
955 IS_BINOP_MATCHER(Uint32LessThanOrEqual) | 958 IS_BINOP_MATCHER(Uint32LessThanOrEqual) |
956 #undef IS_BINOP_MATCHER | 959 #undef IS_BINOP_MATCHER |
957 | 960 |
958 | 961 |
959 #define IS_UNOP_MATCHER(Name) \ | 962 #define IS_UNOP_MATCHER(Name) \ |
960 Matcher<Node*> Is##Name(const Matcher<Node*>& input_matcher) { \ | 963 Matcher<Node*> Is##Name(const Matcher<Node*>& input_matcher) { \ |
961 return MakeMatcher(new IsUnopMatcher(IrOpcode::k##Name, input_matcher)); \ | 964 return MakeMatcher(new IsUnopMatcher(IrOpcode::k##Name, input_matcher)); \ |
962 } | 965 } |
963 IS_UNOP_MATCHER(ChangeFloat64ToInt32) | 966 IS_UNOP_MATCHER(ChangeFloat64ToInt32) |
964 IS_UNOP_MATCHER(ChangeFloat64ToUint32) | 967 IS_UNOP_MATCHER(ChangeFloat64ToUint32) |
965 IS_UNOP_MATCHER(ChangeInt32ToFloat64) | 968 IS_UNOP_MATCHER(ChangeInt32ToFloat64) |
966 IS_UNOP_MATCHER(ChangeInt32ToInt64) | 969 IS_UNOP_MATCHER(ChangeInt32ToInt64) |
967 IS_UNOP_MATCHER(ChangeUint32ToFloat64) | 970 IS_UNOP_MATCHER(ChangeUint32ToFloat64) |
968 IS_UNOP_MATCHER(ChangeUint32ToUint64) | 971 IS_UNOP_MATCHER(ChangeUint32ToUint64) |
969 IS_UNOP_MATCHER(TruncateFloat64ToFloat32) | 972 IS_UNOP_MATCHER(TruncateFloat64ToFloat32) |
970 IS_UNOP_MATCHER(TruncateFloat64ToInt32) | 973 IS_UNOP_MATCHER(TruncateFloat64ToInt32) |
971 IS_UNOP_MATCHER(TruncateInt64ToInt32) | 974 IS_UNOP_MATCHER(TruncateInt64ToInt32) |
972 IS_UNOP_MATCHER(Float64Sqrt) | 975 IS_UNOP_MATCHER(Float64Sqrt) |
973 #undef IS_UNOP_MATCHER | 976 #undef IS_UNOP_MATCHER |
974 | 977 |
975 } // namespace compiler | 978 } // namespace compiler |
976 } // namespace internal | 979 } // namespace internal |
977 } // namespace v8 | 980 } // namespace v8 |
OLD | NEW |