| 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 882 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 893 | 893 |
| 894 | 894 |
| 895 #if V8_TARGET_ARCH_PPC64 | 895 #if V8_TARGET_ARCH_PPC64 |
| 896 void InstructionSelector::VisitInt64Add(Node* node) { | 896 void InstructionSelector::VisitInt64Add(Node* node) { |
| 897 VisitBinop<Int64BinopMatcher>(this, node, kPPC_Add, kInt16Imm); | 897 VisitBinop<Int64BinopMatcher>(this, node, kPPC_Add, kInt16Imm); |
| 898 } | 898 } |
| 899 #endif | 899 #endif |
| 900 | 900 |
| 901 #if !V8_TARGET_ARCH_PPC64 | 901 #if !V8_TARGET_ARCH_PPC64 |
| 902 void InstructionSelector::VisitInt32PairAdd(Node* node) { UNIMPLEMENTED(); } | 902 void InstructionSelector::VisitInt32PairAdd(Node* node) { UNIMPLEMENTED(); } |
| 903 |
| 904 void InstructionSelector::VisitInt32PairSub(Node* node) { UNIMPLEMENTED(); } |
| 903 #endif | 905 #endif |
| 904 | 906 |
| 905 void InstructionSelector::VisitInt32Sub(Node* node) { | 907 void InstructionSelector::VisitInt32Sub(Node* node) { |
| 906 PPCOperandGenerator g(this); | 908 PPCOperandGenerator g(this); |
| 907 Int32BinopMatcher m(node); | 909 Int32BinopMatcher m(node); |
| 908 if (m.left().Is(0)) { | 910 if (m.left().Is(0)) { |
| 909 Emit(kPPC_Neg, g.DefineAsRegister(node), g.UseRegister(m.right().node())); | 911 Emit(kPPC_Neg, g.DefineAsRegister(node), g.UseRegister(m.right().node())); |
| 910 } else { | 912 } else { |
| 911 VisitBinop<Int32BinopMatcher>(this, node, kPPC_Sub, kInt16Imm_Negate); | 913 VisitBinop<Int32BinopMatcher>(this, node, kPPC_Sub, kInt16Imm_Negate); |
| 912 } | 914 } |
| (...skipping 956 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1869 MachineOperatorBuilder::kFloat64RoundTruncate | | 1871 MachineOperatorBuilder::kFloat64RoundTruncate | |
| 1870 MachineOperatorBuilder::kFloat64RoundTiesAway | | 1872 MachineOperatorBuilder::kFloat64RoundTiesAway | |
| 1871 MachineOperatorBuilder::kWord32Popcnt | | 1873 MachineOperatorBuilder::kWord32Popcnt | |
| 1872 MachineOperatorBuilder::kWord64Popcnt; | 1874 MachineOperatorBuilder::kWord64Popcnt; |
| 1873 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f. | 1875 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f. |
| 1874 } | 1876 } |
| 1875 | 1877 |
| 1876 } // namespace compiler | 1878 } // namespace compiler |
| 1877 } // namespace internal | 1879 } // namespace internal |
| 1878 } // namespace v8 | 1880 } // namespace v8 |
| OLD | NEW |