#include "src/base/bounded-page-allocator.h"
namespace v8 {
namespace base {
BoundedPageAllocator::BoundedPageAllocator(
v8::PageAllocator* page_allocator, Address start, size_t size,
size_t allocate_page_size, PageInitializationMode page_initialization_mode,
PageFreeingMode page_freeing_mode)
: … { … }
BoundedPageAllocator::Address BoundedPageAllocator::begin() const { … }
size_t BoundedPageAllocator::size() const { … }
void* BoundedPageAllocator::AllocatePages(void* hint, size_t size,
size_t alignment,
PageAllocator::Permission access) { … }
bool BoundedPageAllocator::AllocatePagesAt(Address address, size_t size,
PageAllocator::Permission access) { … }
bool BoundedPageAllocator::ReserveForSharedMemoryMapping(void* ptr,
size_t size) { … }
bool BoundedPageAllocator::FreePages(void* raw_address, size_t size) { … }
bool BoundedPageAllocator::ReleasePages(void* raw_address, size_t size,
size_t new_size) { … }
bool BoundedPageAllocator::SetPermissions(void* address, size_t size,
PageAllocator::Permission access) { … }
bool BoundedPageAllocator::RecommitPages(void* address, size_t size,
PageAllocator::Permission access) { … }
bool BoundedPageAllocator::DiscardSystemPages(void* address, size_t size) { … }
bool BoundedPageAllocator::DecommitPages(void* address, size_t size) { … }
bool BoundedPageAllocator::SealPages(void* address, size_t size) { … }
const char* BoundedPageAllocator::AllocationStatusToString(
AllocationStatus allocation_status) { … }
}
}