| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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/s390/frames-s390.h" | 9 #include "src/s390/frames-s390.h" |
| 10 | 10 |
| (...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 772 } | 772 } |
| 773 | 773 |
| 774 void InstructionSelector::VisitInt32PairAdd(Node* node) { | 774 void InstructionSelector::VisitInt32PairAdd(Node* node) { |
| 775 VisitPairBinop(this, kS390_AddPair, node); | 775 VisitPairBinop(this, kS390_AddPair, node); |
| 776 } | 776 } |
| 777 | 777 |
| 778 void InstructionSelector::VisitInt32PairSub(Node* node) { | 778 void InstructionSelector::VisitInt32PairSub(Node* node) { |
| 779 VisitPairBinop(this, kS390_SubPair, node); | 779 VisitPairBinop(this, kS390_SubPair, node); |
| 780 } | 780 } |
| 781 | 781 |
| 782 void InstructionSelector::VisitInt32PairMul(Node* node) { |
| 783 S390OperandGenerator g(this); |
| 784 InstructionOperand inputs[] = {g.UseUniqueRegister(node->InputAt(0)), |
| 785 g.UseUniqueRegister(node->InputAt(1)), |
| 786 g.UseUniqueRegister(node->InputAt(2)), |
| 787 g.UseUniqueRegister(node->InputAt(3))}; |
| 788 |
| 789 InstructionOperand outputs[] = { |
| 790 g.DefineAsRegister(node), |
| 791 g.DefineAsRegister(NodeProperties::FindProjection(node, 1))}; |
| 792 |
| 793 Emit(kS390_MulPair, 2, outputs, 4, inputs); |
| 794 } |
| 795 |
| 782 void VisitPairShift(InstructionSelector* selector, ArchOpcode opcode, | 796 void VisitPairShift(InstructionSelector* selector, ArchOpcode opcode, |
| 783 Node* node) { | 797 Node* node) { |
| 784 S390OperandGenerator g(selector); | 798 S390OperandGenerator g(selector); |
| 785 Int32Matcher m(node->InputAt(2)); | 799 Int32Matcher m(node->InputAt(2)); |
| 786 InstructionOperand shift_operand; | 800 InstructionOperand shift_operand; |
| 787 if (m.HasValue()) { | 801 if (m.HasValue()) { |
| 788 shift_operand = g.UseImmediate(m.node()); | 802 shift_operand = g.UseImmediate(m.node()); |
| 789 } else { | 803 } else { |
| 790 shift_operand = g.UseUniqueRegister(m.node()); | 804 shift_operand = g.UseUniqueRegister(m.node()); |
| 791 } | 805 } |
| (...skipping 950 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1742 MachineOperatorBuilder::kFloat32RoundTruncate | | 1756 MachineOperatorBuilder::kFloat32RoundTruncate | |
| 1743 MachineOperatorBuilder::kFloat64RoundTruncate | | 1757 MachineOperatorBuilder::kFloat64RoundTruncate | |
| 1744 MachineOperatorBuilder::kFloat64RoundTiesAway | | 1758 MachineOperatorBuilder::kFloat64RoundTiesAway | |
| 1745 MachineOperatorBuilder::kWord32Popcnt | | 1759 MachineOperatorBuilder::kWord32Popcnt | |
| 1746 MachineOperatorBuilder::kWord64Popcnt; | 1760 MachineOperatorBuilder::kWord64Popcnt; |
| 1747 } | 1761 } |
| 1748 | 1762 |
| 1749 } // namespace compiler | 1763 } // namespace compiler |
| 1750 } // namespace internal | 1764 } // namespace internal |
| 1751 } // namespace v8 | 1765 } // namespace v8 |
| OLD | NEW |