Home | History | Annotate | Download | only in src

Lines Matching refs:MemoryAllocator

271 // MemoryAllocator
273 int MemoryAllocator::capacity_ = 0;
274 int MemoryAllocator::size_ = 0;
276 VirtualMemory* MemoryAllocator::initial_chunk_ = NULL;
281 List<MemoryAllocator::ChunkInfo> MemoryAllocator::chunks_(
283 List<int> MemoryAllocator::free_chunk_ids_(kEstimatedNumberOfChunks);
284 int MemoryAllocator::max_nof_chunks_ = 0;
285 int MemoryAllocator::top_ = 0;
288 void MemoryAllocator::Push(int free_chunk_id) {
295 int MemoryAllocator::Pop() {
301 bool MemoryAllocator::Setup(int capacity) {
327 void MemoryAllocator::TearDown() {
348 void* MemoryAllocator::AllocateRawMemory(const size_t requested,
368 void MemoryAllocator::FreeRawMemory(void* mem, size_t length) {
383 void* MemoryAllocator::ReserveInitialChunk(const size_t requested) {
412 Page* MemoryAllocator::AllocatePages(int requested_pages, int* allocated_pages,
444 Page* MemoryAllocator::CommitPages(Address start, size_t size,
469 bool MemoryAllocator::CommitBlock(Address start,
487 bool MemoryAllocator::UncommitBlock(Address start, size_t size) {
500 void MemoryAllocator::ZapBlock(Address start, size_t size) {
507 Page* MemoryAllocator
539 Page* MemoryAllocator::FreePages(Page* p) {
571 void MemoryAllocator::DeleteChunk(int chunk_id) {
593 Page* MemoryAllocator::FindFirstPageInSameChunk(Page* p) {
602 Page* MemoryAllocator::FindLastPageInSameChunk(Page* p) {
617 void MemoryAllocator::ReportStatistics() {
652 first_page_ = MemoryAllocator::CommitPages(RoundUp(start, Page::kPageSize),
656 int requested_pages = Min(MemoryAllocator::kPagesPerChunk,
659 MemoryAllocator::AllocatePages(requested_pages, &num_pages, this);
690 first_page_ = MemoryAllocator::FreePages(first_page_);
702 MemoryAllocator::ProtectChunkFromPage(page);
703 page = MemoryAllocator::FindLastPageInSameChunk(page)->next_page();
711 MemoryAllocator::UnprotectChunkFromPage(page);
712 page = MemoryAllocator::FindLastPageInSameChunk(page)->next_page();
844 int desired_pages = Min(available_pages, MemoryAllocator::kPagesPerChunk);
845 Page* p = MemoryAllocator::AllocatePages(desired_pages, &desired_pages, this);
851 MemoryAllocator::SetNextPage(last_page, p);
888 Page* p = MemoryAllocator::FreePages(top_page->next_page());
889 MemoryAllocator::SetNextPage(top_page, p);
911 last_page = MemoryAllocator::FindLastPageInSameChunk(next_page);
920 MemoryAllocator::FindLastPageInSameChunk(last_page->next_page());
940 ASSERT(MemoryAllocator::IsPageInSpace(top_page, this));
1078 MemoryAllocator::Protect(ToSpaceLow(), Capacity());
1079 MemoryAllocator::Protect(FromSpaceLow(), Capacity());
1084 MemoryAllocator::Unprotect(ToSpaceLow(), Capacity(),
1086 MemoryAllocator::Unprotect(FromSpaceLow(), Capacity(),
1206 if (!MemoryAllocator::CommitBlock(start_, capacity_, executable())) {
1216 if (!MemoryAllocator::UncommitBlock(start_, capacity_)) {
1262 if (!MemoryAllocator::CommitBlock(high(), extra, executable())) {
1275 if (!MemoryAllocator::CommitBlock(high(), delta, executable())) {
1288 if (!MemoryAllocator::UncommitBlock(high() - delta, delta)) {
1623 MemoryAllocator::ZapBlock(start, size_in_bytes);
1755 MemoryAllocator::ZapBlock(start, object_size_);
2499 void* mem = MemoryAllocator::AllocateRawMemory(requested,
2505 MemoryAllocator::FreeRawMemory(mem, *chunk_size);
2543 MemoryAllocator::FreeRawMemory(chunk->address(), chunk->size());
2556 MemoryAllocator::Protect(chunk->address(), chunk->size());
2566 MemoryAllocator::Unprotect(chunk->address(), chunk->size(),
2742 MemoryAllocator::FreeRawMemory(chunk_address, chunk_size);