diff --git a/src/compiler-dispatcher/compiler-dispatcher-job.cc b/src/compiler-dispatcher/compiler-dispatcher-job.cc index e10be08f72..7e90f3e8fa 100644 --- a/src/compiler-dispatcher/compiler-dispatcher-job.cc +++ b/src/compiler-dispatcher/compiler-dispatcher-job.cc @@ -68,7 +68,7 @@ CompilerDispatcherJob::CompilerDispatcherJob( bool module, bool is_named_expression, bool calls_eval, uint32_t hash_seed, AccountingAllocator* zone_allocator, int compiler_hints, const AstStringConstants* ast_string_constants, - FinishCallback* finish_callback) + CompileJobFinishCallback* finish_callback) : status_(CompileJobStatus::kReadyToParse), isolate_(nullptr), tracer_(tracer), diff --git a/src/compiler-dispatcher/compiler-dispatcher-job.h b/src/compiler-dispatcher/compiler-dispatcher-job.h index f54a802bfb..a7472bafc6 100644 --- a/src/compiler-dispatcher/compiler-dispatcher-job.h +++ b/src/compiler-dispatcher/compiler-dispatcher-job.h @@ -43,14 +43,14 @@ enum class CompileJobStatus { kDone, }; +class CompileJobFinishCallback { + public: + virtual ~CompileJobFinishCallback() {} + virtual void ParseFinished(std::unique_ptr parse_info) = 0; +}; + class V8_EXPORT_PRIVATE CompilerDispatcherJob { public: - class FinishCallback { - public: - virtual ~FinishCallback() {} - virtual void ParseFinished(std::unique_ptr parse_info) = 0; - }; - // Creates a CompilerDispatcherJob in the initial state. CompilerDispatcherJob(Isolate* isolate, CompilerDispatcherTracer* tracer, Handle shared, @@ -65,7 +65,7 @@ class V8_EXPORT_PRIVATE CompilerDispatcherJob { uint32_t hash_seed, AccountingAllocator* zone_allocator, int compiler_hints, const AstStringConstants* ast_string_constants, - FinishCallback* finish_callback); + CompileJobFinishCallback* finish_callback); // Creates a CompilerDispatcherJob in the analyzed state. CompilerDispatcherJob(Isolate* isolate, CompilerDispatcherTracer* tracer, Handle