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

#include <compactor.h>

Collaboration diagram for cppgc::internal::Compactor:

Public Member Functions

 Compactor (RawHeap &)
 
 ~Compactor ()
 
 Compactor (const Compactor &)=delete
 
Compactoroperator= (const Compactor &)=delete
 
void InitializeIfShouldCompact (GCConfig::MarkingType, StackState)
 
void CancelIfShouldNotCompact (GCConfig::MarkingType, StackState)
 
CompactableSpaceHandling CompactSpacesIfEnabled ()
 
CompactionWorklistscompaction_worklists ()
 
void EnableForNextGCForTesting ()
 
bool IsEnabledForTesting () const
 

Private Types

using CompactableSpaceHandling = SweepingConfig::CompactableSpaceHandling
 

Private Member Functions

bool ShouldCompact (GCConfig::MarkingType, StackState) const
 

Private Attributes

RawHeapheap_
 
std::vector< NormalPageSpace * > compactable_spaces_
 
std::unique_ptr< CompactionWorklistscompaction_worklists_
 
bool is_enabled_ = false
 
bool is_cancelled_ = false
 
bool enable_for_next_gc_for_testing_ = false
 

Detailed Description

Definition at line 17 of file compactor.h.

Member Typedef Documentation

◆ CompactableSpaceHandling

Constructor & Destructor Documentation

◆ Compactor() [1/2]

cppgc::internal::Compactor::Compactor ( RawHeap & heap)
explicit

Definition at line 453 of file compactor.cc.

◆ ~Compactor()

cppgc::internal::Compactor::~Compactor ( )
inline

Definition at line 22 of file compactor.h.

◆ Compactor() [2/2]

cppgc::internal::Compactor::Compactor ( const Compactor & )
delete

Member Function Documentation

◆ CancelIfShouldNotCompact()

void cppgc::internal::Compactor::CancelIfShouldNotCompact ( GCConfig::MarkingType marking_type,
StackState stack_state )

Definition at line 493 of file compactor.cc.

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

◆ compaction_worklists()

CompactionWorklists * cppgc::internal::Compactor::compaction_worklists ( )
inline

Definition at line 33 of file compactor.h.

Here is the caller graph for this function:

◆ CompactSpacesIfEnabled()

Compactor::CompactableSpaceHandling cppgc::internal::Compactor::CompactSpacesIfEnabled ( )

Definition at line 501 of file compactor.cc.

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

◆ EnableForNextGCForTesting()

void cppgc::internal::Compactor::EnableForNextGCForTesting ( )

Definition at line 532 of file compactor.cc.

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

◆ InitializeIfShouldCompact()

void cppgc::internal::Compactor::InitializeIfShouldCompact ( GCConfig::MarkingType marking_type,
StackState stack_state )

Definition at line 481 of file compactor.cc.

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

◆ IsEnabledForTesting()

bool cppgc::internal::Compactor::IsEnabledForTesting ( ) const
inline

Definition at line 38 of file compactor.h.

◆ operator=()

Compactor & cppgc::internal::Compactor::operator= ( const Compactor & )
delete

◆ ShouldCompact()

bool cppgc::internal::Compactor::ShouldCompact ( GCConfig::MarkingType marking_type,
StackState stack_state ) const
private

Definition at line 461 of file compactor.cc.

Here is the caller graph for this function:

Member Data Documentation

◆ compactable_spaces_

std::vector<NormalPageSpace*> cppgc::internal::Compactor::compactable_spaces_
private

Definition at line 45 of file compactor.h.

◆ compaction_worklists_

std::unique_ptr<CompactionWorklists> cppgc::internal::Compactor::compaction_worklists_
private

Definition at line 47 of file compactor.h.

◆ enable_for_next_gc_for_testing_

bool cppgc::internal::Compactor::enable_for_next_gc_for_testing_ = false
private

Definition at line 51 of file compactor.h.

◆ heap_

RawHeap& cppgc::internal::Compactor::heap_
private

Definition at line 43 of file compactor.h.

◆ is_cancelled_

bool cppgc::internal::Compactor::is_cancelled_ = false
private

Definition at line 50 of file compactor.h.

◆ is_enabled_

bool cppgc::internal::Compactor::is_enabled_ = false
private

Definition at line 49 of file compactor.h.


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