| 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 705 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 716 Emit(kPPC_RotLeftAndMask32, g.DefineAsRegister(node), | 716 Emit(kPPC_RotLeftAndMask32, g.DefineAsRegister(node), |
| 717 g.UseRegister(mleft.left().node()), g.TempImmediate(sh), | 717 g.UseRegister(mleft.left().node()), g.TempImmediate(sh), |
| 718 g.TempImmediate(mb), g.TempImmediate(me)); | 718 g.TempImmediate(mb), g.TempImmediate(me)); |
| 719 return; | 719 return; |
| 720 } | 720 } |
| 721 } | 721 } |
| 722 } | 722 } |
| 723 VisitRRO(this, kPPC_ShiftRight32, node, kShift32Imm); | 723 VisitRRO(this, kPPC_ShiftRight32, node, kShift32Imm); |
| 724 } | 724 } |
| 725 | 725 |
| 726 #if !V8_TARGET_ARCH_PPC64 |
| 727 void InstructionSelector::VisitWord32PairShr(Node* node) { UNIMPLEMENTED(); } |
| 728 |
| 729 void InstructionSelector::VisitWord32PairSar(Node* node) { UNIMPLEMENTED(); } |
| 730 #endif |
| 726 | 731 |
| 727 #if V8_TARGET_ARCH_PPC64 | 732 #if V8_TARGET_ARCH_PPC64 |
| 728 void InstructionSelector::VisitWord64Shr(Node* node) { | 733 void InstructionSelector::VisitWord64Shr(Node* node) { |
| 729 PPCOperandGenerator g(this); | 734 PPCOperandGenerator g(this); |
| 730 Int64BinopMatcher m(node); | 735 Int64BinopMatcher m(node); |
| 731 if (m.left().IsWord64And() && m.right().IsInRange(0, 63)) { | 736 if (m.left().IsWord64And() && m.right().IsInRange(0, 63)) { |
| 732 // Try to absorb logical-and into rldic | 737 // Try to absorb logical-and into rldic |
| 733 Int64BinopMatcher mleft(m.left().node()); | 738 Int64BinopMatcher mleft(m.left().node()); |
| 734 int sh = m.right().Value(); | 739 int sh = m.right().Value(); |
| 735 int mb; | 740 int mb; |
| (...skipping 1118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1854 MachineOperatorBuilder::kFloat64RoundTruncate | | 1859 MachineOperatorBuilder::kFloat64RoundTruncate | |
| 1855 MachineOperatorBuilder::kFloat64RoundTiesAway | | 1860 MachineOperatorBuilder::kFloat64RoundTiesAway | |
| 1856 MachineOperatorBuilder::kWord32Popcnt | | 1861 MachineOperatorBuilder::kWord32Popcnt | |
| 1857 MachineOperatorBuilder::kWord64Popcnt; | 1862 MachineOperatorBuilder::kWord64Popcnt; |
| 1858 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f. | 1863 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f. |
| 1859 } | 1864 } |
| 1860 | 1865 |
| 1861 } // namespace compiler | 1866 } // namespace compiler |
| 1862 } // namespace internal | 1867 } // namespace internal |
| 1863 } // namespace v8 | 1868 } // namespace v8 |
| OLD | NEW |