Index: src/compiler/code-generator.cc |
diff --git a/src/compiler/code-generator.cc b/src/compiler/code-generator.cc |
index 374e6774305dfa437109146a0fec0972ec069172..1854c82cfc8bb82b68a4bcaffd8ce74c8175efb7 100644 |
--- a/src/compiler/code-generator.cc |
+++ b/src/compiler/code-generator.cc |
@@ -92,6 +92,8 @@ Handle<Code> CodeGenerator::GenerateCode() { |
} |
// Align loop headers on 16-byte boundaries. |
if (block->IsLoopHeader()) masm()->Align(16); |
+ // Ensure lazy deopt doesn't patch handler entry points. |
+ if (block->IsHandler()) EnsureSpaceForLazyDeopt(); |
// Bind a label for a block. |
current_block_ = block->rpo_number(); |
if (FLAG_code_comments) { |