• Home
  • Raw
  • Download

Lines Matching refs:expected_ptr

194 static bool CheckMapRequest(byte* expected_ptr, void* actual_ptr, size_t byte_count,  in CheckMapRequest()  argument
199 if (expected_ptr == nullptr) { in CheckMapRequest()
204 uintptr_t expected = reinterpret_cast<uintptr_t>(expected_ptr); in CheckMapRequest()
207 if (expected_ptr == actual_ptr) { in CheckMapRequest()
239 MemMap* MemMap::MapAnonymous(const char* name, byte* expected_ptr, size_t byte_count, int prot, in MapAnonymous() argument
282 (reinterpret_cast<uintptr_t>(expected_ptr) >> 32) != 0 || in MapAnonymous()
284 (reinterpret_cast<uintptr_t>(expected_ptr + page_aligned_byte_count) >> 32) != 0)) { in MapAnonymous()
286 expected_ptr, expected_ptr + page_aligned_byte_count); in MapAnonymous()
298 if (low_4gb && expected_ptr == nullptr) { in MapAnonymous()
354 actual = mmap(expected_ptr, page_aligned_byte_count, prot, flags, fd.get(), 0); in MapAnonymous()
360 if (low_4gb && expected_ptr == nullptr) { in MapAnonymous()
365 void* actual = mmap(expected_ptr, page_aligned_byte_count, prot, flags, fd.get(), 0); in MapAnonymous()
374 expected_ptr, page_aligned_byte_count, prot, flags, fd.get(), in MapAnonymous()
379 if (!CheckMapRequest(expected_ptr, actual, page_aligned_byte_count, error_msg)) { in MapAnonymous()
386 MemMap* MemMap::MapFileAtAddress(byte* expected_ptr, size_t byte_count, int prot, int flags, int fd, in MapFileAtAddress() argument
397 CHECK(expected_ptr != nullptr); in MapFileAtAddress()
400 uintptr_t expected = reinterpret_cast<uintptr_t>(expected_ptr); in MapFileAtAddress()
421 byte* page_aligned_expected = (expected_ptr == nullptr) ? nullptr : (expected_ptr - page_offset); in MapFileAtAddress()
443 if (!CheckMapRequest(expected_ptr, actual, page_aligned_byte_count, error_msg)) { in MapFileAtAddress()