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

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: 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 "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 708 matching lines...) Expand 10 before | Expand all | Expand 10 after
719 719
720 720
721 void InstructionSelector::VisitWord32Ctz(Node* node) { 721 void InstructionSelector::VisitWord32Ctz(Node* node) {
722 IA32OperandGenerator g(this); 722 IA32OperandGenerator g(this);
723 Emit(kIA32Tzcnt, g.DefineAsRegister(node), g.Use(node->InputAt(0))); 723 Emit(kIA32Tzcnt, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
724 } 724 }
725 725
726 726
727 void InstructionSelector::VisitWord32ReverseBits(Node* node) { UNREACHABLE(); } 727 void InstructionSelector::VisitWord32ReverseBits(Node* node) { UNREACHABLE(); }
728 728
729 void InstructionSelector::VisitWord64ReverseBytes(Node* node) { UNREACHABLE(); }
730
731 void InstructionSelector::VisitWord32ReverseBytes(Node* node) { UNREACHABLE(); }
732
733 void InstructionSelector::VisitWord16ReverseBytes(Node* node) { UNREACHABLE(); }
729 734
730 void InstructionSelector::VisitWord32Popcnt(Node* node) { 735 void InstructionSelector::VisitWord32Popcnt(Node* node) {
731 IA32OperandGenerator g(this); 736 IA32OperandGenerator g(this);
732 Emit(kIA32Popcnt, g.DefineAsRegister(node), g.Use(node->InputAt(0))); 737 Emit(kIA32Popcnt, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
733 } 738 }
734 739
735 740
736 void InstructionSelector::VisitInt32Add(Node* node) { 741 void InstructionSelector::VisitInt32Add(Node* node) {
737 IA32OperandGenerator g(this); 742 IA32OperandGenerator g(this);
738 743
(...skipping 926 matching lines...) Expand 10 before | Expand all | Expand 10 after
1665 // static 1670 // static
1666 MachineOperatorBuilder::AlignmentRequirements 1671 MachineOperatorBuilder::AlignmentRequirements
1667 InstructionSelector::AlignmentRequirements() { 1672 InstructionSelector::AlignmentRequirements() {
1668 return MachineOperatorBuilder::AlignmentRequirements:: 1673 return MachineOperatorBuilder::AlignmentRequirements::
1669 FullUnalignedAccessSupport(); 1674 FullUnalignedAccessSupport();
1670 } 1675 }
1671 1676
1672 } // namespace compiler 1677 } // namespace compiler
1673 } // namespace internal 1678 } // namespace internal
1674 } // namespace v8 1679 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698