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 719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
730 } | 730 } |
731 #endif | 731 #endif |
732 | 732 |
733 | 733 |
734 void InstructionSelector::VisitWord32Clz(Node* node) { | 734 void InstructionSelector::VisitWord32Clz(Node* node) { |
735 PPCOperandGenerator g(this); | 735 PPCOperandGenerator g(this); |
736 Emit(kPPC_Cntlz32, g.DefineAsRegister(node), g.UseRegister(node->InputAt(0))); | 736 Emit(kPPC_Cntlz32, g.DefineAsRegister(node), g.UseRegister(node->InputAt(0))); |
737 } | 737 } |
738 | 738 |
739 | 739 |
| 740 void InstructionSelector::VisitWord32Ctz(Node* node) { UNREACHABLE(); } |
| 741 |
| 742 |
740 void InstructionSelector::VisitInt32Add(Node* node) { | 743 void InstructionSelector::VisitInt32Add(Node* node) { |
741 VisitBinop<Int32BinopMatcher>(this, node, kPPC_Add, kInt16Imm); | 744 VisitBinop<Int32BinopMatcher>(this, node, kPPC_Add, kInt16Imm); |
742 } | 745 } |
743 | 746 |
744 | 747 |
745 #if V8_TARGET_ARCH_PPC64 | 748 #if V8_TARGET_ARCH_PPC64 |
746 void InstructionSelector::VisitInt64Add(Node* node) { | 749 void InstructionSelector::VisitInt64Add(Node* node) { |
747 VisitBinop<Int64BinopMatcher>(this, node, kPPC_Add, kInt16Imm); | 750 VisitBinop<Int64BinopMatcher>(this, node, kPPC_Add, kInt16Imm); |
748 } | 751 } |
749 #endif | 752 #endif |
(...skipping 952 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1702 InstructionSelector::SupportedMachineOperatorFlags() { | 1705 InstructionSelector::SupportedMachineOperatorFlags() { |
1703 return MachineOperatorBuilder::kFloat64RoundDown | | 1706 return MachineOperatorBuilder::kFloat64RoundDown | |
1704 MachineOperatorBuilder::kFloat64RoundTruncate | | 1707 MachineOperatorBuilder::kFloat64RoundTruncate | |
1705 MachineOperatorBuilder::kFloat64RoundTiesAway; | 1708 MachineOperatorBuilder::kFloat64RoundTiesAway; |
1706 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f. | 1709 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f. |
1707 } | 1710 } |
1708 | 1711 |
1709 } // namespace compiler | 1712 } // namespace compiler |
1710 } // namespace internal | 1713 } // namespace internal |
1711 } // namespace v8 | 1714 } // namespace v8 |
OLD | NEW |