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