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

Public Member Functions

 JobDispatcher (Isolate *isolate, LockedQueue< std::unique_ptr< BaselineBatchCompilerJob > > *incoming_queue, LockedQueue< std::unique_ptr< BaselineBatchCompilerJob > > *outcoming_queue)
 
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 Attributes

Isolateisolate_
 
LockedQueue< std::unique_ptr< BaselineBatchCompilerJob > > * incoming_queue_
 
LockedQueue< std::unique_ptr< BaselineBatchCompilerJob > > * outgoing_queue_
 

Detailed Description

Definition at line 150 of file baseline-batch-compiler.cc.

Constructor & Destructor Documentation

◆ JobDispatcher()

v8::internal::baseline::ConcurrentBaselineCompiler::JobDispatcher::JobDispatcher ( Isolate * isolate,
LockedQueue< std::unique_ptr< BaselineBatchCompilerJob > > * incoming_queue,
LockedQueue< std::unique_ptr< BaselineBatchCompilerJob > > * outcoming_queue )
inline

Definition at line 152 of file baseline-batch-compiler.cc.

Member Function Documentation

◆ GetMaxConcurrency()

size_t v8::internal::baseline::ConcurrentBaselineCompiler::JobDispatcher::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 177 of file baseline-batch-compiler.cc.

◆ Run()

void v8::internal::baseline::ConcurrentBaselineCompiler::JobDispatcher::Run ( JobDelegate * delegate)
inlineoverridevirtual

Implements v8::JobTask.

Definition at line 160 of file baseline-batch-compiler.cc.

Here is the call graph for this function:

Member Data Documentation

◆ incoming_queue_

LockedQueue<std::unique_ptr<BaselineBatchCompilerJob> >* v8::internal::baseline::ConcurrentBaselineCompiler::JobDispatcher::incoming_queue_
private

Definition at line 188 of file baseline-batch-compiler.cc.

◆ isolate_

Isolate* v8::internal::baseline::ConcurrentBaselineCompiler::JobDispatcher::isolate_
private

Definition at line 187 of file baseline-batch-compiler.cc.

◆ outgoing_queue_

LockedQueue<std::unique_ptr<BaselineBatchCompilerJob> >* v8::internal::baseline::ConcurrentBaselineCompiler::JobDispatcher::outgoing_queue_
private

Definition at line 189 of file baseline-batch-compiler.cc.


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