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 7f4c6ced715536ed58078b40e62a95b502a272a3..811d4fcb4edd7a200cf66fe92e078e32958a018d 100644 |
--- a/src/compiler-dispatcher/compiler-dispatcher-job.h |
+++ b/src/compiler-dispatcher/compiler-dispatcher-job.h |
@@ -40,7 +40,8 @@ enum class CompileJobStatus { |
class V8_EXPORT_PRIVATE CompilerDispatcherJob { |
public: |
- CompilerDispatcherJob(Isolate* isolate, Handle<SharedFunctionInfo> shared, |
+ CompilerDispatcherJob(Isolate* isolate, CompilerDispatcherTracer* tracer, |
+ Handle<SharedFunctionInfo> shared, |
size_t max_stack_size); |
~CompilerDispatcherJob(); |
@@ -54,6 +55,10 @@ class V8_EXPORT_PRIVATE CompilerDispatcherJob { |
return can_compile_on_background_thread_; |
} |
+ // Returns true if this CompilerDispatcherJob was created for the given |
+ // function. |
+ bool IsAssociatedWith(Handle<SharedFunctionInfo> shared) const; |
+ |
// Transition from kInitial to kReadyToParse. |
void PrepareToParseOnMainThread(); |