diff --git a/src/wasm/module-compiler.cc b/src/wasm/module-compiler.cc index 1d1e77d5ab..faf35b69d9 100644 --- a/src/wasm/module-compiler.cc +++ b/src/wasm/module-compiler.cc @@ -2918,15 +2918,6 @@ void AsyncCompileJob::StartBackgroundTask() { base::make_unique(this, false)); } -void AsyncCompileJob::RestartBackgroundTasks() { - int num_restarts = stopped_tasks_.Value(); - stopped_tasks_.Decrement(num_restarts); - - for (int i = 0; i < num_restarts; ++i) { - StartBackgroundTask(); - } -} - template void AsyncCompileJob::DoAsync(Args&&... args) { NextStep(std::forward(args)...); diff --git a/src/wasm/module-compiler.h b/src/wasm/module-compiler.h index 566f3f62ed..c2eea649ff 100644 --- a/src/wasm/module-compiler.h +++ b/src/wasm/module-compiler.h @@ -151,8 +151,6 @@ class AsyncCompileJob { void StartBackgroundTask(); - void RestartBackgroundTasks(); - // Switches to the compilation step {Step} and starts a foreground task to // execute it. template @@ -191,8 +189,6 @@ class AsyncCompileJob { std::shared_ptr foreground_task_runner_; std::shared_ptr background_task_runner_; - // The number of background tasks which stopped executing within a step. - base::AtomicNumber stopped_tasks_{0}; // For async compilation the AsyncCompileJob is the only finisher. For // streaming compilation also the AsyncStreamingProcessor has to finish before