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

Side by Side Diff: src/compiler/ia32/instruction-selector-ia32.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: Use ByteReverse in simulator Created 4 years, 5 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 "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 715 matching lines...) Expand 10 before | Expand all | Expand 10 after
726 726
727 727
728 void InstructionSelector::VisitWord32Ctz(Node* node) { 728 void InstructionSelector::VisitWord32Ctz(Node* node) {
729 IA32OperandGenerator g(this); 729 IA32OperandGenerator g(this);
730 Emit(kIA32Tzcnt, g.DefineAsRegister(node), g.Use(node->InputAt(0))); 730 Emit(kIA32Tzcnt, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
731 } 731 }
732 732
733 733
734 void InstructionSelector::VisitWord32ReverseBits(Node* node) { UNREACHABLE(); } 734 void InstructionSelector::VisitWord32ReverseBits(Node* node) { UNREACHABLE(); }
735 735
736 void InstructionSelector::VisitWord64ReverseBytes(Node* node) { UNREACHABLE(); }
737
738 void InstructionSelector::VisitWord32ReverseBytes(Node* node) { UNREACHABLE(); }
739
740 void InstructionSelector::VisitWord16ReverseBytes(Node* node) { UNREACHABLE(); }
736 741
737 void InstructionSelector::VisitWord32Popcnt(Node* node) { 742 void InstructionSelector::VisitWord32Popcnt(Node* node) {
738 IA32OperandGenerator g(this); 743 IA32OperandGenerator g(this);
739 Emit(kIA32Popcnt, g.DefineAsRegister(node), g.Use(node->InputAt(0))); 744 Emit(kIA32Popcnt, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
740 } 745 }
741 746
742 747
743 void InstructionSelector::VisitInt32Add(Node* node) { 748 void InstructionSelector::VisitInt32Add(Node* node) {
744 IA32OperandGenerator g(this); 749 IA32OperandGenerator g(this);
745 750
(...skipping 955 matching lines...) Expand 10 before | Expand all | Expand 10 after
1701 // static 1706 // static
1702 MachineOperatorBuilder::AlignmentRequirements 1707 MachineOperatorBuilder::AlignmentRequirements
1703 InstructionSelector::AlignmentRequirements() { 1708 InstructionSelector::AlignmentRequirements() {
1704 return MachineOperatorBuilder::AlignmentRequirements:: 1709 return MachineOperatorBuilder::AlignmentRequirements::
1705 FullUnalignedAccessSupport(); 1710 FullUnalignedAccessSupport();
1706 } 1711 }
1707 1712
1708 } // namespace compiler 1713 } // namespace compiler
1709 } // namespace internal 1714 } // namespace internal
1710 } // namespace v8 1715 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698