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

Public Member Functions

 JobTaskMajor (ConcurrentMarking *concurrent_marking, unsigned mark_compact_epoch, base::EnumSet< CodeFlushMode > code_flush_mode, bool should_keep_ages_unchanged)
 
 ~JobTaskMajor () override=default
 
 JobTaskMajor (const JobTaskMajor &)=delete
 
JobTaskMajoroperator= (const JobTaskMajor &)=delete
 
void Run (JobDelegate *delegate) override
 
size_t GetMaxConcurrency (size_t worker_count) const override
 
uint64_t trace_id () const
 
- Public Member Functions inherited from v8::JobTask
virtual ~JobTask ()=default
 

Private Attributes

ConcurrentMarkingconcurrent_marking_
 
const unsigned mark_compact_epoch_
 
base::EnumSet< CodeFlushModecode_flush_mode_
 
const bool should_keep_ages_unchanged_
 
const uint64_t trace_id_
 

Detailed Description

Definition at line 229 of file concurrent-marking.cc.

Constructor & Destructor Documentation

◆ JobTaskMajor() [1/2]

v8::internal::ConcurrentMarking::JobTaskMajor::JobTaskMajor ( ConcurrentMarking * concurrent_marking,
unsigned mark_compact_epoch,
base::EnumSet< CodeFlushMode > code_flush_mode,
bool should_keep_ages_unchanged )
inline

Definition at line 231 of file concurrent-marking.cc.

◆ ~JobTaskMajor()

v8::internal::ConcurrentMarking::JobTaskMajor::~JobTaskMajor ( )
overridedefault

◆ JobTaskMajor() [2/2]

v8::internal::ConcurrentMarking::JobTaskMajor::JobTaskMajor ( const JobTaskMajor & )
delete

Member Function Documentation

◆ GetMaxConcurrency()

size_t v8::internal::ConcurrentMarking::JobTaskMajor::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 269 of file concurrent-marking.cc.

Here is the call graph for this function:

◆ operator=()

JobTaskMajor & v8::internal::ConcurrentMarking::JobTaskMajor::operator= ( const JobTaskMajor & )
delete

◆ Run()

void v8::internal::ConcurrentMarking::JobTaskMajor::Run ( JobDelegate * delegate)
inlineoverridevirtual

Implements v8::JobTask.

Definition at line 248 of file concurrent-marking.cc.

Here is the call graph for this function:

◆ trace_id()

uint64_t v8::internal::ConcurrentMarking::JobTaskMajor::trace_id ( ) const
inline

Definition at line 273 of file concurrent-marking.cc.

Member Data Documentation

◆ code_flush_mode_

base::EnumSet<CodeFlushMode> v8::internal::ConcurrentMarking::JobTaskMajor::code_flush_mode_
private

Definition at line 278 of file concurrent-marking.cc.

◆ concurrent_marking_

ConcurrentMarking* v8::internal::ConcurrentMarking::JobTaskMajor::concurrent_marking_
private

Definition at line 276 of file concurrent-marking.cc.

◆ mark_compact_epoch_

const unsigned v8::internal::ConcurrentMarking::JobTaskMajor::mark_compact_epoch_
private

Definition at line 277 of file concurrent-marking.cc.

◆ should_keep_ages_unchanged_

const bool v8::internal::ConcurrentMarking::JobTaskMajor::should_keep_ages_unchanged_
private

Definition at line 279 of file concurrent-marking.cc.

◆ trace_id_

const uint64_t v8::internal::ConcurrentMarking::JobTaskMajor::trace_id_
private

Definition at line 280 of file concurrent-marking.cc.


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