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

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: update on store and some optimization on load Created 4 years, 6 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 717 matching lines...) Expand 10 before | Expand all | Expand 10 after
728 X64OperandGenerator g(this); 728 X64OperandGenerator g(this);
729 Emit(kX64Tzcnt32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); 729 Emit(kX64Tzcnt32, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
730 } 730 }
731 731
732 732
733 void InstructionSelector::VisitWord32ReverseBits(Node* node) { UNREACHABLE(); } 733 void InstructionSelector::VisitWord32ReverseBits(Node* node) { UNREACHABLE(); }
734 734
735 735
736 void InstructionSelector::VisitWord64ReverseBits(Node* node) { UNREACHABLE(); } 736 void InstructionSelector::VisitWord64ReverseBits(Node* node) { UNREACHABLE(); }
737 737
738 void InstructionSelector::VisitWord64ReverseBytes(Node* node) { UNREACHABLE(); }
739
740 void InstructionSelector::VisitWord32ReverseBytes(Node* node) { UNREACHABLE(); }
741
742 void InstructionSelector::VisitWord16ReverseBytes(Node* node) { UNREACHABLE(); }
738 743
739 void InstructionSelector::VisitWord32Popcnt(Node* node) { 744 void InstructionSelector::VisitWord32Popcnt(Node* node) {
740 X64OperandGenerator g(this); 745 X64OperandGenerator g(this);
741 Emit(kX64Popcnt32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); 746 Emit(kX64Popcnt32, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
742 } 747 }
743 748
744 749
745 void InstructionSelector::VisitWord64Popcnt(Node* node) { 750 void InstructionSelector::VisitWord64Popcnt(Node* node) {
746 X64OperandGenerator g(this); 751 X64OperandGenerator g(this);
747 Emit(kX64Popcnt, g.DefineAsRegister(node), g.Use(node->InputAt(0))); 752 Emit(kX64Popcnt, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
(...skipping 1371 matching lines...) Expand 10 before | Expand all | Expand 10 after
2119 // static 2124 // static
2120 MachineOperatorBuilder::AlignmentRequirements 2125 MachineOperatorBuilder::AlignmentRequirements
2121 InstructionSelector::AlignmentRequirements() { 2126 InstructionSelector::AlignmentRequirements() {
2122 return MachineOperatorBuilder::AlignmentRequirements:: 2127 return MachineOperatorBuilder::AlignmentRequirements::
2123 FullUnalignedAccessSupport(); 2128 FullUnalignedAccessSupport();
2124 } 2129 }
2125 2130
2126 } // namespace compiler 2131 } // namespace compiler
2127 } // namespace internal 2132 } // namespace internal
2128 } // namespace v8 2133 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698