| Index: src/compiler-dispatcher/compiler-dispatcher.h
|
| diff --git a/src/compiler-dispatcher/compiler-dispatcher.h b/src/compiler-dispatcher/compiler-dispatcher.h
|
| index 431a1ec3346f19cb2dab87f4084b8878a92b31d4..eed05e65a710df2b54dbc44fe2c5c1893ec2f85e 100644
|
| --- a/src/compiler-dispatcher/compiler-dispatcher.h
|
| +++ b/src/compiler-dispatcher/compiler-dispatcher.h
|
| @@ -28,9 +28,11 @@ namespace internal {
|
| class CancelableTaskManager;
|
| class CompilerDispatcherJob;
|
| class CompilerDispatcherTracer;
|
| +class DeferredHandles;
|
| class FunctionLiteral;
|
| class Isolate;
|
| class SharedFunctionInfo;
|
| +class Zone;
|
|
|
| template <typename T>
|
| class Handle;
|
| @@ -82,13 +84,19 @@ class V8_EXPORT_PRIVATE CompilerDispatcher {
|
|
|
| // Enqueue a job for compilation. Function must have already been parsed and
|
| // analyzed and be ready for compilation. Returns true if a job was enqueued.
|
| - bool Enqueue(Handle<SharedFunctionInfo> function, FunctionLiteral* literal);
|
| + bool Enqueue(Handle<SharedFunctionInfo> function, FunctionLiteral* literal,
|
| + std::shared_ptr<Zone> parse_zone,
|
| + std::shared_ptr<DeferredHandles> parse_handles,
|
| + std::shared_ptr<DeferredHandles> compile_handles);
|
|
|
| // Like Enqueue, but also advances the job so that it can potentially
|
| // continue running on a background thread (if at all possible). Returns
|
| // true if the job was enqueued.
|
| bool EnqueueAndStep(Handle<SharedFunctionInfo> function,
|
| - FunctionLiteral* literal);
|
| + FunctionLiteral* literal,
|
| + std::shared_ptr<Zone> parse_zone,
|
| + std::shared_ptr<DeferredHandles> parse_handles,
|
| + std::shared_ptr<DeferredHandles> compile_handles);
|
|
|
| // Returns true if there is a pending job for the given function.
|
| bool IsEnqueued(Handle<SharedFunctionInfo> function) const;
|
|
|