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

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

Issue 2558293004: Add a basic compiler dispatcher (Closed)
Patch Set: play it safe Created 4 years 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 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();

Powered by Google App Engine
This is Rietveld 408576698