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

#include <main-allocator.h>

Inheritance diagram for v8::internal::AllocatorPolicy:
Collaboration diagram for v8::internal::AllocatorPolicy:

Public Member Functions

 AllocatorPolicy (MainAllocator *allocator)
 
virtual ~AllocatorPolicy ()=default
 
virtual bool EnsureAllocation (int size_in_bytes, AllocationAlignment alignment, AllocationOrigin origin)=0
 
virtual void FreeLinearAllocationArea ()=0
 
virtual bool SupportsExtendingLAB () const
 

Protected Member Functions

Heapspace_heap () const
 
Heapisolate_heap () const
 

Protected Attributes

MainAllocator *const allocator_
 

Detailed Description

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

Constructor & Destructor Documentation

◆ AllocatorPolicy()

v8::internal::AllocatorPolicy::AllocatorPolicy ( MainAllocator * allocator)
explicit

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

◆ ~AllocatorPolicy()

virtual v8::internal::AllocatorPolicy::~AllocatorPolicy ( )
virtualdefault

Member Function Documentation

◆ EnsureAllocation()

virtual bool v8::internal::AllocatorPolicy::EnsureAllocation ( int size_in_bytes,
AllocationAlignment alignment,
AllocationOrigin origin )
pure virtual

◆ FreeLinearAllocationArea()

virtual void v8::internal::AllocatorPolicy::FreeLinearAllocationArea ( )
pure virtual

◆ isolate_heap()

Heap * v8::internal::AllocatorPolicy::isolate_heap ( ) const
protected

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

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

◆ space_heap()

Heap * v8::internal::AllocatorPolicy::space_heap ( ) const
protected

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

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

◆ SupportsExtendingLAB()

virtual bool v8::internal::AllocatorPolicy::SupportsExtendingLAB ( ) const
inlinevirtual

Reimplemented in v8::internal::PagedNewSpaceAllocatorPolicy.

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

Member Data Documentation

◆ allocator_

MainAllocator* const v8::internal::AllocatorPolicy::allocator_
protected

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


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