| 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 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 466 } | 466 } |
| 467 | 467 |
| 468 | 468 |
| 469 void InstructionSelector::VisitWord32Clz(Node* node) { | 469 void InstructionSelector::VisitWord32Clz(Node* node) { |
| 470 VisitRR(this, kMipsClz, node); | 470 VisitRR(this, kMipsClz, node); |
| 471 } | 471 } |
| 472 | 472 |
| 473 | 473 |
| 474 void InstructionSelector::VisitWord32ReverseBits(Node* node) { UNREACHABLE(); } | 474 void InstructionSelector::VisitWord32ReverseBits(Node* node) { UNREACHABLE(); } |
| 475 | 475 |
| 476 void InstructionSelector::VisitWord64ReverseBytes(Node* node) { UNREACHABLE(); } |
| 477 |
| 478 void InstructionSelector::VisitWord32ReverseBytes(Node* node) { UNREACHABLE(); } |
| 479 |
| 480 void InstructionSelector::VisitWord16ReverseBytes(Node* node) { UNREACHABLE(); } |
| 476 | 481 |
| 477 void InstructionSelector::VisitWord32Ctz(Node* node) { | 482 void InstructionSelector::VisitWord32Ctz(Node* node) { |
| 478 MipsOperandGenerator g(this); | 483 MipsOperandGenerator g(this); |
| 479 Emit(kMipsCtz, g.DefineAsRegister(node), g.UseRegister(node->InputAt(0))); | 484 Emit(kMipsCtz, g.DefineAsRegister(node), g.UseRegister(node->InputAt(0))); |
| 480 } | 485 } |
| 481 | 486 |
| 482 | 487 |
| 483 void InstructionSelector::VisitWord32Popcnt(Node* node) { | 488 void InstructionSelector::VisitWord32Popcnt(Node* node) { |
| 484 MipsOperandGenerator g(this); | 489 MipsOperandGenerator g(this); |
| 485 Emit(kMipsPopcnt, g.DefineAsRegister(node), g.UseRegister(node->InputAt(0))); | 490 Emit(kMipsPopcnt, g.DefineAsRegister(node), g.UseRegister(node->InputAt(0))); |
| (...skipping 1080 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1566 DCHECK(IsMipsArchVariant(kLoongson) || IsMipsArchVariant(kMips32r1) || | 1571 DCHECK(IsMipsArchVariant(kLoongson) || IsMipsArchVariant(kMips32r1) || |
| 1567 IsMipsArchVariant(kMips32r2)); | 1572 IsMipsArchVariant(kMips32r2)); |
| 1568 return MachineOperatorBuilder::AlignmentRequirements:: | 1573 return MachineOperatorBuilder::AlignmentRequirements:: |
| 1569 NoUnalignedAccessSupport(); | 1574 NoUnalignedAccessSupport(); |
| 1570 } | 1575 } |
| 1571 } | 1576 } |
| 1572 | 1577 |
| 1573 } // namespace compiler | 1578 } // namespace compiler |
| 1574 } // namespace internal | 1579 } // namespace internal |
| 1575 } // namespace v8 | 1580 } // namespace v8 |
| OLD | NEW |