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

Side by Side Diff: src/compiler/arm/instruction-selector-arm.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/base/bits.h" 6 #include "src/base/bits.h"
7 #include "src/compiler/instruction-selector-impl.h" 7 #include "src/compiler/instruction-selector-impl.h"
8 #include "src/compiler/node-matchers.h" 8 #include "src/compiler/node-matchers.h"
9 #include "src/compiler/node-properties.h" 9 #include "src/compiler/node-properties.h"
10 10
(...skipping 943 matching lines...) Expand 10 before | Expand all | Expand 10 after
954 954
955 955
956 void InstructionSelector::VisitWord32Ctz(Node* node) { UNREACHABLE(); } 956 void InstructionSelector::VisitWord32Ctz(Node* node) { UNREACHABLE(); }
957 957
958 958
959 void InstructionSelector::VisitWord32ReverseBits(Node* node) { 959 void InstructionSelector::VisitWord32ReverseBits(Node* node) {
960 DCHECK(IsSupported(ARMv7)); 960 DCHECK(IsSupported(ARMv7));
961 VisitRR(this, kArmRbit, node); 961 VisitRR(this, kArmRbit, node);
962 } 962 }
963 963
964 void InstructionSelector::VisitWord64ReverseBytes(Node* node) { UNREACHABLE(); }
965
966 void InstructionSelector::VisitWord32ReverseBytes(Node* node) { UNREACHABLE(); }
967
968 void InstructionSelector::VisitWord16ReverseBytes(Node* node) { UNREACHABLE(); }
964 969
965 void InstructionSelector::VisitWord32Popcnt(Node* node) { UNREACHABLE(); } 970 void InstructionSelector::VisitWord32Popcnt(Node* node) { UNREACHABLE(); }
966 971
967 972
968 void InstructionSelector::VisitInt32Add(Node* node) { 973 void InstructionSelector::VisitInt32Add(Node* node) {
969 ArmOperandGenerator g(this); 974 ArmOperandGenerator g(this);
970 Int32BinopMatcher m(node); 975 Int32BinopMatcher m(node);
971 if (CanCover(node, m.left().node())) { 976 if (CanCover(node, m.left().node())) {
972 switch (m.left().opcode()) { 977 switch (m.left().opcode()) {
973 case IrOpcode::kInt32Mul: { 978 case IrOpcode::kInt32Mul: {
(...skipping 1213 matching lines...) Expand 10 before | Expand all | Expand 10 after
2187 // static 2192 // static
2188 MachineOperatorBuilder::AlignmentRequirements 2193 MachineOperatorBuilder::AlignmentRequirements
2189 InstructionSelector::AlignmentRequirements() { 2194 InstructionSelector::AlignmentRequirements() {
2190 return MachineOperatorBuilder::AlignmentRequirements:: 2195 return MachineOperatorBuilder::AlignmentRequirements::
2191 FullUnalignedAccessSupport(); 2196 FullUnalignedAccessSupport();
2192 } 2197 }
2193 2198
2194 } // namespace compiler 2199 } // namespace compiler
2195 } // namespace internal 2200 } // namespace internal
2196 } // namespace v8 2201 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/arm64/instruction-selector-arm64.cc » ('j') | src/compiler/machine-operator.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698