• Home
  • Raw
  • Download

Lines Matching refs:expected_ptr

198 static bool CheckMapRequest(uint8_t* expected_ptr, void* actual_ptr, size_t byte_count,  in CheckMapRequest()  argument
203 if (expected_ptr == nullptr) { in CheckMapRequest()
208 uintptr_t expected = reinterpret_cast<uintptr_t>(expected_ptr); in CheckMapRequest()
211 if (expected_ptr == actual_ptr) { in CheckMapRequest()
259 MemMap* MemMap::MapAnonymous(const char* name, uint8_t* expected_ptr, size_t byte_count, int prot, in MapAnonymous() argument
273 CHECK(expected_ptr != nullptr); in MapAnonymous()
275 DCHECK(ContainedWithinExistingMap(expected_ptr, byte_count, error_msg)) << *error_msg; in MapAnonymous()
314 (reinterpret_cast<uintptr_t>(expected_ptr) >> 32) != 0 || in MapAnonymous()
316 (reinterpret_cast<uintptr_t>(expected_ptr + page_aligned_byte_count) >> 32) != 0)) { in MapAnonymous()
318 expected_ptr, expected_ptr + page_aligned_byte_count); in MapAnonymous()
330 if (low_4gb && expected_ptr == nullptr) { in MapAnonymous()
411 actual = mmap(expected_ptr, page_aligned_byte_count, prot, flags, fd.get(), 0); in MapAnonymous()
417 if (low_4gb && expected_ptr == nullptr) { in MapAnonymous()
422 void* actual = mmap(expected_ptr, page_aligned_byte_count, prot, flags, fd.get(), 0); in MapAnonymous()
430 "maps in the log.", expected_ptr, page_aligned_byte_count, prot, in MapAnonymous()
435 if (!CheckMapRequest(expected_ptr, actual, page_aligned_byte_count, error_msg)) { in MapAnonymous()
450 MemMap* MemMap::MapFileAtAddress(uint8_t* expected_ptr, size_t byte_count, int prot, int flags, in MapFileAtAddress() argument
461 CHECK(expected_ptr != nullptr); in MapFileAtAddress()
463 DCHECK(ContainedWithinExistingMap(expected_ptr, byte_count, error_msg)) << *error_msg; in MapFileAtAddress()
482 (expected_ptr == nullptr) ? nullptr : (expected_ptr - page_offset); in MapFileAtAddress()
503 if (!CheckMapRequest(expected_ptr, actual, page_aligned_byte_count, error_msg)) { in MapFileAtAddress()