Lines Matching refs:prev_map
37 if (prev_map == nullptr || prev_map->flags != PROT_READ) { in InitFileMemoryFromPreviousReadOnlyMap()
41 uint64_t map_size = end - prev_map->end; in InitFileMemoryFromPreviousReadOnlyMap()
42 if (!memory->Init(name, prev_map->offset, map_size)) { in InitFileMemoryFromPreviousReadOnlyMap()
51 if (!memory->Init(name, prev_map->offset, max_size)) { in InitFileMemoryFromPreviousReadOnlyMap()
55 elf_offset = offset - prev_map->offset; in InitFileMemoryFromPreviousReadOnlyMap()
56 elf_start_offset = prev_map->offset; in InitFileMemoryFromPreviousReadOnlyMap()
112 if (prev_map == nullptr || prev_map->offset != 0 || prev_map->flags != PROT_READ || in GetFileMemory()
113 prev_map->name != name) { in GetFileMemory()
172 if (offset == 0 || name.empty() || prev_map == nullptr || prev_map->name != name || in CreateMemory()
173 prev_map->offset >= offset) { in CreateMemory()
178 elf_offset = offset - prev_map->offset; in CreateMemory()
181 elf_start_offset = prev_map->offset; in CreateMemory()
185 new MemoryRange(process_memory, prev_map->start, prev_map->end - prev_map->start, 0)); in CreateMemory()
237 if (prev_map != nullptr && elf_start_offset != offset && prev_map->offset == elf_start_offset && in GetElf()
238 prev_map->name == name) { in GetElf()
239 std::lock_guard<std::mutex> guard(prev_map->mutex_); in GetElf()
240 if (prev_map->elf.get() == nullptr) { in GetElf()
241 prev_map->elf = elf; in GetElf()
242 prev_map->memory_backed_elf = memory_backed_elf; in GetElf()