| 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 853 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 864 void InstructionSelector::VisitFloat32RoundUp(Node* node) { | 864 void InstructionSelector::VisitFloat32RoundUp(Node* node) { |
| 865 VisitRR(this, node, kSSEFloat32Round | MiscField::encode(kRoundUp)); | 865 VisitRR(this, node, kSSEFloat32Round | MiscField::encode(kRoundUp)); |
| 866 } | 866 } |
| 867 | 867 |
| 868 | 868 |
| 869 void InstructionSelector::VisitFloat64RoundUp(Node* node) { | 869 void InstructionSelector::VisitFloat64RoundUp(Node* node) { |
| 870 VisitRR(this, node, kSSEFloat64Round | MiscField::encode(kRoundUp)); | 870 VisitRR(this, node, kSSEFloat64Round | MiscField::encode(kRoundUp)); |
| 871 } | 871 } |
| 872 | 872 |
| 873 | 873 |
| 874 void InstructionSelector::VisitFloat32RoundTruncate(Node* node) { |
| 875 VisitRR(this, node, kSSEFloat32Round | MiscField::encode(kRoundToZero)); |
| 876 } |
| 877 |
| 878 |
| 874 void InstructionSelector::VisitFloat64RoundTruncate(Node* node) { | 879 void InstructionSelector::VisitFloat64RoundTruncate(Node* node) { |
| 875 VisitRR(this, node, kSSEFloat64Round | MiscField::encode(kRoundToZero)); | 880 VisitRR(this, node, kSSEFloat64Round | MiscField::encode(kRoundToZero)); |
| 876 } | 881 } |
| 877 | 882 |
| 878 | 883 |
| 879 void InstructionSelector::VisitFloat64RoundTiesAway(Node* node) { | 884 void InstructionSelector::VisitFloat64RoundTiesAway(Node* node) { |
| 880 UNREACHABLE(); | 885 UNREACHABLE(); |
| 881 } | 886 } |
| 882 | 887 |
| 883 | 888 |
| (...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1291 MachineOperatorBuilder::kWord32ShiftIsSafe | | 1296 MachineOperatorBuilder::kWord32ShiftIsSafe | |
| 1292 MachineOperatorBuilder::kWord32Ctz; | 1297 MachineOperatorBuilder::kWord32Ctz; |
| 1293 if (CpuFeatures::IsSupported(POPCNT)) { | 1298 if (CpuFeatures::IsSupported(POPCNT)) { |
| 1294 flags |= MachineOperatorBuilder::kWord32Popcnt; | 1299 flags |= MachineOperatorBuilder::kWord32Popcnt; |
| 1295 } | 1300 } |
| 1296 if (CpuFeatures::IsSupported(SSE4_1)) { | 1301 if (CpuFeatures::IsSupported(SSE4_1)) { |
| 1297 flags |= MachineOperatorBuilder::kFloat32RoundDown | | 1302 flags |= MachineOperatorBuilder::kFloat32RoundDown | |
| 1298 MachineOperatorBuilder::kFloat64RoundDown | | 1303 MachineOperatorBuilder::kFloat64RoundDown | |
| 1299 MachineOperatorBuilder::kFloat32RoundUp | | 1304 MachineOperatorBuilder::kFloat32RoundUp | |
| 1300 MachineOperatorBuilder::kFloat64RoundUp | | 1305 MachineOperatorBuilder::kFloat64RoundUp | |
| 1306 MachineOperatorBuilder::kFloat32RoundTruncate | |
| 1301 MachineOperatorBuilder::kFloat64RoundTruncate | | 1307 MachineOperatorBuilder::kFloat64RoundTruncate | |
| 1302 MachineOperatorBuilder::kFloat64RoundTiesEven; | 1308 MachineOperatorBuilder::kFloat64RoundTiesEven; |
| 1303 } | 1309 } |
| 1304 return flags; | 1310 return flags; |
| 1305 } | 1311 } |
| 1306 | 1312 |
| 1307 } // namespace compiler | 1313 } // namespace compiler |
| 1308 } // namespace internal | 1314 } // namespace internal |
| 1309 } // namespace v8 | 1315 } // namespace v8 |
| OLD | NEW |