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

#include <optimizing-compile-dispatcher.h>

Collaboration diagram for v8::internal::OptimizingCompileInputQueue:

Public Member Functions

bool IsAvailable ()
 
size_t Length ()
 
 OptimizingCompileInputQueue (int capacity)
 
TurbofanCompilationJobDequeue (OptimizingCompileTaskState &task_state)
 
TurbofanCompilationJobDequeueIfIsolateMatches (OptimizingCompileTaskState &task_state)
 
bool Enqueue (std::unique_ptr< TurbofanCompilationJob > &job)
 
void FlushJobsForIsolate (Isolate *isolate)
 
bool HasJobForIsolate (Isolate *isolate)
 
void Prioritize (Isolate *isolate, Tagged< SharedFunctionInfo > function)
 

Private Attributes

std::deque< TurbofanCompilationJob * > queue_
 
size_t capacity_
 
base::Mutex mutex_
 
base::ConditionVariable task_finished_
 

Friends

class OptimizingCompileTaskExecutor
 

Detailed Description

Definition at line 35 of file optimizing-compile-dispatcher.h.

Constructor & Destructor Documentation

◆ OptimizingCompileInputQueue()

v8::internal::OptimizingCompileInputQueue::OptimizingCompileInputQueue ( int capacity)
inlineexplicit

Definition at line 47 of file optimizing-compile-dispatcher.h.

Member Function Documentation

◆ Dequeue()

TurbofanCompilationJob * v8::internal::OptimizingCompileInputQueue::Dequeue ( OptimizingCompileTaskState & task_state)

Definition at line 416 of file optimizing-compile-dispatcher.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DequeueIfIsolateMatches()

TurbofanCompilationJob * v8::internal::OptimizingCompileInputQueue::DequeueIfIsolateMatches ( OptimizingCompileTaskState & task_state)

Definition at line 429 of file optimizing-compile-dispatcher.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Enqueue()

bool v8::internal::OptimizingCompileInputQueue::Enqueue ( std::unique_ptr< TurbofanCompilationJob > & job)

Definition at line 442 of file optimizing-compile-dispatcher.cc.

Here is the caller graph for this function:

◆ FlushJobsForIsolate()

void v8::internal::OptimizingCompileInputQueue::FlushJobsForIsolate ( Isolate * isolate)

Definition at line 398 of file optimizing-compile-dispatcher.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HasJobForIsolate()

bool v8::internal::OptimizingCompileInputQueue::HasJobForIsolate ( Isolate * isolate)

Definition at line 408 of file optimizing-compile-dispatcher.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsAvailable()

bool v8::internal::OptimizingCompileInputQueue::IsAvailable ( )
inline

Definition at line 37 of file optimizing-compile-dispatcher.h.

◆ Length()

size_t v8::internal::OptimizingCompileInputQueue::Length ( )
inline

Definition at line 42 of file optimizing-compile-dispatcher.h.

Here is the caller graph for this function:

◆ Prioritize()

void v8::internal::OptimizingCompileInputQueue::Prioritize ( Isolate * isolate,
Tagged< SharedFunctionInfo > function )

Definition at line 372 of file optimizing-compile-dispatcher.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ OptimizingCompileTaskExecutor

friend class OptimizingCompileTaskExecutor
friend

Definition at line 67 of file optimizing-compile-dispatcher.h.

Member Data Documentation

◆ capacity_

size_t v8::internal::OptimizingCompileInputQueue::capacity_
private

Definition at line 62 of file optimizing-compile-dispatcher.h.

◆ mutex_

base::Mutex v8::internal::OptimizingCompileInputQueue::mutex_
private

Definition at line 64 of file optimizing-compile-dispatcher.h.

◆ queue_

std::deque<TurbofanCompilationJob*> v8::internal::OptimizingCompileInputQueue::queue_
private

Definition at line 61 of file optimizing-compile-dispatcher.h.

◆ task_finished_

base::ConditionVariable v8::internal::OptimizingCompileInputQueue::task_finished_
private

Definition at line 65 of file optimizing-compile-dispatcher.h.


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