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

#include <virtual-memory.h>

Collaboration diagram for cppgc::internal::VirtualMemory:

Public Member Functions

 VirtualMemory ()=default
 
 VirtualMemory (PageAllocator *, size_t size, size_t alignment, void *hint=nullptr)
 
 ~VirtualMemory () V8_NOEXCEPT
 
 VirtualMemory (VirtualMemory &&) V8_NOEXCEPT
 
VirtualMemoryoperator= (VirtualMemory &&) V8_NOEXCEPT
 
bool IsReserved () const
 
void * address () const
 
size_t size () const
 

Private Member Functions

void Reset ()
 

Private Attributes

PageAllocatorpage_allocator_ = nullptr
 
void * start_ = nullptr
 
size_t size_ = 0
 

Detailed Description

Definition at line 17 of file virtual-memory.h.

Constructor & Destructor Documentation

◆ VirtualMemory() [1/3]

cppgc::internal::VirtualMemory::VirtualMemory ( )
default

◆ VirtualMemory() [2/3]

cppgc::internal::VirtualMemory::VirtualMemory ( PageAllocator * page_allocator,
size_t size,
size_t alignment,
void * hint = nullptr )

Definition at line 13 of file virtual-memory.cc.

Here is the call graph for this function:

◆ ~VirtualMemory()

cppgc::internal::VirtualMemory::~VirtualMemory ( )

Definition at line 28 of file virtual-memory.cc.

Here is the call graph for this function:

◆ VirtualMemory() [3/3]

cppgc::internal::VirtualMemory::VirtualMemory ( VirtualMemory && other)

Definition at line 34 of file virtual-memory.cc.

Member Function Documentation

◆ address()

void * cppgc::internal::VirtualMemory::address ( ) const
inline

Definition at line 38 of file virtual-memory.h.

◆ IsReserved()

bool cppgc::internal::VirtualMemory::IsReserved ( ) const
inline

Definition at line 36 of file virtual-memory.h.

Here is the caller graph for this function:

◆ operator=()

VirtualMemory & cppgc::internal::VirtualMemory::operator= ( VirtualMemory && other)

Definition at line 41 of file virtual-memory.cc.

◆ Reset()

void cppgc::internal::VirtualMemory::Reset ( )
private

Definition at line 50 of file virtual-memory.cc.

◆ size()

size_t cppgc::internal::VirtualMemory::size ( ) const
inline

Definition at line 43 of file virtual-memory.h.

Member Data Documentation

◆ page_allocator_

PageAllocator* cppgc::internal::VirtualMemory::page_allocator_ = nullptr
private

Definition at line 52 of file virtual-memory.h.

◆ size_

size_t cppgc::internal::VirtualMemory::size_ = 0
private

Definition at line 54 of file virtual-memory.h.

◆ start_

void* cppgc::internal::VirtualMemory::start_ = nullptr
private

Definition at line 53 of file virtual-memory.h.


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