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 936 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
947 } | 947 } |
948 | 948 |
949 | 949 |
950 #if V8_TARGET_ARCH_PPC64 | 950 #if V8_TARGET_ARCH_PPC64 |
951 void InstructionSelector::VisitTruncateInt64ToInt32(Node* node) { | 951 void InstructionSelector::VisitTruncateInt64ToInt32(Node* node) { |
952 // TODO(mbrandy): inspect input to see if nop is appropriate. | 952 // TODO(mbrandy): inspect input to see if nop is appropriate. |
953 VisitRR(this, kPPC_Int64ToInt32, node); | 953 VisitRR(this, kPPC_Int64ToInt32, node); |
954 } | 954 } |
955 | 955 |
956 | 956 |
| 957 void InstructionSelector::VisitRoundInt64ToFloat32(Node* node) { |
| 958 VisitRR(this, kPPC_Int64ToFloat32, node); |
| 959 } |
| 960 |
| 961 |
957 void InstructionSelector::VisitRoundInt64ToFloat64(Node* node) { | 962 void InstructionSelector::VisitRoundInt64ToFloat64(Node* node) { |
958 VisitRR(this, kPPC_Int64ToDouble, node); | 963 VisitRR(this, kPPC_Int64ToDouble, node); |
959 } | 964 } |
960 #endif | 965 #endif |
961 | 966 |
962 | 967 |
963 void InstructionSelector::VisitBitcastFloat32ToInt32(Node* node) { | 968 void InstructionSelector::VisitBitcastFloat32ToInt32(Node* node) { |
964 VisitRR(this, kPPC_BitcastFloat32ToInt32, node); | 969 VisitRR(this, kPPC_BitcastFloat32ToInt32, node); |
965 } | 970 } |
966 | 971 |
(...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1616 return MachineOperatorBuilder::kFloat64RoundDown | | 1621 return MachineOperatorBuilder::kFloat64RoundDown | |
1617 MachineOperatorBuilder::kFloat64RoundTruncate | | 1622 MachineOperatorBuilder::kFloat64RoundTruncate | |
1618 MachineOperatorBuilder::kFloat64RoundTiesAway | | 1623 MachineOperatorBuilder::kFloat64RoundTiesAway | |
1619 MachineOperatorBuilder::kWord32Popcnt; | 1624 MachineOperatorBuilder::kWord32Popcnt; |
1620 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f. | 1625 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f. |
1621 } | 1626 } |
1622 | 1627 |
1623 } // namespace compiler | 1628 } // namespace compiler |
1624 } // namespace internal | 1629 } // namespace internal |
1625 } // namespace v8 | 1630 } // namespace v8 |
OLD | NEW |