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

Public Member Functions

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

Private Member Functions

Isolateisolate () const
 
QueueT * incoming_queue () const
 
QueueT * outgoing_queue () const
 
QueueT * destruction_queue () const
 

Private Attributes

MaglevConcurrentDispatcher *const dispatcher_
 

Detailed Description

Definition at line 265 of file maglev-concurrent-dispatcher.cc.

Constructor & Destructor Documentation

◆ JobTask()

v8::internal::maglev::MaglevConcurrentDispatcher::JobTask::JobTask ( MaglevConcurrentDispatcher * dispatcher)
inlineexplicit

Definition at line 267 of file maglev-concurrent-dispatcher.cc.

Member Function Documentation

◆ destruction_queue()

QueueT * v8::internal::maglev::MaglevConcurrentDispatcher::JobTask::destruction_queue ( ) const
inlineprivate

Definition at line 326 of file maglev-concurrent-dispatcher.cc.

◆ GetMaxConcurrency()

size_t v8::internal::maglev::MaglevConcurrentDispatcher::JobTask::GetMaxConcurrency ( size_t worker_count) const
inlineoverridevirtual

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 312 of file maglev-concurrent-dispatcher.cc.

◆ incoming_queue()

QueueT * v8::internal::maglev::MaglevConcurrentDispatcher::JobTask::incoming_queue ( ) const
inlineprivate

Definition at line 324 of file maglev-concurrent-dispatcher.cc.

◆ isolate()

Isolate * v8::internal::maglev::MaglevConcurrentDispatcher::JobTask::isolate ( ) const
inlineprivate

Definition at line 323 of file maglev-concurrent-dispatcher.cc.

◆ outgoing_queue()

QueueT * v8::internal::maglev::MaglevConcurrentDispatcher::JobTask::outgoing_queue ( ) const
inlineprivate

Definition at line 325 of file maglev-concurrent-dispatcher.cc.

◆ Run()

void v8::internal::maglev::MaglevConcurrentDispatcher::JobTask::Run ( JobDelegate * delegate)
inlineoverridevirtual

Implements v8::JobTask.

Definition at line 270 of file maglev-concurrent-dispatcher.cc.

Here is the call graph for this function:

Member Data Documentation

◆ dispatcher_

MaglevConcurrentDispatcher* const v8::internal::maglev::MaglevConcurrentDispatcher::JobTask::dispatcher_
private

Definition at line 328 of file maglev-concurrent-dispatcher.cc.


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