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 1132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1143 void InstructionSelector::VisitFloat64RoundTruncate(Node* node) { | 1143 void InstructionSelector::VisitFloat64RoundTruncate(Node* node) { |
1144 VisitRR(this, kArmVrintzF64, node); | 1144 VisitRR(this, kArmVrintzF64, node); |
1145 } | 1145 } |
1146 | 1146 |
1147 | 1147 |
1148 void InstructionSelector::VisitFloat64RoundTiesAway(Node* node) { | 1148 void InstructionSelector::VisitFloat64RoundTiesAway(Node* node) { |
1149 VisitRR(this, kArmVrintaF64, node); | 1149 VisitRR(this, kArmVrintaF64, node); |
1150 } | 1150 } |
1151 | 1151 |
1152 | 1152 |
| 1153 void InstructionSelector::VisitFloat32RoundTiesEven(Node* node) { |
| 1154 VisitRR(this, kArmVrintnF32, node); |
| 1155 } |
| 1156 |
| 1157 |
1153 void InstructionSelector::VisitFloat64RoundTiesEven(Node* node) { | 1158 void InstructionSelector::VisitFloat64RoundTiesEven(Node* node) { |
1154 VisitRR(this, kArmVrintnF64, node); | 1159 VisitRR(this, kArmVrintnF64, node); |
1155 } | 1160 } |
1156 | 1161 |
1157 | 1162 |
1158 void InstructionSelector::EmitPrepareArguments(NodeVector* arguments, | 1163 void InstructionSelector::EmitPrepareArguments(NodeVector* arguments, |
1159 const CallDescriptor* descriptor, | 1164 const CallDescriptor* descriptor, |
1160 Node* node) { | 1165 Node* node) { |
1161 ArmOperandGenerator g(this); | 1166 ArmOperandGenerator g(this); |
1162 | 1167 |
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1580 MachineOperatorBuilder::kInt32DivIsSafe | | 1585 MachineOperatorBuilder::kInt32DivIsSafe | |
1581 MachineOperatorBuilder::kUint32DivIsSafe; | 1586 MachineOperatorBuilder::kUint32DivIsSafe; |
1582 if (CpuFeatures::IsSupported(ARMv8)) { | 1587 if (CpuFeatures::IsSupported(ARMv8)) { |
1583 flags |= MachineOperatorBuilder::kFloat32RoundDown | | 1588 flags |= MachineOperatorBuilder::kFloat32RoundDown | |
1584 MachineOperatorBuilder::kFloat64RoundDown | | 1589 MachineOperatorBuilder::kFloat64RoundDown | |
1585 MachineOperatorBuilder::kFloat32RoundUp | | 1590 MachineOperatorBuilder::kFloat32RoundUp | |
1586 MachineOperatorBuilder::kFloat64RoundUp | | 1591 MachineOperatorBuilder::kFloat64RoundUp | |
1587 MachineOperatorBuilder::kFloat32RoundTruncate | | 1592 MachineOperatorBuilder::kFloat32RoundTruncate | |
1588 MachineOperatorBuilder::kFloat64RoundTruncate | | 1593 MachineOperatorBuilder::kFloat64RoundTruncate | |
1589 MachineOperatorBuilder::kFloat64RoundTiesAway | | 1594 MachineOperatorBuilder::kFloat64RoundTiesAway | |
| 1595 MachineOperatorBuilder::kFloat32RoundTiesEven | |
1590 MachineOperatorBuilder::kFloat64RoundTiesEven; | 1596 MachineOperatorBuilder::kFloat64RoundTiesEven; |
1591 } | 1597 } |
1592 return flags; | 1598 return flags; |
1593 } | 1599 } |
1594 | 1600 |
1595 } // namespace compiler | 1601 } // namespace compiler |
1596 } // namespace internal | 1602 } // namespace internal |
1597 } // namespace v8 | 1603 } // namespace v8 |
OLD | NEW |