V8 Project
v8::internal::RingBuffer< T, MAX_SIZE >::const_iterator Class Reference

#include <gc-tracer.h>

+ Collaboration diagram for v8::internal::RingBuffer< T, MAX_SIZE >::const_iterator:

Public Member Functions

 const_iterator ()
 
 const_iterator (size_t index, const T *elements)
 
bool operator== (const const_iterator &rhs) const
 
bool operator!= (const const_iterator &rhs) const
 
 operator const T * () const
 
const Toperator-> () const
 
const Toperator* () const
 
const_iteratoroperator++ ()
 
const_iteratoroperator-- ()
 

Private Attributes

size_t index_
 
const Telements_
 

Detailed Description

template<typename T, size_t MAX_SIZE>
class v8::internal::RingBuffer< T, MAX_SIZE >::const_iterator

Definition at line 18 of file gc-tracer.h.

Constructor & Destructor Documentation

◆ const_iterator() [1/2]

template<typename T , size_t MAX_SIZE>
v8::internal::RingBuffer< T, MAX_SIZE >::const_iterator::const_iterator ( )
inline

Definition at line 20 of file gc-tracer.h.

20 : index_(0), elements_(NULL) {}
enable harmony numeric enable harmony object literal extensions Optimize object Array DOM strings and string trace pretenuring decisions of HAllocate instructions Enables optimizations which favor memory size over execution speed maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining trace the tracking of allocation sites deoptimize every n garbage collections perform array bounds checks elimination analyze liveness of environment slots and zap dead values flushes the cache of optimized code for closures on every GC allow uint32 values on optimize frames if they are used only in safe operations track concurrent recompilation artificial compilation delay in ms do not emit check maps for constant values that have a leaf deoptimize the optimized code if the layout of the maps changes enable context specialization in TurboFan execution budget before interrupt is triggered max percentage of megamorphic generic ICs to allow optimization enable use of SAHF instruction if enable use of VFP3 instructions if available enable use of NEON instructions if enable use of SDIV and UDIV instructions if enable use of MLS instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of d16 d31 registers on ARM this requires VFP3 force all emitted branches to be in long enable alignment of csp to bytes on platforms which prefer the register to always be NULL

◆ const_iterator() [2/2]

template<typename T , size_t MAX_SIZE>
v8::internal::RingBuffer< T, MAX_SIZE >::const_iterator::const_iterator ( size_t  index,
const T elements 
)
inline

Definition at line 22 of file gc-tracer.h.

23  : index_(index), elements_(elements) {}

Member Function Documentation

◆ operator const T *()

template<typename T , size_t MAX_SIZE>
v8::internal::RingBuffer< T, MAX_SIZE >::const_iterator::operator const T * ( ) const
inline

Definition at line 33 of file gc-tracer.h.

33 { return elements_ + index_; }

◆ operator!=()

template<typename T , size_t MAX_SIZE>
bool v8::internal::RingBuffer< T, MAX_SIZE >::const_iterator::operator!= ( const const_iterator rhs) const
inline

Definition at line 29 of file gc-tracer.h.

29  {
30  return elements_ != rhs.elements_ || index_ != rhs.index_;
31  }

References v8::internal::RingBuffer< T, MAX_SIZE >::const_iterator::elements_, and v8::internal::RingBuffer< T, MAX_SIZE >::const_iterator::index_.

◆ operator*()

template<typename T , size_t MAX_SIZE>
const T& v8::internal::RingBuffer< T, MAX_SIZE >::const_iterator::operator* ( ) const
inline

◆ operator++()

template<typename T , size_t MAX_SIZE>
const_iterator& v8::internal::RingBuffer< T, MAX_SIZE >::const_iterator::operator++ ( )
inline

Definition at line 39 of file gc-tracer.h.

39  {
40  index_ = (index_ + 1) % (MAX_SIZE + 1);
41  return *this;
42  }

References v8::internal::RingBuffer< T, MAX_SIZE >::const_iterator::index_.

◆ operator--()

template<typename T , size_t MAX_SIZE>
const_iterator& v8::internal::RingBuffer< T, MAX_SIZE >::const_iterator::operator-- ( )
inline

Definition at line 44 of file gc-tracer.h.

44  {
45  index_ = (index_ + MAX_SIZE) % (MAX_SIZE + 1);
46  return *this;
47  }

References v8::internal::RingBuffer< T, MAX_SIZE >::const_iterator::index_.

◆ operator->()

template<typename T , size_t MAX_SIZE>
const T* v8::internal::RingBuffer< T, MAX_SIZE >::const_iterator::operator-> ( ) const
inline

◆ operator==()

template<typename T , size_t MAX_SIZE>
bool v8::internal::RingBuffer< T, MAX_SIZE >::const_iterator::operator== ( const const_iterator rhs) const
inline

Definition at line 25 of file gc-tracer.h.

25  {
26  return elements_ == rhs.elements_ && index_ == rhs.index_;
27  }

References v8::internal::RingBuffer< T, MAX_SIZE >::const_iterator::elements_, and v8::internal::RingBuffer< T, MAX_SIZE >::const_iterator::index_.

Member Data Documentation

◆ elements_

◆ index_


The documentation for this class was generated from the following file: