5#ifndef V8_ZONE_ZONE_LIST_H_
6#define V8_ZONE_ZONE_LIST_H_
31class ZoneList final :
public ZoneObject {
116 void Add(
const T& element,
Zone* zone);
130 void Set(
int index,
const T& element);
161 if (
data_[
i] == elm)
return true;
167 template <
class Visitor>
168 void Iterate(Visitor* visitor);
171 template <
typename CompareFunction>
172 void Sort(CompareFunction cmp);
173 template <
typename CompareFunction>
V8_INLINE void Clear(Zone *zone)
V8_INLINE void DropAndClear()
V8_INLINE int capacity() const
void AddAll(const ZoneList< T > &other, Zone *zone)
T & operator[](int i) const
base::Vector< T > ToVector(int start, int length) const
void StableSort(CompareFunction cmp, size_t start, size_t length)
const_iterator end() const
base::Vector< T > AddBlock(T value, int count, Zone *zone)
ZoneList & operator=(const ZoneList &)=delete
void Set(int index, const T &element)
void Sort(CompareFunction cmp)
ZoneList(ZoneList< T > &&other) V8_NOEXCEPT
V8_INLINE int length() const
void Iterate(Visitor *visitor)
void InsertAt(int index, const T &element, Zone *zone)
void Resize(int new_capacity, Zone *zone)
ZoneList & operator=(ZoneList &&other) V8_NOEXCEPT
V8_INLINE void Rewind(int pos)
V8_INLINE bool is_empty() const
const_iterator begin() const
bool Contains(const T &elm) const
ZoneList(const ZoneList< T > &other, Zone *zone)
ZoneList(base::Vector< const T > other, Zone *zone)
base::Vector< const T > ToConstVector() const
void Add(const T &element, Zone *zone)
void ResizeAdd(const T &element, Zone *zone)
ZoneList(int capacity, Zone *zone)
void ResizeAddInternal(const T &element, Zone *zone)
ZoneList(const ZoneList &)=delete
base::Vector< T > ToVector() const
T * AllocateArray(size_t length)
#define DCHECK_LE(v1, v2)
#define DCHECK_NOT_NULL(val)
#define DCHECK_GE(v1, v2)
#define DCHECK_GT(v1, v2)