| 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/compiler/instruction-selector-impl.h" | 6 #include "src/compiler/instruction-selector-impl.h" |
| 7 #include "src/compiler/node-matchers.h" | 7 #include "src/compiler/node-matchers.h" |
| 8 #include "src/compiler/node-properties.h" | 8 #include "src/compiler/node-properties.h" |
| 9 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| (...skipping 1820 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1831 } | 1831 } |
| 1832 | 1832 |
| 1833 void InstructionSelector::VisitInt32x4ReplaceLane(Node* node) { | 1833 void InstructionSelector::VisitInt32x4ReplaceLane(Node* node) { |
| 1834 IA32OperandGenerator g(this); | 1834 IA32OperandGenerator g(this); |
| 1835 int32_t lane = OpParameter<int32_t>(node); | 1835 int32_t lane = OpParameter<int32_t>(node); |
| 1836 Emit(kIA32Int32x4ReplaceLane, g.DefineSameAsFirst(node), | 1836 Emit(kIA32Int32x4ReplaceLane, g.DefineSameAsFirst(node), |
| 1837 g.UseRegister(node->InputAt(0)), g.UseImmediate(lane), | 1837 g.UseRegister(node->InputAt(0)), g.UseImmediate(lane), |
| 1838 g.Use(node->InputAt(1))); | 1838 g.Use(node->InputAt(1))); |
| 1839 } | 1839 } |
| 1840 | 1840 |
| 1841 void InstructionSelector::VisitInt32AbsWithOverflow(Node* node) { |
| 1842 UNREACHABLE(); |
| 1843 } |
| 1844 |
| 1845 void InstructionSelector::VisitInt64AbsWithOverflow(Node* node) { |
| 1846 UNREACHABLE(); |
| 1847 } |
| 1848 |
| 1841 // static | 1849 // static |
| 1842 MachineOperatorBuilder::Flags | 1850 MachineOperatorBuilder::Flags |
| 1843 InstructionSelector::SupportedMachineOperatorFlags() { | 1851 InstructionSelector::SupportedMachineOperatorFlags() { |
| 1844 MachineOperatorBuilder::Flags flags = | 1852 MachineOperatorBuilder::Flags flags = |
| 1845 MachineOperatorBuilder::kWord32ShiftIsSafe | | 1853 MachineOperatorBuilder::kWord32ShiftIsSafe | |
| 1846 MachineOperatorBuilder::kWord32Ctz; | 1854 MachineOperatorBuilder::kWord32Ctz; |
| 1847 if (CpuFeatures::IsSupported(POPCNT)) { | 1855 if (CpuFeatures::IsSupported(POPCNT)) { |
| 1848 flags |= MachineOperatorBuilder::kWord32Popcnt; | 1856 flags |= MachineOperatorBuilder::kWord32Popcnt; |
| 1849 } | 1857 } |
| 1850 if (CpuFeatures::IsSupported(SSE4_1)) { | 1858 if (CpuFeatures::IsSupported(SSE4_1)) { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 1863 // static | 1871 // static |
| 1864 MachineOperatorBuilder::AlignmentRequirements | 1872 MachineOperatorBuilder::AlignmentRequirements |
| 1865 InstructionSelector::AlignmentRequirements() { | 1873 InstructionSelector::AlignmentRequirements() { |
| 1866 return MachineOperatorBuilder::AlignmentRequirements:: | 1874 return MachineOperatorBuilder::AlignmentRequirements:: |
| 1867 FullUnalignedAccessSupport(); | 1875 FullUnalignedAccessSupport(); |
| 1868 } | 1876 } |
| 1869 | 1877 |
| 1870 } // namespace compiler | 1878 } // namespace compiler |
| 1871 } // namespace internal | 1879 } // namespace internal |
| 1872 } // namespace v8 | 1880 } // namespace v8 |
| OLD | NEW |