| 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 ca6569c7aa9f778e1a8a0fc6bc3adc624af2396b..29fec34075abae0468719962c1548901e7d6d5a5 100644
|
| --- a/src/compiler/arm64/instruction-selector-arm64.cc
|
| +++ b/src/compiler/arm64/instruction-selector-arm64.cc
|
| @@ -1847,6 +1847,14 @@ void InstructionSelector::VisitBranch(Node* branch, BasicBlock* tbranch,
|
| cont.OverwriteAndNegateIfEqual(kOverflow);
|
| return VisitBinop<Int32BinopMatcher>(this, node, kArm64Sub32,
|
| kArithmeticImm, &cont);
|
| + case IrOpcode::kInt64AddWithOverflow:
|
| + cont.OverwriteAndNegateIfEqual(kOverflow);
|
| + return VisitBinop<Int64BinopMatcher>(this, node, kArm64Add,
|
| + kArithmeticImm, &cont);
|
| + case IrOpcode::kInt64SubWithOverflow:
|
| + cont.OverwriteAndNegateIfEqual(kOverflow);
|
| + return VisitBinop<Int64BinopMatcher>(this, node, kArm64Sub,
|
| + kArithmeticImm, &cont);
|
| default:
|
| break;
|
| }
|
| @@ -2034,6 +2042,28 @@ void InstructionSelector::VisitInt32SubWithOverflow(Node* node) {
|
| }
|
|
|
|
|
| +void InstructionSelector::VisitInt64AddWithOverflow(Node* node) {
|
| + if (Node* ovf = NodeProperties::FindProjection(node, 1)) {
|
| + FlagsContinuation cont(kOverflow, ovf);
|
| + return VisitBinop<Int64BinopMatcher>(this, node, kArm64Add, kArithmeticImm,
|
| + &cont);
|
| + }
|
| + FlagsContinuation cont;
|
| + VisitBinop<Int64BinopMatcher>(this, node, kArm64Add, kArithmeticImm, &cont);
|
| +}
|
| +
|
| +
|
| +void InstructionSelector::VisitInt64SubWithOverflow(Node* node) {
|
| + if (Node* ovf = NodeProperties::FindProjection(node, 1)) {
|
| + FlagsContinuation cont(kOverflow, ovf);
|
| + return VisitBinop<Int64BinopMatcher>(this, node, kArm64Sub, kArithmeticImm,
|
| + &cont);
|
| + }
|
| + FlagsContinuation cont;
|
| + VisitBinop<Int64BinopMatcher>(this, node, kArm64Sub, kArithmeticImm, &cont);
|
| +}
|
| +
|
| +
|
| void InstructionSelector::VisitInt64LessThan(Node* node) {
|
| FlagsContinuation cont(kSignedLessThan, node);
|
| VisitWordCompare(this, node, kArm64Cmp, &cont, false, kArithmeticImm);
|
|
|