Chromium Code Reviews| 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..ea1a6fc853c83de20d3f7a26893fc0f9e9ef1fd0 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 IsProcessing(Handle<SharedFunctionInfo> shared) const; |
|
marja
2016/12/12 09:00:02
Naming nit: IsProcessing has a connotation that so
rmcilroy
2016/12/12 09:50:39
Or how about just a getter which returns the SFI a
jochen (gone - plz use gerrit)
2016/12/12 10:51:17
that would require creating a new handle, as the m
jochen (gone - plz use gerrit)
2016/12/12 10:51:17
done
|
| + |
| // Transition from kInitial to kReadyToParse. |
| void PrepareToParseOnMainThread(); |