| 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 848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 859 VisitBinop<Int32BinopMatcher>(this, node, kPPC_Add, kInt16Imm); | 859 VisitBinop<Int32BinopMatcher>(this, node, kPPC_Add, kInt16Imm); |
| 860 } | 860 } |
| 861 | 861 |
| 862 | 862 |
| 863 #if V8_TARGET_ARCH_PPC64 | 863 #if V8_TARGET_ARCH_PPC64 |
| 864 void InstructionSelector::VisitInt64Add(Node* node) { | 864 void InstructionSelector::VisitInt64Add(Node* node) { |
| 865 VisitBinop<Int64BinopMatcher>(this, node, kPPC_Add, kInt16Imm); | 865 VisitBinop<Int64BinopMatcher>(this, node, kPPC_Add, kInt16Imm); |
| 866 } | 866 } |
| 867 #endif | 867 #endif |
| 868 | 868 |
| 869 #if !V8_TARGET_ARCH_PPC64 |
| 870 void InstructionSelector::VisitInt32AddPair(Node* node) { UNIMPLEMENTED(); } |
| 871 #endif |
| 869 | 872 |
| 870 void InstructionSelector::VisitInt32Sub(Node* node) { | 873 void InstructionSelector::VisitInt32Sub(Node* node) { |
| 871 PPCOperandGenerator g(this); | 874 PPCOperandGenerator g(this); |
| 872 Int32BinopMatcher m(node); | 875 Int32BinopMatcher m(node); |
| 873 if (m.left().Is(0)) { | 876 if (m.left().Is(0)) { |
| 874 Emit(kPPC_Neg, g.DefineAsRegister(node), g.UseRegister(m.right().node())); | 877 Emit(kPPC_Neg, g.DefineAsRegister(node), g.UseRegister(m.right().node())); |
| 875 } else { | 878 } else { |
| 876 VisitBinop<Int32BinopMatcher>(this, node, kPPC_Sub, kInt16Imm_Negate); | 879 VisitBinop<Int32BinopMatcher>(this, node, kPPC_Sub, kInt16Imm_Negate); |
| 877 } | 880 } |
| 878 } | 881 } |
| (...skipping 954 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1833 MachineOperatorBuilder::kFloat64RoundTruncate | | 1836 MachineOperatorBuilder::kFloat64RoundTruncate | |
| 1834 MachineOperatorBuilder::kFloat64RoundTiesAway | | 1837 MachineOperatorBuilder::kFloat64RoundTiesAway | |
| 1835 MachineOperatorBuilder::kWord32Popcnt | | 1838 MachineOperatorBuilder::kWord32Popcnt | |
| 1836 MachineOperatorBuilder::kWord64Popcnt; | 1839 MachineOperatorBuilder::kWord64Popcnt; |
| 1837 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f. | 1840 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f. |
| 1838 } | 1841 } |
| 1839 | 1842 |
| 1840 } // namespace compiler | 1843 } // namespace compiler |
| 1841 } // namespace internal | 1844 } // namespace internal |
| 1842 } // namespace v8 | 1845 } // namespace v8 |
| OLD | NEW |