| Index: src/compiler.cc
|
| diff --git a/src/compiler.cc b/src/compiler.cc
|
| index 0d5534927a826c961cf52e89adfd7b023843ae01..7c58f9ef91b4d3a599eaffff2d1257a4f432fbb0 100644
|
| --- a/src/compiler.cc
|
| +++ b/src/compiler.cc
|
| @@ -1607,13 +1607,7 @@ Handle<SharedFunctionInfo> Compiler::GetSharedFunctionInfo(
|
| // aggressive about lazy compilation, because it might trigger compilation
|
| // of functions without an outer context when setting a breakpoint through
|
| // Debug::FindSharedFunctionInfoInScript.
|
| - bool allow_lazy_without_ctx = literal->AllowsLazyCompilationWithoutContext();
|
| - // Compile eagerly for live edit. When compiling debug code, eagerly compile
|
| - // unless we can lazily compile without the context.
|
| - bool allow_lazy = literal->AllowsLazyCompilation() &&
|
| - !LiveEditFunctionTracker::IsActive(isolate) &&
|
| - (!info.is_debug() || allow_lazy_without_ctx);
|
| -
|
| + bool allow_lazy = literal->AllowsLazyCompilation() && !info.is_debug();
|
| bool lazy = FLAG_lazy && allow_lazy && !literal->should_eager_compile();
|
|
|
| // Consider compiling eagerly when targeting the code cache.
|
|
|