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 1268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1279 | 1279 |
1280 void InstructionSelector::VisitTruncateFloat32ToUint32(Node* node) { | 1280 void InstructionSelector::VisitTruncateFloat32ToUint32(Node* node) { |
1281 VisitRR(this, kArm64Float32ToUint32, node); | 1281 VisitRR(this, kArm64Float32ToUint32, node); |
1282 } | 1282 } |
1283 | 1283 |
1284 | 1284 |
1285 void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) { | 1285 void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) { |
1286 VisitRR(this, kArm64Float64ToUint32, node); | 1286 VisitRR(this, kArm64Float64ToUint32, node); |
1287 } | 1287 } |
1288 | 1288 |
| 1289 void InstructionSelector::VisitTruncateFloat64ToUint32(Node* node) { |
| 1290 VisitRR(this, kArm64Float64ToUint32, node); |
| 1291 } |
1289 | 1292 |
1290 void InstructionSelector::VisitTryTruncateFloat32ToInt64(Node* node) { | 1293 void InstructionSelector::VisitTryTruncateFloat32ToInt64(Node* node) { |
1291 Arm64OperandGenerator g(this); | 1294 Arm64OperandGenerator g(this); |
1292 | 1295 |
1293 InstructionOperand inputs[] = {g.UseRegister(node->InputAt(0))}; | 1296 InstructionOperand inputs[] = {g.UseRegister(node->InputAt(0))}; |
1294 InstructionOperand outputs[2]; | 1297 InstructionOperand outputs[2]; |
1295 size_t output_count = 0; | 1298 size_t output_count = 0; |
1296 outputs[output_count++] = g.DefineAsRegister(node); | 1299 outputs[output_count++] = g.DefineAsRegister(node); |
1297 | 1300 |
1298 Node* success_output = NodeProperties::FindProjection(node, 1); | 1301 Node* success_output = NodeProperties::FindProjection(node, 1); |
(...skipping 964 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2263 MachineOperatorBuilder::kWord32ShiftIsSafe | | 2266 MachineOperatorBuilder::kWord32ShiftIsSafe | |
2264 MachineOperatorBuilder::kInt32DivIsSafe | | 2267 MachineOperatorBuilder::kInt32DivIsSafe | |
2265 MachineOperatorBuilder::kUint32DivIsSafe | | 2268 MachineOperatorBuilder::kUint32DivIsSafe | |
2266 MachineOperatorBuilder::kWord32ReverseBits | | 2269 MachineOperatorBuilder::kWord32ReverseBits | |
2267 MachineOperatorBuilder::kWord64ReverseBits; | 2270 MachineOperatorBuilder::kWord64ReverseBits; |
2268 } | 2271 } |
2269 | 2272 |
2270 } // namespace compiler | 2273 } // namespace compiler |
2271 } // namespace internal | 2274 } // namespace internal |
2272 } // namespace v8 | 2275 } // namespace v8 |
OLD | NEW |