V8 Project
v8::internal::OldSpace Class Reference

#include <spaces.h>

+ Inheritance diagram for v8::internal::OldSpace:
+ Collaboration diagram for v8::internal::OldSpace:

Public Member Functions

 OldSpace (Heap *heap, intptr_t max_capacity, AllocationSpace id, Executability executable)
 
- Public Member Functions inherited from v8::internal::PagedSpace
 PagedSpace (Heap *heap, intptr_t max_capacity, AllocationSpace id, Executability executable)
 
virtual ~PagedSpace ()
 
bool SetUp ()
 
bool HasBeenSetUp ()
 
void TearDown ()
 
bool Contains (Address a)
 
bool Contains (HeapObject *o)
 
ObjectFindObject (Address addr)
 
void RepairFreeListsAfterBoot ()
 
void PrepareForMarkCompact ()
 
intptr_t Capacity ()
 
intptr_t CommittedMemory ()
 
intptr_t MaximumCommittedMemory ()
 
size_t CommittedPhysicalMemory ()
 
void ObtainFreeListStatistics (Page *p, SizeStats *sizes)
 
void ResetFreeListStatistics ()
 
void ClearStats ()
 
void AddToAccountingStats (intptr_t bytes)
 
intptr_t Available ()
 
virtual intptr_t Size ()
 
virtual intptr_t SizeOfObjects ()
 
virtual intptr_t Waste ()
 
Address top ()
 
Address limit ()
 
Addressallocation_top_address ()
 
Addressallocation_limit_address ()
 
MUST_USE_RESULT AllocationResult AllocateRaw (int size_in_bytes)
 
int Free (Address start, int size_in_bytes)
 
void ResetFreeList ()
 
void SetTopAndLimit (Address top, Address limit)
 
void EmptyAllocationInfo ()
 
void Allocate (int bytes)
 
void IncreaseCapacity (int size)
 
void ReleasePage (Page *page)
 
Pageanchor ()
 
void IncrementUnsweptFreeBytes (intptr_t by)
 
void IncreaseUnsweptFreeBytes (Page *p)
 
void DecrementUnsweptFreeBytes (intptr_t by)
 
void DecreaseUnsweptFreeBytes (Page *p)
 
void ResetUnsweptFreeBytes ()
 
bool EnsureSweeperProgress (intptr_t size_in_bytes)
 
void set_end_of_unswept_pages (Page *page)
 
Pageend_of_unswept_pages ()
 
PageFirstPage ()
 
PageLastPage ()
 
void EvictEvacuationCandidatesFromFreeLists ()
 
bool CanExpand ()
 
int CountTotalPages ()
 
int AreaSize ()
 
void CreateEmergencyMemory ()
 
void FreeEmergencyMemory ()
 
void UseEmergencyMemory ()
 
bool HasEmergencyMemory ()
 
- Public Member Functions inherited from v8::internal::Space
 Space (Heap *heap, AllocationSpace id, Executability executable)
 
virtual ~Space ()
 
Heapheap () const
 
Executability executable ()
 
AllocationSpace identity ()
 
virtual int RoundSizeDownToObjectAlignment (int size)
 
- Public Member Functions inherited from v8::internal::Malloced
void * operator new (size_t size)
 
void operator delete (void *p)
 

Additional Inherited Members

- Static Public Member Functions inherited from v8::internal::PagedSpace
static bool ShouldBeSweptBySweeperThreads (Page *p)
 
- Static Public Member Functions inherited from v8::internal::Malloced
static void FatalProcessOutOfMemory ()
 
static void * New (size_t size)
 
static void Delete (void *p)
 
- Protected Member Functions inherited from v8::internal::PagedSpace
FreeListfree_list ()
 
intptr_t SizeOfFirstPage ()
 
bool Expand ()
 
HeapObjectAllocateLinearly (int size_in_bytes)
 
MUST_USE_RESULT HeapObjectWaitForSweeperThreadsAndRetryAllocation (int size_in_bytes)
 
MUST_USE_RESULT HeapObjectSlowAllocateRaw (int size_in_bytes)
 
- Protected Attributes inherited from v8::internal::PagedSpace
int area_size_
 
intptr_t max_capacity_
 
AllocationStats accounting_stats_
 
Page anchor_
 
FreeList free_list_
 
AllocationInfo allocation_info_
 
intptr_t unswept_free_bytes_
 
Pageend_of_unswept_pages_
 
MemoryChunkemergency_memory_
 

Detailed Description

Definition at line 2596 of file spaces.h.

Constructor & Destructor Documentation

◆ OldSpace()

v8::internal::OldSpace::OldSpace ( Heap heap,
intptr_t  max_capacity,
AllocationSpace  id,
Executability  executable 
)
inline

Definition at line 2600 of file spaces.h.

2602  : PagedSpace(heap, max_capacity, id, executable) {}
PagedSpace(Heap *heap, intptr_t max_capacity, AllocationSpace id, Executability executable)
Definition: spaces.cc:880
Executability executable()
Definition: spaces.h:826
Heap * heap() const
Definition: spaces.h:823

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