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

Public Member Functions

 SweepingState (Sweeper *sweeper)
 
 ~SweepingState ()
 
void InitializeSweeping ()
 
void StartSweeping ()
 
void StartConcurrentSweeping ()
 
void StopConcurrentSweeping ()
 
void FinishSweeping ()
 
void JoinSweeping ()
 
bool HasValidJob () const
 
bool HasActiveJob () const
 
bool in_progress () const
 
bool should_reduce_memory () const
 
std::vector< ConcurrentSweeper > & concurrent_sweepers ()
 
void Pause ()
 
void Resume ()
 
uint64_t trace_id () const
 
uint64_t background_trace_id () const
 

Private Types

using ConcurrentSweeper
 
using SweeperJob
 

Private Attributes

Sweepersweeper_
 
std::atomic< boolin_progress_ {false}
 
std::unique_ptr< JobHandlejob_handle_
 
std::vector< ConcurrentSweeperconcurrent_sweepers_
 
uint64_t trace_id_ = 0
 
uint64_t background_trace_id_ = 0
 
bool should_reduce_memory_ = false
 

Detailed Description

template<SweepingScope scope>
class v8::internal::Sweeper::SweepingState< scope >

Definition at line 275 of file sweeper.h.

Member Typedef Documentation

◆ ConcurrentSweeper

template<SweepingScope scope>
using v8::internal::Sweeper::SweepingState< scope >::ConcurrentSweeper
private
Initial value:
typename std::conditional<scope == SweepingScope::kMinor,
ConcurrentMinorSweeper,
ConcurrentMajorSweeper>::type

Definition at line 276 of file sweeper.h.

◆ SweeperJob

template<SweepingScope scope>
using v8::internal::Sweeper::SweepingState< scope >::SweeperJob
private
Initial value:
typename std::conditional<scope == SweepingScope::kMinor,
MinorSweeperJob, MajorSweeperJob>::type

Definition at line 280 of file sweeper.h.

Constructor & Destructor Documentation

◆ SweepingState()

template<SweepingScope scope>
v8::internal::Sweeper::SweepingState< scope >::SweepingState ( Sweeper * sweeper)
explicit

Definition at line 231 of file sweeper.cc.

◆ ~SweepingState()

Definition at line 235 of file sweeper.cc.

Member Function Documentation

◆ background_trace_id()

template<SweepingScope scope>
uint64_t v8::internal::Sweeper::SweepingState< scope >::background_trace_id ( ) const
inline

Definition at line 308 of file sweeper.h.

◆ concurrent_sweepers()

template<SweepingScope scope>
std::vector< ConcurrentSweeper > & v8::internal::Sweeper::SweepingState< scope >::concurrent_sweepers ( )
inline

Definition at line 300 of file sweeper.h.

◆ FinishSweeping()

template<SweepingScope scope>
void v8::internal::Sweeper::SweepingState< scope >::FinishSweeping ( )

Definition at line 321 of file sweeper.cc.

Here is the caller graph for this function:

◆ HasActiveJob()

template<SweepingScope scope>
bool v8::internal::Sweeper::SweepingState< scope >::HasActiveJob ( ) const

Definition at line 247 of file sweeper.cc.

Here is the caller graph for this function:

◆ HasValidJob()

template<SweepingScope scope>
bool v8::internal::Sweeper::SweepingState< scope >::HasValidJob ( ) const

Definition at line 242 of file sweeper.cc.

Here is the caller graph for this function:

◆ in_progress()

template<SweepingScope scope>
bool v8::internal::Sweeper::SweepingState< scope >::in_progress ( ) const
inline

Definition at line 298 of file sweeper.h.

Here is the caller graph for this function:

◆ InitializeSweeping()

template<SweepingScope scope>
void v8::internal::Sweeper::SweepingState< scope >::InitializeSweeping ( )

Definition at line 257 of file sweeper.cc.

Here is the caller graph for this function:

◆ JoinSweeping()

template<SweepingScope scope>
void v8::internal::Sweeper::SweepingState< scope >::JoinSweeping ( )

Definition at line 315 of file sweeper.cc.

Here is the caller graph for this function:

◆ Pause()

template<SweepingScope scope>
void v8::internal::Sweeper::SweepingState< scope >::Pause ( )

Definition at line 331 of file sweeper.cc.

Here is the caller graph for this function:

◆ Resume()

template<SweepingScope scope>
void v8::internal::Sweeper::SweepingState< scope >::Resume ( )

Definition at line 340 of file sweeper.cc.

Here is the call graph for this function:

◆ should_reduce_memory()

template<SweepingScope scope>
bool v8::internal::Sweeper::SweepingState< scope >::should_reduce_memory ( ) const
inline

Definition at line 299 of file sweeper.h.

Here is the caller graph for this function:

◆ StartConcurrentSweeping()

template<SweepingScope scope>
void v8::internal::Sweeper::SweepingState< scope >::StartConcurrentSweeping ( )

Definition at line 286 of file sweeper.cc.

Here is the caller graph for this function:

◆ StartSweeping()

template<SweepingScope scope>
void v8::internal::Sweeper::SweepingState< scope >::StartSweeping ( )

Definition at line 276 of file sweeper.cc.

Here is the caller graph for this function:

◆ StopConcurrentSweeping()

template<SweepingScope scope>
void v8::internal::Sweeper::SweepingState< scope >::StopConcurrentSweeping ( )

Definition at line 252 of file sweeper.cc.

Here is the caller graph for this function:

◆ trace_id()

template<SweepingScope scope>
uint64_t v8::internal::Sweeper::SweepingState< scope >::trace_id ( ) const
inline

Definition at line 307 of file sweeper.h.

Here is the caller graph for this function:

Member Data Documentation

◆ background_trace_id_

template<SweepingScope scope>
uint64_t v8::internal::Sweeper::SweepingState< scope >::background_trace_id_ = 0
private

Definition at line 319 of file sweeper.h.

◆ concurrent_sweepers_

template<SweepingScope scope>
std::vector<ConcurrentSweeper> v8::internal::Sweeper::SweepingState< scope >::concurrent_sweepers_
private

Definition at line 317 of file sweeper.h.

◆ in_progress_

template<SweepingScope scope>
std::atomic<bool> v8::internal::Sweeper::SweepingState< scope >::in_progress_ {false}
private

Definition at line 315 of file sweeper.h.

◆ job_handle_

template<SweepingScope scope>
std::unique_ptr<JobHandle> v8::internal::Sweeper::SweepingState< scope >::job_handle_
private

Definition at line 316 of file sweeper.h.

◆ should_reduce_memory_

template<SweepingScope scope>
bool v8::internal::Sweeper::SweepingState< scope >::should_reduce_memory_ = false
private

Definition at line 320 of file sweeper.h.

◆ sweeper_

template<SweepingScope scope>
Sweeper* v8::internal::Sweeper::SweepingState< scope >::sweeper_
private

Definition at line 311 of file sweeper.h.

◆ trace_id_

template<SweepingScope scope>
uint64_t v8::internal::Sweeper::SweepingState< scope >::trace_id_ = 0
private

Definition at line 318 of file sweeper.h.


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