v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::ZoneChunkList< T > Class Template Reference

#include <zone-chunk-list.h>

Inheritance diagram for v8::internal::ZoneChunkList< T >:
Collaboration diagram for v8::internal::ZoneChunkList< T >:

Classes

struct  Chunk
 
struct  SeekResult
 

Public Types

using iterator = ZoneChunkListIterator<T, false, true>
 
using const_iterator = ZoneChunkListIterator<T, false, false>
 
using reverse_iterator = ZoneChunkListIterator<T, true, true>
 
using const_reverse_iterator = ZoneChunkListIterator<T, true, false>
 

Public Member Functions

 ZoneChunkList (Zone *zone)
 
 MOVE_ONLY_NO_DEFAULT_CONSTRUCTOR (ZoneChunkList)
 
size_t size () const
 
bool empty () const
 
Tfront ()
 
const Tfront () const
 
Tback ()
 
const Tback () const
 
void push_back (const T &item)
 
void push_front (const T &item)
 
void Rewind (const size_t limit=0)
 
iterator Find (const size_t index)
 
const_iterator Find (const size_t index) const
 
ZoneChunkList< TSplitAt (iterator split_begin)
 
void Append (ZoneChunkList< T > &other)
 
void CopyTo (T *ptr)
 
iterator begin ()
 
iterator end ()
 
reverse_iterator rbegin ()
 
reverse_iterator rend ()
 
const_iterator begin () const
 
const_iterator end () const
 
const_reverse_iterator rbegin () const
 
const_reverse_iterator rend () const
 
void swap (ZoneChunkList< T > &other)
 
- Public Member Functions inherited from v8::internal::ZoneObject
void * operator new (size_t, Zone *)=delete
 
void * operator new (size_t size, void *ptr)
 
void operator delete (void *, size_t)
 
void operator delete (void *pointer, Zone *zone)=delete
 

Static Public Attributes

static constexpr uint32_t kInitialChunkCapacity = 8
 
static constexpr uint32_t kMaxChunkCapacity = 256
 

Private Member Functions

ChunkNewChunk (const uint32_t capacity)
 
SeekResult SeekIndex (size_t index) const
 

Static Private Member Functions

static uint32_t NextChunkCapacity (uint32_t previous_capacity)
 

Private Attributes

Zonezone_
 
size_t size_ = 0
 
Chunkfront_ = nullptr
 
Chunklast_nonempty_ = nullptr
 

Friends

template<typename S , bool backwards, bool modifiable>
class ZoneChunkListIterator
 

Detailed Description

template<typename T>
class v8::internal::ZoneChunkList< T >

Definition at line 39 of file zone-chunk-list.h.

Member Typedef Documentation

◆ const_iterator

template<typename T >
using v8::internal::ZoneChunkList< T >::const_iterator = ZoneChunkListIterator<T, false, false>

Definition at line 42 of file zone-chunk-list.h.

◆ const_reverse_iterator

template<typename T >
using v8::internal::ZoneChunkList< T >::const_reverse_iterator = ZoneChunkListIterator<T, true, false>

Definition at line 44 of file zone-chunk-list.h.

◆ iterator

template<typename T >
using v8::internal::ZoneChunkList< T >::iterator = ZoneChunkListIterator<T, false, true>

Definition at line 41 of file zone-chunk-list.h.

◆ reverse_iterator

template<typename T >
using v8::internal::ZoneChunkList< T >::reverse_iterator = ZoneChunkListIterator<T, true, true>

Definition at line 43 of file zone-chunk-list.h.

Constructor & Destructor Documentation

◆ ZoneChunkList()

template<typename T >
v8::internal::ZoneChunkList< T >::ZoneChunkList ( Zone * zone)
inlineexplicit

Definition at line 49 of file zone-chunk-list.h.

Member Function Documentation

◆ Append()

template<typename T >
void v8::internal::ZoneChunkList< T >::Append ( ZoneChunkList< T > & other)

Definition at line 501 of file zone-chunk-list.h.

◆ back() [1/2]

template<typename T >
T & v8::internal::ZoneChunkList< T >::back ( )

Definition at line 323 of file zone-chunk-list.h.

◆ back() [2/2]

template<typename T >
const T & v8::internal::ZoneChunkList< T >::back ( ) const

Definition at line 331 of file zone-chunk-list.h.

◆ begin() [1/2]

template<typename T >
iterator v8::internal::ZoneChunkList< T >::begin ( )
inline

Definition at line 87 of file zone-chunk-list.h.

Here is the call graph for this function:

◆ begin() [2/2]

template<typename T >
const_iterator v8::internal::ZoneChunkList< T >::begin ( ) const
inline

Definition at line 91 of file zone-chunk-list.h.

Here is the call graph for this function:

◆ CopyTo()

template<typename T >
void v8::internal::ZoneChunkList< T >::CopyTo ( T * ptr)

Definition at line 523 of file zone-chunk-list.h.

Here is the call graph for this function:

◆ empty()

template<typename T >
bool v8::internal::ZoneChunkList< T >::empty ( ) const
inline

Definition at line 54 of file zone-chunk-list.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ end() [1/2]

template<typename T >
iterator v8::internal::ZoneChunkList< T >::end ( )
inline

Definition at line 88 of file zone-chunk-list.h.

Here is the call graph for this function:

◆ end() [2/2]

template<typename T >
const_iterator v8::internal::ZoneChunkList< T >::end ( ) const
inline

