| 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/compiler/instruction-selector-impl.h" | 5 #include "src/compiler/instruction-selector-impl.h" |
| 6 #include "src/compiler/node-matchers.h" | 6 #include "src/compiler/node-matchers.h" |
| 7 #include "src/compiler/node-properties.h" | 7 #include "src/compiler/node-properties.h" |
| 8 | 8 |
| 9 namespace v8 { | 9 namespace v8 { |
| 10 namespace internal { | 10 namespace internal { |
| (...skipping 1241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1252 | 1252 |
| 1253 Node* success_output = NodeProperties::FindProjection(node, 1); | 1253 Node* success_output = NodeProperties::FindProjection(node, 1); |
| 1254 if (success_output) { | 1254 if (success_output) { |
| 1255 outputs[output_count++] = g.DefineAsRegister(success_output); | 1255 outputs[output_count++] = g.DefineAsRegister(success_output); |
| 1256 } | 1256 } |
| 1257 | 1257 |
| 1258 Emit(kArm64Float64ToInt64, output_count, outputs, 1, inputs); | 1258 Emit(kArm64Float64ToInt64, output_count, outputs, 1, inputs); |
| 1259 } | 1259 } |
| 1260 | 1260 |
| 1261 | 1261 |
| 1262 void InstructionSelector::VisitTruncateFloat32ToUint64(Node* node) { | 1262 void InstructionSelector::VisitTryTruncateFloat32ToUint64(Node* node) { |
| 1263 VisitRR(this, kArm64Float32ToUint64, node); | 1263 Arm64OperandGenerator g(this); |
| 1264 |
| 1265 InstructionOperand inputs[] = {g.UseRegister(node->InputAt(0))}; |
| 1266 InstructionOperand outputs[2]; |
| 1267 size_t output_count = 0; |
| 1268 outputs[output_count++] = g.DefineAsRegister(node); |
| 1269 |
| 1270 Node* success_output = NodeProperties::FindProjection(node, 1); |
| 1271 if (success_output) { |
| 1272 outputs[output_count++] = g.DefineAsRegister(success_output); |
| 1273 } |
| 1274 |
| 1275 Emit(kArm64Float32ToUint64, output_count, outputs, 1, inputs); |
| 1264 } | 1276 } |
| 1265 | 1277 |
| 1266 | 1278 |
| 1267 void InstructionSelector::VisitTryTruncateFloat64ToUint64(Node* node) { | 1279 void InstructionSelector::VisitTryTruncateFloat64ToUint64(Node* node) { |
| 1268 Arm64OperandGenerator g(this); | 1280 Arm64OperandGenerator g(this); |
| 1269 | 1281 |
| 1270 InstructionOperand inputs[] = {g.UseRegister(node->InputAt(0))}; | 1282 InstructionOperand inputs[] = {g.UseRegister(node->InputAt(0))}; |
| 1271 InstructionOperand outputs[2]; | 1283 InstructionOperand outputs[2]; |
| 1272 size_t output_count = 0; | 1284 size_t output_count = 0; |
| 1273 outputs[output_count++] = g.DefineAsRegister(node); | 1285 outputs[output_count++] = g.DefineAsRegister(node); |
| (...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2134 MachineOperatorBuilder::kFloat32RoundTiesEven | | 2146 MachineOperatorBuilder::kFloat32RoundTiesEven | |
| 2135 MachineOperatorBuilder::kFloat64RoundTiesEven | | 2147 MachineOperatorBuilder::kFloat64RoundTiesEven | |
| 2136 MachineOperatorBuilder::kWord32ShiftIsSafe | | 2148 MachineOperatorBuilder::kWord32ShiftIsSafe | |
| 2137 MachineOperatorBuilder::kInt32DivIsSafe | | 2149 MachineOperatorBuilder::kInt32DivIsSafe | |
| 2138 MachineOperatorBuilder::kUint32DivIsSafe; | 2150 MachineOperatorBuilder::kUint32DivIsSafe; |
| 2139 } | 2151 } |
| 2140 | 2152 |
| 2141 } // namespace compiler | 2153 } // namespace compiler |
| 2142 } // namespace internal | 2154 } // namespace internal |
| 2143 } // namespace v8 | 2155 } // namespace v8 |
| OLD | NEW |