v8
3.25.30(node0.11.13)
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 () |
Address | start () |
bool | contains (Address address) |
MUST_USE_RESULT Address | AllocateRawMemory (const size_t requested_size, const size_t commit_size, size_t *allocated) |
bool | CommitRawMemory (Address start, size_t length) |
bool | UncommitRawMemory (Address start, size_t length) |
void | FreeRawMemory (Address buf, size_t length) |
|
inline |
Definition at line 944 of file spaces.h.
References CodeRange::TearDown().
Address AllocateRawMemory | ( | const size_t | requested_size, |
const size_t | commit_size, | ||
size_t * | allocated | ||
) |
Definition at line 211 of file spaces.cc.
References ASSERT, MemoryAllocator::CommitExecutableMemory(), v8::internal::IsAddressAligned(), MemoryChunk::kAlignment, Page::kPageSize, Isolate::memory_allocator(), v8::internal::NULL, v8::internal::RoundUp(), and v8::internal::size.
Referenced by MemoryAllocator::AllocateChunk(), and TEST().
bool CommitRawMemory | ( | Address | start, |
size_t | length | ||
) |
Definition at line 248 of file spaces.cc.
References MemoryAllocator::CommitMemory(), v8::internal::EXECUTABLE, and Isolate::memory_allocator().
Referenced by MemoryChunk::CommitArea().
|
inline |
Definition at line 960 of file spaces.h.
References VirtualMemory::address(), v8::internal::NULL, VirtualMemory::size(), and CodeRange::start().
Referenced by Heap::CopyCode(), Heap::CreateCode(), and MemoryAllocator::FreeMemory().
|
inline |
Definition at line 955 of file spaces.h.
References v8::internal::NULL.
Referenced by MemoryAllocator::AllocateChunk(), MemoryChunk::CommitArea(), Heap::CopyCode(), Heap::CreateCode(), and MemoryAllocator::FreeMemory().
void FreeRawMemory | ( | Address | buf, |
size_t | length | ||
) |
Definition at line 258 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 136 of file spaces.cc.
References List< T, P >::Add(), VirtualMemory::address(), ASSERT, CHECK, VirtualMemory::IsReserved(), MemoryChunk::kAlignment, LOG, v8::internal::NULL, v8::internal::RoundUp(), v8::internal::size, and VirtualMemory::size().
Referenced by Heap::SetUp(), and TEST().
|
inline |
Definition at line 956 of file spaces.h.
References VirtualMemory::address(), and v8::internal::NULL.
Referenced by CodeRange::contains(), and Assembler::runtime_entry_at().
void TearDown | ( | ) |
Definition at line 265 of file spaces.cc.
References List< T, P >::Free(), and v8::internal::NULL.
Referenced by TEST(), and CodeRange::~CodeRange().
bool UncommitRawMemory | ( | Address | start, |
size_t | length | ||
) |
Definition at line 253 of file spaces.cc.
References VirtualMemory::Uncommit().
Referenced by MemoryChunk::CommitArea().