Home
last modified time | relevance | path

Searched refs:ToVoidPtr (Results 1 – 21 of 21) sorted by relevance

/arkcompiler/runtime_core/libpandabase/mem/
Darena-inl.h31 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()
Dmmap_mem_pool-inl.h48 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 …]
Dpool_map.cpp30 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()
Darena_allocator.h137 curPos_ = static_cast<char *>(ToVoidPtr(ToUintPtr(ret) + size));
155 curPos_ = static_cast<char *>(ToVoidPtr(ToUintPtr(&buff_[0]) + new_size)); in Resize()
Dcode_allocator.cpp90 void *buffer_end = ToVoidPtr(ToUintPtr(ptr) + size); in CodeRangeUpdate()
Dpool_map.h166 return ToVoidPtr(map_num * POOL_MAP_GRANULARITY); in MapNumToAddr()
Dmmap_mem_pool.h241 void *mem = ToVoidPtr(min_address_ + cur_alloc_offset_); in AllocRawMem()
Dmem.h126 inline void *ToVoidPtr(uintptr_t val) in ToVoidPtr() function
/arkcompiler/ets_runtime/ecmascript/mem/
Dheap_region_allocator.cpp58 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()
Dmem_common.h33 inline void *ToVoidPtr(uintptr_t val) in ToVoidPtr() function
Dwork_manager.h70 auto object = ToVoidPtr(*obj); in PopObject()
Dparallel_evacuator.cpp133 if (memcpy_s(ToVoidPtr(address), size, ToVoidPtr(ToUintPtr(mem)), size) != EOK) { in EvacuateRegion()
Dparallel_marker-inl.h238 …if (memcpy_s(ToVoidPtr(toAddress + HEAD_SIZE), size - HEAD_SIZE, ToVoidPtr(ToUintPtr(object) + HEA… in UpdateForwardAddressIfSuccess()
Dregion.h529 markGCBitset_ = new (ToVoidPtr(begin)) GCBitset(); in PackedData()
/arkcompiler/runtime_core/libpandabase/tests/
Dpool_map_test.cpp104 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));
Dmmap_fixed_test.cpp28 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()
Dmmap_mem_pool_test.cpp112 …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/
Dshared_mm.cpp26 const void *pointer = ToVoidPtr(iter->first); in ~JSSharedMemoryManager()
/arkcompiler/runtime_core/libpandabase/os/
Dmem.h394 return madvise(ToVoidPtr(pages_start), pages_end - pages_start, MADV_DONTNEED); in ReleasePages()
/arkcompiler/ets_runtime/ecmascript/snapshot/mem/
Dsnapshot_processor.cpp1254 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/
Djs_serializer.cpp1749 JSHandle<JSNativePointer> np = factory_->NewJSNativePointer(ToVoidPtr(externalPtr), in ReadJSNativePointer()
1751 ToVoidPtr(allocatorPtr), in ReadJSNativePointer()
1779 void *bufferData = ToVoidPtr(*bufferAddr); in ReadJSArrayBuffer()