Index: src/compiler-dispatcher/compiler-dispatcher.h |
diff --git a/src/compiler-dispatcher/compiler-dispatcher.h b/src/compiler-dispatcher/compiler-dispatcher.h |
index 9e27439f242955106e419e97430cdbcb0303d2ec..e6c5ea574951aef87b7e602f4d8e32f166891950 100644 |
--- a/src/compiler-dispatcher/compiler-dispatcher.h |
+++ b/src/compiler-dispatcher/compiler-dispatcher.h |
@@ -71,6 +71,11 @@ class V8_EXPORT_PRIVATE CompilerDispatcher { |
// Returns true if a job was enqueued. |
bool Enqueue(Handle<SharedFunctionInfo> function); |
+ // Like Enqueue, but also does advances the job so that it can potentially |
vogelheim
2017/01/05 16:43:33
"does advances" -> "advances"
|
+ // continue running on a background thread (if at all possible). Returns |
+ // true if the job was enqueued. |
+ bool EnqueueAndStep(Handle<SharedFunctionInfo> function); |
+ |
// Returns true if there is a pending job for the given function. |
bool IsEnqueued(Handle<SharedFunctionInfo> function) const; |
@@ -89,6 +94,7 @@ class V8_EXPORT_PRIVATE CompilerDispatcher { |
bool is_isolate_locked); |
private: |
+ FRIEND_TEST(CompilerDispatcherTest, EnqueueAndStep); |
FRIEND_TEST(CompilerDispatcherTest, IdleTaskSmallIdleTime); |
FRIEND_TEST(IgnitionCompilerDispatcherTest, CompileOnBackgroundThread); |
FRIEND_TEST(IgnitionCompilerDispatcherTest, FinishNowWithBackgroundTask); |