| Index: src/compiler/arm64/instruction-selector-arm64.cc
|
| diff --git a/src/compiler/arm64/instruction-selector-arm64.cc b/src/compiler/arm64/instruction-selector-arm64.cc
|
| index ce16050e1c3b210da19279aba93a6e80fb921753..7aa8254fac41952188c1b798a2fdad7510599885 100644
|
| --- a/src/compiler/arm64/instruction-selector-arm64.cc
|
| +++ b/src/compiler/arm64/instruction-selector-arm64.cc
|
| @@ -1242,8 +1242,20 @@ void InstructionSelector::VisitTruncateFloat32ToInt64(Node* node) {
|
| }
|
|
|
|
|
| -void InstructionSelector::VisitTruncateFloat64ToInt64(Node* node) {
|
| - VisitRR(this, kArm64Float64ToInt64, node);
|
| +void InstructionSelector::VisitTryTruncateFloat64ToInt64(Node* node) {
|
| + Arm64OperandGenerator g(this);
|
| +
|
| + InstructionOperand inputs[] = {g.UseRegister(node->InputAt(0))};
|
| + InstructionOperand outputs[2];
|
| + size_t output_count = 0;
|
| + outputs[output_count++] = g.DefineAsRegister(node);
|
| +
|
| + Node* success_output = NodeProperties::FindProjection(node, 1);
|
| + if (success_output) {
|
| + outputs[output_count++] = g.DefineAsRegister(success_output);
|
| + }
|
| +
|
| + Emit(kArm64Float64ToInt64, output_count, outputs, 1, inputs);
|
| }
|
|
|
|
|
|
|