Lines Matching refs:space
30 Address DefaultDeserializerAllocator::AllocateRaw(AllocationSpace space, in AllocateRaw() argument
32 if (space == LO_SPACE) { in AllocateRaw()
42 } else if (space == MAP_SPACE) { in AllocateRaw()
46 DCHECK_LT(space, kNumberOfPreallocatedSpaces); in AllocateRaw()
47 Address address = high_water_[space]; in AllocateRaw()
49 high_water_[space] += size; in AllocateRaw()
52 const Heap::Reservation& reservation = reservations_[space]; in AllocateRaw()
53 int chunk_index = current_chunk_[space]; in AllocateRaw()
54 DCHECK_LE(high_water_[space], reservation[chunk_index].end); in AllocateRaw()
56 if (space == CODE_SPACE) SkipList::Update(address, size); in AllocateRaw()
61 Address DefaultDeserializerAllocator::Allocate(AllocationSpace space, in Allocate() argument
68 address = AllocateRaw(space, reserved); in Allocate()
82 return AllocateRaw(space, size); in Allocate()
86 void DefaultDeserializerAllocator::MoveToNextChunk(AllocationSpace space) { in MoveToNextChunk() argument
87 DCHECK_LT(space, kNumberOfPreallocatedSpaces); in MoveToNextChunk()
88 uint32_t chunk_index = current_chunk_[space]; in MoveToNextChunk()
89 const Heap::Reservation& reservation = reservations_[space]; in MoveToNextChunk()
91 CHECK_EQ(reservation[chunk_index].end, high_water_[space]); in MoveToNextChunk()
93 chunk_index = ++current_chunk_[space]; in MoveToNextChunk()
95 high_water_[space] = reservation[chunk_index].start; in MoveToNextChunk()
108 HeapObject* DefaultDeserializerAllocator::GetObject(AllocationSpace space, in GetObject() argument
111 DCHECK_LT(space, kNumberOfPreallocatedSpaces); in GetObject()
112 DCHECK_LE(chunk_index, current_chunk_[space]); in GetObject()
113 Address address = reservations_[space][chunk_index].start + chunk_offset; in GetObject()
221 for (int space = 0; space < kNumberOfPreallocatedSpaces; space++) { in ReservationsAreFullyUsed() local
222 const uint32_t chunk_index = current_chunk_[space]; in ReservationsAreFullyUsed()
223 if (reservations_[space].size() != chunk_index + 1) { in ReservationsAreFullyUsed()
226 if (reservations_[space][chunk_index].end != high_water_[space]) { in ReservationsAreFullyUsed()