Fix checks to consider the new ScriptCompiler::kEagerCompile option
Bug: chromium:783124 Change-Id: Ie420be3ad05583d8ad999ab1e13e89ada4774028 Reviewed-on: https://chromium-review.googlesource.com/850674 Reviewed-by: Yang Guo <yangguo@chromium.org> Reviewed-by: Adam Klein <adamk@chromium.org> Commit-Queue: Mythri Alle <mythria@chromium.org> Cr-Commit-Position: refs/heads/master@{#50398}
This commit is contained in:
parent
2ac7ce4237
commit
9a3cd042cd
@ -1490,7 +1490,8 @@ MaybeHandle<SharedFunctionInfo> Compiler::GetSharedFunctionInfoForScript(
|
||||
Isolate* isolate = source->GetIsolate();
|
||||
ScriptCompileTimerScope compile_timer(isolate, no_cache_reason);
|
||||
|
||||
if (compile_options == ScriptCompiler::kNoCompileOptions) {
|
||||
if (compile_options == ScriptCompiler::kNoCompileOptions ||
|
||||
compile_options == ScriptCompiler::kEagerCompile) {
|
||||
cached_data = nullptr;
|
||||
} else if (compile_options == ScriptCompiler::kProduceParserCache ||
|
||||
ShouldProduceCodeCache(compile_options)) {
|
||||
|
@ -31,7 +31,8 @@ BackgroundParsingTask::BackgroundParsingTask(
|
||||
DCHECK(options == ScriptCompiler::kProduceParserCache ||
|
||||
options == ScriptCompiler::kProduceCodeCache ||
|
||||
options == ScriptCompiler::kProduceFullCodeCache ||
|
||||
options == ScriptCompiler::kNoCompileOptions);
|
||||
options == ScriptCompiler::kNoCompileOptions ||
|
||||
options == ScriptCompiler::kEagerCompile);
|
||||
|
||||
VMState<PARSER> state(isolate);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user