v8
3.11.10(node0.8.26)
V8 is Google's open source JavaScript engine
|
#include <spaces.h>
Public Member Functions | |
CodeRange (Isolate *isolate) | |
~CodeRange () | |
bool | SetUp (const size_t requested_size) |
void | TearDown () |
bool | exists () |
bool | contains (Address address) |
MUST_USE_RESULT Address | AllocateRawMemory (const size_t requested, size_t *allocated) |
void | FreeRawMemory (Address buf, size_t length) |
|
inline |
Definition at line 818 of file spaces.h.
References CodeRange::TearDown().
Address AllocateRawMemory | ( | const size_t | requested, |
size_t * | allocated | ||
) |
Definition at line 211 of file spaces.cc.
References ASSERT, MemoryAllocator::CommitCodePage(), v8::internal::IsAddressAligned(), MemoryChunk::kAlignment, Page::kPageSize, v8::internal::NULL, and v8::internal::RoundUp().
Referenced by MemoryAllocator::AllocateChunk(), and TEST().
|
inline |
Definition at line 830 of file spaces.h.
References VirtualMemory::address(), v8::internal::NULL, and VirtualMemory::size().
Referenced by Heap::CopyCode(), Heap::CreateCode(), and MemoryAllocator::FreeMemory().
|
inline |
Definition at line 829 of file spaces.h.
References v8::internal::NULL.
Referenced by MemoryAllocator::AllocateChunk(), Heap::CopyCode(), Heap::CreateCode(), and MemoryAllocator::FreeMemory().
void FreeRawMemory | ( | Address | buf, |
size_t | length | ||
) |
Definition at line 245 of file spaces.cc.
References List< T, P >::Add(), ASSERT, v8::internal::IsAddressAligned(), MemoryChunk::kAlignment, and VirtualMemory::Uncommit().
Referenced by MemoryAllocator::FreeMemory(), and TEST().
bool SetUp | ( | const size_t | requested_size | ) |
Definition at line 135 of file spaces.cc.
References List< T, P >::Add(), VirtualMemory::address(), ASSERT, CHECK, VirtualMemory::IsReserved(), MemoryChunk::kAlignment, LOG, v8::internal::NULL, v8::internal::RoundUp(), and VirtualMemory::size().
Referenced by Heap::SetUp(), and TEST().
void TearDown | ( | ) |
Definition at line 252 of file spaces.cc.
References List< T, P >::Free(), and v8::internal::NULL.
Referenced by TEST(), and CodeRange::~CodeRange().