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

#include <allocation.h>

Collaboration diagram for v8::internal::VirtualMemory:

Public Member Functions

V8_EXPORT_PRIVATE VirtualMemory ()
 
 VirtualMemory (const VirtualMemory &)=delete
 
VirtualMemoryoperator= (const VirtualMemory &)=delete
 
V8_EXPORT_PRIVATE VirtualMemory (v8::PageAllocator *page_allocator, size_t size, void *hint, size_t alignment=1, PageAllocator::Permission permissions=PageAllocator::kNoAccess)
 
 VirtualMemory (v8::PageAllocator *page_allocator, Address address, size_t size)
 
V8_EXPORT_PRIVATE ~VirtualMemory ()
 
 VirtualMemory (VirtualMemory &&other) V8_NOEXCEPT
 
VirtualMemoryoperator= (VirtualMemory &&other) V8_NOEXCEPT
 
bool IsReserved () const
 
V8_EXPORT_PRIVATE void Reset ()
 
v8::PageAllocatorpage_allocator ()
 
const base::AddressRegionregion () const
 
Address address () const
 
Address end () const
 
size_t size () const
 
V8_EXPORT_PRIVATE V8_WARN_UNUSED_RESULT bool SetPermissions (Address address, size_t size, PageAllocator::Permission access)
 
V8_EXPORT_PRIVATE V8_WARN_UNUSED_RESULT bool RecommitPages (Address address, size_t size, PageAllocator::Permission access)
 
V8_EXPORT_PRIVATE bool DiscardSystemPages (Address address, size_t size)
 
V8_EXPORT_PRIVATE size_t Release (Address free_start)
 
V8_EXPORT_PRIVATE void Free ()
 
bool InVM (Address address, size_t size) const
 

Private Attributes

v8::PageAllocatorpage_allocator_ = nullptr
 
base::AddressRegion region_
 

Detailed Description

Definition at line 193 of file allocation.h.

Constructor & Destructor Documentation

◆ VirtualMemory() [1/5]

v8::internal::VirtualMemory::VirtualMemory ( )
default

◆ VirtualMemory() [2/5]

v8::internal::VirtualMemory::VirtualMemory ( const VirtualMemory & )
delete

◆ VirtualMemory() [3/5]

v8::internal::VirtualMemory::VirtualMemory ( v8::PageAllocator * page_allocator,
size_t size,
void * hint,
size_t alignment = 1,
PageAllocator::Permission permissions = PageAllocator::kNoAccess )

Definition at line 210 of file allocation.cc.

Here is the call graph for this function:

◆ VirtualMemory() [4/5]

v8::internal::VirtualMemory::VirtualMemory ( v8::PageAllocator * page_allocator,
Address address,
size_t size )
inline

Definition at line 212 of file allocation.h.

Here is the call graph for this function:

◆ ~VirtualMemory()

v8::internal::VirtualMemory::~VirtualMemory ( )

Definition at line 226 of file allocation.cc.

Here is the call graph for this function:

◆ VirtualMemory() [5/5]

v8::internal::VirtualMemory::VirtualMemory ( VirtualMemory && other)
inline

Definition at line 224 of file allocation.h.

Member Function Documentation

◆ address()

Address v8::internal::VirtualMemory::address ( ) const
inline

Definition at line 249 of file allocation.h.

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

◆ DiscardSystemPages()

bool v8::internal::VirtualMemory::DiscardSystemPages ( Address address,
size_t size )

Definition at line 253 of file allocation.cc.

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

◆ end()

Address v8::internal::VirtualMemory::end ( ) const
inline

Definition at line 254 of file allocation.h.

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

◆ Free()

void v8::internal::VirtualMemory::Free ( )

Definition at line 276 of file allocation.cc.

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

◆ InVM()

bool v8::internal::VirtualMemory::InVM ( Address address,
size_t size ) const
inline

Definition at line 290 of file allocation.h.

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

◆ IsReserved()

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

Definition at line 236 of file allocation.h.

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

◆ operator=() [1/2]

VirtualMemory & v8::internal::VirtualMemory::operator= ( const VirtualMemory & )
delete

◆ operator=() [2/2]

VirtualMemory & v8::internal::VirtualMemory::operator= ( VirtualMemory && other)
inline

Definition at line 227 of file allocation.h.

Here is the call graph for this function:

◆ page_allocator()

v8::PageAllocator * v8::internal::VirtualMemory::page_allocator ( )
inline

Definition at line 241 of file allocation.h.

Here is the caller graph for this function:

◆ RecommitPages()

bool v8::internal::VirtualMemory::RecommitPages ( Address address,
size_t size,
PageAllocator::Permission access )

Definition at line 245 of file allocation.cc.

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

◆ region()

const base::AddressRegion & v8::internal::VirtualMemory::region ( ) const
inline

Definition at line 243 of file allocation.h.

Here is the caller graph for this function:

◆ Release()

size_t v8::internal::VirtualMemory::Release ( Address free_start)

Definition at line 261 of file allocation.cc.

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

◆ Reset()

void v8::internal::VirtualMemory::Reset ( )

Definition at line 232 of file allocation.cc.

Here is the caller graph for this function:

◆ SetPermissions()

bool v8::internal::VirtualMemory::SetPermissions ( Address address,
size_t size,
PageAllocator::Permission access )

Definition at line 237 of file allocation.cc.

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

◆ size()

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

Definition at line 263 of file allocation.h.

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

Member Data Documentation

◆ page_allocator_

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

Definition at line 296 of file allocation.h.

◆ region_

base::AddressRegion v8::internal::VirtualMemory::region_
private

Definition at line 297 of file allocation.h.


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