• Home
  • Raw
  • Download

Lines Matching refs:memory

37 bool MapInfo::InitFileMemoryFromPreviousReadOnlyMap(MemoryFileAtOffset* memory) {  in InitFileMemoryFromPreviousReadOnlyMap()  argument
45 if (!memory->Init(name(), prev_real_map()->offset(), map_size)) { in InitFileMemoryFromPreviousReadOnlyMap()
50 if (!Elf::GetInfo(memory, &max_size) || max_size < map_size) { in InitFileMemoryFromPreviousReadOnlyMap()
54 if (!memory->Init(name(), prev_real_map()->offset(), max_size)) { in InitFileMemoryFromPreviousReadOnlyMap()
64 std::unique_ptr<MemoryFileAtOffset> memory(new MemoryFileAtOffset); in GetFileMemory() local
66 if (memory->Init(name(), 0)) { in GetFileMemory()
67 return memory.release(); in GetFileMemory()
87 if (!memory->Init(name(), offset(), map_size)) { in GetFileMemory()
93 if (Elf::GetInfo(memory.get(), &max_size)) { in GetFileMemory()
96 if (memory->Init(name(), offset(), max_size)) { in GetFileMemory()
97 return memory.release(); in GetFileMemory()
100 if (memory->Init(name(), offset(), map_size)) { in GetFileMemory()
101 return memory.release(); in GetFileMemory()
106 return memory.release(); in GetFileMemory()
110 if (memory->Init(name(), 0) && Elf::IsValidElf(memory.get())) { in GetFileMemory()
119 return memory.release(); in GetFileMemory()
124 if (InitFileMemoryFromPreviousReadOnlyMap(memory.get())) { in GetFileMemory()
125 return memory.release(); in GetFileMemory()
130 if (memory->Init(name(), offset(), map_size)) { in GetFileMemory()
131 return memory.release(); in GetFileMemory()
150 Memory* memory = GetFileMemory(); in CreateMemory() local
151 if (memory != nullptr) { in CreateMemory()
152 return memory; in CreateMemory()
167 std::unique_ptr<MemoryRange> memory(new MemoryRange(process_memory, start(), end() - start(), 0)); in CreateMemory() local
168 if (Elf::IsValidElf(memory.get())) { in CreateMemory()
173 return memory.release(); in CreateMemory()
232 Memory* memory = CreateMemory(process_memory); in GetElf() local
235 delete memory; in GetElf()
240 elf().reset(new Elf(memory)); in GetElf()
310 std::unique_ptr<Memory> memory(CreateMemory(process_memory)); in GetLoadBias() local
311 cur_load_bias = Elf::GetLoadBias(memory.get()); in GetLoadBias()
346 std::unique_ptr<Memory> memory(GetFileMemory()); in GetBuildID() local
347 if (memory != nullptr) { in GetBuildID()
348 result = Elf::GetBuildID(memory.get()); in GetBuildID()