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

Side by Side Diff: src/compiler/x87/instruction-selector-x87.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 673 matching lines...) Expand 10 before | Expand all | Expand 10 after
684 X87OperandGenerator g(this); 684 X87OperandGenerator g(this);
685 Emit(kX87Lzcnt, g.DefineAsRegister(node), g.Use(node->InputAt(0))); 685 Emit(kX87Lzcnt, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
686 } 686 }
687 687
688 688
689 void InstructionSelector::VisitWord32Ctz(Node* node) { UNREACHABLE(); } 689 void InstructionSelector::VisitWord32Ctz(Node* node) { UNREACHABLE(); }
690 690
691 691
692 void InstructionSelector::VisitWord32ReverseBits(Node* node) { UNREACHABLE(); } 692 void InstructionSelector::VisitWord32ReverseBits(Node* node) { UNREACHABLE(); }
693 693
694 void InstructionSelector::VisitWord64ReverseBytes(Node* node) { UNREACHABLE(); }
695
696 void InstructionSelector::VisitWord32ReverseBytes(Node* node) { UNREACHABLE(); }
697
698 void InstructionSelector::VisitWord16ReverseBytes(Node* node) { UNREACHABLE(); }
694 699
695 void InstructionSelector::VisitWord32Popcnt(Node* node) { 700 void InstructionSelector::VisitWord32Popcnt(Node* node) {
696 X87OperandGenerator g(this); 701 X87OperandGenerator g(this);
697 Emit(kX87Popcnt, g.DefineAsRegister(node), g.Use(node->InputAt(0))); 702 Emit(kX87Popcnt, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
698 } 703 }
699 704
700 705
701 void InstructionSelector::VisitInt32Add(Node* node) { 706 void InstructionSelector::VisitInt32Add(Node* node) {
702 X87OperandGenerator g(this); 707 X87OperandGenerator g(this);
703 708
(...skipping 1024 matching lines...) Expand 10 before | Expand all | Expand 10 after
1728 // static 1733 // static
1729 MachineOperatorBuilder::AlignmentRequirements 1734 MachineOperatorBuilder::AlignmentRequirements
1730 InstructionSelector::AlignmentRequirements() { 1735 InstructionSelector::AlignmentRequirements() {
1731 return MachineOperatorBuilder::AlignmentRequirements:: 1736 return MachineOperatorBuilder::AlignmentRequirements::
1732 FullUnalignedAccessSupport(); 1737 FullUnalignedAccessSupport();
1733 } 1738 }
1734 1739
1735 } // namespace compiler 1740 } // namespace compiler
1736 } // namespace internal 1741 } // namespace internal
1737 } // namespace v8 1742 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698