/arkcompiler/runtime_core/static_core/runtime/mem/ |
H A D | region_space-inl.h | 104 auto curPtr = Begin(); in IterateOverObjects() local 106 while (curPtr < endPtr) { in IterateOverObjects() 107 auto objectHeader = reinterpret_cast<ObjectHeader *>(curPtr); in IterateOverObjects() 110 curPtr = AlignUp(curPtr + objectSize, DEFAULT_ALIGNMENT_IN_BYTES); in IterateOverObjects() 117 auto curPtr = ToUintPtr(GetLastTLAB()->GetEndAddr()); in IterateOverObjects() local 119 while (curPtr < endPtr) { in IterateOverObjects() 120 auto *objectHeader = reinterpret_cast<ObjectHeader *>(curPtr); in IterateOverObjects() 123 curPtr = AlignUp(curPtr in IterateOverObjects() [all...] |
H A D | tlab.cpp | 76 auto *curPtr = memoryStartAddr_; in IterateOverObjects() local 78 while (curPtr < endPtr) { in IterateOverObjects() 79 auto objectHeader = static_cast<ObjectHeader *>(curPtr); in IterateOverObjects() 80 size_t objectSize = GetObjectSize(curPtr); in IterateOverObjects() 82 curPtr = ToVoidPtr(AlignUp(ToUintPtr(curPtr) + objectSize, DEFAULT_ALIGNMENT_IN_BYTES)); in IterateOverObjects()
|
H A D | bump-allocator-inl.h | 163 void *curPtr = arena_.GetAllocatedStart(); in IterateOverObjects() local 165 while (curPtr < endPtr) { in IterateOverObjects() 166 auto objectHeader = static_cast<ObjectHeader *>(curPtr); in IterateOverObjects() 167 size_t objectSize = GetObjectSize(curPtr); in IterateOverObjects() 169 curPtr = ToVoidPtr(AlignUp(ToUintPtr(curPtr) + objectSize, DEFAULT_ALIGNMENT_IN_BYTES)); in IterateOverObjects()
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/mempool/src/ |
H A D | mempool.cpp | 147 DEBUG_ASSERT(endPtr >= curPtr, "endPtr should >= curPtr"); in Malloc() 148 if (size > static_cast<size_t>(endPtr - curPtr)) { in Malloc() 151 uint8_t *retPtr = curPtr; in Malloc() 152 curPtr += size; in Malloc() 163 curPtr = nullptr; in ReleaseContainingMem() 203 curPtr = newMemBlock->startPtr + size; in AllocNewMemBlock() 205 DEBUG_ASSERT(curPtr <= endPtr, "must be"); in AllocNewMemBlock() 216 curPtrPtr = &curPtr; in Malloc() 223 DEBUG_ASSERT(curEndPtr >= *curPtrPtr, "endPtr should >= curPtr"); in Malloc() [all...] |
/arkcompiler/ets_runtime/ecmascript/mem/ |
H A D | sparse_space.cpp | 293 uintptr_t curPtr = region->GetBegin(); in IterateOverObjects() 295 while (curPtr < endPtr) { in IterateOverObjects() 296 auto freeObject = FreeObject::Cast(curPtr); in IterateOverObjects() 298 // If curPtr is freeObject, It must to mark unpoison first. in IterateOverObjects() 301 auto obj = reinterpret_cast<TaggedObject *>(curPtr); in IterateOverObjects() 309 curPtr += objSize; in IterateOverObjects() 312 CHECK_REGION_END(curPtr, endPtr); in IterateOverObjects() 715 size_t MachineCodeSpace::CheckMachineCodeObject(uintptr_t curPtr, uintptr_t &machineCode, uintptr_t pc) in CheckMachineCodeObject() argument 717 auto freeObject = FreeObject::Cast(curPtr); in CheckMachineCodeObject() 720 auto obj = MachineCode::Cast(reinterpret_cast<TaggedObject*>(curPtr)); in CheckMachineCodeObject() [all...] |
H A D | linear_space.cpp | 131 auto curPtr = region->GetBegin(); in IterateOverObjects() 135 endPtr = curPtr + region->GetAllocatedBytes(top); in IterateOverObjects() 137 endPtr = curPtr + region->GetAllocatedBytes(); in IterateOverObjects() 141 while (curPtr < endPtr) { in IterateOverObjects() 142 auto freeObject = FreeObject::Cast(curPtr); in IterateOverObjects() 143 // If curPtr is freeObject, It must to mark unpoison first. in IterateOverObjects() 146 auto obj = reinterpret_cast<TaggedObject *>(curPtr); in IterateOverObjects() 154 curPtr += objSize; in IterateOverObjects() 157 CHECK_REGION_END(curPtr, endPtr); in IterateOverObjects()
|
H A D | space.cpp | 120 uintptr_t curPtr = region->GetBegin(); in GetMachineCodeObject() 121 auto obj = MachineCode::Cast(reinterpret_cast<TaggedObject*>(curPtr)); in GetMachineCodeObject() 123 machineCode = curPtr; in GetMachineCodeObject() 261 uintptr_t curPtr = region->GetBegin(); in IterateOverObjects() 262 objectVisitor(reinterpret_cast<TaggedObject *>(curPtr)); in IterateOverObjects()
|
H A D | parallel_evacuator.cpp | 504 auto curPtr = region->GetBegin(); in UpdateNewRegionReference() local 508 endPtr = curPtr + region->GetAllocatedBytes(top); in UpdateNewRegionReference() 510 endPtr = curPtr + region->GetAllocatedBytes(); in UpdateNewRegionReference() 514 while (curPtr < endPtr) { in UpdateNewRegionReference() 515 auto freeObject = FreeObject::Cast(curPtr); in UpdateNewRegionReference() 516 // If curPtr is freeObject, It must to mark unpoison first. in UpdateNewRegionReference() 519 auto obj = reinterpret_cast<TaggedObject *>(curPtr); in UpdateNewRegionReference() 528 curPtr += objSize; in UpdateNewRegionReference() 531 CHECK_REGION_END(curPtr, endPtr); in UpdateNewRegionReference()
|
H A D | sparse_space.h | 275 size_t CheckMachineCodeObject(uintptr_t curPtr, uintptr_t &machineCode, uintptr_t pc);
|
/arkcompiler/ets_runtime/ecmascript/mem/shared_heap/ |
H A D | shared_space.cpp | 336 uintptr_t curPtr = region->GetBegin(); in IterateOverObjects() 338 while (curPtr < endPtr) { in IterateOverObjects() 339 auto freeObject = FreeObject::Cast(curPtr); in IterateOverObjects() 341 // If curPtr is freeObject, It must to mark unpoison first. in IterateOverObjects() 344 auto obj = reinterpret_cast<TaggedObject *>(curPtr); in IterateOverObjects() 352 curPtr += objSize; in IterateOverObjects() 355 CHECK_REGION_END(curPtr, endPtr); in IterateOverObjects() 558 uintptr_t curPtr = region->GetBegin(); in IterateOverObjects() 560 while (curPtr < endPtr) { in IterateOverObjects() 561 auto freeObject = FreeObject::Cast(curPtr); in IterateOverObjects() [all...] |
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/mempool/include/ |
H A D | mempool.h | 217 uint8_t *curPtr = nullptr; member in maple::MemPool 287 // reuse mempool fixedMemHead, bigMemHead, (curPtr, endPtr for fixed memory)
|
H A D | mempool_allocator.h | 78 fixedCurPtrMark(m.curPtr), in LocalMapleAllocator()
|