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 792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
803 } | 803 } |
804 | 804 |
805 void InstructionSelector::VisitInt32PairAdd(Node* node) { | 805 void InstructionSelector::VisitInt32PairAdd(Node* node) { |
806 VisitPairBinop(this, kPPC_AddPair, node); | 806 VisitPairBinop(this, kPPC_AddPair, node); |
807 } | 807 } |
808 | 808 |
809 void InstructionSelector::VisitInt32PairSub(Node* node) { | 809 void InstructionSelector::VisitInt32PairSub(Node* node) { |
810 VisitPairBinop(this, kPPC_SubPair, node); | 810 VisitPairBinop(this, kPPC_SubPair, node); |
811 } | 811 } |
812 | 812 |
| 813 void InstructionSelector::VisitInt32PairMul(Node* node) { UNIMPLEMENTED(); } |
| 814 |
813 void VisitPairShift(InstructionSelector* selector, InstructionCode opcode, | 815 void VisitPairShift(InstructionSelector* selector, InstructionCode opcode, |
814 Node* node) { | 816 Node* node) { |
815 PPCOperandGenerator g(selector); | 817 PPCOperandGenerator g(selector); |
816 Int32Matcher m(node->InputAt(2)); | 818 Int32Matcher m(node->InputAt(2)); |
817 InstructionOperand shift_operand; | 819 InstructionOperand shift_operand; |
818 if (m.HasValue()) { | 820 if (m.HasValue()) { |
819 shift_operand = g.UseImmediate(m.node()); | 821 shift_operand = g.UseImmediate(m.node()); |
820 } else { | 822 } else { |
821 shift_operand = g.UseUniqueRegister(m.node()); | 823 shift_operand = g.UseUniqueRegister(m.node()); |
822 } | 824 } |
(...skipping 1067 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1890 MachineOperatorBuilder::kFloat64RoundTruncate | | 1892 MachineOperatorBuilder::kFloat64RoundTruncate | |
1891 MachineOperatorBuilder::kFloat64RoundTiesAway | | 1893 MachineOperatorBuilder::kFloat64RoundTiesAway | |
1892 MachineOperatorBuilder::kWord32Popcnt | | 1894 MachineOperatorBuilder::kWord32Popcnt | |
1893 MachineOperatorBuilder::kWord64Popcnt; | 1895 MachineOperatorBuilder::kWord64Popcnt; |
1894 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f. | 1896 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f. |
1895 } | 1897 } |
1896 | 1898 |
1897 } // namespace compiler | 1899 } // namespace compiler |
1898 } // namespace internal | 1900 } // namespace internal |
1899 } // namespace v8 | 1901 } // namespace v8 |
OLD | NEW |