chromium/v8/src/base/emulated-virtual-address-subspace.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/emulated-virtual-address-subspace.h"

#include "src/base/bits.h"
#include "src/base/platform/platform.h"

namespace v8 {
namespace base {

EmulatedVirtualAddressSubspace::EmulatedVirtualAddressSubspace(
    VirtualAddressSpace* parent_space, Address base, size_t mapped_size,
    size_t total_size)
    :{}

EmulatedVirtualAddressSubspace::~EmulatedVirtualAddressSubspace() {}

void EmulatedVirtualAddressSubspace::SetRandomSeed(int64_t seed) {}

Address EmulatedVirtualAddressSubspace::RandomPageAddress() {}

Address EmulatedVirtualAddressSubspace::AllocatePages(
    Address hint, size_t size, size_t alignment, PagePermissions permissions) {}

void EmulatedVirtualAddressSubspace::FreePages(Address address, size_t size) {}

Address EmulatedVirtualAddressSubspace::AllocateSharedPages(
    Address hint, size_t size, PagePermissions permissions,
    PlatformSharedMemoryHandle handle, uint64_t offset) {}

void EmulatedVirtualAddressSubspace::FreeSharedPages(Address address,
                                                     size_t size) {}

bool EmulatedVirtualAddressSubspace::SetPagePermissions(
    Address address, size_t size, PagePermissions permissions) {}

bool EmulatedVirtualAddressSubspace::AllocateGuardRegion(Address address,
                                                         size_t size) {}

void EmulatedVirtualAddressSubspace::FreeGuardRegion(Address address,
                                                     size_t size) {}

bool EmulatedVirtualAddressSubspace::CanAllocateSubspaces() {}

std::unique_ptr<v8::VirtualAddressSpace>
EmulatedVirtualAddressSubspace::AllocateSubspace(
    Address hint, size_t size, size_t alignment,
    PagePermissions max_page_permissions) {}

bool EmulatedVirtualAddressSubspace::RecommitPages(
    Address address, size_t size, PagePermissions permissions) {}

bool EmulatedVirtualAddressSubspace::DiscardSystemPages(Address address,
                                                        size_t size) {}

bool EmulatedVirtualAddressSubspace::DecommitPages(Address address,
                                                   size_t size) {}

}  // namespace base
}  // namespace v8