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

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

Issue 2221323002: X87: [turbofan] Make Float32Neg and Float64Neg mandatory operators. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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 | « no previous file | no next file » | 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 1705 matching lines...) Expand 10 before | Expand all | Expand 10 after
1716 } 1716 }
1717 inputs[input_count++] = g.UseUniqueRegister(value); 1717 inputs[input_count++] = g.UseUniqueRegister(value);
1718 InstructionCode code = opcode | AddressingModeField::encode(addressing_mode); 1718 InstructionCode code = opcode | AddressingModeField::encode(addressing_mode);
1719 Emit(code, 0, nullptr, input_count, inputs); 1719 Emit(code, 0, nullptr, input_count, inputs);
1720 } 1720 }
1721 1721
1722 // static 1722 // static
1723 MachineOperatorBuilder::Flags 1723 MachineOperatorBuilder::Flags
1724 InstructionSelector::SupportedMachineOperatorFlags() { 1724 InstructionSelector::SupportedMachineOperatorFlags() {
1725 MachineOperatorBuilder::Flags flags = 1725 MachineOperatorBuilder::Flags flags =
1726 MachineOperatorBuilder::kWord32ShiftIsSafe | 1726 MachineOperatorBuilder::kWord32ShiftIsSafe;
1727 MachineOperatorBuilder::kFloat32Neg | MachineOperatorBuilder::kFloat64Neg;
1728 if (CpuFeatures::IsSupported(POPCNT)) { 1727 if (CpuFeatures::IsSupported(POPCNT)) {
1729 flags |= MachineOperatorBuilder::kWord32Popcnt; 1728 flags |= MachineOperatorBuilder::kWord32Popcnt;
1730 } 1729 }
1731 1730
1732 flags |= MachineOperatorBuilder::kFloat32RoundDown | 1731 flags |= MachineOperatorBuilder::kFloat32RoundDown |
1733 MachineOperatorBuilder::kFloat64RoundDown | 1732 MachineOperatorBuilder::kFloat64RoundDown |
1734 MachineOperatorBuilder::kFloat32RoundUp | 1733 MachineOperatorBuilder::kFloat32RoundUp |
1735 MachineOperatorBuilder::kFloat64RoundUp | 1734 MachineOperatorBuilder::kFloat64RoundUp |
1736 MachineOperatorBuilder::kFloat32RoundTruncate | 1735 MachineOperatorBuilder::kFloat32RoundTruncate |
1737 MachineOperatorBuilder::kFloat64RoundTruncate | 1736 MachineOperatorBuilder::kFloat64RoundTruncate |
1738 MachineOperatorBuilder::kFloat32RoundTiesEven | 1737 MachineOperatorBuilder::kFloat32RoundTiesEven |
1739 MachineOperatorBuilder::kFloat64RoundTiesEven; 1738 MachineOperatorBuilder::kFloat64RoundTiesEven;
1740 return flags; 1739 return flags;
1741 } 1740 }
1742 1741
1743 // static 1742 // static
1744 MachineOperatorBuilder::AlignmentRequirements 1743 MachineOperatorBuilder::AlignmentRequirements
1745 InstructionSelector::AlignmentRequirements() { 1744 InstructionSelector::AlignmentRequirements() {
1746 return MachineOperatorBuilder::AlignmentRequirements:: 1745 return MachineOperatorBuilder::AlignmentRequirements::
1747 FullUnalignedAccessSupport(); 1746 FullUnalignedAccessSupport();
1748 } 1747 }
1749 1748
1750 } // namespace compiler 1749 } // namespace compiler
1751 } // namespace internal 1750 } // namespace internal
1752 } // namespace v8 1751 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698