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 1576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1587 } | 1587 } |
1588 Emit(kArmVmovHighF64U32, g.DefineSameAsFirst(node), g.UseRegister(left), | 1588 Emit(kArmVmovHighF64U32, g.DefineSameAsFirst(node), g.UseRegister(left), |
1589 g.UseRegister(right)); | 1589 g.UseRegister(right)); |
1590 } | 1590 } |
1591 | 1591 |
1592 | 1592 |
1593 // static | 1593 // static |
1594 MachineOperatorBuilder::Flags | 1594 MachineOperatorBuilder::Flags |
1595 InstructionSelector::SupportedMachineOperatorFlags() { | 1595 InstructionSelector::SupportedMachineOperatorFlags() { |
1596 MachineOperatorBuilder::Flags flags = | 1596 MachineOperatorBuilder::Flags flags = |
1597 MachineOperatorBuilder::kFloat32Abs | | |
1598 MachineOperatorBuilder::kFloat64Abs | | |
1599 MachineOperatorBuilder::kInt32DivIsSafe | | 1597 MachineOperatorBuilder::kInt32DivIsSafe | |
1600 MachineOperatorBuilder::kUint32DivIsSafe; | 1598 MachineOperatorBuilder::kUint32DivIsSafe; |
1601 | |
1602 if (CpuFeatures::IsSupported(ARMv8)) { | 1599 if (CpuFeatures::IsSupported(ARMv8)) { |
1603 flags |= MachineOperatorBuilder::kFloat64RoundDown | | 1600 flags |= MachineOperatorBuilder::kFloat64RoundDown | |
1604 MachineOperatorBuilder::kFloat64RoundTruncate | | 1601 MachineOperatorBuilder::kFloat64RoundTruncate | |
1605 MachineOperatorBuilder::kFloat64RoundTiesAway; | 1602 MachineOperatorBuilder::kFloat64RoundTiesAway; |
1606 } | 1603 } |
1607 return flags; | 1604 return flags; |
1608 } | 1605 } |
1609 | 1606 |
1610 } // namespace compiler | 1607 } // namespace compiler |
1611 } // namespace internal | 1608 } // namespace internal |
1612 } // namespace v8 | 1609 } // namespace v8 |
OLD | NEW |