| 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 1130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1141 void InstructionSelector::VisitFloat32RoundDown(Node* node) { | 1141 void InstructionSelector::VisitFloat32RoundDown(Node* node) { |
| 1142 VisitRR(this, kPPC_FloorDouble, node); | 1142 VisitRR(this, kPPC_FloorDouble, node); |
| 1143 } | 1143 } |
| 1144 | 1144 |
| 1145 | 1145 |
| 1146 void InstructionSelector::VisitFloat64RoundDown(Node* node) { | 1146 void InstructionSelector::VisitFloat64RoundDown(Node* node) { |
| 1147 VisitRR(this, kPPC_FloorDouble, node); | 1147 VisitRR(this, kPPC_FloorDouble, node); |
| 1148 } | 1148 } |
| 1149 | 1149 |
| 1150 | 1150 |
| 1151 void InstructionSelector::VisitFloat32RoundUp(Node* node) { UNIMPLEMENTED(); } | 1151 void InstructionSelector::VisitFloat32RoundUp(Node* node) { |
| 1152 VisitRR(this, kPPC_CeilDouble, node); |
| 1153 } |
| 1152 | 1154 |
| 1153 | 1155 |
| 1154 void InstructionSelector::VisitFloat64RoundUp(Node* node) { | 1156 void InstructionSelector::VisitFloat64RoundUp(Node* node) { |
| 1155 VisitRR(this, kPPC_CeilDouble, node); | 1157 VisitRR(this, kPPC_CeilDouble, node); |
| 1156 } | 1158 } |
| 1157 | 1159 |
| 1158 | 1160 |
| 1159 void InstructionSelector::VisitFloat32RoundTruncate(Node* node) { | 1161 void InstructionSelector::VisitFloat32RoundTruncate(Node* node) { |
| 1160 UNREACHABLE(); | 1162 UNREACHABLE(); |
| 1161 } | 1163 } |
| (...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1680 Emit(kPPC_DoubleInsertHighWord32, g.DefineSameAsFirst(node), | 1682 Emit(kPPC_DoubleInsertHighWord32, g.DefineSameAsFirst(node), |
| 1681 g.UseRegister(left), g.UseRegister(right)); | 1683 g.UseRegister(left), g.UseRegister(right)); |
| 1682 } | 1684 } |
| 1683 | 1685 |
| 1684 | 1686 |
| 1685 // static | 1687 // static |
| 1686 MachineOperatorBuilder::Flags | 1688 MachineOperatorBuilder::Flags |
| 1687 InstructionSelector::SupportedMachineOperatorFlags() { | 1689 InstructionSelector::SupportedMachineOperatorFlags() { |
| 1688 return MachineOperatorBuilder::kFloat32RoundDown | | 1690 return MachineOperatorBuilder::kFloat32RoundDown | |
| 1689 MachineOperatorBuilder::kFloat64RoundDown | | 1691 MachineOperatorBuilder::kFloat64RoundDown | |
| 1692 MachineOperatorBuilder::kFloat32RoundUp | |
| 1690 MachineOperatorBuilder::kFloat64RoundUp | | 1693 MachineOperatorBuilder::kFloat64RoundUp | |
| 1691 MachineOperatorBuilder::kFloat64RoundTruncate | | 1694 MachineOperatorBuilder::kFloat64RoundTruncate | |
| 1692 MachineOperatorBuilder::kFloat64RoundTiesAway | | 1695 MachineOperatorBuilder::kFloat64RoundTiesAway | |
| 1693 MachineOperatorBuilder::kWord32Popcnt | | 1696 MachineOperatorBuilder::kWord32Popcnt | |
| 1694 MachineOperatorBuilder::kWord64Popcnt; | 1697 MachineOperatorBuilder::kWord64Popcnt; |
| 1695 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f. | 1698 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f. |
| 1696 } | 1699 } |
| 1697 | 1700 |
| 1698 } // namespace compiler | 1701 } // namespace compiler |
| 1699 } // namespace internal | 1702 } // namespace internal |
| 1700 } // namespace v8 | 1703 } // namespace v8 |
| OLD | NEW |