28 #ifndef V8_CIRCULAR_QUEUE_INL_H_
29 #define V8_CIRCULAR_QUEUE_INL_H_
37 void* SamplingCircularQueue::Enqueue() {
38 WrapPositionIfNeeded(&producer_pos_->enqueue_pos);
39 void* result = producer_pos_->enqueue_pos;
40 producer_pos_->enqueue_pos += record_size_;
45 void SamplingCircularQueue::WrapPositionIfNeeded(
47 if (**pos ==
kEnd) *pos = buffer_;
53 #endif // V8_CIRCULAR_QUEUE_INL_H_