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

#include <use-info.h>

Collaboration diagram for v8::internal::compiler::Truncation:

Public Member Functions

bool IsUnused () const
 
bool IsUsedAsBool () const
 
bool IsUsedAsWord32 () const
 
bool IsUsedAsWord64 () const
 
bool TruncatesOddballAndBigIntToNumber () const
 
bool IdentifiesUndefinedAndZero ()
 
bool IdentifiesZeroAndMinusZero () const
 
bool operator== (Truncation other) const
 
bool operator!= (Truncation other) const
 
const char * description () const
 
bool IsLessGeneralThan (Truncation other) const
 
IdentifyZeros identify_zeros () const
 

Static Public Member Functions

static Truncation None ()
 
static Truncation Bool ()
 
static Truncation Word32 ()
 
static Truncation Word64 ()
 
static Truncation OddballAndBigIntToNumber (IdentifyZeros identify_zeros=kDistinguishZeros)
 
static Truncation Any (IdentifyZeros identify_zeros=kDistinguishZeros)
 
static Truncation Generalize (Truncation t1, Truncation t2)
 

Private Types

enum class  TruncationKind : uint8_t {
  kNone , kBool , kWord32 , kWord64 ,
  kOddballAndBigIntToNumber , kAny
}
 

Private Member Functions

 Truncation (TruncationKind kind, IdentifyZeros identify_zeros)
 
TruncationKind kind () const
 

Static Private Member Functions

static TruncationKind Generalize (TruncationKind rep1, TruncationKind rep2)
 
static IdentifyZeros GeneralizeIdentifyZeros (IdentifyZeros i1, IdentifyZeros i2)
 
static bool LessGeneral (TruncationKind rep1, TruncationKind rep2)
 
static bool LessGeneralIdentifyZeros (IdentifyZeros u1, IdentifyZeros u2)
 

Private Attributes

TruncationKind kind_
 
IdentifyZeros identify_zeros_
 

Friends

class SimplifiedLoweringVerifier
 
size_t hash_value (const Truncation &truncation)
 

Detailed Description

Definition at line 26 of file use-info.h.

Member Enumeration Documentation

◆ TruncationKind

enum class v8::internal::compiler::Truncation::TruncationKind : uint8_t
strongprivate
Enumerator
kNone 
kBool 
kWord32 
kWord64 
kOddballAndBigIntToNumber 
kAny 

Definition at line 95 of file use-info.h.

Constructor & Destructor Documentation

◆ Truncation()

v8::internal::compiler::Truncation::Truncation ( TruncationKind kind,
IdentifyZeros identify_zeros )
inlineexplicitprivate

Definition at line 104 of file use-info.h.

Here is the caller graph for this function:

Member Function Documentation

◆ Any()

static Truncation v8::internal::compiler::Truncation::Any ( IdentifyZeros identify_zeros = kDistinguishZeros)
inlinestatic

Definition at line 46 of file use-info.h.

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

◆ Bool()

static Truncation v8::internal::compiler::Truncation::Bool ( )
inlinestatic

Definition at line 32 of file use-info.h.

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

◆ description()

const char * v8::internal::compiler::Truncation::description ( ) const

Definition at line 23 of file representation-change.cc.

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

◆ Generalize() [1/2]

static Truncation v8::internal::compiler::Truncation::Generalize ( Truncation t1,
Truncation t2 )
inlinestatic

Definition at line 50 of file use-info.h.

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

◆ Generalize() [2/2]

Truncation::TruncationKind v8::internal::compiler::Truncation::Generalize ( TruncationKind rep1,
TruncationKind rep2 )
staticprivate

Definition at line 74 of file representation-change.cc.

Here is the call graph for this function:

◆ GeneralizeIdentifyZeros()

IdentifyZeros v8::internal::compiler::Truncation::GeneralizeIdentifyZeros ( IdentifyZeros i1,
IdentifyZeros i2 )
staticprivate

Definition at line 93 of file representation-change.cc.

Here is the caller graph for this function:

◆ IdentifiesUndefinedAndZero()

