V8 API Reference, 7.2.502.16 (for Deno 0.2.4)
v8::internal::MemoryAllocator Class Reference

Classes

class  Unmapper
 

Public Types

enum  AllocationMode { kRegular, kPooled }
 
enum  FreeMode { kFull, kAlreadyPooled, kPreFreeAndQueue, kPooledAndQueue }
 

Public Member Functions

 MemoryAllocator (Isolate *isolate, size_t max_capacity, size_t code_range_size)
 
void TearDown ()
 
template<MemoryAllocator::AllocationMode alloc_mode = kRegular, typename SpaceType >
PageAllocatePage (size_t size, SpaceType *owner, Executability executable)
 
LargePageAllocateLargePage (size_t size, LargeObjectSpace *owner, Executability executable)
 
template<MemoryAllocator::FreeMode mode = kFull>
void Free (MemoryChunk *chunk)
 
size_t Size ()
 
size_t SizeExecutable ()
 
size_t Available ()
 
V8_INLINE bool IsOutsideAllocatedSpace (Address address)
 
MemoryChunkAllocateChunk (size_t reserve_area_size, size_t commit_area_size, Executability executable, Space *space)
 
Address AllocateAlignedMemory (size_t reserve_size, size_t commit_size, size_t alignment, Executability executable, void *hint, VirtualMemory *controller)
 
void FreeMemory (v8::PageAllocator *page_allocator, Address addr, size_t size)
 
void PartialFreeMemory (MemoryChunk *chunk, Address start_free, size_t bytes_to_free, Address new_area_end)
 
bool IsMemoryChunkExecutable (MemoryChunk *chunk)
 
bool CommitMemory (VirtualMemory *reservation)
 
bool UncommitMemory (VirtualMemory *reservation)
 
void ZapBlock (Address start, size_t size, uintptr_t zap_value)
 
V8_WARN_UNUSED_RESULT bool CommitExecutableMemory (VirtualMemory *vm, Address start, size_t commit_size, size_t reserved_size)
 
v8::PageAllocatordata_page_allocator ()
 
v8::PageAllocatorcode_page_allocator ()
 
v8::PageAllocatorpage_allocator (Executability executable)
 
const base::AddressRegioncode_range () const
 
Unmapperunmapper ()
 

Static Public Member Functions

static intptr_t GetCommitPageSize ()
 
static base::AddressRegion ComputeDiscardMemoryArea (Address addr, size_t size)
 

Friends

class heap::TestCodePageAllocatorScope
 

Detailed Description

Definition at line 1163 of file spaces.h.


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