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

Public Member Functions

 SweepingJob (Heap *heap, SweepingState &state, ArrayBufferList young, ArrayBufferList old, SweepingType type, TreatAllYoungAsPromoted treat_all_young_as_promoted, uint64_t trace_id)
 
 ~SweepingJob () override=default
 
 SweepingJob (const SweepingJob &)=delete
 
SweepingJoboperator= (const SweepingJob &)=delete
 
void Run (JobDelegate *delegate) final
 
size_t GetMaxConcurrency (size_t worker_count) const override
 
- Public Member Functions inherited from v8::JobTask
virtual ~JobTask ()=default
 

Private Member Functions

void Sweep (JobDelegate *delegate)
 
bool SweepYoung (JobDelegate *delegate)
 
bool SweepFull (JobDelegate *delegate)
 
bool SweepListFull (JobDelegate *delegate, ArrayBufferList &list, ArrayBufferExtension::Age age)
 

Private Attributes

Heap *const heap_
 
SweepingStatestate_
 
ArrayBufferList young_ {ArrayBufferList::Age::kYoung}
 
ArrayBufferList old_ {ArrayBufferList::Age::kOld}
 
const SweepingType type_
 
const TreatAllYoungAsPromoted treat_all_young_as_promoted_
 
const uint64_t trace_id_
 
Sweeper::LocalSweeper local_sweeper_
 

Detailed Description

Definition at line 152 of file array-buffer-sweeper.cc.

Constructor & Destructor Documentation

◆ SweepingJob() [1/2]

v8::internal::ArrayBufferSweeper::SweepingState::SweepingJob::SweepingJob ( Heap * heap,
SweepingState & state,
ArrayBufferList young,
ArrayBufferList old,
SweepingType type,
TreatAllYoungAsPromoted treat_all_young_as_promoted,
uint64_t trace_id )
inline

Definition at line 154 of file array-buffer-sweeper.cc.

◆ ~SweepingJob()

v8::internal::ArrayBufferSweeper::SweepingState::SweepingJob::~SweepingJob ( )
overridedefault

◆ SweepingJob() [2/2]

v8::internal::ArrayBufferSweeper::SweepingState::SweepingJob::SweepingJob ( const SweepingJob & )
delete

Member Function Documentation

◆ GetMaxConcurrency()

size_t v8::internal::ArrayBufferSweeper::SweepingState::SweepingJob::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 174 of file array-buffer-sweeper.cc.

Here is the call graph for this function:

◆ operator=()

SweepingJob & v8::internal::ArrayBufferSweeper::SweepingState::SweepingJob::operator= ( const SweepingJob & )
delete

◆ Run()

void v8::internal::ArrayBufferSweeper::SweepingState::SweepingJob::Run ( JobDelegate * delegate)
finalvirtual

Implements v8::JobTask.

Definition at line 197 of file array-buffer-sweeper.cc.

Here is the call graph for this function:

◆ Sweep()

void v8::internal::ArrayBufferSweeper::SweepingState::SweepingJob::Sweep ( JobDelegate * delegate)
private

Definition at line 445 of file array-buffer-sweeper.cc.

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

◆ SweepFull()

bool v8::internal::ArrayBufferSweeper::SweepingState::SweepingJob::SweepFull ( JobDelegate * delegate)
private

Definition at line 464 of file array-buffer-sweeper.cc.

Here is the caller graph for this function:

◆ SweepListFull()

bool v8::internal::ArrayBufferSweeper::SweepingState::SweepingJob::SweepListFull ( JobDelegate * delegate,
ArrayBufferList & list,
ArrayBufferExtension::Age age )
private

Definition at line 472 of file array-buffer-sweeper.cc.

Here is the call graph for this function:

◆ SweepYoung()

bool v8::internal::ArrayBufferSweeper::SweepingState::SweepingJob::SweepYoung ( JobDelegate * delegate)
private

Definition at line 515 of file array-buffer-sweeper.cc.

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

Member Data Documentation

◆ heap_

Heap* const v8::internal::ArrayBufferSweeper::SweepingState::SweepingJob::heap_
private

Definition at line 187 of file array-buffer-sweeper.cc.

◆ local_sweeper_

Sweeper::LocalSweeper v8::internal::ArrayBufferSweeper::SweepingState::SweepingJob::local_sweeper_
private

Definition at line 194 of file array-buffer-sweeper.cc.

◆ old_

ArrayBufferList v8::internal::ArrayBufferSweeper::SweepingState::SweepingJob::old_ {ArrayBufferList::Age::kOld}
private

Definition at line 190 of file array-buffer-sweeper.cc.

◆ state_

SweepingState& v8::internal::ArrayBufferSweeper::SweepingState::SweepingJob::state_
private

Definition at line 188 of file array-buffer-sweeper.cc.

◆ trace_id_

const uint64_t v8::internal::ArrayBufferSweeper::SweepingState::SweepingJob::trace_id_
private

Definition at line 193 of file array-buffer-sweeper.cc.

◆ treat_all_young_as_promoted_

const TreatAllYoungAsPromoted v8::internal::ArrayBufferSweeper::SweepingState::SweepingJob::treat_all_young_as_promoted_
private

Definition at line 192 of file array-buffer-sweeper.cc.

◆ type_

const SweepingType v8::internal::ArrayBufferSweeper::SweepingState::SweepingJob::type_
private

Definition at line 191 of file array-buffer-sweeper.cc.

◆ young_

ArrayBufferList v8::internal::ArrayBufferSweeper::SweepingState::SweepingJob::young_ {ArrayBufferList::Age::kYoung}
private

Definition at line 189 of file array-buffer-sweeper.cc.


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