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::VisitFloat64RoundTruncate(Node* node) { | 1128 void InstructionSelector::VisitFloat64RoundTruncate(Node* node) { |
1129 VisitRR(this, kArmVrintzF64, node); | 1129 VisitRR(this, kArmVrintzF64, node); |
1130 } | 1130 } |
1131 | 1131 |
1132 | 1132 |
1133 void InstructionSelector::VisitFloat64RoundTiesAway(Node* node) { | 1133 void InstructionSelector::VisitFloat64RoundTiesAway(Node* node) { |
1134 VisitRR(this, kArmVrintaF64, node); | 1134 VisitRR(this, kArmVrintaF64, node); |
1135 } | 1135 } |
1136 | 1136 |
1137 | 1137 |
| 1138 void InstructionSelector::VisitFloat64RoundTiesEven(Node* node) { |
| 1139 VisitRR(this, kArmVrintnF64, node); |
| 1140 } |
| 1141 |
| 1142 |
1138 void InstructionSelector::EmitPrepareArguments(NodeVector* arguments, | 1143 void InstructionSelector::EmitPrepareArguments(NodeVector* arguments, |
1139 const CallDescriptor* descriptor, | 1144 const CallDescriptor* descriptor, |
1140 Node* node) { | 1145 Node* node) { |
1141 ArmOperandGenerator g(this); | 1146 ArmOperandGenerator g(this); |
1142 | 1147 |
1143 // Prepare for C function call. | 1148 // Prepare for C function call. |
1144 if (descriptor->IsCFunctionCall()) { | 1149 if (descriptor->IsCFunctionCall()) { |
1145 Emit(kArchPrepareCallCFunction | | 1150 Emit(kArchPrepareCallCFunction | |
1146 MiscField::encode(static_cast<int>(descriptor->CParameterCount())), | 1151 MiscField::encode(static_cast<int>(descriptor->CParameterCount())), |
1147 0, nullptr, 0, nullptr); | 1152 0, nullptr, 0, nullptr); |
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1556 // static | 1561 // static |
1557 MachineOperatorBuilder::Flags | 1562 MachineOperatorBuilder::Flags |
1558 InstructionSelector::SupportedMachineOperatorFlags() { | 1563 InstructionSelector::SupportedMachineOperatorFlags() { |
1559 MachineOperatorBuilder::Flags flags = | 1564 MachineOperatorBuilder::Flags flags = |
1560 MachineOperatorBuilder::kInt32DivIsSafe | | 1565 MachineOperatorBuilder::kInt32DivIsSafe | |
1561 MachineOperatorBuilder::kUint32DivIsSafe; | 1566 MachineOperatorBuilder::kUint32DivIsSafe; |
1562 if (CpuFeatures::IsSupported(ARMv8)) { | 1567 if (CpuFeatures::IsSupported(ARMv8)) { |
1563 flags |= MachineOperatorBuilder::kFloat64RoundDown | | 1568 flags |= MachineOperatorBuilder::kFloat64RoundDown | |
1564 MachineOperatorBuilder::kFloat64RoundUp | | 1569 MachineOperatorBuilder::kFloat64RoundUp | |
1565 MachineOperatorBuilder::kFloat64RoundTruncate | | 1570 MachineOperatorBuilder::kFloat64RoundTruncate | |
1566 MachineOperatorBuilder::kFloat64RoundTiesAway; | 1571 MachineOperatorBuilder::kFloat64RoundTiesAway | |
| 1572 MachineOperatorBuilder::kFloat64RoundTiesEven; |
1567 } | 1573 } |
1568 return flags; | 1574 return flags; |
1569 } | 1575 } |
1570 | 1576 |
1571 } // namespace compiler | 1577 } // namespace compiler |
1572 } // namespace internal | 1578 } // namespace internal |
1573 } // namespace v8 | 1579 } // namespace v8 |
OLD | NEW |