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; |
} |