/arkcompiler/runtime_core/libpandabase/mem/ |
D | arena-inl.h | 31 startPos_(ToVoidPtr(AlignUp(ToUintPtr(buff), GetAlignmentInBytes(start_alignment)))), in Arena() 53 curPos_ = ToVoidPtr(ToUintPtr(ret) + size); in Alloc() 67 curPos_ = ToVoidPtr(new_cur_pos); in AlignedAlloc() 104 return ToVoidPtr(size_ + ToUintPtr(buff_)); in GetArenaEnd() 109 return ToVoidPtr(ToUintPtr(GetStartPos()) + GetOccupiedSize()); in GetAllocatedEnd() 133 curPos_ = ToVoidPtr(ToUintPtr(GetStartPos()) + new_size); in Resize()
|
D | mmap_mem_pool-inl.h | 48 Pool new_pool(element_size - size, ToVoidPtr(ToUintPtr(element_mem) + size)); in PopFreePool() 130 …void *mem = panda::os::mem::MapRWAnonymousFixedRaw(ToVoidPtr(PANDA_32BITS_HEAP_START_ADDRESS), obj… in MmapMemPool() 147 … << ToVoidPtr(min_object_memory_addr_) << " Preallocated size is equal to " in MmapMemPool() 165 void *mmaped_mem_addr = ToVoidPtr(min_object_memory_addr_); in ~MmapMemPool() 194 mem = new (mem) ArenaT(size - sizeof(ArenaT), ToVoidPtr(ToUintPtr(mem) + sizeof(ArenaT))); in AllocArenaImpl() 355 …pool_map_.AddPoolToMap(ToVoidPtr(ToUintPtr(pool.GetMem()) - GetMinObjectAddress()), pool.GetSize()… in AllocPoolUnsafe() 396 pool_map_.RemovePoolFromMap(ToVoidPtr(ToUintPtr(mem) - GetMinObjectAddress()), size); in FreePoolUnsafe() 460 …AllocatorInfo info = pool_map_.GetAllocatorInfo(ToVoidPtr(ToUintPtr(addr) - GetMinObjectAddress())… in GetAllocatorInfoForAddrImpl() 473 … SpaceType space_type = pool_map_.GetSpaceType(ToVoidPtr(ToUintPtr(addr) - GetMinObjectAddress())); in GetSpaceTypeForAddrImpl() 484 …void *pool_start_addr = pool_map_.GetFirstByteOfPoolForAddr(ToVoidPtr(ToUintPtr(addr) - GetMinObje… in GetStartAddrPoolForAddrImpl() [all …]
|
D | pool_map.cpp | 30 size_t last_map_num = AddrToMapNum(ToVoidPtr(ToUintPtr(pool_addr) + pool_size - 1U)); in AddPoolToMap() 42 size_t last_map_num = AddrToMapNum(ToVoidPtr(ToUintPtr(pool_addr) + pool_size - 1U)); in RemovePoolFromMap()
|
D | arena_allocator.h | 137 curPos_ = static_cast<char *>(ToVoidPtr(ToUintPtr(ret) + size)); 155 curPos_ = static_cast<char *>(ToVoidPtr(ToUintPtr(&buff_[0]) + new_size)); in Resize()
|
D | code_allocator.cpp | 90 void *buffer_end = ToVoidPtr(ToUintPtr(ptr) + size); in CodeRangeUpdate()
|
D | pool_map.h | 166 return ToVoidPtr(map_num * POOL_MAP_GRANULARITY); in MapNumToAddr()
|
D | mmap_mem_pool.h | 241 void *mem = ToVoidPtr(min_address_ + cur_alloc_offset_); in AllocRawMem()
|
D | mem.h | 126 inline void *ToVoidPtr(uintptr_t val) in ToVoidPtr() function
|
/arkcompiler/ets_runtime/ecmascript/mem/ |
D | heap_region_allocator.cpp | 58 return new (ToVoidPtr(mem)) Region(thread, mem, begin, end, flags); in AllocateAlignedRegion() 71 if (memset_s(ToVoidPtr(allocateBase), size, INVALID_VALUE, size) != EOK) { in FreeRegion() 76 MemMapAllocator::GetInstance()->Free(ToVoidPtr(allocateBase), size, isRegular); in FreeRegion()
|
D | mem_common.h | 33 inline void *ToVoidPtr(uintptr_t val) in ToVoidPtr() function
|
D | work_manager.h | 70 auto object = ToVoidPtr(*obj); in PopObject()
|
D | parallel_evacuator.cpp | 133 if (memcpy_s(ToVoidPtr(address), size, ToVoidPtr(ToUintPtr(mem)), size) != EOK) { in EvacuateRegion()
|
D | parallel_marker-inl.h | 238 …if (memcpy_s(ToVoidPtr(toAddress + HEAD_SIZE), size - HEAD_SIZE, ToVoidPtr(ToUintPtr(object) + HEA… in UpdateForwardAddressIfSuccess()
|
D | region.h | 529 markGCBitset_ = new (ToVoidPtr(begin)) GCBitset(); in PackedData()
|
/arkcompiler/runtime_core/libpandabase/tests/ |
D | pool_map_test.cpp | 104 return ToVoidPtr(ToUintPtr(pool.GetMem()) + rand() % pool.GetSize()); in RandAddrFromPool() 147 Pool first_pool(FIRST_POOL_SIZE, ToVoidPtr(FIRST_POOL_ADDR)); 148 Pool second_pool(SECOND_POOL_SIZE, ToVoidPtr(SECOND_POOL_ADDR)); 150 …AddToPoolMap(first_pool, FIRST_SPACE_TYPE, FIRST_ALLOCATOR_TYPE, ToVoidPtr(first_pool_allocator_he… 177 Pool pool(pool_size, ToVoidPtr(POOL_START_ADDR));
|
D | mmap_fixed_test.cpp | 28 auto pointer = static_cast<uint64_t *>(ToVoidPtr(addr)); in DeathWrite64() 47 mmap(ToVoidPtr(cur_addr), MMAP_ALLOC_SIZE, MMAP_PROT_READ | MMAP_PROT_WRITE, in TEST_F()
|
D | mmap_mem_pool_test.cpp | 112 …void *first_pool_pointer = ToVoidPtr(ToUintPtr(pool_with_alloc_addr.GetMem()) + POINTER_POOL_OFFSE… 119 …void *second_pool_pointer = ToVoidPtr(ToUintPtr(pool_without_alloc_addr.GetMem()) + POINTER_POOL_O…
|
/arkcompiler/ets_runtime/ecmascript/shared_mm/ |
D | shared_mm.cpp | 26 const void *pointer = ToVoidPtr(iter->first); in ~JSSharedMemoryManager()
|
/arkcompiler/runtime_core/libpandabase/os/ |
D | mem.h | 394 return madvise(ToVoidPtr(pages_start), pages_end - pages_start, MADV_DONTNEED); in ReleasePages()
|
/arkcompiler/ets_runtime/ecmascript/snapshot/mem/ |
D | snapshot_processor.cpp | 1254 if (memcpy_s(ToVoidPtr(region->packedData_.begin_), in DeserializeSpaceObject() 1256 ToVoidPtr(objectBeginAddr), in DeserializeSpaceObject() 1306 if (memcpy_s(ToVoidPtr(region->packedData_.begin_), in DeserializeHugeSpaceObject() 1308 ToVoidPtr(copyFrom), in DeserializeHugeSpaceObject() 1364 if (memcpy_s(ToVoidPtr(newObj), strSize, str, strSize) != EOK) { in DeserializeString() 1787 if (memcpy_s(ToVoidPtr(methodObj), methodObjSize, ToVoidPtr(it), Method::Size()) != EOK) { in SerializePandaFileMethod() 1854 if (memcpy_s(ToVoidPtr(newObj), objectSize, objectHeader, objectSize) != EOK) { in EncodeTaggedObject()
|
/arkcompiler/ets_runtime/ecmascript/ |
D | js_serializer.cpp | 1749 JSHandle<JSNativePointer> np = factory_->NewJSNativePointer(ToVoidPtr(externalPtr), in ReadJSNativePointer() 1751 ToVoidPtr(allocatorPtr), in ReadJSNativePointer() 1779 void *bufferData = ToVoidPtr(*bufferAddr); in ReadJSArrayBuffer()
|