| Index: src/compiler.cc
|
| diff --git a/src/compiler.cc b/src/compiler.cc
|
| index ce3badb0f380727a0eef5c5f57412e2bce9c0097..f580705c7c0e95ba9eaa3fc4ec502b0469abb0e1 100644
|
| --- a/src/compiler.cc
|
| +++ b/src/compiler.cc
|
| @@ -1010,10 +1010,11 @@ static Handle<SharedFunctionInfo> CompileToplevel(CompilationInfo* info) {
|
| // Parse the script if needed (if it's already parsed, function() is
|
| // non-NULL).
|
| bool parse_allow_lazy =
|
| - (info->compile_options() == ScriptCompiler::kConsumeParserCache ||
|
| - String::cast(script->source())->length() >
|
| - FLAG_min_preparse_length) &&
|
| - !Compiler::DebuggerWantsEagerCompilation(info);
|
| + (FLAG_lazy &&
|
| + (info->compile_options() == ScriptCompiler::kConsumeParserCache ||
|
| + String::cast(script->source())->length() >
|
| + FLAG_min_preparse_length) &&
|
| + !Compiler::DebuggerWantsEagerCompilation(info));
|
|
|
| if (!parse_allow_lazy &&
|
| (info->compile_options() == ScriptCompiler::kProduceParserCache ||
|
|
|