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 43978b8276d86e0782f8003afba8a5e4897963c7..e0a2677f8e51aba4a9f1d53da1fb9f48b1e5e71e 100644 |
--- a/src/compiler-dispatcher/compiler-dispatcher-job.h |
+++ b/src/compiler-dispatcher/compiler-dispatcher-job.h |
@@ -7,6 +7,7 @@ |
#include <memory> |
+#include "include/v8.h" |
#include "src/base/macros.h" |
#include "src/globals.h" |
#include "src/handles.h" |
@@ -46,14 +47,6 @@ class V8_EXPORT_PRIVATE CompilerDispatcherJob { |
~CompilerDispatcherJob(); |
CompileJobStatus status() const { return status_; } |
- bool can_parse_on_background_thread() const { |
- return can_parse_on_background_thread_; |
- } |
- // Should only be called after kReadyToCompile. |
- bool can_compile_on_background_thread() const { |
- DCHECK(compile_job_.get()); |
- return can_compile_on_background_thread_; |
- } |
// Returns true if this CompilerDispatcherJob was created for the given |
// function. |
@@ -98,6 +91,8 @@ class V8_EXPORT_PRIVATE CompilerDispatcherJob { |
CompilerDispatcherTracer* tracer_; |
Handle<SharedFunctionInfo> shared_; // Global handle. |
Handle<String> source_; // Global handle. |
+ Handle<String> wrapper_; // Global handle. |
+ std::unique_ptr<v8::String::ExternalStringResourceBase> source_wrapper_; |
size_t max_stack_size_; |
// Members required for parsing. |
@@ -112,9 +107,6 @@ class V8_EXPORT_PRIVATE CompilerDispatcherJob { |
std::unique_ptr<CompilationInfo> compile_info_; |
std::unique_ptr<CompilationJob> compile_job_; |
- bool can_parse_on_background_thread_; |
- bool can_compile_on_background_thread_; |
- |
bool trace_compiler_dispatcher_jobs_; |
DISALLOW_COPY_AND_ASSIGN(CompilerDispatcherJob); |