| /arkcompiler/runtime_core/platforms/unix/libpandabase/ |
| D | mem.cpp | 31 namespace panda::os::mem { namespace 68 std::optional<Error> MakeMemWithProtFlag(void *mem, size_t size, int prot) in MakeMemWithProtFlag() 77 std::optional<Error> MakeMemReadExec(void *mem, size_t size) in MakeMemReadExec() 83 std::optional<Error> MakeMemReadWrite(void *mem, size_t size) in MakeMemReadWrite() 89 std::optional<Error> MakeMemReadOnly(void *mem, size_t size) in MakeMemReadOnly() 94 std::optional<Error> MakeMemProtected(void *mem, size_t size) in MakeMemProtected() 124 void AlignedFree(void *mem) in AlignedFree() 160 std::optional<Error> PartiallyUnmapRaw(void *mem, size_t size) in PartiallyUnmapRaw() 193 void *MapRWAnonymousFixedRaw(void *mem, size_t size, bool force_poison) in MapRWAnonymousFixedRaw() 222 std::optional<Error> UnmapRaw(void *mem, size_t size) in UnmapRaw() [all …]
|
| /arkcompiler/runtime_core/static_core/platforms/unix/libpandabase/ |
| D | mem.cpp | 32 namespace ark::os::mem { namespace 70 std::optional<Error> MakeMemWithProtFlag(void *mem, size_t size, int prot) in MakeMemWithProtFlag() 79 std::optional<Error> MakeMemReadExec(void *mem, size_t size) in MakeMemReadExec() 85 std::optional<Error> MakeMemReadWrite(void *mem, size_t size) in MakeMemReadWrite() 91 std::optional<Error> MakeMemReadOnly(void *mem, size_t size) in MakeMemReadOnly() 96 std::optional<Error> MakeMemProtected(void *mem, size_t size) in MakeMemProtected() 125 void AlignedFree(void *mem) in AlignedFree() 180 std::optional<Error> PartiallyUnmapRaw(void *mem, size_t size) in PartiallyUnmapRaw() 253 void *MapRWAnonymousFixedRaw(void *mem, size_t size, bool forcePoison) in MapRWAnonymousFixedRaw() 280 std::optional<Error> UnmapRaw(void *mem, size_t size) in UnmapRaw() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/x86_64/ |
| D | asm_assembler.cpp | 588 void AsmAssembler::Mov(InsnSize insnSize, const Mem &mem, Reg reg) in Mov() 597 void AsmAssembler::Mov(InsnSize insnSize, Reg reg, const Mem &mem) in Mov() 606 void AsmAssembler::Mov(InsnSize insnSize, const ImmOpnd &immOpnd, const Mem &mem) in Mov() 627 void AsmAssembler::MovF(const Mem &mem, Reg reg, bool isSingle) in MovF() 638 void AsmAssembler::MovF(Reg reg, const Mem &mem, bool isSingle) in MovF() 687 void AsmAssembler::Lea(InsnSize insnSize, const Mem &mem, Reg reg) in Lea() 707 void AsmAssembler::MovZx(InsnSize sSize, InsnSize dSize, const Mem &mem, Reg reg) in MovZx() 728 void AsmAssembler::MovSx(InsnSize sSize, InsnSize dSize, const Mem &mem, Reg reg) in MovSx() 757 void AsmAssembler::Add(InsnSize insnSize, const Mem &mem, Reg reg) in Add() 766 void AsmAssembler::Add(InsnSize insnSize, Reg reg, const Mem &mem) in Add() [all …]
|
| D | elf_assembler.cpp | 338 void ElfAssembler::OpMem(const Mem &mem, uint8 opCode1, uint8 opCode2, uint8 modReg) in OpMem() 369 void ElfAssembler::OpDisp(const Mem &mem) in OpDisp() 417 void ElfAssembler::OpRM(Reg reg, const Mem &mem, uint8 opCode1, uint8 opCode2, bool extInsn) in OpRM() 478 void ElfAssembler::OpImmAndMem(const ImmOpnd &immOpnd, const Mem &mem, uint8 modReg) in OpImmAndMem() 505 void ElfAssembler::MovRegAndDisp(Reg reg, const Mem &mem, uint8 opCode) in MovRegAndDisp() 1330 void ElfAssembler::Mov(InsnSize insnSize, const Mem &mem, Reg reg) in Mov() 1339 void ElfAssembler::Mov(InsnSize insnSize, Reg reg, const Mem &mem) in Mov() 1348 void ElfAssembler::Mov(InsnSize insnSize, const ImmOpnd &immOpnd, const Mem &mem) in Mov() 1385 void ElfAssembler::MovF(const Mem &mem, Reg reg, bool isSingle) in MovF() 1395 void ElfAssembler::MovF(Reg reg, const Mem &mem, bool isSingle) in MovF() [all …]
|
| /arkcompiler/runtime_core/static_core/runtime/tests/ |
| D | bitmap_clear_range_test.cpp | 24 namespace ark::mem { namespace 47 bm.IterateOverChunks([&bm](void *mem) { bm.Set(mem); }); in TEST_F() 50 …auto testTrueFn = [&bm](void *mem) { EXPECT_TRUE(bm.Test(mem)) << "address: " << mem << std::endl;… in TEST_F() 51 …auto testFalseFn = [&bm](void *mem) { EXPECT_FALSE(bm.Test(mem)) << "address: " << mem << std::end… in TEST_F()
|
| D | malloc-proxy-allocator-test.cpp | 24 namespace ark::mem { namespace 51 [[maybe_unused]] void *mem) override in AllocatedByThisAllocator() 89 auto *mem = allocator.Alloc(i); in TEST_F() local 92 for (auto *mem : v) { in TEST_F() local
|
| D | allocator_test_base.h | 108 void DeathWriteUint64(void *mem) in DeathWriteUint64() 120 size_t SetBytesFromByteArray(void *mem, size_t size) in SetBytesFromByteArray() 148 bool CompareBytesWithByteArray(void *mem, size_t size, size_t startIndexInByteArray) in CompareBytesWithByteArray() 195 void *mem = allocator.Alloc(size, Alignment(ALIGNMENT)); in OneAlignedAllocFreeTest() local 319 void *mem = allocator.Alloc(allocSize); in VisitAndRemoveFreePools() local 343 void *mem = allocator.Alloc(allocSize); in VisitAndRemoveFreePools() local 401 void *mem = allocator.Alloc(size); in AllocateFreeDifferentSizesTest() local 442 void *mem = allocator.Alloc(sizeObj); in AllocateTooBigObjectTest() local 463 void *mem = allocator.Alloc(allocSize); in AllocateTooMuchTest() local 596 void *mem = allocatedElements[i]; variable [all …]
|
| D | stack_like_allocator_test.cpp | 28 namespace ark::mem { namespace 49 …hisAllocator([[maybe_unused]] StackLikeAllocator<> &allocator, [[maybe_unused]] void *mem) override in AllocatedByThisAllocator() 57 auto mem = static_cast<uint8_t *>(dst); in PrintMemory() local 68 auto mem = static_cast<uint8_t *>(&byteArray_[idx]); in PrintAtIndex() local 151 void *mem = alloc.Alloc(FRAME_SIZE); in TEST_F() local
|
| D | tlab_test.cpp | 23 namespace ark::mem { namespace 53 void *mem = ark::os::mem::MapRWAnonymousRaw(TLAB_TEST_SIZE); in CreateNewTLAB() local 82 void *mem = tlab->Alloc(AlignUp(ALLOC_SIZE, DEFAULT_ALIGNMENT_IN_BYTES)); in TEST_F() local
|
| /arkcompiler/runtime_core/static_core/runtime/mem/ |
| D | frame_allocator-inl.h | 86 void *mem = TryToAllocate(size); in Alloc() local 112 ALWAYS_INLINE inline void FrameAllocator<ALIGNMENT, USE_MEMSET>::Free(void *mem) in Free() 141 void *mem = curArena_->Alloc(size); in TryToAllocate() local 211 auto mem = ark::os::mem::AlignedAlloc(GetAlignmentInBytes(ARENA_DEFAULT_ALIGNMENT), size); in AllocateArenaImpl() local 233 inline bool FrameAllocator<ALIGNMENT, USE_MEMSET>::Contains(void *mem) in Contains()
|
| D | humongous_obj_allocator-inl.h | 62 void *mem = nullptr; in Alloc() local 99 void HumongousObjAllocator<AllocConfigT, LockConfigT>::Free(void *mem) in Free() 106 void HumongousObjAllocator<AllocConfigT, LockConfigT>::FreeUnsafe(void *mem) in FreeUnsafe() 165 bool HumongousObjAllocator<AllocConfigT, LockConfigT>::AddMemoryPool(void *mem, size_t size) in AddMemoryPool() 287 bool HumongousObjAllocator<AllocConfigT, LockConfigT>::AllocatedByHumongousObjAllocator(void *mem) in AllocatedByHumongousObjAllocator() 294 …HumongousObjAllocator<AllocConfigT, LockConfigT>::AllocatedByHumongousObjAllocatorUnsafe(void *mem) in AllocatedByHumongousObjAllocatorUnsafe()
|
| D | heap_manager.cpp | 36 namespace ark::mem { namespace 96 …[](void *mem, [[maybe_unused]] size_t size) { PoolManager::GetMmapMemPool()->FreePool(mem, size); … in Finalize() 113 void *mem = AllocateMemoryForObject(size, align, thread, objInitType, pinned); in AllocateObject() local 141 void *mem = nullptr; in TryGCAndAlloc() local 175 void *mem = nullptr; in AllocateMemoryForObject() local 210 …void *mem = objectAllocator_.AsObjectAllocator()->AllocateNonMovable(size, align, thread, objInitT… in AllocateNonMovableObject() local 246 ObjectHeader *HeapManager::InitObjectHeaderAtMem(BaseClass *cls, void *mem) in InitObjectHeaderAtMem()
|
| /arkcompiler/runtime_core/libpandabase/mem/ |
| D | mmap_mem_pool-inl.h | 130 …void *mem = panda::os::mem::MapRWAnonymousFixedRaw(ToVoidPtr(PANDA_32BITS_HEAP_START_ADDRESS), obj… in MmapMemPool() local 135 …void *mem = panda::os::mem::MapRWAnonymousWithAlignmentRaw(object_space_size, PANDA_POOL_ALIGNMENT… in MmapMemPool() local 187 void *mem = pool_for_arena.GetMem(); in AllocArenaImpl() local 216 void *mem = nullptr; in AllocRawMemCompilerImpl() local 230 void *mem = nullptr; in AllocRawMemInternalImpl() local 244 void *mem = nullptr; in AllocRawMemCodeImpl() local 258 void *mem = common_space_.AllocRawMem(size, &common_space_pools_); in AllocRawMemObjectImpl() local 271 void *mem = nullptr; in AllocRawMemImpl() local 304 inline void MmapMemPool::FreeRawMemImpl(void *mem, size_t size) in FreeRawMemImpl() 341 void *mem = AllocRawMemImpl(size, space_type); in AllocPoolUnsafe() local [all …]
|
| /arkcompiler/ets_runtime/ecmascript/platform/windows/ |
| D | map.cpp | 84 void PageRelease([[maybe_unused]] void *mem, [[maybe_unused]] size_t size) in PageRelease() 88 void PagePreRead([[maybe_unused]] void *mem, [[maybe_unused]] size_t size) in PagePreRead() 92 void PageTag([[maybe_unused]] void *mem, [[maybe_unused]] size_t size, [[maybe_unused]] PageTagType… in PageTag() 97 void PageClearTag([[maybe_unused]] void *mem, [[maybe_unused]] size_t size) in PageClearTag() 101 bool PageProtect(void *mem, size_t size, int prot) in PageProtect()
|
| /arkcompiler/ets_runtime/ecmascript/platform/unix/ |
| D | map.cpp | 68 void PageRelease(void *mem, size_t size) in PageRelease() 73 void PagePreRead(void *mem, size_t size) in PagePreRead() 78 void PageTag(void *mem, size_t size, PageTagType type, const std::string &spaceName, const uint32_t… in PageTag() 84 void PageClearTag(void *mem, size_t size) in PageClearTag() 89 bool PageProtect(void *mem, size_t size, int prot) in PageProtect()
|
| /arkcompiler/runtime_core/platforms/unix/libpandabase/futex/ |
| D | fmutex.h | 30 #define ATOMIC_STORE(addr, val, mem) atomic_store_explicit(addr, val, mem) argument 31 #define ATOMIC_LOAD(addr, mem) atomic_load_explicit(addr, mem) argument 32 #define ATOMIC_FETCH_ADD(addr, val, mem) atomic_fetch_add_explicit(addr, val, mem) argument 33 #define ATOMIC_FETCH_SUB(addr, val, mem) atomic_fetch_sub_explicit(addr, val, mem) argument 53 #define ATOMIC_STORE(addr, val, mem) (addr)->store(val, std::mem) // NOLINT(cppcoreguideli… argument 54 #define ATOMIC_LOAD(addr, mem) (addr)->load(std::mem) // NOLINT(cppcoreguideli… argument 55 #define ATOMIC_FETCH_ADD(addr, val, mem) (addr)->fetch_add(val, std::mem) // NOLINT(cppcoreguideli… argument 56 #define ATOMIC_FETCH_SUB(addr, val, mem) (addr)->fetch_sub(val, std::mem) // NOLINT(cppcoreguideli… argument
|
| /arkcompiler/runtime_core/static_core/platforms/unix/libpandabase/futex/ |
| D | fmutex.h | 28 #define ATOMIC_STORE(addr, val, mem) atomic_store_explicit(addr, val, mem) argument 29 #define ATOMIC_LOAD(addr, mem) atomic_load_explicit(addr, mem) argument 30 #define ATOMIC_FETCH_ADD(addr, val, mem) atomic_fetch_add_explicit(addr, val, mem) argument 31 #define ATOMIC_FETCH_SUB(addr, val, mem) atomic_fetch_sub_explicit(addr, val, mem) argument 52 #define ATOMIC_STORE(addr, val, mem) (addr)->store(val, std::mem) // NOLINT(cppcoreguideli… argument 53 #define ATOMIC_LOAD(addr, mem) (addr)->load(std::mem) // NOLINT(cppcoreguideli… argument 54 #define ATOMIC_FETCH_ADD(addr, val, mem) (addr)->fetch_add(val, std::mem) // NOLINT(cppcoreguideli… argument 55 #define ATOMIC_FETCH_SUB(addr, val, mem) (addr)->fetch_sub(val, std::mem) // NOLINT(cppcoreguideli… argument
|
| /arkcompiler/runtime_core/platforms/windows/libpandabase/ |
| D | mem.cpp | 31 namespace panda::os::mem { namespace 185 std::optional<Error> MakeMemWithProtFlag(void *mem, size_t size, int prot) in MakeMemWithProtFlag() 195 std::optional<Error> MakeMemReadExec(void *mem, size_t size) in MakeMemReadExec() 201 std::optional<Error> MakeMemReadWrite(void *mem, size_t size) in MakeMemReadWrite() 207 std::optional<Error> MakeMemReadOnly(void *mem, size_t size) in MakeMemReadOnly() 212 std::optional<Error> MakeMemProtected(void *mem, size_t size) in MakeMemProtected() 239 std::optional<Error> PartiallyUnmapRaw([[maybe_unused]] void *mem, [[maybe_unused]] size_t size) in PartiallyUnmapRaw() 293 void AlignedFree(void *mem) in AlignedFree() 298 std::optional<Error> UnmapRaw(void *mem, size_t size) in UnmapRaw() 309 std::optional<Error> TagAnonymousMemory([[maybe_unused]] const void *mem, [[maybe_unused]] size_t s… in TagAnonymousMemory()
|
| /arkcompiler/runtime_core/static_core/plugins/ets/runtime/intrinsics/ |
| D | escompat_Atomics.cpp | 188 extern "C" int32_t SharedMemoryGetByteLength(EtsSharedMemory *mem) in SharedMemoryGetByteLength() 193 std::string PrintWaiters(EtsSharedMemory &mem) in PrintWaiters() 204 extern "C" int32_t SharedMemoryWaitI32(EtsSharedMemory *mem, int32_t byteOffset, int32_t expectedVa… in SharedMemoryWaitI32() 210 extern "C" int32_t SharedMemoryWaitI64(EtsSharedMemory *mem, int32_t byteOffset, int64_t expectedVa… in SharedMemoryWaitI64() 216 extern "C" int32_t SharedMemoryTimedWaitI32(EtsSharedMemory *mem, int32_t byteOffset, int32_t expec… in SharedMemoryTimedWaitI32() 224 extern "C" int32_t SharedMemoryTimedWaitI64(EtsSharedMemory *mem, int32_t byteOffset, int64_t expec… in SharedMemoryTimedWaitI64() 238 extern "C" int32_t SharedMemoryNotify(EtsSharedMemory *mem, int32_t byteOffset) in SharedMemoryNotify() 243 extern "C" int32_t SharedMemoryBoundedNotify(EtsSharedMemory *mem, int32_t byteOffset, int32_t coun… in SharedMemoryBoundedNotify()
|
| /arkcompiler/runtime_core/static_core/platforms/windows/libpandabase/ |
| D | mem.cpp | 33 namespace ark::os::mem { namespace 187 std::optional<Error> MakeMemWithProtFlag(void *mem, size_t size, int prot) in MakeMemWithProtFlag() 197 std::optional<Error> MakeMemReadExec(void *mem, size_t size) in MakeMemReadExec() 203 std::optional<Error> MakeMemReadWrite(void *mem, size_t size) in MakeMemReadWrite() 209 std::optional<Error> MakeMemReadOnly(void *mem, size_t size) in MakeMemReadOnly() 214 std::optional<Error> MakeMemProtected(void *mem, size_t size) in MakeMemProtected() 280 std::optional<Error> PartiallyUnmapRaw([[maybe_unused]] void *mem, [[maybe_unused]] size_t size) in PartiallyUnmapRaw() 336 void AlignedFree(void *mem) in AlignedFree() 341 std::optional<Error> UnmapRaw(void *mem, size_t size) in UnmapRaw() 352 std::optional<Error> TagAnonymousMemory([[maybe_unused]] const void *mem, [[maybe_unused]] size_t s… in TagAnonymousMemory()
|
| /arkcompiler/ets_runtime/ecmascript/mem/ |
| D | native_area_allocator.cpp | 34 void *mem = malloc(capacity); in AllocateArea() local 74 void NativeAreaAllocator::Free(void *mem, size_t size) in Free() 113 void NativeAreaAllocator::FreeBuffer(void *mem) in FreeBuffer()
|
| D | mem_map_allocator.cpp | 78 static bool PageProtectMem(bool machineCodeSpace, void *mem, size_t size, [[maybe_unused]] bool isE… in PageProtectMem() 109 MemMap mem; in Allocate() local 163 void MemMapAllocator::CacheOrFree(void *mem, size_t size, bool isRegular, size_t cachedSize, bool s… in CacheOrFree() 188 void MemMapAllocator::Free(void *mem, size_t size, bool isRegular) in Free()
|
| /arkcompiler/runtime_core/static_core/runtime/include/mem/ |
| D | allocator-inl.h | 26 void *mem = objectAllocator->template Alloc<NEED_LOCK>(size, align); in AllocateSafe() local 37 void *mem = nullptr; in AddPoolsAndAlloc() local 61 void *mem = nullptr; in AllocateTenuredImpl() local
|
| /arkcompiler/runtime_core/static_core/libpandabase/mem/ |
| D | stack_like_allocator-inl.h | 91 inline void StackLikeAllocator<ALIGNMENT, MAX_SIZE>::Free(void *mem) in Free() 112 inline bool StackLikeAllocator<ALIGNMENT, MAX_SIZE>::Contains(void *mem) in Contains()
|
| /arkcompiler/runtime_core/static_core/runtime/mem/gc/reference-processor/ |
| D | reference_processor.cpp | 18 namespace ark::mem { namespace
|