Lines Matching refs:region

18 #include "ecmascript/mem/region-inl.h"
67 void Space::ClearAndFreeRegion(Region *region, size_t cachedSize)
69 ASSERT(region != nullptr);
70 LOG_ECMA_MEM(DEBUG) << "Clear region from:" << region << " to " << ToSpaceTypeName(spaceType_);
71 region->DeleteCrossRegionRSet();
72 region->DeleteNewToEdenRSet();
73 region->DeleteOldToNewRSet();
74 region->DeleteLocalToShareRSet();
75 region->DeleteSweepingOldToNewRSet();
76 region->DeleteSweepingLocalToShareRSet();
77 DecreaseCommitted(region->GetCapacity());
78 DecreaseObjectSize(region->GetSize());
83 region->DestroyFreeObjectSets();
87 heapRegionAllocator_->FreeRegion(region, cachedSize);
113 EnumerateRegions([&](Region *region) {
117 if (!region->InRange(pc)) {
120 uintptr_t curPtr = region->GetBegin();
144 // 1. first mmap (without JIT_FORT option flag) region of size c above
156 Region *region = heapRegionAllocator_->AllocateAlignedRegion(this, allocSize, thread, heap_);
157 desc->instructionsAddr = region->GetAllocateBase() + mutableSize;
165 return region;
184 Region *region;
187 region = reinterpret_cast<Region *>(reinterpret_cast<MachineCodeDesc *>(pDesc)->hugeObjRegion);
189 region = AllocateFort(objectSize, thread, pDesc);
191 if (UNLIKELY(region == nullptr)) {
192 LOG_GC(ERROR) << "HugeMachineCodeSpace::Allocate: region is nullptr";
195 AddRegion(region);
197 ASAN_UNPOISON_MEMORY_REGION(reinterpret_cast<void *>(region->GetBegin()), objectSize);
199 InvokeAllocationInspector(region->GetBegin(), objectSize);
201 return region->GetBegin();
228 Region *region = heapRegionAllocator_->AllocateAlignedRegion(this, alignedSize, thread, heap_);
229 AddRegion(region);
231 ASAN_UNPOISON_MEMORY_REGION(reinterpret_cast<void *>(region->GetBegin()), objectSize);
233 InvokeAllocationInspector(region->GetBegin(), objectSize);
235 return region->GetBegin();
260 EnumerateRegions([&](Region *region) {
261 uintptr_t curPtr = region->GetBegin();