/arkcompiler/ets_runtime/ecmascript/mem/ |
H A D | mem_map_allocator.h | 55 MemMap GetMemFromCache([[maybe_unused]] size_t size) in GetMemFromCache() 60 MemMap mem = memMapCache_.front(); in GetMemFromCache() 64 return MemMap(); in GetMemFromCache() 67 MemMap GetRegularMemFromCommitted([[maybe_unused]] size_t size) in GetRegularMemFromCommitted() 72 MemMap mem = regularMapCommitted_.back(); in GetRegularMemFromCommitted() 76 return MemMap(); in GetRegularMemFromCommitted() 107 MemMap SplitMemFromCache(MemMap memMap) in SplitMemFromCache() 117 return MemMap(memMap.GetMem(), REGULAR_MMAP_SIZE); in SplitMemFromCache() 120 void SplitMemMapToCache(MemMap memMa [all...] |
H A D | mem_map_allocator.cpp | 34 MemMap memMap = PageMap(initialRegularObjectCapacity, PAGE_PROT_NONE, alignment, addr); in InitializeRegularRegionMap() 58 MemMap memMap = PageMap(initialHugeObjectCapacity, PAGE_PROT_NONE, alignment, addr); in InitializeHugeRegionMap() 71 MemMap hugeMemMap = PageMap(initialHugeObjectCapacity, PAGE_PROT_NONE, alignment); in InitializeHugeRegionMap() 105 MemMap MemMapAllocator::Allocate(const uint32_t threadId, size_t size, size_t alignment, in Allocate() 108 MemMap mem; in Allocate() 116 return MemMap(); in Allocate() 123 return MemMap(); in Allocate() 130 return MemMap(); in Allocate() 141 return MemMap(); in Allocate() 148 return MemMap(); in Allocate() [all...] |
H A D | linear_space.h | 124 MemMap memMap_; 125 std::deque<MemMap> freeRegions_;
|
H A D | jit_fort.h | 84 MemMap jitFortMem_;
|
/arkcompiler/ets_runtime/ecmascript/platform/ |
H A D | map.h | 25 class MemMap { class 27 MemMap() : originAddr_(nullptr), mem_(nullptr), size_(0) {} in MemMap() function in panda::ecmascript::MemMap 28 MemMap(void *mem, size_t size) : originAddr_(mem), mem_(mem), size_(size) {}; in MemMap() function in panda::ecmascript::MemMap 29 MemMap(void *originAddr, void *mem, size_t size) : originAddr_(originAddr), mem_(mem), size_(size) {}; in MemMap() function in panda::ecmascript::MemMap 30 ~MemMap() = default; 94 MemMap PUBLIC_API PageMap(size_t size, int prot = PAGE_PROT_NONE, size_t alignment = 0, void *addr = nullptr, 96 void PUBLIC_API PageUnmap(MemMap it); 97 MemMap PUBLIC_API MachineCodePageMap(size_t size, int prot = PAGE_PROT_NONE, size_t alignment = 0); 98 void PUBLIC_API MachineCodePageUnmap(MemMap it);
|
H A D | file.h | 73 MemMap PUBLIC_API FileMap(const char *fileName, int flag, int prot, int64_t offset = 0); 74 MemMap PUBLIC_API FileMapForAlignAddress(const char *fileName, int flag, int prot, 76 int PUBLIC_API FileUnMap(MemMap addr);
|
/arkcompiler/ets_runtime/ecmascript/platform/unix/ |
H A D | file.cpp | 100 MemMap FileMap(const char *fileName, int flag, int prot, int64_t offset) in FileMap() 105 return MemMap(); in FileMap() 112 return MemMap(); in FileMap() 117 return MemMap(addr, size); in FileMap() 120 MemMap FileMapForAlignAddress(const char *fileName, int flag, int prot, in FileMapForAlignAddress() 126 return MemMap(); in FileMapForAlignAddress() 133 return MemMap(); in FileMapForAlignAddress() 137 return MemMap(addr, size); in FileMapForAlignAddress() 140 int FileUnMap(MemMap addr) in FileUnMap()
|
H A D | map.cpp | 25 MemMap PageMap(size_t size, int prot, size_t alignment, void *addr, int flags) in PageMap() 44 return MemMap(result, size); in PageMap() 47 void PageUnmap(MemMap it) in PageUnmap() 52 MemMap MachineCodePageMap(size_t size, int prot, size_t alignment) in MachineCodePageMap() 54 MemMap memMap = PageMap(size, prot, alignment); in MachineCodePageMap() 59 void MachineCodePageUnmap(MemMap it) in MachineCodePageUnmap()
|
/arkcompiler/ets_runtime/ecmascript/platform/windows/ |
H A D | file.cpp | 93 MemMap FileMap(const char *fileName, int flag, int prot, int64_t offset) in FileMap() 101 return MemMap(); in FileMap() 108 return MemMap(); in FileMap() 114 return MemMap(); in FileMap() 122 return MemMap(); in FileMap() 131 return MemMap(addr, size); in FileMap() 134 MemMap FileMapForAlignAddress(const char *fileName, int flag, int prot, in FileMapForAlignAddress() 140 return MemMap(); in FileMapForAlignAddress() 143 int FileUnMap(MemMap addr) in FileUnMap()
|
H A D | map.cpp | 39 MemMap PageMap(size_t size, int prot, size_t alignment, void *addr, [[maybe_unused]] int flags) in PageMap() 55 return MemMap(result, reinterpret_cast<void *>(alignResult), size); in PageMap() 57 return MemMap(result, result, size); in PageMap() 60 void PageUnmap(MemMap it) in PageUnmap() 68 MemMap MachineCodePageMap(size_t size, int prot, size_t alignment) in MachineCodePageMap() 70 MemMap memMap = PageMap(size, prot, alignment); in MachineCodePageMap() 75 void MachineCodePageUnmap(MemMap it) in MachineCodePageUnmap()
|
/arkcompiler/ets_runtime/ecmascript/compiler/aot_file/ |
H A D | executed_memory_allocator.h | 33 MemMap buf = MachineCodePageMap(AlignUp(size, PageSize()), prot); in AllocateBuf() 41 MachineCodePageUnmap(MemMap(exeMem.addr_, exeMem.size_)); in DestroyBuf()
|
H A D | elf_reader.h | 32 ElfReader(const MemMap &fileMapMem) : fileMapMem_(fileMapMem) {}; in ElfReader() 68 MemMap fileMapMem_ {};
|
H A D | aot_file_info.h | 140 MemMap &GetFileMapMem() 151 MemMap fileMapMem_ {};
|
H A D | an_file_data_manager.h | 42 static void DestroyFileMapMem(MemMap &fileMapMem);
|
H A D | an_file_data_manager.cpp | 31 void AnFileDataManager::DestroyFileMapMem(MemMap &fileMapMem) in DestroyFileMapMem()
|
H A D | elf_checker.h | 364 explicit ElfChecker(const MemMap&);
|
H A D | an_file_info.cpp | 115 fileMapMem_ = MemMap(newBuff, buffSize); in Load()
|
H A D | elf_checker.cpp | 75 /* This function requires copying memory. Avoid using it if MemMap is avalible. */ 114 ElfChecker::ElfChecker(const MemMap& mem) : elfErrorCode_(0), fromMmap_(true) in ElfChecker()
|
/arkcompiler/ets_runtime/ecmascript/snapshot/mem/ |
H A D | snapshot.cpp | 131 MemMap &fileMap) in DeserializeInternal() 155 FileUnMap(MemMap(fileMap.GetOriginAddr(), hdr.pandaFileBegin)); in DeserializeInternal() 190 MemMap fileMap = FileMap(realPath.c_str(), FILE_RDONLY, PAGE_PROT_READWRITE); in Deserialize() 206 MemMap fileMap = {}; in Deserialize() 214 fileMap = MemMap(buff, buffSize); in Deserialize()
|
H A D | snapshot.h | 42 MemMap &fileMap);
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
H A D | mem_map_allocator_test.cpp | 35 MemMap memMap = PageMap(HUGE_OBJECT_CAPACITY, PAGE_PROT_NONE, DEFAULT_REGION_SIZE); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/ohos/ |
H A D | aot_runtime_info.h | 215 ecmascript::MemMap fileMap = ecmascript::FileMap(realPath, FILE_RDONLY, PAGE_PROT_READ); in GetRuntimeBuildId() 391 void ParseELFSectionsForBuildId(ecmascript::MemMap &fileMap, char *buildId, int length) const in ParseELFSectionsForBuildId()
|
H A D | ohos_pkg_args.h | 148 MemMap fileMapMem = FileMapForAlignAddress(realPath.c_str(), FILE_RDONLY, PAGE_PROT_READ, in GetJSPandaFile() 157 MemMap fileMapMem = FileMap(realPath.c_str(), FILE_RDONLY, PAGE_PROT_READ); in GetJSPandaFile()
|
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/ |
H A D | pgo_profiler_decoder.h | 235 MemMap fileMapAddr_;
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/llvm/ |
H A D | llvm_codegen.cpp | 106 PageUnmap(MemMap(reqSecs_, REQUIRED_SECS_LIMIT)); in ~CodeSpace() 110 PageUnmap(MemMap(unreqSecs_, UNREQUIRED_SECS_LIMIT)); in ~CodeSpace()
|