Definition at line 92 of file zone-chunk-list.h.

Here is the call graph for this function:

◆ Find() [1/2]

template<typename T >
ZoneChunkList< T >::iterator v8::internal::ZoneChunkList< T >::Find ( const size_t index)

Definition at line 425 of file zone-chunk-list.h.

◆ Find() [2/2]

template<typename T >
ZoneChunkList< T >::const_iterator v8::internal::ZoneChunkList< T >::Find ( const size_t index) const

Definition at line 432 of file zone-chunk-list.h.

◆ front() [1/2]

template<typename T >
T & v8::internal::ZoneChunkList< T >::front ( )

Definition at line 311 of file zone-chunk-list.h.

◆ front() [2/2]

template<typename T >
const T & v8::internal::ZoneChunkList< T >::front ( ) const

Definition at line 317 of file zone-chunk-list.h.

◆ MOVE_ONLY_NO_DEFAULT_CONSTRUCTOR()

template<typename T >
v8::internal::ZoneChunkList< T >::MOVE_ONLY_NO_DEFAULT_CONSTRUCTOR ( ZoneChunkList< T > )

◆ NewChunk()

template<typename T >
Chunk * v8::internal::ZoneChunkList< T >::NewChunk ( const uint32_t capacity)
inlineprivate

Definition at line 126 of file zone-chunk-list.h.

Here is the call graph for this function:

◆ NextChunkCapacity()

template<typename T >
static uint32_t v8::internal::ZoneChunkList< T >::NextChunkCapacity ( uint32_t previous_capacity)
inlinestaticprivate

Definition at line 133 of file zone-chunk-list.h.

◆ push_back()

template<typename T >
void v8::internal::ZoneChunkList< T >::push_back ( const T & item)

Definition at line 339 of file zone-chunk-list.h.

Here is the caller graph for this function:

◆ push_front()

template<typename T >
void v8::internal::ZoneChunkList< T >::push_front ( const T & item)

Definition at line 362 of file zone-chunk-list.h.

◆ rbegin() [1/2]

template<typename T >
reverse_iterator v8::internal::ZoneChunkList< T >::rbegin ( )
inline

Definition at line 89 of file zone-chunk-list.h.

Here is the call graph for this function:

◆ rbegin() [2/2]

template<typename T >
const_reverse_iterator v8::internal::ZoneChunkList< T >::rbegin ( ) const
inline

Definition at line 93 of file zone-chunk-list.h.

Here is the call graph for this function:

◆ rend() [1/2]

template<typename T >
reverse_iterator v8::internal::ZoneChunkList< T >::rend ( )
inline

Definition at line 90 of file zone-chunk-list.h.

Here is the call graph for this function:

◆ rend() [2/2]

template<typename T >
const_reverse_iterator v8::internal::ZoneChunkList< T >::rend ( ) const
inline

Definition at line 96 of file zone-chunk-list.h.

Here is the call graph for this function:

◆ Rewind()

template<typename T >
void v8::internal::ZoneChunkList< T >::Rewind ( const size_t limit = 0)

Definition at line 399 of file zone-chunk-list.h.

◆ SeekIndex()

template<typename T >
ZoneChunkList< T >::SeekResult v8::internal::ZoneChunkList< T >::SeekIndex ( size_t index) const
private

Definition at line 386 of file zone-chunk-list.h.

◆ size()

template<typename T >
size_t v8::internal::ZoneChunkList< T >::size ( ) const
inline

Definition at line 53 of file zone-chunk-list.h.

Here is the caller graph for this function:

◆ SplitAt()

template<typename T >
ZoneChunkList< T > v8::internal::ZoneChunkList< T >::SplitAt ( iterator split_begin)

Definition at line 440 of file zone-chunk-list.h.

Here is the call graph for this function:

◆ swap()

template<typename T >
void v8::internal::ZoneChunkList< T >::swap ( ZoneChunkList< T > & other)
inline

Definition at line 100 of file zone-chunk-list.h.

Friends And Related Symbol Documentation

◆ ZoneChunkListIterator

template<typename T >
template<typename S , bool backwards, bool modifiable>
friend class ZoneChunkListIterator
friend

Definition at line 109 of file zone-chunk-list.h.

Member Data Documentation

◆ front_

template<typename T >
Chunk* v8::internal::ZoneChunkList< T >::front_ = nullptr
private

Definition at line 183 of file zone-chunk-list.h.

◆ kInitialChunkCapacity

template<typename T >
uint32_t v8::internal::ZoneChunkList< T >::kInitialChunkCapacity = 8
staticconstexpr

Definition at line 46 of file zone-chunk-list.h.

◆ kMaxChunkCapacity

template<typename T >
uint32_t v8::internal::ZoneChunkList< T >::kMaxChunkCapacity = 256
staticconstexpr

Definition at line 47 of file zone-chunk-list.h.

◆ last_nonempty_

template<typename T >
Chunk* v8::internal::ZoneChunkList< T >::last_nonempty_ = nullptr
private

Definition at line 184 of file zone-chunk-list.h.

◆ size_

template<typename T >
size_t v8::internal::ZoneChunkList< T >::size_ = 0
private

Definition at line 182 of file zone-chunk-list.h.

◆ zone_

template<typename T >
Zone* v8::internal::ZoneChunkList< T >::zone_
private

Definition at line 180 of file zone-chunk-list.h.


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