Index: src/compiler/code-generator.cc |
diff --git a/src/compiler/code-generator.cc b/src/compiler/code-generator.cc |
index 26683859b0510089b42d70f14f68fa38c8195d24..12746b82a325f7972dbbc589e20859c363a3b6f5 100644 |
--- a/src/compiler/code-generator.cc |
+++ b/src/compiler/code-generator.cc |
@@ -147,7 +147,7 @@ Handle<Code> CodeGenerator::GenerateCode() { |
} |
// Ensure there is space for lazy deoptimization in the code. |
- if (!info->IsStub()) { |
+ if (info->ShouldEnsureSpaceForLazyDeopt()) { |
int target_offset = masm()->pc_offset() + Deoptimizer::patch_size(); |
while (masm()->pc_offset() < target_offset) { |
masm()->nop(); |
@@ -193,7 +193,7 @@ Handle<Code> CodeGenerator::GenerateCode() { |
PopulateDeoptimizationData(result); |
// Ensure there is space for lazy deoptimization in the relocation info. |
- if (!info->IsStub()) { |
+ if (!info->ShouldEnsureSpaceForLazyDeopt()) { |
Deoptimizer::EnsureRelocSpaceForLazyDeoptimization(result); |
} |