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 1117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1128 void InstructionSelector::VisitFloat32RoundUp(Node* node) { | 1128 void InstructionSelector::VisitFloat32RoundUp(Node* node) { |
1129 VisitRR(this, kArmVrintpF32, node); | 1129 VisitRR(this, kArmVrintpF32, node); |
1130 } | 1130 } |
1131 | 1131 |
1132 | 1132 |
1133 void InstructionSelector::VisitFloat64RoundUp(Node* node) { | 1133 void InstructionSelector::VisitFloat64RoundUp(Node* node) { |
1134 VisitRR(this, kArmVrintpF64, node); | 1134 VisitRR(this, kArmVrintpF64, node); |
1135 } | 1135 } |
1136 | 1136 |
1137 | 1137 |
| 1138 void InstructionSelector::VisitFloat32RoundTruncate(Node* node) { |
| 1139 VisitRR(this, kArmVrintzF32, node); |
| 1140 } |
| 1141 |
| 1142 |
1138 void InstructionSelector::VisitFloat64RoundTruncate(Node* node) { | 1143 void InstructionSelector::VisitFloat64RoundTruncate(Node* node) { |
1139 VisitRR(this, kArmVrintzF64, node); | 1144 VisitRR(this, kArmVrintzF64, node); |
1140 } | 1145 } |
1141 | 1146 |
1142 | 1147 |
1143 void InstructionSelector::VisitFloat64RoundTiesAway(Node* node) { | 1148 void InstructionSelector::VisitFloat64RoundTiesAway(Node* node) { |
1144 VisitRR(this, kArmVrintaF64, node); | 1149 VisitRR(this, kArmVrintaF64, node); |
1145 } | 1150 } |
1146 | 1151 |
1147 | 1152 |
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1572 MachineOperatorBuilder::Flags | 1577 MachineOperatorBuilder::Flags |
1573 InstructionSelector::SupportedMachineOperatorFlags() { | 1578 InstructionSelector::SupportedMachineOperatorFlags() { |
1574 MachineOperatorBuilder::Flags flags = | 1579 MachineOperatorBuilder::Flags flags = |
1575 MachineOperatorBuilder::kInt32DivIsSafe | | 1580 MachineOperatorBuilder::kInt32DivIsSafe | |
1576 MachineOperatorBuilder::kUint32DivIsSafe; | 1581 MachineOperatorBuilder::kUint32DivIsSafe; |
1577 if (CpuFeatures::IsSupported(ARMv8)) { | 1582 if (CpuFeatures::IsSupported(ARMv8)) { |
1578 flags |= MachineOperatorBuilder::kFloat32RoundDown | | 1583 flags |= MachineOperatorBuilder::kFloat32RoundDown | |
1579 MachineOperatorBuilder::kFloat64RoundDown | | 1584 MachineOperatorBuilder::kFloat64RoundDown | |
1580 MachineOperatorBuilder::kFloat32RoundUp | | 1585 MachineOperatorBuilder::kFloat32RoundUp | |
1581 MachineOperatorBuilder::kFloat64RoundUp | | 1586 MachineOperatorBuilder::kFloat64RoundUp | |
| 1587 MachineOperatorBuilder::kFloat32RoundTruncate | |
1582 MachineOperatorBuilder::kFloat64RoundTruncate | | 1588 MachineOperatorBuilder::kFloat64RoundTruncate | |
1583 MachineOperatorBuilder::kFloat64RoundTiesAway | | 1589 MachineOperatorBuilder::kFloat64RoundTiesAway | |
1584 MachineOperatorBuilder::kFloat64RoundTiesEven; | 1590 MachineOperatorBuilder::kFloat64RoundTiesEven; |
1585 } | 1591 } |
1586 return flags; | 1592 return flags; |
1587 } | 1593 } |
1588 | 1594 |
1589 } // namespace compiler | 1595 } // namespace compiler |
1590 } // namespace internal | 1596 } // namespace internal |
1591 } // namespace v8 | 1597 } // namespace v8 |
OLD | NEW |