#ifndef V8_SANDBOX_TRUSTED_POINTER_TABLE_INL_H_
#define V8_SANDBOX_TRUSTED_POINTER_TABLE_INL_H_
#include "src/sandbox/external-entity-table-inl.h"
#include "src/sandbox/sandbox.h"
#include "src/sandbox/trusted-pointer-table.h"
#ifdef V8_ENABLE_SANDBOX
namespace v8 {
namespace internal {
void TrustedPointerTableEntry::MakeTrustedPointerEntry(Address pointer,
IndirectPointerTag tag,
bool mark_as_alive) { … }
void TrustedPointerTableEntry::MakeFreelistEntry(uint32_t next_entry_index) { … }
void TrustedPointerTableEntry::MakeZappedEntry() { … }
Address TrustedPointerTableEntry::GetPointer(IndirectPointerTag tag) const { … }
void TrustedPointerTableEntry::SetPointer(Address pointer,
IndirectPointerTag tag) { … }
bool TrustedPointerTableEntry::HasPointer(IndirectPointerTag tag) const { … }
bool TrustedPointerTableEntry::IsFreelistEntry() const { … }
uint32_t TrustedPointerTableEntry::GetNextFreelistEntryIndex() const { … }
void TrustedPointerTableEntry::Mark() { … }
void TrustedPointerTableEntry::Unmark() { … }
bool TrustedPointerTableEntry::IsMarked() const { … }
Address TrustedPointerTable::Get(TrustedPointerHandle handle,
IndirectPointerTag tag) const { … }
void TrustedPointerTable::Set(TrustedPointerHandle handle, Address pointer,
IndirectPointerTag tag) { … }
TrustedPointerHandle TrustedPointerTable::AllocateAndInitializeEntry(
Space* space, Address pointer, IndirectPointerTag tag) { … }
void TrustedPointerTable::Mark(Space* space, TrustedPointerHandle handle) { … }
void TrustedPointerTable::Zap(TrustedPointerHandle handle) { … }
template <typename Callback>
void TrustedPointerTable::IterateActiveEntriesIn(Space* space,
Callback callback) { … }
uint32_t TrustedPointerTable::HandleToIndex(TrustedPointerHandle handle) const { … }
TrustedPointerHandle TrustedPointerTable::IndexToHandle(uint32_t index) const { … }
void TrustedPointerTable::Validate(Address pointer, IndirectPointerTag tag) { … }
}
}
#endif
#endif