Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 3d6805d88fbdc9f2b027940806328b8169fb2a8f..809a1b30a7bc8e6a43b3da73438357b920eeeeba 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -1275,6 +1275,9 @@ 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 && !isolate->serializer_enabled()); |
+ |
parse_info->set_allow_lazy_parsing(parse_allow_lazy); |
if (!parse_allow_lazy && |
(options == ScriptCompiler::kProduceParserCache || |
@@ -1790,6 +1793,9 @@ 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 && !isolate->serializer_enabled()); |
+ |
// Generate code |
TimerEventScope<TimerEventCompileCode> timer(isolate); |
TRACE_EVENT0("v8", "V8.CompileCode"); |