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

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: implement machops tests 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
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 726 matching lines...) Expand 10 before | Expand all | Expand 10 after
737 X64OperandGenerator g(this); 737 X64OperandGenerator g(this);
738 Emit(kX64Tzcnt32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); 738 Emit(kX64Tzcnt32, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
739 } 739 }
740 740
741 741
742 void InstructionSelector::VisitWord32ReverseBits(Node* node) { UNREACHABLE(); } 742 void InstructionSelector::VisitWord32ReverseBits(Node* node) { UNREACHABLE(); }
743 743
744 744
745 void InstructionSelector::VisitWord64ReverseBits(Node* node) { UNREACHABLE(); } 745 void InstructionSelector::VisitWord64ReverseBits(Node* node) { UNREACHABLE(); }
746 746
747 void InstructionSelector::VisitWord64ReverseBytes(Node* node) { UNREACHABLE(); }
748
749 void InstructionSelector::VisitWord32ReverseBytes(Node* node) { UNREACHABLE(); }
747 750
748 void InstructionSelector::VisitWord32Popcnt(Node* node) { 751 void InstructionSelector::VisitWord32Popcnt(Node* node) {
749 X64OperandGenerator g(this); 752 X64OperandGenerator g(this);
750 Emit(kX64Popcnt32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); 753 Emit(kX64Popcnt32, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
751 } 754 }
752 755
753 756
754 void InstructionSelector::VisitWord64Popcnt(Node* node) { 757 void InstructionSelector::VisitWord64Popcnt(Node* node) {
755 X64OperandGenerator g(this); 758 X64OperandGenerator g(this);
756 Emit(kX64Popcnt, g.DefineAsRegister(node), g.Use(node->InputAt(0))); 759 Emit(kX64Popcnt, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
(...skipping 1399 matching lines...) Expand 10 before | Expand all | Expand 10 after
2156 // static 2159 // static
2157 MachineOperatorBuilder::AlignmentRequirements 2160 MachineOperatorBuilder::AlignmentRequirements
2158 InstructionSelector::AlignmentRequirements() { 2161 InstructionSelector::AlignmentRequirements() {
2159 return MachineOperatorBuilder::AlignmentRequirements:: 2162 return MachineOperatorBuilder::AlignmentRequirements::
2160 FullUnalignedAccessSupport(); 2163 FullUnalignedAccessSupport();
2161 } 2164 }
2162 2165
2163 } // namespace compiler 2166 } // namespace compiler
2164 } // namespace internal 2167 } // namespace internal
2165 } // namespace v8 2168 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698