Lines Matching refs:reservation
295 void MemoryAllocator::FreeMemory(VirtualMemory* reservation, in FreeMemory() argument
298 ASSERT(reservation->IsReserved()); in FreeMemory()
299 size_t size = reservation->size(); in FreeMemory()
311 static_cast<Address>(reservation->address()))); in FreeMemory()
313 reservation->Release(); in FreeMemory()
345 VirtualMemory reservation(size, alignment); in ReserveAlignedMemory() local
347 if (!reservation.IsReserved()) return NULL; in ReserveAlignedMemory()
348 size_ += reservation.size(); in ReserveAlignedMemory()
349 Address base = RoundUp(static_cast<Address>(reservation.address()), in ReserveAlignedMemory()
351 controller->TakeControl(&reservation); in ReserveAlignedMemory()
360 VirtualMemory reservation; in AllocateAlignedMemory() local
361 Address base = ReserveAlignedMemory(size, alignment, &reservation); in AllocateAlignedMemory()
365 if (!CommitCodePage(&reservation, base, size)) { in AllocateAlignedMemory()
369 if (!reservation.Commit(base, size, false)) { in AllocateAlignedMemory()
377 reservation.Release(); in AllocateAlignedMemory()
381 controller->TakeControl(&reservation); in AllocateAlignedMemory()
496 VirtualMemory reservation; in AllocateChunk() local
525 &reservation); in AllocateChunk()
528 size_executable_ += reservation.size(); in AllocateChunk()
542 &reservation); in AllocateChunk()
570 result->set_reserved_memory(&reservation); in AllocateChunk()
610 VirtualMemory* reservation = chunk->reserved_memory(); in Free() local
611 if (reservation->IsReserved()) { in Free()
612 FreeMemory(reservation, chunk->executable()); in Free()