Lines Matching refs:objectSize
129 Region *HugeMachineCodeSpace::AllocateFort(size_t objectSize, JSThread *thread, void *pDesc)
150 objectSize + sizeof(Region) + HUGE_OBJECT_BITSET_SIZE - desc->instructionsSize, PageSize());
169 uintptr_t HugeMachineCodeSpace::Allocate(size_t objectSize, JSThread *thread, void *pDesc,
189 region = AllocateFort(objectSize, thread, pDesc);
197 ASAN_UNPOISON_MEMORY_REGION(reinterpret_cast<void *>(region->GetBegin()), objectSize);
199 InvokeAllocationInspector(region->GetBegin(), objectSize);
204 uintptr_t HugeMachineCodeSpace::Allocate(size_t objectSize, JSThread *thread)
207 return HugeObjectSpace::Allocate(objectSize, thread);
210 uintptr_t HugeObjectSpace::Allocate(size_t objectSize, JSThread *thread, AllocateEventType allocType)
221 // In HugeObject allocation, we have a revervation of 8 bytes for markBitSet in objectSize.
223 size_t alignedSize = AlignUp(objectSize + sizeof(Region) + HUGE_OBJECT_BITSET_SIZE, PANDA_POOL_ALIGNMENT_IN_BYTES);
231 ASAN_UNPOISON_MEMORY_REGION(reinterpret_cast<void *>(region->GetBegin()), objectSize);
233 InvokeAllocationInspector(region->GetBegin(), objectSize);
277 void HugeObjectSpace::InvokeAllocationInspector(Address object, size_t objectSize)
282 if (objectSize >= allocationCounter_.NextBytes()) {
283 allocationCounter_.InvokeAllocationInspector(object, objectSize, objectSize);
285 allocationCounter_.AdvanceAllocationInspector(objectSize);