| 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/base/adapters.h" | 5 #include "src/base/adapters.h" |
| 6 #include "src/compiler/instruction-selector-impl.h" | 6 #include "src/compiler/instruction-selector-impl.h" |
| 7 #include "src/compiler/node-matchers.h" | 7 #include "src/compiler/node-matchers.h" |
| 8 #include "src/compiler/node-properties.h" | 8 #include "src/compiler/node-properties.h" |
| 9 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| (...skipping 833 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 844 void InstructionSelector::VisitFloat32Sqrt(Node* node) { | 844 void InstructionSelector::VisitFloat32Sqrt(Node* node) { |
| 845 VisitRO(this, node, kSSEFloat32Sqrt); | 845 VisitRO(this, node, kSSEFloat32Sqrt); |
| 846 } | 846 } |
| 847 | 847 |
| 848 | 848 |
| 849 void InstructionSelector::VisitFloat64Sqrt(Node* node) { | 849 void InstructionSelector::VisitFloat64Sqrt(Node* node) { |
| 850 VisitRO(this, node, kSSEFloat64Sqrt); | 850 VisitRO(this, node, kSSEFloat64Sqrt); |
| 851 } | 851 } |
| 852 | 852 |
| 853 | 853 |
| 854 void InstructionSelector::VisitFloat32RoundDown(Node* node) { |
| 855 VisitRR(this, node, kSSEFloat32Round | MiscField::encode(kRoundDown)); |
| 856 } |
| 857 |
| 858 |
| 854 void InstructionSelector::VisitFloat64RoundDown(Node* node) { | 859 void InstructionSelector::VisitFloat64RoundDown(Node* node) { |
| 855 VisitRR(this, node, kSSEFloat64Round | MiscField::encode(kRoundDown)); | 860 VisitRR(this, node, kSSEFloat64Round | MiscField::encode(kRoundDown)); |
| 856 } | 861 } |
| 857 | 862 |
| 858 | 863 |
| 859 void InstructionSelector::VisitFloat64RoundUp(Node* node) { | 864 void InstructionSelector::VisitFloat64RoundUp(Node* node) { |
| 860 VisitRR(this, node, kSSEFloat64Round | MiscField::encode(kRoundUp)); | 865 VisitRR(this, node, kSSEFloat64Round | MiscField::encode(kRoundUp)); |
| 861 } | 866 } |
| 862 | 867 |
| 863 | 868 |
| (...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1280 MachineOperatorBuilder::kFloat64Min | | 1285 MachineOperatorBuilder::kFloat64Min | |
| 1281 MachineOperatorBuilder::kWord32ShiftIsSafe | | 1286 MachineOperatorBuilder::kWord32ShiftIsSafe | |
| 1282 MachineOperatorBuilder::kWord32Ctz; | 1287 MachineOperatorBuilder::kWord32Ctz; |
| 1283 if (CpuFeatures::IsSupported(POPCNT)) { | 1288 if (CpuFeatures::IsSupported(POPCNT)) { |
| 1284 flags |= MachineOperatorBuilder::kWord32Popcnt; | 1289 flags |= MachineOperatorBuilder::kWord32Popcnt; |
| 1285 } | 1290 } |
| 1286 if (CpuFeatures::IsSupported(SSE4_1)) { | 1291 if (CpuFeatures::IsSupported(SSE4_1)) { |
| 1287 flags |= MachineOperatorBuilder::kFloat64RoundDown | | 1292 flags |= MachineOperatorBuilder::kFloat64RoundDown | |
| 1288 MachineOperatorBuilder::kFloat64RoundUp | | 1293 MachineOperatorBuilder::kFloat64RoundUp | |
| 1289 MachineOperatorBuilder::kFloat64RoundTruncate | | 1294 MachineOperatorBuilder::kFloat64RoundTruncate | |
| 1290 MachineOperatorBuilder::kFloat64RoundTiesEven; | 1295 MachineOperatorBuilder::kFloat64RoundTiesEven | |
| 1296 MachineOperatorBuilder::kFloat32RoundDown; |
| 1291 } | 1297 } |
| 1292 return flags; | 1298 return flags; |
| 1293 } | 1299 } |
| 1294 | 1300 |
| 1295 } // namespace compiler | 1301 } // namespace compiler |
| 1296 } // namespace internal | 1302 } // namespace internal |
| 1297 } // namespace v8 | 1303 } // namespace v8 |
| OLD | NEW |