v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::LazyCompileDispatcher::JobTask Class Reference
Inheritance diagram for v8::internal::LazyCompileDispatcher::JobTask:
Collaboration diagram for v8::internal::LazyCompileDispatcher::JobTask:

Public Member Functions

 JobTask (LazyCompileDispatcher *lazy_compile_dispatcher)
 
void Run (JobDelegate *delegate) final
 
size_t GetMaxConcurrency (size_t worker_count) const final
 
- Public Member Functions inherited from v8::JobTask
virtual ~JobTask ()=default
 

Private Attributes

LazyCompileDispatcherlazy_compile_dispatcher_
 

Detailed Description

Definition at line 34 of file lazy-compile-dispatcher.cc.

Constructor & Destructor Documentation

◆ JobTask()

v8::internal::LazyCompileDispatcher::JobTask::JobTask ( LazyCompileDispatcher * lazy_compile_dispatcher)
inlineexplicit

Definition at line 36 of file lazy-compile-dispatcher.cc.

Member Function Documentation

◆ GetMaxConcurrency()

size_t v8::internal::LazyCompileDispatcher::JobTask::GetMaxConcurrency ( size_t worker_count) const
inlinefinalvirtual

Controls the maximum number of threads calling Run() concurrently, given the number of threads currently assigned to this job and executing Run(). Run() is only invoked if the number of threads previously running Run() was less than the value returned. In general, this should return the latest number of incomplete work items (smallest unit of work) left to process, including items that are currently in progress. |worker_count| is the number of threads currently assigned to this job which some callers may need to determine their return value. Since GetMaxConcurrency() is a leaf function, it must not call back any JobHandle methods.

Implements v8::JobTask.

Definition at line 43 of file lazy-compile-dispatcher.cc.

◆ Run()

void v8::internal::LazyCompileDispatcher::JobTask::Run ( JobDelegate * delegate)
inlinefinalvirtual

Implements v8::JobTask.

Definition at line 39 of file lazy-compile-dispatcher.cc.

Here is the call graph for this function:

Member Data Documentation

◆ lazy_compile_dispatcher_

LazyCompileDispatcher* v8::internal::LazyCompileDispatcher::JobTask::lazy_compile_dispatcher_
private

Definition at line 52 of file lazy-compile-dispatcher.cc.


The documentation for this class was generated from the following file: