v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#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) |
static bool | HasLazyCommits () |
Definition at line 420 of file platform.h.
VirtualMemory | ( | ) |
Definition at line 253 of file platform-cygwin.cc.
|
explicit |
Definition at line 256 of file platform-cygwin.cc.
VirtualMemory | ( | size_t | size, |
size_t | alignment | ||
) |
Definition at line 260 of file platform-cygwin.cc.
References VirtualMemory::address(), OS::AllocateAlignment(), ASSERT, v8::internal::IsAligned(), v8::internal::NULL, VirtualMemory::ReleaseRegion(), VirtualMemory::ReserveRegion(), v8::internal::RoundUp(), VirtualMemory::size(), and v8::internal::USE().
~VirtualMemory | ( | ) |
Definition at line 286 of file platform-cygwin.cc.
References ASSERT, VirtualMemory::IsReserved(), VirtualMemory::ReleaseRegion(), and v8::internal::USE().
|
inline |
Definition at line 447 of file platform.h.
References ASSERT, and VirtualMemory::IsReserved().
Referenced by CodeRange::contains(), MemoryAllocator::FreeMemory(), VirtualMemory::Release(), MemoryAllocator::ReserveAlignedMemory(), StoreBuffer::SetUp(), CodeRange::SetUp(), CodeRange::start(), IncrementalMarking::UncommitMarkingDeque(), and VirtualMemory::VirtualMemory().
bool Commit | ( | void * | address, |
size_t | size, | ||
bool | is_executable | ||
) |
Definition at line 306 of file platform-cygwin.cc.
References VirtualMemory::CommitRegion().
Referenced by MemoryAllocator::AllocateAlignedMemory(), MemoryAllocator::CommitExecutableMemory(), StoreBuffer::EnsureSpace(), and StoreBuffer::SetUp().
|
static |
Definition at line 322 of file platform-cygwin.cc.
References v8::internal::NULL.
Referenced by VirtualMemory::Commit(), and MemoryAllocator::CommitMemory().
bool Guard | ( | void * | address | ) |
Definition at line 331 of file platform-cygwin.cc.
References OS::CommitPageSize(), and v8::internal::NULL.
Referenced by MemoryAllocator::CommitExecutableMemory().
|
static |
Definition at line 352 of file platform-cygwin.cc.
Referenced by PagedSpace::CommittedPhysicalMemory(), NewSpace::CommittedPhysicalMemory(), and LargeObjectSpace::CommittedPhysicalMemory().
bool IsReserved | ( | ) |
Definition at line 295 of file platform-cygwin.cc.
References v8::internal::NULL.
Referenced by VirtualMemory::address(), MemoryChunk::CommitArea(), MemoryAllocator::Free(), MemoryAllocator::FreeMemory(), VirtualMemory::Release(), MemoryAllocator::ReserveAlignedMemory(), CodeRange::SetUp(), VirtualMemory::TakeControl(), NewSpace::TearDown(), VirtualMemory::Uncommit(), and VirtualMemory::~VirtualMemory().
|
inline |
Definition at line 467 of file platform.h.
References VirtualMemory::address(), ASSERT, VirtualMemory::IsReserved(), VirtualMemory::ReleaseRegion(), VirtualMemory::Reset(), and v8::internal::USE().
Referenced by MemoryAllocator::AllocateAlignedMemory(), and MemoryAllocator::FreeMemory().
|
static |
Definition at line 347 of file platform-cygwin.cc.
Referenced by MemoryAllocator::FreeMemory(), VirtualMemory::Release(), VirtualMemory::VirtualMemory(), and VirtualMemory::~VirtualMemory().
|
static |
Definition at line 317 of file platform-cygwin.cc.
Referenced by VirtualMemory::VirtualMemory().
void Reset | ( | ) |
Definition at line 300 of file platform-cygwin.cc.
References v8::internal::NULL.
Referenced by MemoryChunk::InitializeReservedMemory(), VirtualMemory::Release(), and VirtualMemory::TakeControl().
|
inline |
Definition at line 456 of file platform.h.
Referenced by MemoryAllocator::AllocateChunk(), CodeRange::contains(), MemoryAllocator::FreeMemory(), MemoryAllocator::ReserveAlignedMemory(), StoreBuffer::SetUp(), CodeRange::SetUp(), IncrementalMarking::UncommitMarkingDeque(), and VirtualMemory::VirtualMemory().
|
inline |
Definition at line 481 of file platform.h.
References ASSERT, VirtualMemory::IsReserved(), and VirtualMemory::Reset().
Referenced by MemoryAllocator::AllocateAlignedMemory(), MemoryAllocator::ReserveAlignedMemory(), and MemoryChunk::set_reserved_memory().
bool Uncommit | ( | void * | address, |
size_t | size | ||
) |
Definition at line 311 of file platform-cygwin.cc.
References ASSERT, VirtualMemory::IsReserved(), and VirtualMemory::UncommitRegion().
Referenced by MemoryChunk::CommitArea(), CodeRange::FreeRawMemory(), IncrementalMarking::UncommitMarkingDeque(), and CodeRange::UncommitRawMemory().
|
static |
Definition at line 342 of file platform-cygwin.cc.
Referenced by VirtualMemory::Uncommit(), and MemoryAllocator::UncommitBlock().