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

Unified Diff: src/compiler-dispatcher/compiler-dispatcher-job.h

Issue 2399463008: Create multiple compilation jobs for ignition if compiling multiple literals (Closed)
Patch Set: updates Created 4 years, 2 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
Index: src/compiler-dispatcher/compiler-dispatcher-job.h
diff --git a/src/compiler-dispatcher/compiler-dispatcher-job.h b/src/compiler-dispatcher/compiler-dispatcher-job.h
index f3aaf939e0d4bc592e6879eb8ddfed5486785439..5101db0403eb595f079326455b1087b25e1476e2 100644
--- a/src/compiler-dispatcher/compiler-dispatcher-job.h
+++ b/src/compiler-dispatcher/compiler-dispatcher-job.h
@@ -6,6 +6,7 @@
#define V8_COMPILER_DISPATCHER_COMPILER_DISPATCHER_JOB_H_
#include <memory>
+#include <vector>
#include "src/base/macros.h"
#include "src/handles.h"
@@ -48,7 +49,7 @@ class CompilerDispatcherJob {
}
// Should only be called after kReadyToCompile.
bool can_compile_on_background_thread() const {
- DCHECK(compile_job_.get());
+ DCHECK(!compile_jobs_.empty());
return can_compile_on_background_thread_;
}
@@ -95,7 +96,7 @@ class CompilerDispatcherJob {
// Members required for compiling.
std::unique_ptr<CompilationInfo> compile_info_;
- std::unique_ptr<CompilationJob> compile_job_;
+ std::vector<std::unique_ptr<CompilationJob>> compile_jobs_;
bool can_parse_on_background_thread_;
bool can_compile_on_background_thread_;

Powered by Google App Engine
This is Rietveld 408576698