| 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 "src/compiler/instruction-selector-impl.h" | 5 #include "src/compiler/instruction-selector-impl.h" |
| 6 #include "src/compiler/node-matchers.h" | 6 #include "src/compiler/node-matchers.h" |
| 7 #include "src/compiler/node-properties.h" | 7 #include "src/compiler/node-properties.h" |
| 8 | 8 |
| 9 namespace v8 { | 9 namespace v8 { |
| 10 namespace internal { | 10 namespace internal { |
| (...skipping 1704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1715 return VisitWordCompare(this, value, kArm64Cmp, &cont, false, | 1715 return VisitWordCompare(this, value, kArm64Cmp, &cont, false, |
| 1716 kArithmeticImm); | 1716 kArithmeticImm); |
| 1717 case IrOpcode::kInt64LessThanOrEqual: | 1717 case IrOpcode::kInt64LessThanOrEqual: |
| 1718 cont.OverwriteAndNegateIfEqual(kSignedLessThanOrEqual); | 1718 cont.OverwriteAndNegateIfEqual(kSignedLessThanOrEqual); |
| 1719 return VisitWordCompare(this, value, kArm64Cmp, &cont, false, | 1719 return VisitWordCompare(this, value, kArm64Cmp, &cont, false, |
| 1720 kArithmeticImm); | 1720 kArithmeticImm); |
| 1721 case IrOpcode::kUint64LessThan: | 1721 case IrOpcode::kUint64LessThan: |
| 1722 cont.OverwriteAndNegateIfEqual(kUnsignedLessThan); | 1722 cont.OverwriteAndNegateIfEqual(kUnsignedLessThan); |
| 1723 return VisitWordCompare(this, value, kArm64Cmp, &cont, false, | 1723 return VisitWordCompare(this, value, kArm64Cmp, &cont, false, |
| 1724 kArithmeticImm); | 1724 kArithmeticImm); |
| 1725 case IrOpcode::kUint64LessThanOrEqual: |
| 1726 cont.OverwriteAndNegateIfEqual(kUnsignedLessThanOrEqual); |
| 1727 return VisitWordCompare(this, value, kArm64Cmp, &cont, false, |
| 1728 kArithmeticImm); |
| 1725 case IrOpcode::kFloat32Equal: | 1729 case IrOpcode::kFloat32Equal: |
| 1726 cont.OverwriteAndNegateIfEqual(kEqual); | 1730 cont.OverwriteAndNegateIfEqual(kEqual); |
| 1727 return VisitFloat32Compare(this, value, &cont); | 1731 return VisitFloat32Compare(this, value, &cont); |
| 1728 case IrOpcode::kFloat32LessThan: | 1732 case IrOpcode::kFloat32LessThan: |
| 1729 cont.OverwriteAndNegateIfEqual(kUnsignedLessThan); | 1733 cont.OverwriteAndNegateIfEqual(kUnsignedLessThan); |
| 1730 return VisitFloat32Compare(this, value, &cont); | 1734 return VisitFloat32Compare(this, value, &cont); |
| 1731 case IrOpcode::kFloat32LessThanOrEqual: | 1735 case IrOpcode::kFloat32LessThanOrEqual: |
| 1732 cont.OverwriteAndNegateIfEqual(kUnsignedLessThanOrEqual); | 1736 cont.OverwriteAndNegateIfEqual(kUnsignedLessThanOrEqual); |
| 1733 return VisitFloat32Compare(this, value, &cont); | 1737 return VisitFloat32Compare(this, value, &cont); |
| 1734 case IrOpcode::kFloat64Equal: | 1738 case IrOpcode::kFloat64Equal: |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1951 VisitWordCompare(this, node, kArm64Cmp, &cont, false, kArithmeticImm); | 1955 VisitWordCompare(this, node, kArm64Cmp, &cont, false, kArithmeticImm); |
| 1952 } | 1956 } |
| 1953 | 1957 |
| 1954 | 1958 |
| 1955 void InstructionSelector::VisitUint64LessThan(Node* node) { | 1959 void InstructionSelector::VisitUint64LessThan(Node* node) { |
| 1956 FlagsContinuation cont(kUnsignedLessThan, node); | 1960 FlagsContinuation cont(kUnsignedLessThan, node); |
| 1957 VisitWordCompare(this, node, kArm64Cmp, &cont, false, kArithmeticImm); | 1961 VisitWordCompare(this, node, kArm64Cmp, &cont, false, kArithmeticImm); |
| 1958 } | 1962 } |
| 1959 | 1963 |
| 1960 | 1964 |
| 1965 void InstructionSelector::VisitUint64LessThanOrEqual(Node* node) { |
| 1966 FlagsContinuation cont(kUnsignedLessThanOrEqual, node); |
| 1967 VisitWordCompare(this, node, kArm64Cmp, &cont, false, kArithmeticImm); |
| 1968 } |
| 1969 |
| 1970 |
| 1961 void InstructionSelector::VisitFloat32Equal(Node* node) { | 1971 void InstructionSelector::VisitFloat32Equal(Node* node) { |
| 1962 FlagsContinuation cont(kEqual, node); | 1972 FlagsContinuation cont(kEqual, node); |
| 1963 VisitFloat32Compare(this, node, &cont); | 1973 VisitFloat32Compare(this, node, &cont); |
| 1964 } | 1974 } |
| 1965 | 1975 |
| 1966 | 1976 |
| 1967 void InstructionSelector::VisitFloat32LessThan(Node* node) { | 1977 void InstructionSelector::VisitFloat32LessThan(Node* node) { |
| 1968 FlagsContinuation cont(kUnsignedLessThan, node); | 1978 FlagsContinuation cont(kUnsignedLessThan, node); |
| 1969 VisitFloat32Compare(this, node, &cont); | 1979 VisitFloat32Compare(this, node, &cont); |
| 1970 } | 1980 } |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2050 MachineOperatorBuilder::kFloat64RoundTruncate | | 2060 MachineOperatorBuilder::kFloat64RoundTruncate | |
| 2051 MachineOperatorBuilder::kFloat64RoundTiesAway | | 2061 MachineOperatorBuilder::kFloat64RoundTiesAway | |
| 2052 MachineOperatorBuilder::kWord32ShiftIsSafe | | 2062 MachineOperatorBuilder::kWord32ShiftIsSafe | |
| 2053 MachineOperatorBuilder::kInt32DivIsSafe | | 2063 MachineOperatorBuilder::kInt32DivIsSafe | |
| 2054 MachineOperatorBuilder::kUint32DivIsSafe; | 2064 MachineOperatorBuilder::kUint32DivIsSafe; |
| 2055 } | 2065 } |
| 2056 | 2066 |
| 2057 } // namespace compiler | 2067 } // namespace compiler |
| 2058 } // namespace internal | 2068 } // namespace internal |
| 2059 } // namespace v8 | 2069 } // namespace v8 |
| OLD | NEW |