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 931 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
942 | 942 |
943 Node* success_output = NodeProperties::FindProjection(node, 1); | 943 Node* success_output = NodeProperties::FindProjection(node, 1); |
944 if (success_output) { | 944 if (success_output) { |
945 outputs[output_count++] = g.DefineAsRegister(success_output); | 945 outputs[output_count++] = g.DefineAsRegister(success_output); |
946 } | 946 } |
947 | 947 |
948 Emit(kPPC_DoubleToInt64, output_count, outputs, 1, inputs); | 948 Emit(kPPC_DoubleToInt64, output_count, outputs, 1, inputs); |
949 } | 949 } |
950 | 950 |
951 | 951 |
952 void InstructionSelector::VisitTruncateFloat32ToUint64(Node* node) { | 952 void InstructionSelector::VisitTryTruncateFloat32ToUint64(Node* node) { |
| 953 if (NodeProperties::FindProjection(node, 1)) { |
| 954 // TODO(ppc): implement the second return value. |
| 955 UNIMPLEMENTED(); |
| 956 } |
953 VisitRR(this, kPPC_DoubleToUint64, node); | 957 VisitRR(this, kPPC_DoubleToUint64, node); |
954 } | 958 } |
955 | 959 |
956 | 960 |
957 void InstructionSelector::VisitTryTruncateFloat64ToUint64(Node* node) { | 961 void InstructionSelector::VisitTryTruncateFloat64ToUint64(Node* node) { |
958 PPCOperandGenerator g(this); | 962 PPCOperandGenerator g(this); |
959 | 963 |
960 InstructionOperand inputs[] = {g.UseRegister(node->InputAt(0))}; | 964 InstructionOperand inputs[] = {g.UseRegister(node->InputAt(0))}; |
961 InstructionOperand outputs[2]; | 965 InstructionOperand outputs[2]; |
962 size_t output_count = 0; | 966 size_t output_count = 0; |
(...skipping 756 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1719 MachineOperatorBuilder::kFloat64RoundTruncate | | 1723 MachineOperatorBuilder::kFloat64RoundTruncate | |
1720 MachineOperatorBuilder::kFloat64RoundTiesAway | | 1724 MachineOperatorBuilder::kFloat64RoundTiesAway | |
1721 MachineOperatorBuilder::kWord32Popcnt | | 1725 MachineOperatorBuilder::kWord32Popcnt | |
1722 MachineOperatorBuilder::kWord64Popcnt; | 1726 MachineOperatorBuilder::kWord64Popcnt; |
1723 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f. | 1727 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f. |
1724 } | 1728 } |
1725 | 1729 |
1726 } // namespace compiler | 1730 } // namespace compiler |
1727 } // namespace internal | 1731 } // namespace internal |
1728 } // namespace v8 | 1732 } // namespace v8 |
OLD | NEW |