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

#include <integer-literal.h>

Collaboration diagram for v8::internal::IntegerLiteral:

Public Member Functions

 IntegerLiteral (bool negative, uint64_t absolute_value)
 
template<typename T >
 IntegerLiteral (T value)
 
bool is_negative () const
 
uint64_t absolute_value () const
 
template<typename T >
bool IsRepresentableAs () const
 
template<typename T >
T To () const
 
template<typename T >
std::optional< TTryTo () const
 
int Compare (const IntegerLiteral &other) const
 
std::string ToString () const
 

Private Member Functions

template<typename T >
 IntegerLiteral (T value, bool perform_dcheck)
 

Private Attributes

bool negative_
 
uint64_t absolute_value_
 

Detailed Description

Definition at line 15 of file integer-literal.h.

Constructor & Destructor Documentation

◆ IntegerLiteral() [1/3]

v8::internal::IntegerLiteral::IntegerLiteral ( bool negative,
uint64_t absolute_value )
inline

Definition at line 17 of file integer-literal.h.

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

◆ IntegerLiteral() [2/3]

template<typename T >
v8::internal::IntegerLiteral::IntegerLiteral ( T value)
inlineexplicit

Definition at line 23 of file integer-literal.h.

◆ IntegerLiteral() [3/3]

template<typename T >
v8::internal::IntegerLiteral::IntegerLiteral ( T value,
bool perform_dcheck )
inlineexplicitprivate

Definition at line 68 of file integer-literal.h.

Here is the call graph for this function:

Member Function Documentation

◆ absolute_value()

uint64_t v8::internal::IntegerLiteral::absolute_value ( ) const
inline

Definition at line 26 of file integer-literal.h.

Here is the caller graph for this function:

◆ Compare()

int v8::internal::IntegerLiteral::Compare ( const IntegerLiteral & other) const
inline

Definition at line 53 of file integer-literal.h.

Here is the caller graph for this function:

◆ is_negative()

bool v8::internal::IntegerLiteral::is_negative ( ) const
inline

Definition at line 25 of file integer-literal.h.

Here is the caller graph for this function:

◆ IsRepresentableAs()

template<typename T >
bool v8::internal::IntegerLiteral::IsRepresentableAs ( ) const
inline

Definition at line 29 of file integer-literal.h.

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

◆ To()

template<typename T >
T v8::internal::IntegerLiteral::To ( ) const
inline

Definition at line 38 of file integer-literal.h.

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

◆ ToString()

std::string v8::internal::IntegerLiteral::ToString ( ) const
inline

Definition at line 14 of file integer-literal-inl.h.

◆ TryTo()

template<typename T >
std::optional< T > v8::internal::IntegerLiteral::TryTo ( ) const
inline

Definition at line 47 of file integer-literal.h.

Here is the call graph for this function:

Member Data Documentation

◆ absolute_value_

uint64_t v8::internal::IntegerLiteral::absolute_value_
private

Definition at line 79 of file integer-literal.h.

◆ negative_

bool v8::internal::IntegerLiteral::negative_
private

Definition at line 78 of file integer-literal.h.


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