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

#include <main-allocator.h>

Inheritance diagram for v8::internal::PagedSpaceAllocatorPolicy:
Collaboration diagram for v8::internal::PagedSpaceAllocatorPolicy:

Public Member Functions

 PagedSpaceAllocatorPolicy (PagedSpaceBase *space, MainAllocator *allocator)
 
bool EnsureAllocation (int size_in_bytes, AllocationAlignment alignment, AllocationOrigin origin) final
 
void FreeLinearAllocationArea () final
 
- Public Member Functions inherited from v8::internal::AllocatorPolicy
 AllocatorPolicy (MainAllocator *allocator)
 
virtual ~AllocatorPolicy ()=default
 
virtual bool SupportsExtendingLAB () const
 

Private Member Functions

bool RefillLab (int size_in_bytes, AllocationOrigin origin)
 
bool ContributeToSweeping (uint32_t max_pages=std::numeric_limits< uint32_t >::max())
 
bool TryAllocationFromFreeList (size_t size_in_bytes, AllocationOrigin origin)
 
bool TryExpandAndAllocate (size_t size_in_bytes, AllocationOrigin origin)
 
V8_WARN_UNUSED_RESULT bool TryExtendLAB (int size_in_bytes)
 
void SetLinearAllocationArea (Address top, Address limit, Address end)
 
void FreeLinearAllocationAreaUnsynchronized ()
 

Private Attributes

PagedSpaceBase *const space_
 

Friends

class PagedNewSpaceAllocatorPolicy
 

Additional Inherited Members

- Protected Member Functions inherited from v8::internal::AllocatorPolicy
Heapspace_heap () const
 
Heapisolate_heap () const
 
- Protected Attributes inherited from v8::internal::AllocatorPolicy
MainAllocator *const allocator_
 

Detailed Description

Definition at line 70 of file main-allocator.h.

Constructor & Destructor Documentation

◆ PagedSpaceAllocatorPolicy()

v8::internal::PagedSpaceAllocatorPolicy::PagedSpaceAllocatorPolicy ( PagedSpaceBase * space,
MainAllocator * allocator )
inline

Definition at line 72 of file main-allocator.h.

Member Function Documentation

◆ ContributeToSweeping()

bool v8::internal::PagedSpaceAllocatorPolicy::ContributeToSweeping ( uint32_t max_pages = std::numeric_limits<uint32_t>::max())
private

Definition at line 783 of file main-allocator.cc.

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

◆ EnsureAllocation()

bool v8::internal::PagedSpaceAllocatorPolicy::EnsureAllocation ( int size_in_bytes,
AllocationAlignment alignment,
AllocationOrigin origin )
finalvirtual

Implements v8::internal::AllocatorPolicy.

Definition at line 643 of file main-allocator.cc.

Here is the call graph for this function:

◆ FreeLinearAllocationArea()

void v8::internal::PagedSpaceAllocatorPolicy::FreeLinearAllocationArea ( )
finalvirtual

Implements v8::internal::AllocatorPolicy.

Definition at line 910 of file main-allocator.cc.

Here is the call graph for this function:

◆ FreeLinearAllocationAreaUnsynchronized()

void v8::internal::PagedSpaceAllocatorPolicy::FreeLinearAllocationAreaUnsynchronized ( )
private

Definition at line 917 of file main-allocator.cc.

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

◆ RefillLab()

bool v8::internal::PagedSpaceAllocatorPolicy::RefillLab ( int size_in_bytes,
AllocationOrigin origin )
private

Definition at line 669 of file main-allocator.cc.

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

◆ SetLinearAllocationArea()

void v8::internal::PagedSpaceAllocatorPolicy::SetLinearAllocationArea ( Address top,
Address limit,
Address end )
private

Definition at line 815 of file main-allocator.cc.

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

◆ TryAllocationFromFreeList()

bool v8::internal::PagedSpaceAllocatorPolicy::TryAllocationFromFreeList ( size_t size_in_bytes,
AllocationOrigin origin )
private

Definition at line 828 of file main-allocator.cc.

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

◆ TryExpandAndAllocate()

bool v8::internal::PagedSpaceAllocatorPolicy::TryExpandAndAllocate ( size_t size_in_bytes,
AllocationOrigin origin )
private

Definition at line 771 of file main-allocator.cc.

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

◆ TryExtendLAB()

bool v8::internal::PagedSpaceAllocatorPolicy::TryExtendLAB ( int size_in_bytes)
private

Definition at line 886 of file main-allocator.cc.

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

Friends And Related Symbol Documentation

◆ PagedNewSpaceAllocatorPolicy

friend class PagedNewSpaceAllocatorPolicy
friend

Definition at line 98 of file main-allocator.h.

Member Data Documentation

◆ space_

PagedSpaceBase* const v8::internal::PagedSpaceAllocatorPolicy::space_
private

Definition at line 96 of file main-allocator.h.


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