Lines Matching refs:expected_ptr
185 bool MemMap::CheckMapRequest(uint8_t* expected_ptr, void* actual_ptr, size_t byte_count, in CheckMapRequest() argument
190 if (expected_ptr == nullptr) { in CheckMapRequest()
195 uintptr_t expected = reinterpret_cast<uintptr_t>(expected_ptr); in CheckMapRequest()
197 if (expected_ptr == actual_ptr) { in CheckMapRequest()
230 bool MemMap::CheckReservation(uint8_t* expected_ptr, in CheckReservation() argument
240 if (reservation.Begin() != expected_ptr) { in CheckReservation()
244 expected_ptr); in CheckReservation()
481 MemMap MemMap::MapFileAtAddress(uint8_t* expected_ptr, in MapFileAtAddress() argument
500 CHECK(expected_ptr != nullptr); in MapFileAtAddress()
503 DCHECK(ContainedWithinExistingMap(expected_ptr, byte_count, error_msg)) in MapFileAtAddress()
508 if (!CheckReservation(expected_ptr, byte_count, filename, *reservation, error_msg)) { in MapFileAtAddress()
530 (expected_ptr == nullptr) ? nullptr : (expected_ptr - page_offset); in MapFileAtAddress()
533 if (kRunningOnMemoryTool && kMemoryToolAddsRedzones && expected_ptr == nullptr) { in MapFileAtAddress()
561 if (!CheckMapRequest(expected_ptr, actual, page_aligned_byte_count, error_msg)) { in MapFileAtAddress()