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/base/bits.h" | 6 #include "src/base/bits.h" |
7 #include "src/compiler/instruction-selector-impl.h" | 7 #include "src/compiler/instruction-selector-impl.h" |
8 #include "src/compiler/node-matchers.h" | 8 #include "src/compiler/node-matchers.h" |
9 #include "src/compiler/node-properties.h" | 9 #include "src/compiler/node-properties.h" |
10 | 10 |
(...skipping 1117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1128 | 1128 |
1129 void InstructionSelector::VisitChangeFloat64ToInt32(Node* node) { | 1129 void InstructionSelector::VisitChangeFloat64ToInt32(Node* node) { |
1130 VisitRR(this, kArmVcvtS32F64, node); | 1130 VisitRR(this, kArmVcvtS32F64, node); |
1131 } | 1131 } |
1132 | 1132 |
1133 | 1133 |
1134 void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) { | 1134 void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) { |
1135 VisitRR(this, kArmVcvtU32F64, node); | 1135 VisitRR(this, kArmVcvtU32F64, node); |
1136 } | 1136 } |
1137 | 1137 |
1138 | 1138 void InstructionSelector::VisitTruncateFloat64ToUint32(Node* node) { |
| 1139 VisitRR(this, kArmVcvtU32F64, node); |
| 1140 } |
1139 void InstructionSelector::VisitTruncateFloat64ToFloat32(Node* node) { | 1141 void InstructionSelector::VisitTruncateFloat64ToFloat32(Node* node) { |
1140 VisitRR(this, kArmVcvtF32F64, node); | 1142 VisitRR(this, kArmVcvtF32F64, node); |
1141 } | 1143 } |
1142 | 1144 |
1143 | 1145 |
1144 void InstructionSelector::VisitTruncateFloat64ToInt32(Node* node) { | 1146 void InstructionSelector::VisitTruncateFloat64ToInt32(Node* node) { |
1145 switch (TruncationModeOf(node->op())) { | 1147 switch (TruncationModeOf(node->op())) { |
1146 case TruncationMode::kJavaScript: | 1148 case TruncationMode::kJavaScript: |
1147 return VisitRR(this, kArchTruncateDoubleToI, node); | 1149 return VisitRR(this, kArchTruncateDoubleToI, node); |
1148 case TruncationMode::kRoundToZero: | 1150 case TruncationMode::kRoundToZero: |
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1825 MachineOperatorBuilder::kFloat64RoundTiesAway | | 1827 MachineOperatorBuilder::kFloat64RoundTiesAway | |
1826 MachineOperatorBuilder::kFloat32RoundTiesEven | | 1828 MachineOperatorBuilder::kFloat32RoundTiesEven | |
1827 MachineOperatorBuilder::kFloat64RoundTiesEven; | 1829 MachineOperatorBuilder::kFloat64RoundTiesEven; |
1828 } | 1830 } |
1829 return flags; | 1831 return flags; |
1830 } | 1832 } |
1831 | 1833 |
1832 } // namespace compiler | 1834 } // namespace compiler |
1833 } // namespace internal | 1835 } // namespace internal |
1834 } // namespace v8 | 1836 } // namespace v8 |
OLD | NEW |