Index: src/compiler/ia32/instruction-selector-ia32.cc |
diff --git a/src/compiler/ia32/instruction-selector-ia32.cc b/src/compiler/ia32/instruction-selector-ia32.cc |
index 8343dc1a09326f6d297a01e52521ed816ea5a499..e7ddc1ad18287b909eb05a3fbb8ced724459e865 100644 |
--- a/src/compiler/ia32/instruction-selector-ia32.cc |
+++ b/src/compiler/ia32/instruction-selector-ia32.cc |
@@ -843,6 +843,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)); |
} |