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 737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
748 void InstructionSelector::VisitWord32Popcnt(Node* node) { | 748 void InstructionSelector::VisitWord32Popcnt(Node* node) { |
749 PPCOperandGenerator g(this); | 749 PPCOperandGenerator g(this); |
750 Emit(kPPC_Popcnt32, g.DefineAsRegister(node), | 750 Emit(kPPC_Popcnt32, g.DefineAsRegister(node), |
751 g.UseRegister(node->InputAt(0))); | 751 g.UseRegister(node->InputAt(0))); |
752 } | 752 } |
753 | 753 |
754 | 754 |
755 void InstructionSelector::VisitWord32Ctz(Node* node) { UNREACHABLE(); } | 755 void InstructionSelector::VisitWord32Ctz(Node* node) { UNREACHABLE(); } |
756 | 756 |
757 | 757 |
| 758 #if V8_TARGET_ARCH_PPC64 |
| 759 void InstructionSelector::VisitWord64Ctz(Node* node) { UNREACHABLE(); } |
| 760 #endif |
| 761 |
| 762 |
758 void InstructionSelector::VisitInt32Add(Node* node) { | 763 void InstructionSelector::VisitInt32Add(Node* node) { |
759 VisitBinop<Int32BinopMatcher>(this, node, kPPC_Add, kInt16Imm); | 764 VisitBinop<Int32BinopMatcher>(this, node, kPPC_Add, kInt16Imm); |
760 } | 765 } |
761 | 766 |
762 | 767 |
763 #if V8_TARGET_ARCH_PPC64 | 768 #if V8_TARGET_ARCH_PPC64 |
764 void InstructionSelector::VisitInt64Add(Node* node) { | 769 void InstructionSelector::VisitInt64Add(Node* node) { |
765 VisitBinop<Int64BinopMatcher>(this, node, kPPC_Add, kInt16Imm); | 770 VisitBinop<Int64BinopMatcher>(this, node, kPPC_Add, kInt16Imm); |
766 } | 771 } |
767 #endif | 772 #endif |
(...skipping 821 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1589 return MachineOperatorBuilder::kFloat64RoundDown | | 1594 return MachineOperatorBuilder::kFloat64RoundDown | |
1590 MachineOperatorBuilder::kFloat64RoundTruncate | | 1595 MachineOperatorBuilder::kFloat64RoundTruncate | |
1591 MachineOperatorBuilder::kFloat64RoundTiesAway | | 1596 MachineOperatorBuilder::kFloat64RoundTiesAway | |
1592 MachineOperatorBuilder::kWord32Popcnt; | 1597 MachineOperatorBuilder::kWord32Popcnt; |
1593 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f. | 1598 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f. |
1594 } | 1599 } |
1595 | 1600 |
1596 } // namespace compiler | 1601 } // namespace compiler |
1597 } // namespace internal | 1602 } // namespace internal |
1598 } // namespace v8 | 1603 } // namespace v8 |
OLD | NEW |