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 88871f5c572d1f379c206c1ace0f52df431ebc1d..3077ade7295e0d2269f639fd914c24dabc046c7a 100644 |
--- a/src/compiler/arm64/instruction-selector-arm64.cc |
+++ b/src/compiler/arm64/instruction-selector-arm64.cc |
@@ -1276,6 +1276,11 @@ void InstructionSelector::VisitCall(Node* node, BasicBlock* handler) { |
// Pass label of exception handler block. |
CallDescriptor::Flags flags = descriptor->flags(); |
if (handler != nullptr) { |
+ DCHECK_EQ(IrOpcode::kIfException, handler->front()->opcode()); |
+ IfExceptionHint hint = OpParameter<IfExceptionHint>(handler->front()); |
+ if (hint == IfExceptionHint::kLocallyCaught) { |
+ flags |= CallDescriptor::kHasLocalCatchHandler; |
+ } |
flags |= CallDescriptor::kHasExceptionHandler; |
buffer.instruction_args.push_back(g.Label(handler)); |
} |