V8 Project
|
#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 () |
Private Attributes | |
void * | address_ |
size_t | size_ |
Definition at line 316 of file platform.h.
v8::base::VirtualMemory::VirtualMemory | ( | ) |
Definition at line 199 of file platform-cygwin.cc.
|
explicit |
Definition at line 202 of file platform-cygwin.cc.
v8::base::VirtualMemory::VirtualMemory | ( | size_t | size, |
size_t | alignment | ||
) |
Definition at line 206 of file platform-cygwin.cc.
References address(), address_, v8::base::OS::AllocateAlignment(), DCHECK, NULL, ReleaseRegion(), ReserveRegion(), RoundUp(), size(), size_, and USE().
v8::base::VirtualMemory::~VirtualMemory | ( | ) |
Definition at line 232 of file platform-cygwin.cc.
References address_, DCHECK, IsReserved(), ReleaseRegion(), size_, and USE().
|
inline |
Definition at line 343 of file platform.h.
References address_, DCHECK, and IsReserved().
Referenced by Commit(), v8::internal::CodeRange::contains(), v8::internal::IncrementalMarking::EnsureMarkingDequeIsCommitted(), v8::internal::MemoryAllocator::FreeMemory(), Guard(), Release(), v8::internal::MemoryAllocator::ReserveAlignedMemory(), v8::internal::StoreBuffer::SetUp(), v8::internal::CodeRange::SetUp(), v8::internal::CodeRange::start(), v8::internal::IncrementalMarking::StartMarking(), Uncommit(), v8::internal::IncrementalMarking::UncommitMarkingDeque(), and VirtualMemory().
Definition at line 252 of file platform-cygwin.cc.
References address(), CommitRegion(), and size().
Referenced by v8::internal::MemoryAllocator::AllocateAlignedMemory(), v8::internal::MemoryAllocator::CommitExecutableMemory(), v8::internal::IncrementalMarking::EnsureMarkingDequeIsCommitted(), v8::internal::StoreBuffer::EnsureSpace(), and v8::internal::StoreBuffer::SetUp().
Definition at line 268 of file platform-cygwin.cc.
Referenced by Commit(), and v8::internal::MemoryAllocator::CommitMemory().
bool v8::base::VirtualMemory::Guard | ( | void * | address | ) |
Definition at line 277 of file platform-cygwin.cc.
References address(), v8::base::OS::CommitPageSize(), and NULL.
Referenced by v8::internal::MemoryAllocator::CommitExecutableMemory().
|
static |
Definition at line 298 of file platform-cygwin.cc.
Referenced by v8::internal::PagedSpace::CommittedPhysicalMemory(), v8::internal::NewSpace::CommittedPhysicalMemory(), and v8::internal::LargeObjectSpace::CommittedPhysicalMemory().
bool v8::base::VirtualMemory::IsReserved | ( | ) |
Definition at line 241 of file platform-cygwin.cc.
References address_, and NULL.
Referenced by address(), v8::internal::MemoryChunk::CommitArea(), v8::internal::MemoryAllocator::Free(), v8::internal::MemoryAllocator::FreeMemory(), Release(), v8::internal::MemoryAllocator::ReserveAlignedMemory(), v8::internal::CodeRange::SetUp(), TakeControl(), v8::internal::NewSpace::TearDown(), Uncommit(), and ~VirtualMemory().
|
inline |
Definition at line 363 of file platform.h.
References address(), address_, DCHECK, IsReserved(), ReleaseRegion(), Reset(), size(), size_, and USE().
Referenced by v8::internal::MemoryAllocator::AllocateAlignedMemory(), and v8::internal::MemoryAllocator::FreeMemory().
|
static |
Definition at line 293 of file platform-cygwin.cc.
Referenced by v8::internal::MemoryAllocator::FreeMemory(), Release(), VirtualMemory(), and ~VirtualMemory().
|
static |
Definition at line 263 of file platform-cygwin.cc.
References v8::base::RandomizedVirtualAlloc(), and size().
Referenced by VirtualMemory().
void v8::base::VirtualMemory::Reset | ( | ) |
Definition at line 246 of file platform-cygwin.cc.
References address_, NULL, and size_.
Referenced by v8::internal::MemoryChunk::InitializeReservedMemory(), Release(), and TakeControl().
|
inline |
Definition at line 352 of file platform.h.
References size_.
Referenced by v8::internal::MemoryAllocator::AllocateChunk(), Commit(), CommitRegion(), v8::internal::CodeRange::contains(), v8::internal::IncrementalMarking::EnsureMarkingDequeIsCommitted(), v8::internal::MemoryAllocator::FreeMemory(), Release(), v8::internal::MemoryAllocator::ReserveAlignedMemory(), ReserveRegion(), v8::internal::StoreBuffer::SetUp(), v8::internal::CodeRange::SetUp(), v8::internal::CodeRange::size(), v8::internal::IncrementalMarking::StartMarking(), Uncommit(), v8::internal::IncrementalMarking::UncommitMarkingDeque(), UncommitRegion(), and VirtualMemory().
|
inline |
Definition at line 377 of file platform.h.
References address_, DCHECK, IsReserved(), Reset(), and size_.
Referenced by v8::internal::MemoryAllocator::AllocateAlignedMemory(), v8::internal::MemoryAllocator::ReserveAlignedMemory(), and v8::internal::MemoryChunk::set_reserved_memory().
bool v8::base::VirtualMemory::Uncommit | ( | void * | address, |
size_t | size | ||
) |
Definition at line 257 of file platform-cygwin.cc.
References address(), DCHECK, IsReserved(), size(), and UncommitRegion().
Referenced by v8::internal::MemoryChunk::CommitArea(), v8::internal::CodeRange::FreeRawMemory(), v8::internal::IncrementalMarking::UncommitMarkingDeque(), and v8::internal::CodeRange::UncommitRawMemory().
|
static |
Definition at line 288 of file platform-cygwin.cc.
References size().
Referenced by Uncommit(), and v8::internal::MemoryAllocator::UncommitBlock().
|
private |
Definition at line 400 of file platform.h.
Referenced by address(), IsReserved(), Release(), Reset(), TakeControl(), VirtualMemory(), and ~VirtualMemory().
|
private |
Definition at line 401 of file platform.h.
Referenced by Release(), Reset(), size(), TakeControl(), VirtualMemory(), and ~VirtualMemory().