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

#include <instruction.h>

Collaboration diagram for v8::internal::compiler::Constant:

Public Types

enum  Type {
  kInt32 , kInt64 , kFloat32 , kFloat64 ,
  kExternalReference , kCompressedHeapObject , kHeapObject , kRpoNumber
}
 

Public Member Functions

 Constant (int32_t v)
 
 Constant (int64_t v)
 
 Constant (float v)
 
 Constant (Float32 v)
 
 Constant (double v)
 
 Constant (Float64 v)
 
 Constant (ExternalReference ref)
 
 Constant (IndirectHandle< HeapObject > obj, bool is_compressed=false)
 
 Constant (RpoNumber rpo)
 
 Constant (RelocatablePtrConstantInfo info)
 
Type type () const
 
RelocInfo::Mode rmode () const
 
bool FitsInInt32 () const
 
int32_t ToInt32 () const
 
int64_t ToInt64 () const
 
float ToFloat32 () const
 
Float32 ToFloat32Safe () const
 
uint32_t ToFloat32AsInt () const
 
base::Double ToFloat64 () const
 
ExternalReference ToExternalReference () const
 
RpoNumber ToRpoNumber () const
 
IndirectHandle< HeapObjectToHeapObject () const
 
IndirectHandle< CodeToCode () const
 

Private Attributes

Type type_
 
RelocInfo::Mode rmode_ = RelocInfo::NO_INFO
 
int64_t value_
 

Detailed Description

Definition at line 1214 of file instruction.h.

Member Enumeration Documentation

◆ Type

Enumerator
kInt32 
kInt64 
kFloat32 
kFloat64 
kExternalReference 
kCompressedHeapObject 
kHeapObject 
kRpoNumber 

Definition at line 1216 of file instruction.h.

Constructor & Destructor Documentation

◆ Constant() [1/10]

v8::internal::compiler::Constant::Constant ( int32_t v)
explicit

Definition at line 595 of file instruction.cc.

◆ Constant() [2/10]

v8::internal::compiler::Constant::Constant ( int64_t v)
inlineexplicit

Definition at line 1228 of file instruction.h.

◆ Constant() [3/10]

v8::internal::compiler::Constant::Constant ( float v)
inlineexplicit

Definition at line 1229 of file instruction.h.

◆ Constant() [4/10]

v8::internal::compiler::Constant::Constant ( Float32 v)
inlineexplicit

Definition at line 1231 of file instruction.h.

◆ Constant() [5/10]

v8::internal::compiler::Constant::Constant ( double v)
inlineexplicit

Definition at line 1232 of file instruction.h.

◆ Constant() [6/10]

v8::internal::compiler::Constant::Constant ( Float64 v)
inlineexplicit

Definition at line 1234 of file instruction.h.

◆ Constant() [7/10]

v8::internal::compiler::Constant::Constant ( ExternalReference ref)
inlineexplicit

Definition at line 1235 of file instruction.h.

◆ Constant() [8/10]

v8::internal::compiler::Constant::Constant ( IndirectHandle< HeapObject > obj,
bool is_compressed = false )
inlineexplicit

Definition at line 1238 of file instruction.h.

◆ Constant() [9/10]

v8::internal::compiler::Constant::Constant ( RpoNumber rpo)
inlineexplicit

Definition at line 1241 of file instruction.h.

◆ Constant() [10/10]

v8::internal::compiler::Constant::Constant ( RelocatablePtrConstantInfo info)
explicit

Definition at line 597 of file instruction.cc.

Here is the call graph for this function:

Member Function Documentation

◆ FitsInInt32()

bool v8::internal::compiler::Constant::FitsInInt32 ( ) const
inline

Definition at line 1248 of file instruction.h.

◆ rmode()

RelocInfo::Mode v8::internal::compiler::Constant::rmode ( ) const
inline

Definition at line 1246 of file instruction.h.

Here is the caller graph for this function:

◆ ToCode()

IndirectHandle< Code > v8::internal::compiler::Constant::ToCode ( ) const

Definition at line 616 of file instruction.cc.

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

◆ ToExternalReference()

ExternalReference v8::internal::compiler::Constant::ToExternalReference ( ) const
inline

Definition at line 1293 of file instruction.h.

Here is the caller graph for this function:

◆ ToFloat32()

float v8::internal::compiler::Constant::ToFloat32 ( ) const
inline

Definition at line 1268 of file instruction.h.

Here is the caller graph for this function:

◆ ToFloat32AsInt()

uint32_t v8::internal::compiler::Constant::ToFloat32AsInt ( ) const
inline

Definition at line 1283 of file instruction.h.

◆ ToFloat32Safe()

Float32 v8::internal::compiler::Constant::ToFloat32Safe ( ) const
inline

Definition at line 1278 of file instruction.h.

◆ ToFloat64()

base::Double v8::internal::compiler::Constant::ToFloat64 ( ) const
inline

Definition at line 1288 of file instruction.h.

Here is the caller graph for this function:

◆ ToHeapObject()

IndirectHandle< HeapObject > v8::internal::compiler::Constant::ToHeapObject ( ) const

Definition at line 609 of file instruction.cc.

Here is the call graph for this function:

◆ ToInt32()

int32_t v8::internal::compiler::Constant::ToInt32 ( ) const
inline

Definition at line 1255 of file instruction.h.

Here is the caller graph for this function:

◆ ToInt64()

int64_t v8::internal::compiler::Constant::ToInt64 ( ) const
inline

Definition at line 1262 of file instruction.h.

Here is the caller graph for this function:

◆ ToRpoNumber()

RpoNumber v8::internal::compiler::Constant::ToRpoNumber ( ) const
inline

Definition at line 1298 of file instruction.h.

Here is the caller graph for this function:

◆ type()

Type v8::internal::compiler::Constant::type ( ) const
inline

Definition at line 1244 of file instruction.h.

Here is the caller graph for this function:

Member Data Documentation

◆ rmode_

RelocInfo::Mode v8::internal::compiler::Constant::rmode_ = RelocInfo::NO_INFO
private

Definition at line 1308 of file instruction.h.

◆ type_

Type v8::internal::compiler::Constant::type_
private

Definition at line 1307 of file instruction.h.

◆ value_

int64_t v8::internal::compiler::Constant::value_
private

Definition at line 1309 of file instruction.h.


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