chromium/v8/src/sandbox/external-buffer-table-inl.h

// Copyright 2024 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.

#ifndef V8_SANDBOX_EXTERNAL_BUFFER_TABLE_INL_H_
#define V8_SANDBOX_EXTERNAL_BUFFER_TABLE_INL_H_

#include "src/sandbox/compactible-external-entity-table-inl.h"
#include "src/sandbox/external-buffer-table.h"

#ifdef V8_ENABLE_SANDBOX

namespace v8 {
namespace internal {

void ExternalBufferTableEntry::MakeExternalBufferEntry(
    std::pair<Address, size_t> buffer, ExternalBufferTag tag) {}

std::pair<Address, size_t> ExternalBufferTableEntry::GetExternalBuffer(
    ExternalBufferTag tag) const {}

bool ExternalBufferTableEntry::HasExternalBuffer(ExternalBufferTag tag) const {}

void ExternalBufferTableEntry::MakeFreelistEntry(uint32_t next_entry_index) {}

uint32_t ExternalBufferTableEntry::GetNextFreelistEntryIndex() const {}

void ExternalBufferTableEntry::Mark() {}

void ExternalBufferTableEntry::MakeEvacuationEntry(Address handle_location) {}

bool ExternalBufferTableEntry::HasEvacuationEntry() const {}

void ExternalBufferTableEntry::MigrateInto(ExternalBufferTableEntry& other) {}

std::pair<Address, size_t> ExternalBufferTable::Get(
    ExternalBufferHandle handle, ExternalBufferTag tag) const {}

ExternalBufferHandle ExternalBufferTable::AllocateAndInitializeEntry(
    Space* space, std::pair<Address, size_t> initial_buffer,
    ExternalBufferTag tag) {}

void ExternalBufferTable::Mark(Space* space, ExternalBufferHandle handle,
                               Address handle_location) {}

// static
bool ExternalBufferTable::IsValidHandle(ExternalBufferHandle handle) {}

// static
uint32_t ExternalBufferTable::HandleToIndex(ExternalBufferHandle handle) {}

// static
ExternalBufferHandle ExternalBufferTable::IndexToHandle(uint32_t index) {}

void ExternalBufferTable::Space::NotifyExternalPointerFieldInvalidated(
    Address field_address) {}

}  // namespace internal
}  // namespace v8

#endif  // V8_ENABLE_SANDBOX

#endif  // V8_SANDBOX_EXTERNAL_BUFFER_TABLE_INL_H_