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

Unified Diff: src/compiler-dispatcher/compiler-dispatcher.cc

Issue 2625413004: [compiler-dispatcher] make it so that we can always parse on bg threads (Closed)
Patch Set: updates Created 3 years, 11 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 | « src/compiler-dispatcher/compiler-dispatcher.h ('k') | src/compiler-dispatcher/compiler-dispatcher-job.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler-dispatcher/compiler-dispatcher.cc
diff --git a/src/compiler-dispatcher/compiler-dispatcher.cc b/src/compiler-dispatcher/compiler-dispatcher.cc
index 2e7923bd928905dfaf8be560e8ff8d7557a12490..70edce9673f2df635a1dda2e8f4f92be84276ae6 100644
--- a/src/compiler-dispatcher/compiler-dispatcher.cc
+++ b/src/compiler-dispatcher/compiler-dispatcher.cc
@@ -68,10 +68,8 @@ bool IsFinished(CompilerDispatcherJob* job) {
}
bool CanRunOnAnyThread(CompilerDispatcherJob* job) {
- return (job->status() == CompileJobStatus::kReadyToParse &&
- job->can_parse_on_background_thread()) ||
- (job->status() == CompileJobStatus::kReadyToCompile &&
- job->can_compile_on_background_thread());
+ return job->status() == CompileJobStatus::kReadyToParse ||
+ job->status() == CompileJobStatus::kReadyToCompile;
}
void DoNextStepOnBackgroundThread(CompilerDispatcherJob* job) {
@@ -229,6 +227,8 @@ CompilerDispatcher::~CompilerDispatcher() {
bool CompilerDispatcher::Enqueue(Handle<SharedFunctionInfo> function) {
if (!IsEnabled()) return false;
+ DCHECK(FLAG_ignition);
+
if (memory_pressure_level_.Value() != MemoryPressureLevel::kNone) {
return false;
}
« no previous file with comments | « src/compiler-dispatcher/compiler-dispatcher.h ('k') | src/compiler-dispatcher/compiler-dispatcher-job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698