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 930 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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(Word32Ror) | 944 IS_BINOP_MATCHER(Word32Ror) |
945 IS_BINOP_MATCHER(Word32Equal) | 945 IS_BINOP_MATCHER(Word32Equal) |
946 IS_BINOP_MATCHER(Word64And) | 946 IS_BINOP_MATCHER(Word64And) |
947 IS_BINOP_MATCHER(Word64Sar) | 947 IS_BINOP_MATCHER(Word64Sar) |
948 IS_BINOP_MATCHER(Word64Shl) | 948 IS_BINOP_MATCHER(Word64Shl) |
949 IS_BINOP_MATCHER(Word64Equal) | 949 IS_BINOP_MATCHER(Word64Equal) |
950 IS_BINOP_MATCHER(Int32AddWithOverflow) | 950 IS_BINOP_MATCHER(Int32AddWithOverflow) |
| 951 IS_BINOP_MATCHER(Int32Sub) |
951 IS_BINOP_MATCHER(Int32Mul) | 952 IS_BINOP_MATCHER(Int32Mul) |
| 953 IS_BINOP_MATCHER(Int32LessThan) |
952 IS_BINOP_MATCHER(Uint32LessThan) | 954 IS_BINOP_MATCHER(Uint32LessThan) |
953 IS_BINOP_MATCHER(Uint32LessThanOrEqual) | 955 IS_BINOP_MATCHER(Uint32LessThanOrEqual) |
954 #undef IS_BINOP_MATCHER | 956 #undef IS_BINOP_MATCHER |
955 | 957 |
956 | 958 |
957 #define IS_UNOP_MATCHER(Name) \ | 959 #define IS_UNOP_MATCHER(Name) \ |
958 Matcher<Node*> Is##Name(const Matcher<Node*>& input_matcher) { \ | 960 Matcher<Node*> Is##Name(const Matcher<Node*>& input_matcher) { \ |
959 return MakeMatcher(new IsUnopMatcher(IrOpcode::k##Name, input_matcher)); \ | 961 return MakeMatcher(new IsUnopMatcher(IrOpcode::k##Name, input_matcher)); \ |
960 } | 962 } |
961 IS_UNOP_MATCHER(ChangeFloat64ToInt32) | 963 IS_UNOP_MATCHER(ChangeFloat64ToInt32) |
962 IS_UNOP_MATCHER(ChangeFloat64ToUint32) | 964 IS_UNOP_MATCHER(ChangeFloat64ToUint32) |
963 IS_UNOP_MATCHER(ChangeInt32ToFloat64) | 965 IS_UNOP_MATCHER(ChangeInt32ToFloat64) |
964 IS_UNOP_MATCHER(ChangeInt32ToInt64) | 966 IS_UNOP_MATCHER(ChangeInt32ToInt64) |
965 IS_UNOP_MATCHER(ChangeUint32ToFloat64) | 967 IS_UNOP_MATCHER(ChangeUint32ToFloat64) |
966 IS_UNOP_MATCHER(ChangeUint32ToUint64) | 968 IS_UNOP_MATCHER(ChangeUint32ToUint64) |
967 IS_UNOP_MATCHER(TruncateFloat64ToFloat32) | 969 IS_UNOP_MATCHER(TruncateFloat64ToFloat32) |
968 IS_UNOP_MATCHER(TruncateFloat64ToInt32) | 970 IS_UNOP_MATCHER(TruncateFloat64ToInt32) |
969 IS_UNOP_MATCHER(TruncateInt64ToInt32) | 971 IS_UNOP_MATCHER(TruncateInt64ToInt32) |
970 IS_UNOP_MATCHER(Float64Sqrt) | 972 IS_UNOP_MATCHER(Float64Sqrt) |
971 #undef IS_UNOP_MATCHER | 973 #undef IS_UNOP_MATCHER |
972 | 974 |
973 } // namespace compiler | 975 } // namespace compiler |
974 } // namespace internal | 976 } // namespace internal |
975 } // namespace v8 | 977 } // namespace v8 |
OLD | NEW |