Home | History | Annotate | Download | only in src

Lines Matching refs:buffer

260   void DeallocateBuffer(SlotsBuffer* buffer);
276 // if element of slots buffer is less than NUMBER_OF_SLOT_TYPES then it
313 static int SizeOfChain(SlotsBuffer* buffer) {
314 if (buffer == NULL) return 0;
315 return static_cast<int>(buffer->idx_ +
316 (buffer->chain_length_ - 1) * kNumberOfElements);
328 SlotsBuffer* buffer,
330 while (buffer != NULL) {
332 buffer->UpdateSlotsWithFilter(heap);
334 buffer->UpdateSlots(heap);
336 buffer = buffer->next();
345 static bool ChainLengthThresholdReached(SlotsBuffer* buffer) {
346 return buffer != NULL && buffer->chain_length_ >= kChainLengthThreshold;
353 SlotsBuffer* buffer = *buffer_address;
354 if (buffer == NULL || buffer->IsFull()) {
355 if (mode == FAIL_ON_OVERFLOW && ChainLengthThresholdReached(buffer)) {
359 buffer = allocator->AllocateBuffer(buffer);
360 *buffer_address = buffer;
362 buffer->Add(slot);