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

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

Issue 2045943002: [compiler] [wasm] Introduce Word32/64ReverseBytes as TF Optional Opcode (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix according to titzer 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 | « src/compiler/wasm-compiler.cc ('k') | src/compiler/x87/instruction-selector-x87.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 <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
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
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
OLDNEW
« no previous file with comments | « src/compiler/wasm-compiler.cc ('k') | src/compiler/x87/instruction-selector-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698