33 const void* ptr,
bool points_to_payload,
bool check_off_heap_assignments) {
36#if defined(CPPGC_CAGED_HEAP)
38 DCHECK(CagedHeapBase::IsWithinCage(ptr));
41 DCHECK_NE(
reinterpret_cast<void*
>(-1), ptr);
49 bool is_on_heap =
true;
51 heap_ = &base_page->heap();
52 if (!
heap_->page_backend()->Lookup(
reinterpret_cast<Address>(
this))) {
68 if (points_to_payload) {
84#ifdef CPPGC_VERIFY_HEAP
85 if (check_off_heap_assignments || is_on_heap) {
86 if (
heap_->prefinalizer_handler()->IsInvokingPreFinalizers()) {
92 slot_page->ObjectHeaderFromInnerAddress(
this).IsMarked();
static BasePage * FromPayload(void *)
static BasePage * FromInnerAddress(const HeapBase *, void *)