OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |