| 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 843 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 854 void InstructionSelector::VisitFloat32RoundDown(Node* node) { | 854 void InstructionSelector::VisitFloat32RoundDown(Node* node) { | 
| 855   VisitRR(this, node, kSSEFloat32Round | MiscField::encode(kRoundDown)); | 855   VisitRR(this, node, kSSEFloat32Round | MiscField::encode(kRoundDown)); | 
| 856 } | 856 } | 
| 857 | 857 | 
| 858 | 858 | 
| 859 void InstructionSelector::VisitFloat64RoundDown(Node* node) { | 859 void InstructionSelector::VisitFloat64RoundDown(Node* node) { | 
| 860   VisitRR(this, node, kSSEFloat64Round | MiscField::encode(kRoundDown)); | 860   VisitRR(this, node, kSSEFloat64Round | MiscField::encode(kRoundDown)); | 
| 861 } | 861 } | 
| 862 | 862 | 
| 863 | 863 | 
|  | 864 void InstructionSelector::VisitFloat32RoundUp(Node* node) { | 
|  | 865   VisitRR(this, node, kSSEFloat32Round | MiscField::encode(kRoundUp)); | 
|  | 866 } | 
|  | 867 | 
|  | 868 | 
| 864 void InstructionSelector::VisitFloat64RoundUp(Node* node) { | 869 void InstructionSelector::VisitFloat64RoundUp(Node* node) { | 
| 865   VisitRR(this, node, kSSEFloat64Round | MiscField::encode(kRoundUp)); | 870   VisitRR(this, node, kSSEFloat64Round | MiscField::encode(kRoundUp)); | 
| 866 } | 871 } | 
| 867 | 872 | 
| 868 | 873 | 
| 869 void InstructionSelector::VisitFloat64RoundTruncate(Node* node) { | 874 void InstructionSelector::VisitFloat64RoundTruncate(Node* node) { | 
| 870   VisitRR(this, node, kSSEFloat64Round | MiscField::encode(kRoundToZero)); | 875   VisitRR(this, node, kSSEFloat64Round | MiscField::encode(kRoundToZero)); | 
| 871 } | 876 } | 
| 872 | 877 | 
| 873 | 878 | 
| (...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1282       MachineOperatorBuilder::kFloat32Max | | 1287       MachineOperatorBuilder::kFloat32Max | | 
| 1283       MachineOperatorBuilder::kFloat32Min | | 1288       MachineOperatorBuilder::kFloat32Min | | 
| 1284       MachineOperatorBuilder::kFloat64Max | | 1289       MachineOperatorBuilder::kFloat64Max | | 
| 1285       MachineOperatorBuilder::kFloat64Min | | 1290       MachineOperatorBuilder::kFloat64Min | | 
| 1286       MachineOperatorBuilder::kWord32ShiftIsSafe | | 1291       MachineOperatorBuilder::kWord32ShiftIsSafe | | 
| 1287       MachineOperatorBuilder::kWord32Ctz; | 1292       MachineOperatorBuilder::kWord32Ctz; | 
| 1288   if (CpuFeatures::IsSupported(POPCNT)) { | 1293   if (CpuFeatures::IsSupported(POPCNT)) { | 
| 1289     flags |= MachineOperatorBuilder::kWord32Popcnt; | 1294     flags |= MachineOperatorBuilder::kWord32Popcnt; | 
| 1290   } | 1295   } | 
| 1291   if (CpuFeatures::IsSupported(SSE4_1)) { | 1296   if (CpuFeatures::IsSupported(SSE4_1)) { | 
| 1292     flags |= MachineOperatorBuilder::kFloat64RoundDown | | 1297     flags |= MachineOperatorBuilder::kFloat32RoundDown | | 
|  | 1298              MachineOperatorBuilder::kFloat64RoundDown | | 
|  | 1299              MachineOperatorBuilder::kFloat32RoundUp | | 
| 1293              MachineOperatorBuilder::kFloat64RoundUp | | 1300              MachineOperatorBuilder::kFloat64RoundUp | | 
| 1294              MachineOperatorBuilder::kFloat64RoundTruncate | | 1301              MachineOperatorBuilder::kFloat64RoundTruncate | | 
| 1295              MachineOperatorBuilder::kFloat64RoundTiesEven | | 1302              MachineOperatorBuilder::kFloat64RoundTiesEven; | 
| 1296              MachineOperatorBuilder::kFloat32RoundDown; |  | 
| 1297   } | 1303   } | 
| 1298   return flags; | 1304   return flags; | 
| 1299 } | 1305 } | 
| 1300 | 1306 | 
| 1301 }  // namespace compiler | 1307 }  // namespace compiler | 
| 1302 }  // namespace internal | 1308 }  // namespace internal | 
| 1303 }  // namespace v8 | 1309 }  // namespace v8 | 
| OLD | NEW | 
|---|