| Index: src/compiler.cc
|
| diff --git a/src/compiler.cc b/src/compiler.cc
|
| index dc8468f2b41d7ca56d210a7747b8323d226f6476..68a0e1435533a06faae506e7443c9008e9d42462 100644
|
| --- a/src/compiler.cc
|
| +++ b/src/compiler.cc
|
| @@ -1271,6 +1271,10 @@ Handle<SharedFunctionInfo> CompileToplevel(CompilationInfo* info) {
|
| // Consider parsing eagerly when targeting the code cache.
|
| parse_allow_lazy &= !(FLAG_serialize_eager && info->will_serialize());
|
|
|
| + // Consider parsing eagerly when targeting Ignition.
|
| + parse_allow_lazy &= !(FLAG_ignition && FLAG_ignition_eager &&
|
| + !isolate->serializer_enabled());
|
| +
|
| parse_info->set_allow_lazy_parsing(parse_allow_lazy);
|
| if (!parse_allow_lazy &&
|
| (options == ScriptCompiler::kProduceParserCache ||
|
| @@ -1786,6 +1790,10 @@ Handle<SharedFunctionInfo> Compiler::GetSharedFunctionInfo(
|
| // Consider compiling eagerly when targeting the code cache.
|
| lazy &= !(FLAG_serialize_eager && info.will_serialize());
|
|
|
| + // Consider compiling eagerly when compiling bytecode for Ignition.
|
| + lazy &=
|
| + !(FLAG_ignition && FLAG_ignition_eager && !isolate->serializer_enabled());
|
| +
|
| // Generate code
|
| TimerEventScope<TimerEventCompileCode> timer(isolate);
|
| TRACE_EVENT0("v8", "V8.CompileCode");
|
|
|