#include "src/base/virtual-address-space-page-allocator.h"
namespace v8 {
namespace base {
VirtualAddressSpacePageAllocator::VirtualAddressSpacePageAllocator(
v8::VirtualAddressSpace* vas)
: … { … }
void* VirtualAddressSpacePageAllocator::AllocatePages(
void* hint, size_t size, size_t alignment,
PageAllocator::Permission access) { … }
bool VirtualAddressSpacePageAllocator::FreePages(void* ptr, size_t size) { … }
bool VirtualAddressSpacePageAllocator::ReleasePages(void* ptr, size_t size,
size_t new_size) { … }
bool VirtualAddressSpacePageAllocator::SetPermissions(
void* address, size_t size, PageAllocator::Permission access) { … }
bool VirtualAddressSpacePageAllocator::RecommitPages(
void* address, size_t size, PageAllocator::Permission access) { … }
bool VirtualAddressSpacePageAllocator::DiscardSystemPages(void* address,
size_t size) { … }
bool VirtualAddressSpacePageAllocator::DecommitPages(void* address,
size_t size) { … }
bool VirtualAddressSpacePageAllocator::SealPages(void* address, size_t size) { … }
}
}