Lines Matching refs:reservation
416 void MemoryAllocator::FreeMemory(base::VirtualMemory* reservation, in FreeMemory() argument
421 !code_range()->contains(static_cast<Address>(reservation->address()))); in FreeMemory()
423 reservation->size() <= Page::kPageSize); in FreeMemory()
425 reservation->Release(); in FreeMemory()
446 base::VirtualMemory reservation(size, alignment); in ReserveAlignedMemory() local
448 if (!reservation.IsReserved()) return NULL; in ReserveAlignedMemory()
449 size_.Increment(static_cast<intptr_t>(reservation.size())); in ReserveAlignedMemory()
451 RoundUp(static_cast<Address>(reservation.address()), alignment); in ReserveAlignedMemory()
452 controller->TakeControl(&reservation); in ReserveAlignedMemory()
460 base::VirtualMemory reservation; in AllocateAlignedMemory() local
461 Address base = ReserveAlignedMemory(reserve_size, alignment, &reservation); in AllocateAlignedMemory()
465 if (!CommitExecutableMemory(&reservation, base, commit_size, in AllocateAlignedMemory()
470 if (reservation.Commit(base, commit_size, false)) { in AllocateAlignedMemory()
480 reservation.Release(); in AllocateAlignedMemory()
484 controller->TakeControl(&reservation); in AllocateAlignedMemory()
499 base::VirtualMemory* reservation) { in Initialize() argument
536 if (reservation != nullptr) { in Initialize()
537 chunk->reservation_.TakeControl(reservation); in Initialize()
624 base::VirtualMemory reservation; in AllocateChunk() local
694 &reservation); in AllocateChunk()
697 size_executable_.Increment(static_cast<intptr_t>(reservation.size())); in AllocateChunk()
715 executable, &reservation); in AllocateChunk()
739 last_chunk_.TakeControl(&reservation); in AllocateChunk()
752 executable, owner, &reservation); in AllocateChunk()
769 base::VirtualMemory* reservation = chunk->reserved_memory(); in AllocateChunk() local
770 if (reservation->IsReserved()) { in AllocateChunk()
771 size = static_cast<intptr_t>(reservation->size()); in AllocateChunk()
792 base::VirtualMemory* reservation = chunk->reserved_memory(); in AllocateChunk() local
796 if (reservation->IsReserved()) { in AllocateChunk()
797 FreeMemory(reservation, chunk->executable()); in AllocateChunk()
879 base::VirtualMemory reservation(start, size); in AllocateChunk() local
881 NOT_EXECUTABLE, owner, &reservation); in AllocateChunk()