v8  3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
VirtualMemory Class Reference

#include <platform.h>

Public Member Functions

 VirtualMemory ()
 
 VirtualMemory (size_t size)
 
 VirtualMemory (size_t size, size_t alignment)
 
 ~VirtualMemory ()
 
bool IsReserved ()
 
void Reset ()
 
void * address ()
 
size_t size ()
 
bool Commit (void *address, size_t size, bool is_executable)
 
bool Uncommit (void *address, size_t size)
 
bool Guard (void *address)
 
void Release ()
 
void TakeControl (VirtualMemory *from)
 

Static Public Member Functions

static void * ReserveRegion (size_t size)
 
static bool CommitRegion (void *base, size_t size, bool is_executable)
 
static bool UncommitRegion (void *base, size_t size)
 
static bool ReleaseRegion (void *base, size_t size)
 

Detailed Description

Definition at line 357 of file platform.h.

Constructor & Destructor Documentation

Definition at line 330 of file platform-freebsd.cc.

VirtualMemory ( size_t  size)
explicit

Definition at line 321 of file platform-cygwin.cc.

References v8::internal::NULL.

Definition at line 327 of file platform-cygwin.cc.

References v8::internal::NULL.

Member Function Documentation

bool Commit ( void *  address,
size_t  size,
bool  is_executable 
)
bool CommitRegion ( void *  base,
size_t  size,
bool  is_executable 
)
static

Definition at line 428 of file platform-freebsd.cc.

Referenced by MemoryAllocator::CommitBlock().

bool Guard ( void *  address)

Definition at line 351 of file platform-cygwin.cc.

References OS::CommitPageSize(), and v8::internal::NULL.

Referenced by MemoryAllocator::CommitCodePage().

bool ReleaseRegion ( void *  base,
size_t  size 
)
static

Definition at line 454 of file platform-freebsd.cc.

Referenced by MemoryAllocator::FreeMemory(), and VirtualMemory::Release().

void * ReserveRegion ( size_t  size)
static

Definition at line 414 of file platform-freebsd.cc.

References OS::GetRandomMmapAddr(), and v8::internal::NULL.

bool Uncommit ( void *  address,
size_t  size 
)

Definition at line 345 of file platform-cygwin.cc.

References ASSERT.

Referenced by CodeRange::FreeRawMemory(), and IncrementalMarking::UncommitMarkingDeque().

bool UncommitRegion ( void *  base,
size_t  size 
)
static

Definition at line 444 of file platform-freebsd.cc.

Referenced by MemoryAllocator::UncommitBlock().


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