| 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 838 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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::VisitFloat64RoundDown(Node* node) { | 854 void InstructionSelector::VisitFloat64RoundDown(Node* node) { |
| 855 VisitRR(this, node, kSSEFloat64Round | MiscField::encode(kRoundDown)); | 855 VisitRR(this, node, kSSEFloat64Round | MiscField::encode(kRoundDown)); |
| 856 } | 856 } |
| 857 | 857 |
| 858 | 858 |
| 859 void InstructionSelector::VisitFloat64RoundUp(Node* node) { |
| 860 VisitRR(this, node, kSSEFloat64Round | MiscField::encode(kRoundUp)); |
| 861 } |
| 862 |
| 863 |
| 859 void InstructionSelector::VisitFloat64RoundTruncate(Node* node) { | 864 void InstructionSelector::VisitFloat64RoundTruncate(Node* node) { |
| 860 VisitRR(this, node, kSSEFloat64Round | MiscField::encode(kRoundToZero)); | 865 VisitRR(this, node, kSSEFloat64Round | MiscField::encode(kRoundToZero)); |
| 861 } | 866 } |
| 862 | 867 |
| 863 | 868 |
| 864 void InstructionSelector::VisitFloat64RoundTiesAway(Node* node) { | 869 void InstructionSelector::VisitFloat64RoundTiesAway(Node* node) { |
| 865 UNREACHABLE(); | 870 UNREACHABLE(); |
| 866 } | 871 } |
| 867 | 872 |
| 868 | 873 |
| (...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1268 MachineOperatorBuilder::kFloat32Min | | 1273 MachineOperatorBuilder::kFloat32Min | |
| 1269 MachineOperatorBuilder::kFloat64Max | | 1274 MachineOperatorBuilder::kFloat64Max | |
| 1270 MachineOperatorBuilder::kFloat64Min | | 1275 MachineOperatorBuilder::kFloat64Min | |
| 1271 MachineOperatorBuilder::kWord32ShiftIsSafe | | 1276 MachineOperatorBuilder::kWord32ShiftIsSafe | |
| 1272 MachineOperatorBuilder::kWord32Ctz; | 1277 MachineOperatorBuilder::kWord32Ctz; |
| 1273 if (CpuFeatures::IsSupported(POPCNT)) { | 1278 if (CpuFeatures::IsSupported(POPCNT)) { |
| 1274 flags |= MachineOperatorBuilder::kWord32Popcnt; | 1279 flags |= MachineOperatorBuilder::kWord32Popcnt; |
| 1275 } | 1280 } |
| 1276 if (CpuFeatures::IsSupported(SSE4_1)) { | 1281 if (CpuFeatures::IsSupported(SSE4_1)) { |
| 1277 flags |= MachineOperatorBuilder::kFloat64RoundDown | | 1282 flags |= MachineOperatorBuilder::kFloat64RoundDown | |
| 1283 MachineOperatorBuilder::kFloat64RoundUp | |
| 1278 MachineOperatorBuilder::kFloat64RoundTruncate; | 1284 MachineOperatorBuilder::kFloat64RoundTruncate; |
| 1279 } | 1285 } |
| 1280 return flags; | 1286 return flags; |
| 1281 } | 1287 } |
| 1282 | 1288 |
| 1283 } // namespace compiler | 1289 } // namespace compiler |
| 1284 } // namespace internal | 1290 } // namespace internal |
| 1285 } // namespace v8 | 1291 } // namespace v8 |
| OLD | NEW |