| 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 741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 752 X64OperandGenerator g(this); | 752 X64OperandGenerator g(this); |
| 753 Emit(kX64Tzcnt32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); | 753 Emit(kX64Tzcnt32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
| 754 } | 754 } |
| 755 | 755 |
| 756 | 756 |
| 757 void InstructionSelector::VisitWord32ReverseBits(Node* node) { UNREACHABLE(); } | 757 void InstructionSelector::VisitWord32ReverseBits(Node* node) { UNREACHABLE(); } |
| 758 | 758 |
| 759 | 759 |
| 760 void InstructionSelector::VisitWord64ReverseBits(Node* node) { UNREACHABLE(); } | 760 void InstructionSelector::VisitWord64ReverseBits(Node* node) { UNREACHABLE(); } |
| 761 | 761 |
| 762 void InstructionSelector::VisitWord64ReverseBytes(Node* node) { UNREACHABLE(); } |
| 763 |
| 764 void InstructionSelector::VisitWord32ReverseBytes(Node* node) { UNREACHABLE(); } |
| 762 | 765 |
| 763 void InstructionSelector::VisitWord32Popcnt(Node* node) { | 766 void InstructionSelector::VisitWord32Popcnt(Node* node) { |
| 764 X64OperandGenerator g(this); | 767 X64OperandGenerator g(this); |
| 765 Emit(kX64Popcnt32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); | 768 Emit(kX64Popcnt32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
| 766 } | 769 } |
| 767 | 770 |
| 768 | 771 |
| 769 void InstructionSelector::VisitWord64Popcnt(Node* node) { | 772 void InstructionSelector::VisitWord64Popcnt(Node* node) { |
| 770 X64OperandGenerator g(this); | 773 X64OperandGenerator g(this); |
| 771 Emit(kX64Popcnt, g.DefineAsRegister(node), g.Use(node->InputAt(0))); | 774 Emit(kX64Popcnt, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
| (...skipping 1411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2183 // static | 2186 // static |
| 2184 MachineOperatorBuilder::AlignmentRequirements | 2187 MachineOperatorBuilder::AlignmentRequirements |
| 2185 InstructionSelector::AlignmentRequirements() { | 2188 InstructionSelector::AlignmentRequirements() { |
| 2186 return MachineOperatorBuilder::AlignmentRequirements:: | 2189 return MachineOperatorBuilder::AlignmentRequirements:: |
| 2187 FullUnalignedAccessSupport(); | 2190 FullUnalignedAccessSupport(); |
| 2188 } | 2191 } |
| 2189 | 2192 |
| 2190 } // namespace compiler | 2193 } // namespace compiler |
| 2191 } // namespace internal | 2194 } // namespace internal |
| 2192 } // namespace v8 | 2195 } // namespace v8 |
| OLD | NEW |