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/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 #include "src/ppc/frames-ppc.h" | 9 #include "src/ppc/frames-ppc.h" |
10 | 10 |
(...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
718 Emit(kPPC_RotLeftAndMask32, g.DefineAsRegister(node), | 718 Emit(kPPC_RotLeftAndMask32, g.DefineAsRegister(node), |
719 g.UseRegister(mleft.left().node()), g.TempImmediate(sh), | 719 g.UseRegister(mleft.left().node()), g.TempImmediate(sh), |
720 g.TempImmediate(mb), g.TempImmediate(me)); | 720 g.TempImmediate(mb), g.TempImmediate(me)); |
721 return; | 721 return; |
722 } | 722 } |
723 } | 723 } |
724 } | 724 } |
725 VisitRRO(this, kPPC_ShiftRight32, node, kShift32Imm); | 725 VisitRRO(this, kPPC_ShiftRight32, node, kShift32Imm); |
726 } | 726 } |
727 | 727 |
| 728 #if !V8_TARGET_ARCH_PPC64 |
| 729 void InstructionSelector::VisitWord32PairShr(Node* node) { UNIMPLEMENTED(); } |
| 730 |
| 731 void InstructionSelector::VisitWord32PairSar(Node* node) { UNIMPLEMENTED(); } |
| 732 #endif |
728 | 733 |
729 #if V8_TARGET_ARCH_PPC64 | 734 #if V8_TARGET_ARCH_PPC64 |
730 void InstructionSelector::VisitWord64Shr(Node* node) { | 735 void InstructionSelector::VisitWord64Shr(Node* node) { |
731 PPCOperandGenerator g(this); | 736 PPCOperandGenerator g(this); |
732 Int64BinopMatcher m(node); | 737 Int64BinopMatcher m(node); |
733 if (m.left().IsWord64And() && m.right().IsInRange(0, 63)) { | 738 if (m.left().IsWord64And() && m.right().IsInRange(0, 63)) { |
734 // Try to absorb logical-and into rldic | 739 // Try to absorb logical-and into rldic |
735 Int64BinopMatcher mleft(m.left().node()); | 740 Int64BinopMatcher mleft(m.left().node()); |
736 int sh = m.right().Value(); | 741 int sh = m.right().Value(); |
737 int mb; | 742 int mb; |
(...skipping 1095 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1833 MachineOperatorBuilder::kFloat64RoundTruncate | | 1838 MachineOperatorBuilder::kFloat64RoundTruncate | |
1834 MachineOperatorBuilder::kFloat64RoundTiesAway | | 1839 MachineOperatorBuilder::kFloat64RoundTiesAway | |
1835 MachineOperatorBuilder::kWord32Popcnt | | 1840 MachineOperatorBuilder::kWord32Popcnt | |
1836 MachineOperatorBuilder::kWord64Popcnt; | 1841 MachineOperatorBuilder::kWord64Popcnt; |
1837 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f. | 1842 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f. |
1838 } | 1843 } |
1839 | 1844 |
1840 } // namespace compiler | 1845 } // namespace compiler |
1841 } // namespace internal | 1846 } // namespace internal |
1842 } // namespace v8 | 1847 } // namespace v8 |
OLD | NEW |