| 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/base/bits.h" | 6 #include "src/base/bits.h" |
| 7 #include "src/compiler/instruction-selector-impl.h" | 7 #include "src/compiler/instruction-selector-impl.h" |
| 8 #include "src/compiler/node-matchers.h" | 8 #include "src/compiler/node-matchers.h" |
| 9 #include "src/compiler/node-properties.h" | 9 #include "src/compiler/node-properties.h" |
| 10 | 10 |
| (...skipping 1102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1113 void InstructionSelector::VisitFloat64Sqrt(Node* node) { | 1113 void InstructionSelector::VisitFloat64Sqrt(Node* node) { |
| 1114 VisitRR(this, kArmVsqrtF64, node); | 1114 VisitRR(this, kArmVsqrtF64, node); |
| 1115 } | 1115 } |
| 1116 | 1116 |
| 1117 | 1117 |
| 1118 void InstructionSelector::VisitFloat64RoundDown(Node* node) { | 1118 void InstructionSelector::VisitFloat64RoundDown(Node* node) { |
| 1119 VisitRR(this, kArmVrintmF64, node); | 1119 VisitRR(this, kArmVrintmF64, node); |
| 1120 } | 1120 } |
| 1121 | 1121 |
| 1122 | 1122 |
| 1123 void InstructionSelector::VisitFloat64RoundUp(Node* node) { |
| 1124 VisitRR(this, kArmVrintpF64, node); |
| 1125 } |
| 1126 |
| 1127 |
| 1123 void InstructionSelector::VisitFloat64RoundTruncate(Node* node) { | 1128 void InstructionSelector::VisitFloat64RoundTruncate(Node* node) { |
| 1124 VisitRR(this, kArmVrintzF64, node); | 1129 VisitRR(this, kArmVrintzF64, node); |
| 1125 } | 1130 } |
| 1126 | 1131 |
| 1127 | 1132 |
| 1128 void InstructionSelector::VisitFloat64RoundTiesAway(Node* node) { | 1133 void InstructionSelector::VisitFloat64RoundTiesAway(Node* node) { |
| 1129 VisitRR(this, kArmVrintaF64, node); | 1134 VisitRR(this, kArmVrintaF64, node); |
| 1130 } | 1135 } |
| 1131 | 1136 |
| 1132 | 1137 |
| (...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1549 | 1554 |
| 1550 | 1555 |
| 1551 // static | 1556 // static |
| 1552 MachineOperatorBuilder::Flags | 1557 MachineOperatorBuilder::Flags |
| 1553 InstructionSelector::SupportedMachineOperatorFlags() { | 1558 InstructionSelector::SupportedMachineOperatorFlags() { |
| 1554 MachineOperatorBuilder::Flags flags = | 1559 MachineOperatorBuilder::Flags flags = |
| 1555 MachineOperatorBuilder::kInt32DivIsSafe | | 1560 MachineOperatorBuilder::kInt32DivIsSafe | |
| 1556 MachineOperatorBuilder::kUint32DivIsSafe; | 1561 MachineOperatorBuilder::kUint32DivIsSafe; |
| 1557 if (CpuFeatures::IsSupported(ARMv8)) { | 1562 if (CpuFeatures::IsSupported(ARMv8)) { |
| 1558 flags |= MachineOperatorBuilder::kFloat64RoundDown | | 1563 flags |= MachineOperatorBuilder::kFloat64RoundDown | |
| 1564 MachineOperatorBuilder::kFloat64RoundUp | |
| 1559 MachineOperatorBuilder::kFloat64RoundTruncate | | 1565 MachineOperatorBuilder::kFloat64RoundTruncate | |
| 1560 MachineOperatorBuilder::kFloat64RoundTiesAway; | 1566 MachineOperatorBuilder::kFloat64RoundTiesAway; |
| 1561 } | 1567 } |
| 1562 return flags; | 1568 return flags; |
| 1563 } | 1569 } |
| 1564 | 1570 |
| 1565 } // namespace compiler | 1571 } // namespace compiler |
| 1566 } // namespace internal | 1572 } // namespace internal |
| 1567 } // namespace v8 | 1573 } // namespace v8 |
| OLD | NEW |