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 1002 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1013 } | 1013 } |
1014 UNREACHABLE(); | 1014 UNREACHABLE(); |
1015 } | 1015 } |
1016 | 1016 |
1017 | 1017 |
1018 void InstructionSelector::VisitTruncateFloat32ToInt32(Node* node) { | 1018 void InstructionSelector::VisitTruncateFloat32ToInt32(Node* node) { |
1019 return VisitRR(this, kPPC_DoubleToInt32, node); | 1019 return VisitRR(this, kPPC_DoubleToInt32, node); |
1020 } | 1020 } |
1021 | 1021 |
1022 | 1022 |
| 1023 void InstructionSelector::VisitTruncateFloat32ToUint32(Node* node) { |
| 1024 UNIMPLEMENTED(); |
| 1025 } |
| 1026 |
| 1027 |
1023 #if V8_TARGET_ARCH_PPC64 | 1028 #if V8_TARGET_ARCH_PPC64 |
1024 void InstructionSelector::VisitTruncateInt64ToInt32(Node* node) { | 1029 void InstructionSelector::VisitTruncateInt64ToInt32(Node* node) { |
1025 // TODO(mbrandy): inspect input to see if nop is appropriate. | 1030 // TODO(mbrandy): inspect input to see if nop is appropriate. |
1026 VisitRR(this, kPPC_Int64ToInt32, node); | 1031 VisitRR(this, kPPC_Int64ToInt32, node); |
1027 } | 1032 } |
1028 | 1033 |
1029 | 1034 |
1030 void InstructionSelector::VisitRoundInt64ToFloat32(Node* node) { | 1035 void InstructionSelector::VisitRoundInt64ToFloat32(Node* node) { |
1031 VisitRR(this, kPPC_Int64ToFloat32, node); | 1036 VisitRR(this, kPPC_Int64ToFloat32, node); |
1032 } | 1037 } |
(...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1773 MachineOperatorBuilder::kFloat64RoundTruncate | | 1778 MachineOperatorBuilder::kFloat64RoundTruncate | |
1774 MachineOperatorBuilder::kFloat64RoundTiesAway | | 1779 MachineOperatorBuilder::kFloat64RoundTiesAway | |
1775 MachineOperatorBuilder::kWord32Popcnt | | 1780 MachineOperatorBuilder::kWord32Popcnt | |
1776 MachineOperatorBuilder::kWord64Popcnt; | 1781 MachineOperatorBuilder::kWord64Popcnt; |
1777 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f. | 1782 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f. |
1778 } | 1783 } |
1779 | 1784 |
1780 } // namespace compiler | 1785 } // namespace compiler |
1781 } // namespace internal | 1786 } // namespace internal |
1782 } // namespace v8 | 1787 } // namespace v8 |
OLD | NEW |