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/node-test-utils.h" | 5 #include "test/unittests/compiler/node-test-utils.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "src/assembler.h" | 9 #include "src/assembler.h" |
10 #include "src/compiler/common-operator.h" | 10 #include "src/compiler/common-operator.h" |
(...skipping 2004 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2015 IS_BINOP_MATCHER(Word32Or) | 2015 IS_BINOP_MATCHER(Word32Or) |
2016 IS_BINOP_MATCHER(Word32Sar) | 2016 IS_BINOP_MATCHER(Word32Sar) |
2017 IS_BINOP_MATCHER(Word32Shl) | 2017 IS_BINOP_MATCHER(Word32Shl) |
2018 IS_BINOP_MATCHER(Word32Shr) | 2018 IS_BINOP_MATCHER(Word32Shr) |
2019 IS_BINOP_MATCHER(Word32Ror) | 2019 IS_BINOP_MATCHER(Word32Ror) |
2020 IS_BINOP_MATCHER(Word32Equal) | 2020 IS_BINOP_MATCHER(Word32Equal) |
2021 IS_BINOP_MATCHER(Word64And) | 2021 IS_BINOP_MATCHER(Word64And) |
2022 IS_BINOP_MATCHER(Word64Or) | 2022 IS_BINOP_MATCHER(Word64Or) |
2023 IS_BINOP_MATCHER(Word64Sar) | 2023 IS_BINOP_MATCHER(Word64Sar) |
2024 IS_BINOP_MATCHER(Word64Shl) | 2024 IS_BINOP_MATCHER(Word64Shl) |
| 2025 IS_BINOP_MATCHER(Word64Shr) |
2025 IS_BINOP_MATCHER(Word64Equal) | 2026 IS_BINOP_MATCHER(Word64Equal) |
2026 IS_BINOP_MATCHER(Int32AddWithOverflow) | 2027 IS_BINOP_MATCHER(Int32AddWithOverflow) |
2027 IS_BINOP_MATCHER(Int32Add) | 2028 IS_BINOP_MATCHER(Int32Add) |
2028 IS_BINOP_MATCHER(Int32Sub) | 2029 IS_BINOP_MATCHER(Int32Sub) |
2029 IS_BINOP_MATCHER(Int32Mul) | 2030 IS_BINOP_MATCHER(Int32Mul) |
2030 IS_BINOP_MATCHER(Int32MulHigh) | 2031 IS_BINOP_MATCHER(Int32MulHigh) |
2031 IS_BINOP_MATCHER(Int32LessThan) | 2032 IS_BINOP_MATCHER(Int32LessThan) |
2032 IS_BINOP_MATCHER(Uint32LessThan) | 2033 IS_BINOP_MATCHER(Uint32LessThan) |
2033 IS_BINOP_MATCHER(Uint32LessThanOrEqual) | 2034 IS_BINOP_MATCHER(Uint32LessThanOrEqual) |
2034 IS_BINOP_MATCHER(Int64Add) | 2035 IS_BINOP_MATCHER(Int64Add) |
2035 IS_BINOP_MATCHER(Int64Sub) | 2036 IS_BINOP_MATCHER(Int64Sub) |
| 2037 IS_BINOP_MATCHER(Int64Mul) |
2036 IS_BINOP_MATCHER(JSAdd) | 2038 IS_BINOP_MATCHER(JSAdd) |
2037 IS_BINOP_MATCHER(Float32Max) | 2039 IS_BINOP_MATCHER(Float32Max) |
2038 IS_BINOP_MATCHER(Float32Min) | 2040 IS_BINOP_MATCHER(Float32Min) |
2039 IS_BINOP_MATCHER(Float32Equal) | 2041 IS_BINOP_MATCHER(Float32Equal) |
2040 IS_BINOP_MATCHER(Float32LessThan) | 2042 IS_BINOP_MATCHER(Float32LessThan) |
2041 IS_BINOP_MATCHER(Float32LessThanOrEqual) | 2043 IS_BINOP_MATCHER(Float32LessThanOrEqual) |
2042 IS_BINOP_MATCHER(Float64Max) | 2044 IS_BINOP_MATCHER(Float64Max) |
2043 IS_BINOP_MATCHER(Float64Min) | 2045 IS_BINOP_MATCHER(Float64Min) |
2044 IS_BINOP_MATCHER(Float64Sub) | 2046 IS_BINOP_MATCHER(Float64Sub) |
2045 IS_BINOP_MATCHER(Float64InsertLowWord32) | 2047 IS_BINOP_MATCHER(Float64InsertLowWord32) |
2046 IS_BINOP_MATCHER(Float64InsertHighWord32) | 2048 IS_BINOP_MATCHER(Float64InsertHighWord32) |
2047 #undef IS_BINOP_MATCHER | 2049 #undef IS_BINOP_MATCHER |
2048 | 2050 |
2049 | 2051 |
2050 #define IS_UNOP_MATCHER(Name) \ | 2052 #define IS_UNOP_MATCHER(Name) \ |
2051 Matcher<Node*> Is##Name(const Matcher<Node*>& input_matcher) { \ | 2053 Matcher<Node*> Is##Name(const Matcher<Node*>& input_matcher) { \ |
2052 return MakeMatcher(new IsUnopMatcher(IrOpcode::k##Name, input_matcher)); \ | 2054 return MakeMatcher(new IsUnopMatcher(IrOpcode::k##Name, input_matcher)); \ |
2053 } | 2055 } |
2054 IS_UNOP_MATCHER(BooleanNot) | 2056 IS_UNOP_MATCHER(BooleanNot) |
2055 IS_UNOP_MATCHER(ChangeFloat64ToInt32) | 2057 IS_UNOP_MATCHER(ChangeFloat64ToInt32) |
2056 IS_UNOP_MATCHER(ChangeFloat64ToUint32) | 2058 IS_UNOP_MATCHER(ChangeFloat64ToUint32) |
2057 IS_UNOP_MATCHER(ChangeInt32ToFloat64) | 2059 IS_UNOP_MATCHER(ChangeInt32ToFloat64) |
2058 IS_UNOP_MATCHER(ChangeInt32ToInt64) | 2060 IS_UNOP_MATCHER(ChangeInt32ToInt64) |
2059 IS_UNOP_MATCHER(ChangeUint32ToFloat64) | 2061 IS_UNOP_MATCHER(ChangeUint32ToFloat64) |
2060 IS_UNOP_MATCHER(ChangeUint32ToUint64) | 2062 IS_UNOP_MATCHER(ChangeUint32ToUint64) |
2061 IS_UNOP_MATCHER(TruncateFloat64ToFloat32) | 2063 IS_UNOP_MATCHER(TruncateFloat64ToFloat32) |
2062 IS_UNOP_MATCHER(TruncateFloat64ToInt32) | 2064 IS_UNOP_MATCHER(TruncateFloat64ToInt32) |
2063 IS_UNOP_MATCHER(TruncateInt64ToInt32) | 2065 IS_UNOP_MATCHER(TruncateInt64ToInt32) |
| 2066 IS_UNOP_MATCHER(RoundInt64ToFloat64) |
2064 IS_UNOP_MATCHER(Float32Abs) | 2067 IS_UNOP_MATCHER(Float32Abs) |
2065 IS_UNOP_MATCHER(Float64Abs) | 2068 IS_UNOP_MATCHER(Float64Abs) |
2066 IS_UNOP_MATCHER(Float64Sqrt) | 2069 IS_UNOP_MATCHER(Float64Sqrt) |
2067 IS_UNOP_MATCHER(Float64RoundDown) | 2070 IS_UNOP_MATCHER(Float64RoundDown) |
2068 IS_UNOP_MATCHER(Float64RoundTruncate) | 2071 IS_UNOP_MATCHER(Float64RoundTruncate) |
2069 IS_UNOP_MATCHER(Float64RoundTiesAway) | 2072 IS_UNOP_MATCHER(Float64RoundTiesAway) |
2070 IS_UNOP_MATCHER(Float64ExtractLowWord32) | 2073 IS_UNOP_MATCHER(Float64ExtractLowWord32) |
2071 IS_UNOP_MATCHER(Float64ExtractHighWord32) | 2074 IS_UNOP_MATCHER(Float64ExtractHighWord32) |
2072 IS_UNOP_MATCHER(NumberToInt32) | 2075 IS_UNOP_MATCHER(NumberToInt32) |
2073 IS_UNOP_MATCHER(NumberToUint32) | 2076 IS_UNOP_MATCHER(NumberToUint32) |
2074 IS_UNOP_MATCHER(ObjectIsSmi) | 2077 IS_UNOP_MATCHER(ObjectIsSmi) |
2075 IS_UNOP_MATCHER(Word32Clz) | 2078 IS_UNOP_MATCHER(Word32Clz) |
2076 #undef IS_UNOP_MATCHER | 2079 #undef IS_UNOP_MATCHER |
2077 | 2080 |
2078 } // namespace compiler | 2081 } // namespace compiler |
2079 } // namespace internal | 2082 } // namespace internal |
2080 } // namespace v8 | 2083 } // namespace v8 |
OLD | NEW |