| 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 1097 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1108 void InstructionSelector::VisitFloat32Sqrt(Node* node) { | 1108 void InstructionSelector::VisitFloat32Sqrt(Node* node) { |
| 1109 VisitRR(this, kArmVsqrtF32, node); | 1109 VisitRR(this, kArmVsqrtF32, node); |
| 1110 } | 1110 } |
| 1111 | 1111 |
| 1112 | 1112 |
| 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::VisitFloat32RoundDown(Node* node) { |
| 1119 VisitRR(this, kArmVrintmF32, node); |
| 1120 } |
| 1121 |
| 1122 |
| 1118 void InstructionSelector::VisitFloat64RoundDown(Node* node) { | 1123 void InstructionSelector::VisitFloat64RoundDown(Node* node) { |
| 1119 VisitRR(this, kArmVrintmF64, node); | 1124 VisitRR(this, kArmVrintmF64, node); |
| 1120 } | 1125 } |
| 1121 | 1126 |
| 1122 | 1127 |
| 1123 void InstructionSelector::VisitFloat64RoundUp(Node* node) { | 1128 void InstructionSelector::VisitFloat64RoundUp(Node* node) { |
| 1124 VisitRR(this, kArmVrintpF64, node); | 1129 VisitRR(this, kArmVrintpF64, node); |
| 1125 } | 1130 } |
| 1126 | 1131 |
| 1127 | 1132 |
| (...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1562 MachineOperatorBuilder::Flags | 1567 MachineOperatorBuilder::Flags |
| 1563 InstructionSelector::SupportedMachineOperatorFlags() { | 1568 InstructionSelector::SupportedMachineOperatorFlags() { |
| 1564 MachineOperatorBuilder::Flags flags = | 1569 MachineOperatorBuilder::Flags flags = |
| 1565 MachineOperatorBuilder::kInt32DivIsSafe | | 1570 MachineOperatorBuilder::kInt32DivIsSafe | |
| 1566 MachineOperatorBuilder::kUint32DivIsSafe; | 1571 MachineOperatorBuilder::kUint32DivIsSafe; |
| 1567 if (CpuFeatures::IsSupported(ARMv8)) { | 1572 if (CpuFeatures::IsSupported(ARMv8)) { |
| 1568 flags |= MachineOperatorBuilder::kFloat64RoundDown | | 1573 flags |= MachineOperatorBuilder::kFloat64RoundDown | |
| 1569 MachineOperatorBuilder::kFloat64RoundUp | | 1574 MachineOperatorBuilder::kFloat64RoundUp | |
| 1570 MachineOperatorBuilder::kFloat64RoundTruncate | | 1575 MachineOperatorBuilder::kFloat64RoundTruncate | |
| 1571 MachineOperatorBuilder::kFloat64RoundTiesAway | | 1576 MachineOperatorBuilder::kFloat64RoundTiesAway | |
| 1572 MachineOperatorBuilder::kFloat64RoundTiesEven; | 1577 MachineOperatorBuilder::kFloat64RoundTiesEven | |
| 1578 MachineOperatorBuilder::kFloat32RoundDown; |
| 1573 } | 1579 } |
| 1574 return flags; | 1580 return flags; |
| 1575 } | 1581 } |
| 1576 | 1582 |
| 1577 } // namespace compiler | 1583 } // namespace compiler |
| 1578 } // namespace internal | 1584 } // namespace internal |
| 1579 } // namespace v8 | 1585 } // namespace v8 |
| OLD | NEW |