Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: src/compiler/ia32/instruction-selector-ia32.cc

Issue 2785773002: [turbofan] introduce Int32/64AbsWithOverflow optional operator (Closed)
Patch Set: add base impl Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/code-assembler.cc ('k') | src/compiler/instruction-selector.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/compiler/code-assembler.cc ('k') | src/compiler/instruction-selector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698