V8 Project
v8::internal::ZoneList< T > Class Template Reference

#include <zone.h>

+ Inheritance diagram for v8::internal::ZoneList< T >:
+ Collaboration diagram for v8::internal::ZoneList< T >:

Public Member Functions

 ZoneList (int capacity, Zone *zone)
 
 INLINE (void *operator new(size_t size, Zone *zone))
 
 ZoneList (const ZoneList< T > &other, Zone *zone)
 
 INLINE (void Add(const T &element, Zone *zone))
 
 INLINE (void AddAll(const List< T, ZoneAllocationPolicy > &other, Zone *zone))
 
 INLINE (void AddAll(const Vector< T > &other, Zone *zone))
 
 INLINE (void InsertAt(int index, const T &element, Zone *zone))
 
 INLINE (Vector< T > AddBlock(T value, int count, Zone *zone))
 
 INLINE (void Allocate(int length, Zone *zone))
 
 INLINE (void Initialize(int capacity, Zone *zone))
 
void operator delete (void *pointer)
 
void operator delete (void *pointer, Zone *zone)
 
- Public Member Functions inherited from v8::internal::List< T, ZoneAllocationPolicy >
 List (ZoneAllocationPolicy allocator=ZoneAllocationPolicy())
 
 INLINE (explicit List(int capacity, ZoneAllocationPolicy allocator=ZoneAllocationPolicy()))
 
 INLINE (~List())
 
 INLINE (void *operator new(size_t size, ZoneAllocationPolicy allocator=ZoneAllocationPolicy()))
 
 INLINE (void operator delete(void *p))
 
 INLINE (void operator delete(void *p, ZoneAllocationPolicy allocator))
 
 INLINE (bool is_empty() const)
 
 INLINE (int length() const)
 
 INLINE (int capacity() const)
 
 INLINE (T RemoveLast())
 
 INLINE (void Allocate(int length, ZoneAllocationPolicy allocator=ZoneAllocationPolicy()))
 
 INLINE (void Clear())
 
 INLINE (void Rewind(int pos))
 
 INLINE (void RewindBy(int count))
 
 INLINE (void Trim(ZoneAllocationPolicy allocator=ZoneAllocationPolicy()))
 
 INLINE (void Initialize(int capacity, ZoneAllocationPolicy allocator=ZoneAllocationPolicy()))
 
void Free ()
 
Toperator[] (int i) const
 
Tat (int i) const
 
Tlast () const
 
Tfirst () const
 
iterator begin () const
 
iterator end () const
 
Vector< TToVector () const
 
Vector< const TToConstVector ()
 
void Add (const T &element, ZoneAllocationPolicy allocator=ZoneAllocationPolicy())
 
void AddAll (const List< T, ZoneAllocationPolicy > &other, ZoneAllocationPolicy allocator=ZoneAllocationPolicy())
 
void AddAll (const Vector< T > &other, ZoneAllocationPolicy allocator=ZoneAllocationPolicy())
 
void InsertAt (int index, const T &element, ZoneAllocationPolicy allocator=ZoneAllocationPolicy())
 
void Set (int index, const T &element)
 
Vector< TAddBlock (T value, int count, ZoneAllocationPolicy allocator=ZoneAllocationPolicy())
 
T Remove (int i)
 
bool RemoveElement (const T &elm)
 
bool Contains (const T &elm) const
 
int CountOccurrences (const T &elm, int start, int end) const
 
void Iterate (void(*callback)(T *x))
 
void Iterate (Visitor *visitor)
 
void Sort (int(*cmp)(const T *x, const T *y))
 
void Sort ()
 

Additional Inherited Members

- Public Types inherited from v8::internal::List< T, ZoneAllocationPolicy >
typedef Titerator
 

Detailed Description

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

Definition at line 180 of file zone.h.

Constructor & Destructor Documentation

◆ ZoneList() [1/2]

template<typename T >
v8::internal::ZoneList< T >::ZoneList ( int  capacity,
Zone zone 
)
inline

Definition at line 184 of file zone.h.

185  : List<T, ZoneAllocationPolicy>(capacity, ZoneAllocationPolicy(zone)) { }

◆ ZoneList() [2/2]

template<typename T >
v8::internal::ZoneList< T >::ZoneList ( const ZoneList< T > &  other,
Zone zone 
)
inline

Definition at line 190 of file zone.h.

