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

#include <utils.h>

Collaboration diagram for v8::internal::torque::Stack< T >:

Public Types

using value_type = T
 

Public Member Functions

 Stack ()=default
 
 Stack (std::initializer_list< T > initializer)
 
 Stack (std::vector< T > v)
 
size_t Size () const
 
const TPeek (BottomOffset from_bottom) const
 
void Poke (BottomOffset from_bottom, T x)
 
void Push (T x)
 
StackRange TopRange (size_t slot_count) const
 
StackRange PushMany (const std::vector< T > &v)
 
const TTop () const
 
T Pop ()
 
std::vector< TPopMany (size_t count)
 
BottomOffset AboveTop () const
 
void DeleteRange (StackRange range)
 
bool operator== (const Stack &other) const
 
bool operator!= (const Stack &other) const
 
Tbegin ()
 
Tend ()
 
const Tbegin () const
 
const Tend () const
 

Private Attributes

std::vector< Telements_
 

Detailed Description

template<class T>
class v8::internal::torque::Stack< T >

Definition at line 236 of file utils.h.

Member Typedef Documentation

◆ value_type

template<class T >
using v8::internal::torque::Stack< T >::value_type = T

Definition at line 238 of file utils.h.

Constructor & Destructor Documentation

◆ Stack() [1/3]

template<class T >
v8::internal::torque::Stack< T >::Stack ( )
default

◆ Stack() [2/3]

template<class T >
v8::internal::torque::Stack< T >::Stack ( std::initializer_list< T > initializer)
inline

Definition at line 240 of file utils.h.

◆ Stack() [3/3]

template<class T >
v8::internal::torque::Stack< T >::Stack ( std::vector< T > v)
inlineexplicit

Definition at line 242 of file utils.h.

Member Function Documentation

◆ AboveTop()

template<class T >
BottomOffset v8::internal::torque::Stack< T >::AboveTop ( ) const
inline

Definition at line 280 of file utils.h.

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

◆ begin() [1/2]

template<class T >
T * v8::internal::torque::Stack< T >::begin ( )
inline

Definition at line 298 of file utils.h.

Here is the caller graph for this function:

◆ begin() [2/2]

template<class T >
const T * v8::internal::torque::Stack< T >::begin ( ) const
inline

Definition at line 300 of file utils.h.

◆ DeleteRange()

template<class T >
void v8::internal::torque::Stack< T >::DeleteRange ( StackRange range)
inline

Definition at line 282 of file utils.h.

Here is the call graph for this function:

◆ end() [1/2]

template<class T >
T * v8::internal::torque::Stack< T >::end ( )
inline

Definition at line 299 of file utils.h.

Here is the call graph for this function:

◆ end() [2/2]

template<class T >
const T * v8::internal::torque::Stack< T >::end ( ) const
inline

Definition at line 301 of file utils.h.

Here is the call graph for this function:

◆ operator!=()

template<class T >
bool v8::internal::torque::Stack< T >::operator!= ( const Stack< T > & other) const
inline

Definition at line 294 of file utils.h.

◆ operator==()

template<class T >
bool v8::internal::torque::Stack< T >::operator== ( const Stack< T > & other) const
inline

Definition at line 291 of file utils.h.

◆ Peek()

template<class T >
const T & v8::internal::torque::Stack< T >::Peek ( BottomOffset from_bottom) const
inline

Definition at line 244 of file utils.h.

Here is the caller graph for this function:

◆ Poke()

template<class T >
void v8::internal::torque::Stack< T >::Poke ( BottomOffset from_bottom,
T x )
inline

Definition at line 247 of file utils.h.

◆ Pop()

template<class T >
T v8::internal::torque::Stack< T >::Pop ( )
inline

Definition at line 264 of file utils.h.

◆ PopMany()

template<class T >
std::vector< T > v8::internal::torque::Stack< T >::PopMany ( size_t count)
inline

Definition at line 269 of file utils.h.

◆ Push()

template<class T >
void v8::internal::torque::Stack< T >::Push ( T x)
inline

Definition at line 250 of file utils.h.

Here is the caller graph for this function:

◆ PushMany()

template<class T >
StackRange v8::internal::torque::Stack< T >::PushMany ( const std::vector< T > & v)
inline

Definition at line 257 of file utils.h.

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

◆ Size()

template<class T >
size_t v8::internal::torque::Stack< T >::Size ( ) const
inline

Definition at line 243 of file utils.h.

Here is the caller graph for this function:

◆ Top()

template<class T >
const T & v8::internal::torque::Stack< T >::Top ( ) const
inline

Definition at line 263 of file utils.h.

Here is the call graph for this function:

◆ TopRange()

template<class T >
StackRange v8::internal::torque::Stack< T >::TopRange ( size_t slot_count) const
inline

Definition at line 253 of file utils.h.

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

Member Data Documentation

◆ elements_

template<class T >
std::vector<T> v8::internal::torque::Stack< T >::elements_
private

Definition at line 304 of file utils.h.


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