/arkcompiler/runtime_core/static_core/plugins/ets/runtime/intrinsics/ |
D | escompat_Atomics.cpp | 40 extern "C" int8_t SharedMemoryAt(EtsSharedMemory *mem, int32_t index) in SharedMemoryAt() 45 extern "C" EtsVoid *SharedMemorySet(EtsSharedMemory *mem, int32_t index, int8_t value) in SharedMemorySet() 51 extern "C" int32_t SharedMemoryGetByteLength(EtsSharedMemory *mem) in SharedMemoryGetByteLength() 56 extern "C" int8_t SharedMemoryAddI8(EtsSharedMemory *mem, int32_t index, int8_t value) in SharedMemoryAddI8() 63 extern "C" int8_t SharedMemoryAndI8(EtsSharedMemory *mem, int32_t index, int8_t value) in SharedMemoryAndI8() 72 extern "C" int8_t SharedMemoryCompareExchangeI8(EtsSharedMemory *mem, int32_t index, int8_t expecte… in SharedMemoryCompareExchangeI8() 82 extern "C" int8_t SharedMemoryExchangeI8(EtsSharedMemory *mem, int32_t index, int8_t value) in SharedMemoryExchangeI8() 89 extern "C" int8_t SharedMemoryLoadI8(EtsSharedMemory *mem, int32_t index) in SharedMemoryLoadI8() 96 extern "C" int8_t SharedMemoryOrI8(EtsSharedMemory *mem, int32_t index, int8_t value) in SharedMemoryOrI8() 105 extern "C" int8_t SharedMemoryStoreI8(EtsSharedMemory *mem, int32_t index, int8_t value) in SharedMemoryStoreI8() [all …]
|
/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() 123 void AlignedFree(void *mem) in AlignedFree() 159 std::optional<Error> PartiallyUnmapRaw(void *mem, size_t size) in PartiallyUnmapRaw() 192 void *MapRWAnonymousFixedRaw(void *mem, size_t size, bool force_poison) in MapRWAnonymousFixedRaw() 221 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 panda::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() 282 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 | 581 void AsmAssembler::Mov(InsnSize insnSize, const Mem &mem, Reg reg) in Mov() 590 void AsmAssembler::Mov(InsnSize insnSize, Reg reg, const Mem &mem) in Mov() 599 void AsmAssembler::Mov(InsnSize insnSize, const ImmOpnd &immOpnd, const Mem &mem) in Mov() 620 void AsmAssembler::MovF(const Mem &mem, Reg reg, bool isSingle) in MovF() 631 void AsmAssembler::MovF(Reg reg, const Mem &mem, bool isSingle) in MovF() 680 void AsmAssembler::Lea(InsnSize insnSize, const Mem &mem, Reg reg) in Lea() 700 void AsmAssembler::MovZx(InsnSize sSize, InsnSize dSize, const Mem &mem, Reg reg) in MovZx() 721 void AsmAssembler::MovSx(InsnSize sSize, InsnSize dSize, const Mem &mem, Reg reg) in MovSx() 750 void AsmAssembler::Add(InsnSize insnSize, const Mem &mem, Reg reg) in Add() 759 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() 1302 void ElfAssembler::Mov(InsnSize insnSize, const Mem &mem, Reg reg) in Mov() 1311 void ElfAssembler::Mov(InsnSize insnSize, Reg reg, const Mem &mem) in Mov() 1320 void ElfAssembler::Mov(InsnSize insnSize, const ImmOpnd &immOpnd, const Mem &mem) in Mov() 1357 void ElfAssembler::MovF(const Mem &mem, Reg reg, bool isSingle) in MovF() 1367 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 panda::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 panda::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() 149 bool CompareBytesWithByteArray(void *mem, size_t size, size_t startIndexInByteArray) in CompareBytesWithByteArray() 492 void *mem = allocator.Alloc(size, Alignment(ALIGNMENT)); in OneAlignedAllocFreeTest() local 530 void *mem = allocator.Alloc(size, Alignment(align)); in AlignedAllocFreeTest() local 563 void *mem = allocator.Alloc(allocSize); in AllocateAndFree() local 591 void *mem = allocator.Alloc(allocSize); in VisitAndRemoveFreePools() local 618 void *mem = allocator.Alloc(allocSize); in VisitAndRemoveFreePools() local 660 void *mem = allocator.Alloc(size); in AllocateFreeDifferentSizesTest() local 699 void *mem = allocator.Alloc(sizeObj); in AllocateTooBigObjectTest() local [all …]
|
D | stack_like_allocator_test.cpp | 28 namespace panda::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 panda::mem { namespace 53 void *mem = panda::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 = panda::os::mem::AlignedAlloc(GetAlignmentInBytes(ARENA_DEFAULT_ALIGNMENT), size); in AllocateArenaImpl() local 233 inline bool FrameAllocator<ALIGNMENT, USE_MEMSET>::Contains(void *mem) in Contains()
|
D | allocator.cpp | 33 namespace panda::mem { namespace 62 void ObjectAllocatorBase::MemoryInitialize(void *mem, size_t size) const in MemoryInitialize() 73 void ObjectAllocatorBase::ObjectMemoryInit(void *mem, size_t size) const in ObjectMemoryInit() 116 void *mem = nullptr; in Allocate() local 139 void *mem = nullptr; in AllocateNonMovable() local 214 [](void *mem, size_t size) { PoolManager::GetMmapMemPool()->FreePool(mem, size); }); in FreeObjectsMovedToPygoteSpace() 271 void *mem = nullptr; in Allocate() local 289 void *mem = nullptr; in AllocateNonMovable() local 406 [](void *mem, size_t size) { PoolManager::GetMmapMemPool()->FreePool(mem, size); }); in FreeObjectsMovedToPygoteSpace() 522 …[](void *mem, [[maybe_unused]] size_t size) { PoolManager::GetMmapMemPool()->FreePool(mem, size); … in ~ObjectAllocatorGen()
|
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()
|
/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 | 82 void PageRelease([[maybe_unused]] void *mem, [[maybe_unused]] size_t size) in PageRelease() 86 void PagePreRead([[maybe_unused]] void *mem, [[maybe_unused]] size_t size) in PagePreRead() 90 void PageTag([[maybe_unused]] void *mem, [[maybe_unused]] size_t size, [[maybe_unused]] PageTagType… in PageTag() 95 void PageClearTag([[maybe_unused]] void *mem, [[maybe_unused]] size_t size) in PageClearTag() 99 void PageProtect(void *mem, size_t size, int prot) in PageProtect()
|
/arkcompiler/ets_runtime/ecmascript/platform/unix/ |
D | map.cpp | 67 void PageRelease(void *mem, size_t size) in PageRelease() 72 void PagePreRead(void *mem, size_t size) in PagePreRead() 77 void PageTag(void *mem, size_t size, PageTagType type, const std::string &spaceName, const uint32_t… in PageTag() 83 void PageClearTag(void *mem, size_t size) in PageClearTag() 88 void PageProtect(void *mem, size_t size, int prot) in PageProtect()
|
/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/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/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/ets_runtime/ecmascript/mem/ |
D | native_area_allocator.cpp | 35 void *mem = malloc(capacity); in AllocateArea() local 75 void NativeAreaAllocator::Free(void *mem, size_t size) in Free() 114 void NativeAreaAllocator::FreeBuffer(void *mem) in FreeBuffer()
|
D | mem_map_allocator.cpp | 35 MemMap mem; in Allocate() local 70 void MemMapAllocator::CacheOrFree(void *mem, size_t size, bool isRegular, size_t cachedSize) in CacheOrFree() 94 void MemMapAllocator::Free(void *mem, size_t size, bool isRegular) in Free()
|
/arkcompiler/runtime_core/static_core/platforms/windows/libpandabase/ |
D | mem.cpp | 33 namespace panda::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() 335 void AlignedFree(void *mem) in AlignedFree() 340 std::optional<Error> UnmapRaw(void *mem, size_t size) in UnmapRaw() 351 std::optional<Error> TagAnonymousMemory([[maybe_unused]] const void *mem, [[maybe_unused]] size_t s… in TagAnonymousMemory()
|
/arkcompiler/runtime_core/static_core/runtime/mem/gc/g1/ |
D | card_handler.cpp | 21 namespace panda::mem { namespace 37 auto visitor = [this, &result, startAddress, endAddress](void *mem) { in Handle()
|
/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 | 92 inline void StackLikeAllocator<ALIGNMENT, MAX_SIZE>::Free(void *mem) in Free() 113 inline bool StackLikeAllocator<ALIGNMENT, MAX_SIZE>::Contains(void *mem) in Contains()
|