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 783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
794 g.UseRegister(node->InputAt(0)), g.UseUniqueRegister(node->InputAt(1)), | 794 g.UseRegister(node->InputAt(0)), g.UseUniqueRegister(node->InputAt(1)), |
795 g.UseRegister(node->InputAt(2)), g.UseUniqueRegister(node->InputAt(3))}; | 795 g.UseRegister(node->InputAt(2)), g.UseUniqueRegister(node->InputAt(3))}; |
796 | 796 |
797 InstructionOperand outputs[] = { | 797 InstructionOperand outputs[] = { |
798 g.DefineAsRegister(node), | 798 g.DefineAsRegister(node), |
799 g.DefineAsRegister(NodeProperties::FindProjection(node, 1))}; | 799 g.DefineAsRegister(NodeProperties::FindProjection(node, 1))}; |
800 | 800 |
801 Emit(kPPC_AddPair, 2, outputs, 4, inputs); | 801 Emit(kPPC_AddPair, 2, outputs, 4, inputs); |
802 } | 802 } |
803 | 803 |
| 804 void InstructionSelector::VisitInt32PairSub(Node* node) { UNIMPLEMENTED(); } |
| 805 |
804 void VisitPairShift(InstructionSelector* selector, ArchOpcode opcode, | 806 void VisitPairShift(InstructionSelector* selector, ArchOpcode opcode, |
805 Node* node) { | 807 Node* node) { |
806 PPCOperandGenerator g(selector); | 808 PPCOperandGenerator g(selector); |
807 Int32Matcher m(node->InputAt(2)); | 809 Int32Matcher m(node->InputAt(2)); |
808 InstructionOperand shift_operand; | 810 InstructionOperand shift_operand; |
809 if (m.HasValue()) { | 811 if (m.HasValue()) { |
810 shift_operand = g.UseImmediate(m.node()); | 812 shift_operand = g.UseImmediate(m.node()); |
811 } else { | 813 } else { |
812 shift_operand = g.UseUniqueRegister(m.node()); | 814 shift_operand = g.UseUniqueRegister(m.node()); |
813 } | 815 } |
(...skipping 1067 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1881 MachineOperatorBuilder::kFloat64RoundTruncate | | 1883 MachineOperatorBuilder::kFloat64RoundTruncate | |
1882 MachineOperatorBuilder::kFloat64RoundTiesAway | | 1884 MachineOperatorBuilder::kFloat64RoundTiesAway | |
1883 MachineOperatorBuilder::kWord32Popcnt | | 1885 MachineOperatorBuilder::kWord32Popcnt | |
1884 MachineOperatorBuilder::kWord64Popcnt; | 1886 MachineOperatorBuilder::kWord64Popcnt; |
1885 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f. | 1887 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f. |
1886 } | 1888 } |
1887 | 1889 |
1888 } // namespace compiler | 1890 } // namespace compiler |
1889 } // namespace internal | 1891 } // namespace internal |
1890 } // namespace v8 | 1892 } // namespace v8 |
OLD | NEW |