Chromium Code Reviews| Index: src/compiler/code-generator.cc |
| diff --git a/src/compiler/code-generator.cc b/src/compiler/code-generator.cc |
| index 07a741f73e24f2595ee5777ca8df5d8d8afc36aa..fd974cbeb29005e7d04f46853048b4643a5170b7 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->IsStub() && !info->IsBytecodeHandler()) { |
|
titzer
2015/08/21 13:37:21
Missed this one.
rmcilroy
2015/08/21 16:41:05
Done.
|
| Deoptimizer::EnsureRelocSpaceForLazyDeoptimization(result); |
| } |