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

Side by Side Diff: src/compiler/mips/instruction-selector-mips.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: Fix according to titzer Created 4 years, 4 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
« no previous file with comments | « src/compiler/machine-operator.cc ('k') | src/compiler/mips64/instruction-selector-mips64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 } 473 }
474 474
475 475
476 void InstructionSelector::VisitWord32Clz(Node* node) { 476 void InstructionSelector::VisitWord32Clz(Node* node) {
477 VisitRR(this, kMipsClz, node); 477 VisitRR(this, kMipsClz, node);
478 } 478 }
479 479
480 480
481 void InstructionSelector::VisitWord32ReverseBits(Node* node) { UNREACHABLE(); } 481 void InstructionSelector::VisitWord32ReverseBits(Node* node) { UNREACHABLE(); }
482 482
483 void InstructionSelector::VisitWord64ReverseBytes(Node* node) { UNREACHABLE(); }
484
485 void InstructionSelector::VisitWord32ReverseBytes(Node* node) { UNREACHABLE(); }
483 486
484 void InstructionSelector::VisitWord32Ctz(Node* node) { 487 void InstructionSelector::VisitWord32Ctz(Node* node) {
485 MipsOperandGenerator g(this); 488 MipsOperandGenerator g(this);
486 Emit(kMipsCtz, g.DefineAsRegister(node), g.UseRegister(node->InputAt(0))); 489 Emit(kMipsCtz, g.DefineAsRegister(node), g.UseRegister(node->InputAt(0)));
487 } 490 }
488 491
489 492
490 void InstructionSelector::VisitWord32Popcnt(Node* node) { 493 void InstructionSelector::VisitWord32Popcnt(Node* node) {
491 MipsOperandGenerator g(this); 494 MipsOperandGenerator g(this);
492 Emit(kMipsPopcnt, g.DefineAsRegister(node), g.UseRegister(node->InputAt(0))); 495 Emit(kMipsPopcnt, g.DefineAsRegister(node), g.UseRegister(node->InputAt(0)));
(...skipping 1154 matching lines...) Expand 10 before | Expand all | Expand 10 after
1647 DCHECK(IsMipsArchVariant(kLoongson) || IsMipsArchVariant(kMips32r1) || 1650 DCHECK(IsMipsArchVariant(kLoongson) || IsMipsArchVariant(kMips32r1) ||
1648 IsMipsArchVariant(kMips32r2)); 1651 IsMipsArchVariant(kMips32r2));
1649 return MachineOperatorBuilder::AlignmentRequirements:: 1652 return MachineOperatorBuilder::AlignmentRequirements::
1650 NoUnalignedAccessSupport(); 1653 NoUnalignedAccessSupport();
1651 } 1654 }
1652 } 1655 }
1653 1656
1654 } // namespace compiler 1657 } // namespace compiler
1655 } // namespace internal 1658 } // namespace internal
1656 } // namespace v8 1659 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/machine-operator.cc ('k') | src/compiler/mips64/instruction-selector-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698