Lines Matching refs:chunk
42 void Bitmap::Clear(MemoryChunk* chunk) {
43 Bitmap* bitmap = chunk->markbits();
45 chunk->ResetLiveBytes();
163 MemoryChunk* chunk,
166 Page* page = reinterpret_cast<Page*>(chunk);
168 ASSERT(chunk->owner() == owner);
172 heap->incremental_marking()->SetOldSpacePageFlags(chunk);
206 MemoryChunk* chunk = MemoryChunk::FromAddress(o->address());
207 if (chunk->Contains(addr)) {
208 return chunk;
219 // Need to subtract one from the mark because when a chunk is full the
220 // top points to the next address after the chunk, which effectively belongs
221 // to another chunk. See the comment to Page::FromAllocationTop.
222 MemoryChunk* chunk = MemoryChunk::FromAddress(mark - 1);
223 int new_mark = static_cast<int>(mark - chunk->address());
224 if (new_mark > chunk->high_water_mark_) {
225 chunk->high_water_mark_ = new_mark;
343 LargePage* LargePage::Initialize(Heap* heap, MemoryChunk* chunk) {
344 heap->incremental_marking()->SetOldSpacePageFlags(chunk);
345 return static_cast<LargePage*>(chunk);