Lines Matching refs:buffer
232 void DeallocateBuffer(SlotsBuffer* buffer);
248 // if element of slots buffer is less than NUMBER_OF_SLOT_TYPES then it
304 static int SizeOfChain(SlotsBuffer* buffer) {
305 if (buffer == NULL) return 0;
306 return static_cast<int>(buffer->idx_ +
307 (buffer->chain_length_ - 1) * kNumberOfElements);
314 static void UpdateSlotsRecordedIn(Heap* heap, SlotsBuffer* buffer,
316 while (buffer != NULL) {
318 buffer->UpdateSlotsWithFilter(heap);
320 buffer->UpdateSlots(heap);
322 buffer = buffer->next();
328 static bool ChainLengthThresholdReached(SlotsBuffer* buffer) {
329 return buffer != NULL && buffer->chain_length_ >= kChainLengthThreshold;
335 SlotsBuffer* buffer = *buffer_address;
336 if (buffer == NULL || buffer->IsFull()) {
337 if (mode == FAIL_ON_OVERFLOW && ChainLengthThresholdReached(buffer)) {
341 buffer = allocator->AllocateBuffer(buffer);
342 *buffer_address = buffer;
344 buffer->Add(slot);
871 // Updates store buffer and slot buffer for a pointer in a migrating object.