Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index fc6760d3f26386b8a23cb09316dbf78a5b17de30..c76072691b2cfeac9a1578ff7fde13428d2e8453 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -1333,8 +1333,10 @@ Handle<SharedFunctionInfo> Compiler::CompileStreamedScript( |
static_cast<LanguageMode>(parse_info->language_mode() | language_mode)); |
CompilationInfo compile_info(parse_info); |
- // TODO(marja): FLAG_serialize_toplevel is not honoured and won't be; when the |
- // real code caching lands, streaming needs to be adapted to use it. |
Yang
2015/07/21 08:40:40
For the current strategy used in Chrome this is no
|
+ |
+ // If compiling for debugging, parse eagerly from scratch. |
+ if (compile_info.is_debug()) parse_info->set_literal(NULL); |
+ |
return CompileToplevel(&compile_info); |
} |