Index: src/compiler/mips/instruction-selector-mips.cc |
diff --git a/src/compiler/mips/instruction-selector-mips.cc b/src/compiler/mips/instruction-selector-mips.cc |
index 6694768702233d74c43459458282ee27e03a8943..c042ea11e67de559428dfb716773aa78259ae80d 100644 |
--- a/src/compiler/mips/instruction-selector-mips.cc |
+++ b/src/compiler/mips/instruction-selector-mips.cc |
@@ -541,6 +541,11 @@ void InstructionSelector::VisitCall(Node* node, BasicBlock* handler) { |
// Pass label of exception handler block. |
CallDescriptor::Flags flags = descriptor->flags(); |
if (handler) { |
+ 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)); |
} |