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

#include <main-allocator.h>

Inheritance diagram for v8::internal::PagedNewSpaceAllocatorPolicy:
Collaboration diagram for v8::internal::PagedNewSpaceAllocatorPolicy:

Public Member Functions

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

Private Member Functions

bool TryAllocatePage (int size_in_bytes, AllocationOrigin origin)
 
bool WaitForSweepingForAllocation (int size_in_bytes, AllocationOrigin origin)
 

Private Attributes

PagedNewSpace *const space_
 
std::unique_ptr< PagedSpaceAllocatorPolicypaged_space_allocator_policy_
 

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 101 of file main-allocator.h.

Constructor & Destructor Documentation

◆ PagedNewSpaceAllocatorPolicy()

v8::internal::PagedNewSpaceAllocatorPolicy::PagedNewSpaceAllocatorPolicy ( PagedNewSpace * space,
MainAllocator * allocator )

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

Member Function Documentation

◆ EnsureAllocation()

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

Implements v8::internal::AllocatorPolicy.

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

Here is the call graph for this function:

◆ FreeLinearAllocationArea()

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

Implements v8::internal::AllocatorPolicy.

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

Here is the call graph for this function:

◆ SupportsExtendingLAB()

bool v8::internal::PagedNewSpaceAllocatorPolicy::SupportsExtendingLAB ( ) const
inlinefinalvirtual

Reimplemented from v8::internal::AllocatorPolicy.

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

◆ TryAllocatePage()

bool v8::internal::PagedNewSpaceAllocatorPolicy::TryAllocatePage ( int size_in_bytes,
AllocationOrigin origin )
private

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

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

◆ WaitForSweepingForAllocation()

bool v8::internal::PagedNewSpaceAllocatorPolicy::WaitForSweepingForAllocation ( int size_in_bytes,
AllocationOrigin origin )
private

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

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

Member Data Documentation

◆ paged_space_allocator_policy_

std::unique_ptr<PagedSpaceAllocatorPolicy> v8::internal::PagedNewSpaceAllocatorPolicy::paged_space_allocator_policy_
private

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

◆ space_

PagedNewSpace* const v8::internal::PagedNewSpaceAllocatorPolicy::space_
private

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


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