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 "src/assembler.h" | 7 #include "src/assembler.h" |
8 #include "src/compiler/node-properties.h" | 8 #include "src/compiler/node-properties.h" |
9 #include "src/compiler/simplified-operator.h" | 9 #include "src/compiler/simplified-operator.h" |
10 #include "src/unique.h" | 10 #include "src/unique.h" |
(...skipping 1584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1595 IS_BINOP_MATCHER(Float64Sub) | 1595 IS_BINOP_MATCHER(Float64Sub) |
1596 IS_BINOP_MATCHER(Float64InsertLowWord32) | 1596 IS_BINOP_MATCHER(Float64InsertLowWord32) |
1597 IS_BINOP_MATCHER(Float64InsertHighWord32) | 1597 IS_BINOP_MATCHER(Float64InsertHighWord32) |
1598 #undef IS_BINOP_MATCHER | 1598 #undef IS_BINOP_MATCHER |
1599 | 1599 |
1600 | 1600 |
1601 #define IS_UNOP_MATCHER(Name) \ | 1601 #define IS_UNOP_MATCHER(Name) \ |
1602 Matcher<Node*> Is##Name(const Matcher<Node*>& input_matcher) { \ | 1602 Matcher<Node*> Is##Name(const Matcher<Node*>& input_matcher) { \ |
1603 return MakeMatcher(new IsUnopMatcher(IrOpcode::k##Name, input_matcher)); \ | 1603 return MakeMatcher(new IsUnopMatcher(IrOpcode::k##Name, input_matcher)); \ |
1604 } | 1604 } |
1605 IS_UNOP_MATCHER(AnyToBoolean) | |
1606 IS_UNOP_MATCHER(BooleanNot) | 1605 IS_UNOP_MATCHER(BooleanNot) |
1607 IS_UNOP_MATCHER(ChangeFloat64ToInt32) | 1606 IS_UNOP_MATCHER(ChangeFloat64ToInt32) |
1608 IS_UNOP_MATCHER(ChangeFloat64ToUint32) | 1607 IS_UNOP_MATCHER(ChangeFloat64ToUint32) |
1609 IS_UNOP_MATCHER(ChangeInt32ToFloat64) | 1608 IS_UNOP_MATCHER(ChangeInt32ToFloat64) |
1610 IS_UNOP_MATCHER(ChangeInt32ToInt64) | 1609 IS_UNOP_MATCHER(ChangeInt32ToInt64) |
1611 IS_UNOP_MATCHER(ChangeUint32ToFloat64) | 1610 IS_UNOP_MATCHER(ChangeUint32ToFloat64) |
1612 IS_UNOP_MATCHER(ChangeUint32ToUint64) | 1611 IS_UNOP_MATCHER(ChangeUint32ToUint64) |
1613 IS_UNOP_MATCHER(TruncateFloat64ToFloat32) | 1612 IS_UNOP_MATCHER(TruncateFloat64ToFloat32) |
1614 IS_UNOP_MATCHER(TruncateFloat64ToInt32) | 1613 IS_UNOP_MATCHER(TruncateFloat64ToInt32) |
1615 IS_UNOP_MATCHER(TruncateInt64ToInt32) | 1614 IS_UNOP_MATCHER(TruncateInt64ToInt32) |
1616 IS_UNOP_MATCHER(Float64Sqrt) | 1615 IS_UNOP_MATCHER(Float64Sqrt) |
1617 IS_UNOP_MATCHER(Float64RoundDown) | 1616 IS_UNOP_MATCHER(Float64RoundDown) |
1618 IS_UNOP_MATCHER(Float64RoundTruncate) | 1617 IS_UNOP_MATCHER(Float64RoundTruncate) |
1619 IS_UNOP_MATCHER(Float64RoundTiesAway) | 1618 IS_UNOP_MATCHER(Float64RoundTiesAway) |
1620 IS_UNOP_MATCHER(Float64ExtractLowWord32) | 1619 IS_UNOP_MATCHER(Float64ExtractLowWord32) |
1621 IS_UNOP_MATCHER(Float64ExtractHighWord32) | 1620 IS_UNOP_MATCHER(Float64ExtractHighWord32) |
1622 IS_UNOP_MATCHER(NumberToInt32) | 1621 IS_UNOP_MATCHER(NumberToInt32) |
1623 IS_UNOP_MATCHER(NumberToUint32) | 1622 IS_UNOP_MATCHER(NumberToUint32) |
1624 IS_UNOP_MATCHER(ObjectIsSmi) | 1623 IS_UNOP_MATCHER(ObjectIsSmi) |
1625 IS_UNOP_MATCHER(ObjectIsNonNegativeSmi) | 1624 IS_UNOP_MATCHER(ObjectIsNonNegativeSmi) |
1626 #undef IS_UNOP_MATCHER | 1625 #undef IS_UNOP_MATCHER |
1627 | 1626 |
1628 } // namespace compiler | 1627 } // namespace compiler |
1629 } // namespace internal | 1628 } // namespace internal |
1630 } // namespace v8 | 1629 } // namespace v8 |
OLD | NEW |