#include "src/base/sanitizer/lsan-virtual-address-space.h"
#include "include/v8-platform.h"
#include "src/base/logging.h"
#if defined(LEAK_SANITIZER)
#include <sanitizer/lsan_interface.h>
#endif
namespace v8 {
namespace base {
LsanVirtualAddressSpace::LsanVirtualAddressSpace(
std::unique_ptr<v8::VirtualAddressSpace> vas)
: … { … }
Address LsanVirtualAddressSpace::AllocatePages(Address hint, size_t size,
size_t alignment,
PagePermissions permissions) { … }
void LsanVirtualAddressSpace::FreePages(Address address, size_t size) { … }
Address LsanVirtualAddressSpace::AllocateSharedPages(
Address hint, size_t size, PagePermissions permissions,
PlatformSharedMemoryHandle handle, uint64_t offset) { … }
void LsanVirtualAddressSpace::FreeSharedPages(Address address, size_t size) { … }
std::unique_ptr<VirtualAddressSpace> LsanVirtualAddressSpace::AllocateSubspace(
Address hint, size_t size, size_t alignment,
PagePermissions max_page_permissions) { … }
}
}