Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(812)

Unified Diff: src/background-parsing-task.cc

Issue 1247743002: Debugger: fix crash when debugger is enabled between parsing and compiling. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: added assertion Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/compiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/background-parsing-task.cc
diff --git a/src/background-parsing-task.cc b/src/background-parsing-task.cc
index a79ce52788aeeef7284c1c3d13a2b93d69812744..c0dba93a533663a51f319e42bda75fb769ecbf54 100644
--- a/src/background-parsing-task.cc
+++ b/src/background-parsing-task.cc
@@ -31,15 +31,8 @@ BackgroundParsingTask::BackgroundParsingTask(
info->set_hash_seed(isolate->heap()->HashSeed());
info->set_global();
info->set_unicode_cache(&source_->unicode_cache);
-
- bool disable_lazy = isolate->debug()->RequiresEagerCompilation();
- if (disable_lazy && options == ScriptCompiler::kProduceParserCache) {
- // Producing cached data while parsing eagerly is not supported.
- options = ScriptCompiler::kNoCompileOptions;
- }
-
info->set_compile_options(options);
- info->set_allow_lazy_parsing(!disable_lazy);
+ info->set_allow_lazy_parsing(true);
}
« no previous file with comments | « no previous file | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698