![]() |
v8
3.14.5(node0.10.28)
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) |
Definition at line 357 of file platform.h.
| VirtualMemory | ( | ) |
Definition at line 330 of file platform-freebsd.cc.
|
explicit |
Definition at line 321 of file platform-cygwin.cc.
References v8::internal::NULL.
| VirtualMemory | ( | size_t | size, |
| size_t | alignment | ||
| ) |
Definition at line 338 of file platform-freebsd.cc.
References OS::AllocateAlignment(), ASSERT, ASSERT_LE, OS::Free(), OS::GetRandomMmapAddr(), v8::internal::IsAligned(), and v8::internal::RoundUp().
| ~VirtualMemory | ( | ) |
Definition at line 327 of file platform-cygwin.cc.
References v8::internal::NULL.
|
inline |
Definition at line 384 of file platform.h.
References ASSERT, and VirtualMemory::IsReserved().
Referenced by CodeRange::contains(), MemoryAllocator::FreeMemory(), VirtualMemory::Release(), MemoryAllocator::ReserveAlignedMemory(), StoreBuffer::SetUp(), CodeRange::SetUp(), and IncrementalMarking::UncommitMarkingDeque().
| bool Commit | ( | void * | address, |
| size_t | size, | ||
| bool | is_executable | ||
| ) |
Definition at line 334 of file platform-cygwin.cc.
References v8::internal::NULL.
Referenced by MemoryAllocator::AllocateAlignedMemory(), MemoryAllocator::CommitCodePage(), StoreBuffer::EnsureSpace(), and StoreBuffer::SetUp().
|
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 IsReserved | ( | ) |
Definition at line 316 of file platform-cygwin.cc.
References v8::internal::NULL.
Referenced by VirtualMemory::address(), MemoryAllocator::Free(), MemoryAllocator::FreeMemory(), VirtualMemory::Release(), MemoryAllocator::ReserveAlignedMemory(), CodeRange::SetUp(), VirtualMemory::TakeControl(), and NewSpace::TearDown().
|
inline |
Definition at line 404 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 454 of file platform-freebsd.cc.
Referenced by MemoryAllocator::FreeMemory(), and VirtualMemory::Release().
|
static |
Definition at line 414 of file platform-freebsd.cc.
References OS::GetRandomMmapAddr(), and v8::internal::NULL.
| void Reset | ( | ) |
Definition at line 392 of file platform-freebsd.cc.
References v8::internal::NULL.
Referenced by MemoryChunk::InitializeReservedMemory(), VirtualMemory::Release(), and VirtualMemory::TakeControl().
|
inline |
Definition at line 393 of file platform.h.
Referenced by MemoryAllocator::AllocateChunk(), CodeRange::contains(), MemoryAllocator::FreeMemory(), MemoryAllocator::ReserveAlignedMemory(), StoreBuffer::SetUp(), CodeRange::SetUp(), and IncrementalMarking::UncommitMarkingDeque().
|
inline |
Definition at line 418 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 345 of file platform-cygwin.cc.
References ASSERT.
Referenced by CodeRange::FreeRawMemory(), and IncrementalMarking::UncommitMarkingDeque().
|
static |
Definition at line 444 of file platform-freebsd.cc.
Referenced by MemoryAllocator::UncommitBlock().