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 1151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1162 void InstructionSelector::VisitFloat32Min(Node* node) { | 1162 void InstructionSelector::VisitFloat32Min(Node* node) { |
1163 VisitRRR(this, kArm64Float32Min, node); | 1163 VisitRRR(this, kArm64Float32Min, node); |
1164 } | 1164 } |
1165 | 1165 |
1166 | 1166 |
1167 void InstructionSelector::VisitFloat64Min(Node* node) { | 1167 void InstructionSelector::VisitFloat64Min(Node* node) { |
1168 VisitRRR(this, kArm64Float64Min, node); | 1168 VisitRRR(this, kArm64Float64Min, node); |
1169 } | 1169 } |
1170 | 1170 |
1171 | 1171 |
| 1172 void InstructionSelector::VisitFloat32Abs(Node* node) { |
| 1173 VisitRR(this, kArm64Float32Abs, node); |
| 1174 } |
| 1175 |
| 1176 |
| 1177 void InstructionSelector::VisitFloat64Abs(Node* node) { |
| 1178 VisitRR(this, kArm64Float64Abs, node); |
| 1179 } |
| 1180 |
| 1181 |
1172 void InstructionSelector::VisitFloat32Sqrt(Node* node) { | 1182 void InstructionSelector::VisitFloat32Sqrt(Node* node) { |
1173 VisitRR(this, kArm64Float32Sqrt, node); | 1183 VisitRR(this, kArm64Float32Sqrt, node); |
1174 } | 1184 } |
1175 | 1185 |
1176 | 1186 |
1177 void InstructionSelector::VisitFloat64Sqrt(Node* node) { | 1187 void InstructionSelector::VisitFloat64Sqrt(Node* node) { |
1178 VisitRR(this, kArm64Float64Sqrt, node); | 1188 VisitRR(this, kArm64Float64Sqrt, node); |
1179 } | 1189 } |
1180 | 1190 |
1181 | 1191 |
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1746 return; | 1756 return; |
1747 } | 1757 } |
1748 Emit(kArm64Float64InsertHighWord32, g.DefineAsRegister(node), | 1758 Emit(kArm64Float64InsertHighWord32, g.DefineAsRegister(node), |
1749 g.UseRegister(left), g.UseRegister(right)); | 1759 g.UseRegister(left), g.UseRegister(right)); |
1750 } | 1760 } |
1751 | 1761 |
1752 | 1762 |
1753 // static | 1763 // static |
1754 MachineOperatorBuilder::Flags | 1764 MachineOperatorBuilder::Flags |
1755 InstructionSelector::SupportedMachineOperatorFlags() { | 1765 InstructionSelector::SupportedMachineOperatorFlags() { |
1756 return MachineOperatorBuilder::kFloat32Max | | 1766 return MachineOperatorBuilder::kFloat32Abs | |
| 1767 MachineOperatorBuilder::kFloat32Max | |
1757 MachineOperatorBuilder::kFloat32Min | | 1768 MachineOperatorBuilder::kFloat32Min | |
| 1769 MachineOperatorBuilder::kFloat64Abs | |
1758 MachineOperatorBuilder::kFloat64Max | | 1770 MachineOperatorBuilder::kFloat64Max | |
1759 MachineOperatorBuilder::kFloat64Min | | 1771 MachineOperatorBuilder::kFloat64Min | |
1760 MachineOperatorBuilder::kFloat64RoundDown | | 1772 MachineOperatorBuilder::kFloat64RoundDown | |
1761 MachineOperatorBuilder::kFloat64RoundTruncate | | 1773 MachineOperatorBuilder::kFloat64RoundTruncate | |
1762 MachineOperatorBuilder::kFloat64RoundTiesAway | | 1774 MachineOperatorBuilder::kFloat64RoundTiesAway | |
1763 MachineOperatorBuilder::kWord32ShiftIsSafe | | 1775 MachineOperatorBuilder::kWord32ShiftIsSafe | |
1764 MachineOperatorBuilder::kInt32DivIsSafe | | 1776 MachineOperatorBuilder::kInt32DivIsSafe | |
1765 MachineOperatorBuilder::kUint32DivIsSafe; | 1777 MachineOperatorBuilder::kUint32DivIsSafe; |
1766 } | 1778 } |
1767 | 1779 |
1768 } // namespace compiler | 1780 } // namespace compiler |
1769 } // namespace internal | 1781 } // namespace internal |
1770 } // namespace v8 | 1782 } // namespace v8 |
OLD | NEW |