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 1039 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1050 | 1050 |
1051 void InstructionSelector::VisitChangeFloat64ToInt32(Node* node) { | 1051 void InstructionSelector::VisitChangeFloat64ToInt32(Node* node) { |
1052 VisitRR(this, kPPC_DoubleToInt32, node); | 1052 VisitRR(this, kPPC_DoubleToInt32, node); |
1053 } | 1053 } |
1054 | 1054 |
1055 | 1055 |
1056 void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) { | 1056 void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) { |
1057 VisitRR(this, kPPC_DoubleToUint32, node); | 1057 VisitRR(this, kPPC_DoubleToUint32, node); |
1058 } | 1058 } |
1059 | 1059 |
| 1060 void InstructionSelector::VisitTruncateFloat64ToUint32(Node* node) { |
| 1061 VisitRR(this, kPPC_DoubleToUint32, node); |
| 1062 } |
1060 | 1063 |
1061 #if V8_TARGET_ARCH_PPC64 | 1064 #if V8_TARGET_ARCH_PPC64 |
1062 void InstructionSelector::VisitTryTruncateFloat32ToInt64(Node* node) { | 1065 void InstructionSelector::VisitTryTruncateFloat32ToInt64(Node* node) { |
1063 VisitTryTruncateDouble(this, kPPC_DoubleToInt64, node); | 1066 VisitTryTruncateDouble(this, kPPC_DoubleToInt64, node); |
1064 } | 1067 } |
1065 | 1068 |
1066 | 1069 |
1067 void InstructionSelector::VisitTryTruncateFloat64ToInt64(Node* node) { | 1070 void InstructionSelector::VisitTryTruncateFloat64ToInt64(Node* node) { |
1068 VisitTryTruncateDouble(this, kPPC_DoubleToInt64, node); | 1071 VisitTryTruncateDouble(this, kPPC_DoubleToInt64, node); |
1069 } | 1072 } |
(...skipping 822 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1892 MachineOperatorBuilder::kFloat64RoundTruncate | | 1895 MachineOperatorBuilder::kFloat64RoundTruncate | |
1893 MachineOperatorBuilder::kFloat64RoundTiesAway | | 1896 MachineOperatorBuilder::kFloat64RoundTiesAway | |
1894 MachineOperatorBuilder::kWord32Popcnt | | 1897 MachineOperatorBuilder::kWord32Popcnt | |
1895 MachineOperatorBuilder::kWord64Popcnt; | 1898 MachineOperatorBuilder::kWord64Popcnt; |
1896 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f. | 1899 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f. |
1897 } | 1900 } |
1898 | 1901 |
1899 } // namespace compiler | 1902 } // namespace compiler |
1900 } // namespace internal | 1903 } // namespace internal |
1901 } // namespace v8 | 1904 } // namespace v8 |
OLD | NEW |