![]() |
v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
|
#include <zone-list.h>
Public Types | |
| using | iterator = T* |
| using | const_iterator = const T* |
Public Member Functions | |
| ZoneList (int capacity, Zone *zone) | |
| ZoneList (const ZoneList< T > &other, Zone *zone) | |
| ZoneList (base::Vector< const T > other, Zone *zone) | |
| ZoneList (ZoneList< T > &&other) V8_NOEXCEPT | |
| ZoneList (const ZoneList &)=delete | |
| ZoneList & | operator= (const ZoneList &)=delete |
| ~ZoneList ()=default | |
| ZoneList & | operator= (ZoneList &&other) V8_NOEXCEPT |
| T & | operator[] (int i) const |
| T & | at (int i) const |
| T & | last () const |
| T & | first () const |
| iterator | begin () |
| iterator | end () |
| const_iterator | begin () const |
| const_iterator | end () const |
| V8_INLINE bool | is_empty () const |
| V8_INLINE int | length () const |
| V8_INLINE int | capacity () const |
| base::Vector< T > | ToVector () const |
| base::Vector< T > | ToVector (int start, int length) const |
| base::Vector< const T > | ToConstVector () const |
| void | Add (const T &element, Zone *zone) |
| void | AddAll (const ZoneList< T > &other, Zone *zone) |
| void | AddAll (base::Vector< const T > other, Zone *zone) |
| void | InsertAt (int index, const T &element, Zone *zone) |
| base::Vector< T > | AddBlock (T value, int count, Zone *zone) |
| void | Set (int index, const T &element) |
| T | Remove (int i) |
| V8_INLINE T | RemoveLast () |
| V8_INLINE void | Clear (Zone *zone) |
| V8_INLINE void | DropAndClear () |
| V8_INLINE void | Rewind (int pos) |
| bool | Contains (const T &elm) const |
| template<class Visitor > | |
| void | Iterate (Visitor *visitor) |
| template<typename CompareFunction > | |
| void | Sort (CompareFunction cmp) |
| template<typename CompareFunction > | |
| void | StableSort (CompareFunction cmp, size_t start, size_t length) |
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 |
Private Member Functions | |
| void | ResizeAdd (const T &element, Zone *zone) |
| void | ResizeAddInternal (const T &element, Zone *zone) |
| void | Resize (int new_capacity, Zone *zone) |
Private Attributes | |
| T * | data_ = nullptr |
| int | capacity_ = 0 |
| int | length_ = 0 |
Definition at line 18 of file zone-type-traits.h.
| using v8::internal::ZoneList< T >::const_iterator = const T* |
Definition at line 96 of file zone-list.h.
| using v8::internal::ZoneList< T >::iterator = T* |
Definition at line 92 of file zone-list.h.
|
inline |
|
inline |
|
inline |
Definition at line 57 of file zone-list.h.
|
delete |
|
default |
| void v8::internal::ZoneList< T >::Add | ( | const T & | element, |
| Zone * | zone ) |
Definition at line 19 of file zone-list-inl.h.
| void v8::internal::ZoneList< T >::AddAll | ( | base::Vector< const T > | other, |
| Zone * | zone ) |
Definition at line 33 of file zone-list-inl.h.
| base::Vector< T > v8::internal::ZoneList< T >::AddBlock | ( | T | value, |
| int | count, | ||
| Zone * | zone ) |
Definition at line 84 of file zone-list-inl.h.
|
inline |
Definition at line 88 of file zone-list.h.
|
inline |
|
inline |
Definition at line 97 of file zone-list.h.
|
inline |
| void v8::internal::ZoneList< T >::Clear | ( | Zone * | zone | ) |
Definition at line 118 of file zone-list-inl.h.
|
inline |
Definition at line 159 of file zone-list.h.
|
inline |
Definition at line 150 of file zone-list.h.
|
inline |
|
inline |
Definition at line 98 of file zone-list.h.
|
inline |
Definition at line 90 of file zone-list.h.
| void v8::internal::ZoneList< T >::InsertAt | ( | int | index, |
| const T & | element, | ||
| Zone * | zone ) |
Definition at line 97 of file zone-list-inl.h.
|
inline |
| void v8::internal::ZoneList< T >::Iterate | ( | Visitor * | visitor | ) |
Definition at line 131 of file zone-list-inl.h.
|
inline |
Definition at line 89 of file zone-list.h.
|
inline |
|
delete |
|
inline |
Definition at line 67 of file zone-list.h.
|
inline |
| T v8::internal::ZoneList< T >::Remove | ( | int | i | ) |
|
inline |
|
private |
|
private |
|
private |
Definition at line 55 of file zone-list-inl.h.
| void v8::internal::ZoneList< T >::Rewind | ( | int | pos | ) |
| void v8::internal::ZoneList< T >::Set | ( | int | index, |
| const T & | element ) |
| void v8::internal::ZoneList< T >::Sort | ( | CompareFunction | cmp | ) |
Definition at line 137 of file zone-list-inl.h.
| void v8::internal::ZoneList< T >::StableSort | ( | CompareFunction | cmp, |
| size_t | start, | ||
| size_t | length ) |
Definition at line 149 of file zone-list-inl.h.
|
inline |
|
inline |
Definition at line 104 of file zone-list.h.
|
inline |
Definition at line 105 of file zone-list.h.
|
private |
Definition at line 178 of file zone-list.h.
|
private |
Definition at line 177 of file zone-list.h.
|
private |
Definition at line 179 of file zone-list.h.