Lines Matching refs:byte_count
194 static bool CheckMapRequest(byte* expected_ptr, void* actual_ptr, size_t byte_count, in CheckMapRequest() argument
205 uintptr_t limit = expected + byte_count; in CheckMapRequest()
212 int result = munmap(actual_ptr, byte_count); in CheckMapRequest()
214 PLOG(WARNING) << StringPrintf("munmap(%p, %zd) failed", actual_ptr, byte_count); in CheckMapRequest()
239 MemMap* MemMap::MapAnonymous(const char* name, byte* expected_ptr, size_t byte_count, int prot, in MapAnonymous() argument
241 if (byte_count == 0) { in MapAnonymous()
244 size_t page_aligned_byte_count = RoundUp(byte_count, kPageSize); in MapAnonymous()
382 return new MemMap(name, reinterpret_cast<byte*>(actual), byte_count, actual, in MapAnonymous()
386 MemMap* MemMap::MapFileAtAddress(byte* expected_ptr, size_t byte_count, int prot, int flags, int fd, in MapFileAtAddress() argument
401 uintptr_t limit = expected + byte_count; in MapFileAtAddress()
411 if (byte_count == 0) { in MapFileAtAddress()
418 size_t page_aligned_byte_count = RoundUp(byte_count + page_offset, kPageSize); in MapFileAtAddress()
446 return new MemMap(filename, actual + page_offset, byte_count, actual, page_aligned_byte_count, in MapFileAtAddress()