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

#include <operations.h>

Collaboration diagram for v8::internal::compiler::turboshaft::SaturatedUint8:

Public Member Functions

 SaturatedUint8 ()=default
 
void Incr ()
 
void Decr ()
 
void SetToZero ()
 
void SetToOne ()
 
bool IsZero () const
 
bool IsOne () const
 
bool IsSaturated () const
 
uint8_t Get () const
 
SaturatedUint8operator+= (const SaturatedUint8 &other)
 

Static Public Member Functions

static SaturatedUint8 FromSize (size_t value)
 

Private Member Functions

 SaturatedUint8 (uint8_t val)
 

Private Attributes

uint8_t val = 0
 

Static Private Attributes

static constexpr uint8_t kMax = std::numeric_limits<uint8_t>::max()
 

Detailed Description

Definition at line 877 of file operations.h.

Constructor & Destructor Documentation

◆ SaturatedUint8() [1/2]

v8::internal::compiler::turboshaft::SaturatedUint8::SaturatedUint8 ( )
default

◆ SaturatedUint8() [2/2]

v8::internal::compiler::turboshaft::SaturatedUint8::SaturatedUint8 ( uint8_t val)
inlineexplicitprivate

Definition at line 913 of file operations.h.

Member Function Documentation

◆ Decr()

void v8::internal::compiler::turboshaft::SaturatedUint8::Decr ( )
inline

Definition at line 886 of file operations.h.

◆ FromSize()

static SaturatedUint8 v8::internal::compiler::turboshaft::SaturatedUint8::FromSize ( size_t value)
inlinestatic

Definition at line 907 of file operations.h.

◆ Get()

uint8_t v8::internal::compiler::turboshaft::SaturatedUint8::Get ( ) const
inline

Definition at line 898 of file operations.h.

Here is the caller graph for this function:

◆ Incr()

void v8::internal::compiler::turboshaft::SaturatedUint8::Incr ( )
inline

Definition at line 881 of file operations.h.

◆ IsOne()

bool v8::internal::compiler::turboshaft::SaturatedUint8::IsOne ( ) const
inline

Definition at line 896 of file operations.h.

Here is the caller graph for this function:

◆ IsSaturated()

bool v8::internal::compiler::turboshaft::SaturatedUint8::IsSaturated ( ) const
inline

Definition at line 897 of file operations.h.

Here is the caller graph for this function:

◆ IsZero()

bool v8::internal::compiler::turboshaft::SaturatedUint8::IsZero ( ) const
inline

Definition at line 895 of file operations.h.

Here is the caller graph for this function:

◆ operator+=()

SaturatedUint8 & v8::internal::compiler::turboshaft::SaturatedUint8::operator+= ( const SaturatedUint8 & other)
inline

Definition at line 900 of file operations.h.

◆ SetToOne()

void v8::internal::compiler::turboshaft::SaturatedUint8::SetToOne ( )
inline

Definition at line 893 of file operations.h.

◆ SetToZero()

void v8::internal::compiler::turboshaft::SaturatedUint8::SetToZero ( )
inline

Definition at line 892 of file operations.h.

Member Data Documentation

◆ kMax

uint8_t v8::internal::compiler::turboshaft::SaturatedUint8::kMax = std::numeric_limits<uint8_t>::max()
staticconstexprprivate

Definition at line 915 of file operations.h.

◆ val

uint8_t v8::internal::compiler::turboshaft::SaturatedUint8::val = 0
private

Definition at line 914 of file operations.h.


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