| 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 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1014 case TruncationMode::kJavaScript: | 1014 case TruncationMode::kJavaScript: |
| 1015 return VisitRR(this, kArchTruncateDoubleToI, node); | 1015 return VisitRR(this, kArchTruncateDoubleToI, node); |
| 1016 case TruncationMode::kRoundToZero: | 1016 case TruncationMode::kRoundToZero: |
| 1017 return VisitRR(this, kPPC_DoubleToInt32, node); | 1017 return VisitRR(this, kPPC_DoubleToInt32, node); |
| 1018 } | 1018 } |
| 1019 UNREACHABLE(); | 1019 UNREACHABLE(); |
| 1020 } | 1020 } |
| 1021 | 1021 |
| 1022 | 1022 |
| 1023 void InstructionSelector::VisitTruncateFloat32ToInt32(Node* node) { | 1023 void InstructionSelector::VisitTruncateFloat32ToInt32(Node* node) { |
| 1024 return VisitRR(this, kPPC_DoubleToInt32, node); | 1024 VisitRR(this, kPPC_DoubleToInt32, node); |
| 1025 } | 1025 } |
| 1026 | 1026 |
| 1027 | 1027 |
| 1028 void InstructionSelector::VisitTruncateFloat32ToUint32(Node* node) { | 1028 void InstructionSelector::VisitTruncateFloat32ToUint32(Node* node) { |
| 1029 UNIMPLEMENTED(); | 1029 VisitRR(this, kPPC_DoubleToUint32, node); |
| 1030 } | 1030 } |
| 1031 | 1031 |
| 1032 | 1032 |
| 1033 #if V8_TARGET_ARCH_PPC64 | 1033 #if V8_TARGET_ARCH_PPC64 |
| 1034 void InstructionSelector::VisitTruncateInt64ToInt32(Node* node) { | 1034 void InstructionSelector::VisitTruncateInt64ToInt32(Node* node) { |
| 1035 // TODO(mbrandy): inspect input to see if nop is appropriate. | 1035 // TODO(mbrandy): inspect input to see if nop is appropriate. |
| 1036 VisitRR(this, kPPC_Int64ToInt32, node); | 1036 VisitRR(this, kPPC_Int64ToInt32, node); |
| 1037 } | 1037 } |
| 1038 | 1038 |
| 1039 | 1039 |
| (...skipping 743 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1783 MachineOperatorBuilder::kFloat64RoundTruncate | | 1783 MachineOperatorBuilder::kFloat64RoundTruncate | |
| 1784 MachineOperatorBuilder::kFloat64RoundTiesAway | | 1784 MachineOperatorBuilder::kFloat64RoundTiesAway | |
| 1785 MachineOperatorBuilder::kWord32Popcnt | | 1785 MachineOperatorBuilder::kWord32Popcnt | |
| 1786 MachineOperatorBuilder::kWord64Popcnt; | 1786 MachineOperatorBuilder::kWord64Popcnt; |
| 1787 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f. | 1787 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f. |
| 1788 } | 1788 } |
| 1789 | 1789 |
| 1790 } // namespace compiler | 1790 } // namespace compiler |
| 1791 } // namespace internal | 1791 } // namespace internal |
| 1792 } // namespace v8 | 1792 } // namespace v8 |
| OLD | NEW |