bool v8::internal::compiler::Truncation::IdentifiesUndefinedAndZero ( )
inline

Definition at line 71 of file use-info.h.

Here is the call graph for this function:

◆ IdentifiesZeroAndMinusZero()

bool v8::internal::compiler::Truncation::IdentifiesZeroAndMinusZero ( ) const
inline

Definition at line 75 of file use-info.h.

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

◆ identify_zeros()

IdentifyZeros v8::internal::compiler::Truncation::identify_zeros ( ) const
inline

Definition at line 92 of file use-info.h.

Here is the caller graph for this function:

◆ IsLessGeneralThan()

bool v8::internal::compiler::Truncation::IsLessGeneralThan ( Truncation other) const
inline

Definition at line 87 of file use-info.h.

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

◆ IsUnused()

bool v8::internal::compiler::Truncation::IsUnused ( ) const
inline

Definition at line 57 of file use-info.h.

Here is the caller graph for this function:

◆ IsUsedAsBool()

bool v8::internal::compiler::Truncation::IsUsedAsBool ( ) const
inline

Definition at line 58 of file use-info.h.

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

◆ IsUsedAsWord32()

bool v8::internal::compiler::Truncation::IsUsedAsWord32 ( ) const
inline

Definition at line 61 of file use-info.h.

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

◆ IsUsedAsWord64()

bool v8::internal::compiler::Truncation::IsUsedAsWord64 ( ) const
inline

Definition at line 64 of file use-info.h.

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

◆ kind()

TruncationKind v8::internal::compiler::Truncation::kind ( ) const
inlineprivate

Definition at line 107 of file use-info.h.

Here is the caller graph for this function:

◆ LessGeneral()

bool v8::internal::compiler::Truncation::LessGeneral ( TruncationKind rep1,
TruncationKind rep2 )
staticprivate

Definition at line 103 of file representation-change.cc.

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

◆ LessGeneralIdentifyZeros()

bool v8::internal::compiler::Truncation::LessGeneralIdentifyZeros ( IdentifyZeros u1,
IdentifyZeros u2 )
staticprivate

Definition at line 128 of file representation-change.cc.

Here is the caller graph for this function:

◆ None()

static Truncation v8::internal::compiler::Truncation::None ( )
inlinestatic

Definition at line 29 of file use-info.h.

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

◆ OddballAndBigIntToNumber()

static Truncation v8::internal::compiler::Truncation::OddballAndBigIntToNumber ( IdentifyZeros identify_zeros = kDistinguishZeros)
inlinestatic

Definition at line 41 of file use-info.h.

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

◆ operator!=()

bool v8::internal::compiler::Truncation::operator!= ( Truncation other) const
inline

Definition at line 83 of file use-info.h.

◆ operator==()

bool v8::internal::compiler::Truncation::operator== ( Truncation other) const
inline

Definition at line 80 of file use-info.h.

Here is the call graph for this function:

◆ TruncatesOddballAndBigIntToNumber()

bool v8::internal::compiler::Truncation::TruncatesOddballAndBigIntToNumber ( ) const
inline

Definition at line 68 of file use-info.h.

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

◆ Word32()

static Truncation v8::internal::compiler::Truncation::Word32 ( )
inlinestatic

Definition at line 35 of file use-info.h.

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

◆ Word64()

static Truncation v8::internal::compiler::Truncation::Word64 ( )
inlinestatic

Definition at line 38 of file use-info.h.

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

Friends And Related Symbol Documentation

◆ hash_value

size_t hash_value ( const Truncation & truncation)
friend

Definition at line 121 of file use-info.h.

◆ SimplifiedLoweringVerifier

friend class SimplifiedLoweringVerifier
friend

Definition at line 109 of file use-info.h.

Member Data Documentation

◆ identify_zeros_

IdentifyZeros v8::internal::compiler::Truncation::identify_zeros_
private

Definition at line 112 of file use-info.h.

◆ kind_

TruncationKind v8::internal::compiler::Truncation::kind_
private

Definition at line 111 of file use-info.h.


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