#include "partition_alloc/partition_dcheck_helper.h"
#include <cstdint>
#include "partition_alloc/partition_alloc_check.h"
#include "partition_alloc/partition_bucket.h"
#include "partition_alloc/partition_page.h"
#include "partition_alloc/partition_root.h"
#include "partition_alloc/partition_superpage_extent_entry.h"
namespace partition_alloc::internal {
#if PA_BUILDFLAG(DCHECKS_ARE_ON)
void DCheckIsValidShiftFromSlotStart(internal::SlotSpanMetadata* slot_span,
uintptr_t shift_from_slot_start) { … }
void DCheckIsValidObjectAddress(internal::SlotSpanMetadata* slot_span,
uintptr_t object_addr) { … }
void DCheckNumberOfPartitionPagesInSuperPagePayload(
PartitionSuperPageExtentEntry<MetadataKind::kWritable>* entry,
const PartitionRoot* root,
size_t number_of_nonempty_slot_spans) { … }
void DCheckRootLockIsAcquired(PartitionRoot* root) { … }
#endif
bool DeducedRootIsValid(internal::SlotSpanMetadata* slot_span) { … }
}