191  : List<T, ZoneAllocationPolicy>(other.length(),
192  ZoneAllocationPolicy(zone)) {
193  AddAll(other, zone);
194  }
void AddAll(const List< T, ZoneAllocationPolicy > &other, ZoneAllocationPolicy allocator=ZoneAllocationPolicy())

References v8::internal::List< T, ZoneAllocationPolicy >::AddAll().

+ Here is the call graph for this function:

Member Function Documentation

◆ INLINE() [1/8]

template<typename T >
v8::internal::ZoneList< T >::INLINE ( Vector< T >   AddBlockT value, int count, Zone *zone)
inline

Definition at line 211 of file zone.h.

211  {
212  return List<T, ZoneAllocationPolicy>::AddBlock(value, count,
213  ZoneAllocationPolicy(zone));
214  }
Vector< T > AddBlock(T value, int count, AllocationPolicy allocator=AllocationPolicy())
Definition: list-inl.h:77

References v8::internal::List< T, AllocationPolicy >::AddBlock().

+ Here is the call graph for this function:

◆ INLINE() [2/8]

template<typename T >
v8::internal::ZoneList< T >::INLINE ( void *operator   newsize_t size, Zone *zone)

◆ INLINE() [3/8]

template<typename T >
v8::internal::ZoneList< T >::INLINE ( void   Addconst T &element, Zone *zone)
inline

Definition at line 198 of file zone.h.

198  {
199  List<T, ZoneAllocationPolicy>::Add(element, ZoneAllocationPolicy(zone));
200  }
void Add(const T &element, AllocationPolicy allocator=AllocationPolicy())
Definition: list-inl.h:17

References v8::internal::List< T, AllocationPolicy >::Add().

+ Here is the call graph for this function:

◆ INLINE() [4/8]

template<typename T >
v8::internal::ZoneList< T >::INLINE ( void   AddAllconst List< T, ZoneAllocationPolicy > &other, Zone *zone)
inline

Definition at line 201 of file zone.h.

201  {
202  List<T, ZoneAllocationPolicy>::AddAll(other, ZoneAllocationPolicy(zone));
203  }

References v8::internal::List< T, AllocationPolicy >::AddAll().

+ Here is the call graph for this function:

◆ INLINE() [5/8]

template<typename T >
v8::internal::ZoneList< T >::INLINE ( void   AddAllconst Vector< T > &other, Zone *zone)
inline

Definition at line 204 of file zone.h.

204  {
205  List<T, ZoneAllocationPolicy>::AddAll(other, ZoneAllocationPolicy(zone));
206  }

References v8::internal::List< T, AllocationPolicy >::AddAll().

+ Here is the call graph for this function:

◆ INLINE() [6/8]

template<typename T >
v8::internal::ZoneList< T >::INLINE ( void   Allocateint length, Zone *zone)
inline

Definition at line 215 of file zone.h.

215  {
216  List<T, ZoneAllocationPolicy>::Allocate(length, ZoneAllocationPolicy(zone));
217  }

◆ INLINE() [7/8]

template<typename T >
v8::internal::ZoneList< T >::INLINE ( void   Initializeint capacity, Zone *zone)
inline

Definition at line 218 of file zone.h.

218  {
219  List<T, ZoneAllocationPolicy>::Initialize(capacity,
220  ZoneAllocationPolicy(zone));
221  }

◆ INLINE() [8/8]

template<typename T >
v8::internal::ZoneList< T >::INLINE ( void   InsertAtint index, const T &element, Zone *zone)
inline

Definition at line 207 of file zone.h.

207  {
209  ZoneAllocationPolicy(zone));
210  }
void InsertAt(int index, const T &element, AllocationPolicy allocator=AllocationPolicy())
Definition: list-inl.h:92

References v8::internal::List< T, AllocationPolicy >::InsertAt().

+ Here is the call graph for this function:

◆ operator delete() [1/2]

template<typename T >
void v8::internal::ZoneList< T >::operator delete ( void *  pointer)
inline

Definition at line 223 of file zone.h.

223 { UNREACHABLE(); }
#define UNREACHABLE()
Definition: logging.h:30

References UNREACHABLE.

◆ operator delete() [2/2]

template<typename T >
void v8::internal::ZoneList< T >::operator delete ( void *  pointer,
Zone zone 
)
inline

Definition at line 224 of file zone.h.

224 { UNREACHABLE(); }

References UNREACHABLE.


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