chromium/v8/src/base/sanitizer/lsan-virtual-address-space.cc

// Copyright 2021 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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) {}

}  // namespace base
}  // namespace v8