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 <algorithm> | 5 #include <algorithm> |
6 | 6 |
7 #include "src/base/adapters.h" | 7 #include "src/base/adapters.h" |
8 #include "src/compiler/instruction-selector-impl.h" | 8 #include "src/compiler/instruction-selector-impl.h" |
9 #include "src/compiler/node-matchers.h" | 9 #include "src/compiler/node-matchers.h" |
10 #include "src/compiler/node-properties.h" | 10 #include "src/compiler/node-properties.h" |
(...skipping 1769 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1780 | 1780 |
1781 // static | 1781 // static |
1782 MachineOperatorBuilder::Flags | 1782 MachineOperatorBuilder::Flags |
1783 InstructionSelector::SupportedMachineOperatorFlags() { | 1783 InstructionSelector::SupportedMachineOperatorFlags() { |
1784 MachineOperatorBuilder::Flags flags = | 1784 MachineOperatorBuilder::Flags flags = |
1785 MachineOperatorBuilder::kFloat32Max | | 1785 MachineOperatorBuilder::kFloat32Max | |
1786 MachineOperatorBuilder::kFloat32Min | | 1786 MachineOperatorBuilder::kFloat32Min | |
1787 MachineOperatorBuilder::kFloat64Max | | 1787 MachineOperatorBuilder::kFloat64Max | |
1788 MachineOperatorBuilder::kFloat64Min | | 1788 MachineOperatorBuilder::kFloat64Min | |
1789 MachineOperatorBuilder::kWord32ShiftIsSafe | | 1789 MachineOperatorBuilder::kWord32ShiftIsSafe | |
1790 MachineOperatorBuilder::kWord32Ctz | MachineOperatorBuilder::kWord64Ctz; | 1790 MachineOperatorBuilder::kWord32Ctz | MachineOperatorBuilder::kWord64Ctz | |
| 1791 MachineOperatorBuilder::kFloat32RoundDown | |
| 1792 MachineOperatorBuilder::kFloat32RoundUp | |
| 1793 MachineOperatorBuilder::kFloat32RoundTruncate | |
| 1794 MachineOperatorBuilder::kFloat32RoundTiesEven | |
| 1795 MachineOperatorBuilder::kFloat64RoundDown | |
| 1796 MachineOperatorBuilder::kFloat64RoundUp | |
| 1797 MachineOperatorBuilder::kFloat64RoundTruncate | |
| 1798 MachineOperatorBuilder::kFloat64RoundTiesEven; |
1791 if (CpuFeatures::IsSupported(POPCNT)) { | 1799 if (CpuFeatures::IsSupported(POPCNT)) { |
1792 flags |= MachineOperatorBuilder::kWord32Popcnt | | 1800 flags |= MachineOperatorBuilder::kWord32Popcnt | |
1793 MachineOperatorBuilder::kWord64Popcnt; | 1801 MachineOperatorBuilder::kWord64Popcnt; |
1794 } | 1802 } |
1795 if (CpuFeatures::IsSupported(SSE4_1)) { | |
1796 flags |= MachineOperatorBuilder::kFloat32RoundDown | | |
1797 MachineOperatorBuilder::kFloat64RoundDown | | |
1798 MachineOperatorBuilder::kFloat32RoundUp | | |
1799 MachineOperatorBuilder::kFloat64RoundUp | | |
1800 MachineOperatorBuilder::kFloat32RoundTruncate | | |
1801 MachineOperatorBuilder::kFloat64RoundTruncate | | |
1802 MachineOperatorBuilder::kFloat32RoundTiesEven | | |
1803 MachineOperatorBuilder::kFloat64RoundTiesEven; | |
1804 } | |
1805 return flags; | 1803 return flags; |
1806 } | 1804 } |
1807 | 1805 |
1808 } // namespace compiler | 1806 } // namespace compiler |
1809 } // namespace internal | 1807 } // namespace internal |
1810 } // namespace v8 | 1808 } // namespace v8 |
OLD | NEW |