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

Public Member Functions

 PointersUpdatingJob (Isolate *isolate, MarkCompactCollector *collector, std::vector< std::unique_ptr< UpdatingItem > > updating_items)
 
void Run (JobDelegate *delegate) override
 
void UpdatePointers (JobDelegate *delegate)
 
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

MarkCompactCollectorcollector_
 
std::vector< std::unique_ptr< UpdatingItem > > updating_items_
 
std::atomic< size_tremaining_updating_items_ {0}
 
IndexGenerator generator_
 
GCTracertracer_
 
const uint64_t trace_id_
 

Detailed Description

Definition at line 5124 of file mark-compact.cc.

Constructor & Destructor Documentation

◆ PointersUpdatingJob()

v8::internal::PointersUpdatingJob::PointersUpdatingJob ( Isolate * isolate,
MarkCompactCollector * collector,
std::vector< std::unique_ptr< UpdatingItem > > updating_items )
inlineexplicit

Definition at line 5126 of file mark-compact.cc.

Member Function Documentation

◆ GetMaxConcurrency()

size_t v8::internal::PointersUpdatingJob::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 5171 of file mark-compact.cc.

◆ Run()

void v8::internal::PointersUpdatingJob::Run ( JobDelegate * delegate)
inlineoverridevirtual

Implements v8::JobTask.

Definition at line 5137 of file mark-compact.cc.

Here is the call graph for this function:

◆ trace_id()

uint64_t v8::internal::PointersUpdatingJob::trace_id ( ) const
inline

Definition at line 5183 of file mark-compact.cc.

◆ UpdatePointers()

void v8::internal::PointersUpdatingJob::UpdatePointers ( JobDelegate * delegate)
inline

Definition at line 5155 of file mark-compact.cc.

Member Data Documentation

◆ collector_

MarkCompactCollector* v8::internal::PointersUpdatingJob::collector_
private

Definition at line 5186 of file mark-compact.cc.

◆ generator_

IndexGenerator v8::internal::PointersUpdatingJob::generator_
private

Definition at line 5189 of file mark-compact.cc.

◆ remaining_updating_items_

std::atomic<size_t> v8::internal::PointersUpdatingJob::remaining_updating_items_ {0}
private

Definition at line 5188 of file mark-compact.cc.

◆ trace_id_

const uint64_t v8::internal::PointersUpdatingJob::trace_id_
private

Definition at line 5192 of file mark-compact.cc.

◆ tracer_

GCTracer* v8::internal::PointersUpdatingJob::tracer_
private

Definition at line 5191 of file mark-compact.cc.

◆ updating_items_

std::vector<std::unique_ptr<UpdatingItem> > v8::internal::PointersUpdatingJob::updating_items_
private

Definition at line 5187 of file mark-compact.cc.


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