Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QV4::Compiler::Codegen::RValue Class Reference

#include <qv4codegen_p.h>

+ Collaboration diagram for QV4::Compiler::Codegen::RValue:

Public Member Functions

bool operator== (const RValue &other) const
 
bool isValid () const
 
bool isAccumulator () const
 
bool isStackSlot () const
 
bool isConst () const
 
Moth::StackSlot stackSlot () const
 
QV4::ReturnedValue constantValue () const
 
Q_REQUIRED_RESULT RValue storeOnStack () const
 
void loadInAccumulator () const
 

Static Public Member Functions

static RValue fromStackSlot (Codegen *codegen, Moth::StackSlot stackSlot)
 
static RValue fromAccumulator (Codegen *codegen)
 
static RValue fromConst (Codegen *codegen, QV4::ReturnedValue value)
 

Detailed Description

Definition at line 101 of file qv4codegen_p.h.

Member Function Documentation

◆ constantValue()

QV4::ReturnedValue QV4::Compiler::Codegen::RValue::constantValue ( ) const
inline

Definition at line 148 of file qv4codegen_p.h.

References constant(), and Q_ASSERT.

Referenced by QV4::Compiler::Codegen::Reference::baseObject().

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

◆ fromAccumulator()

static RValue QV4::Compiler::Codegen::RValue::fromAccumulator ( Codegen codegen)
inlinestatic

Definition at line 122 of file qv4codegen_p.h.

Referenced by QV4::Compiler::Codegen::Reference::asRValue().

+ Here is the caller graph for this function:

◆ fromConst()

static RValue QV4::Compiler::Codegen::RValue::fromConst ( Codegen codegen,
QV4::ReturnedValue  value 
)
inlinestatic

Definition at line 128 of file qv4codegen_p.h.

Referenced by QV4::Compiler::Codegen::Reference::asRValue().

+ Here is the caller graph for this function:

◆ fromStackSlot()

static RValue QV4::Compiler::Codegen::RValue::fromStackSlot ( Codegen codegen,
Moth::StackSlot  stackSlot 
)
inlinestatic

Definition at line 115 of file qv4codegen_p.h.

Referenced by QV4::Compiler::Codegen::Reference::asRValue(), and storeOnStack().

+ Here is the caller graph for this function:

◆ isAccumulator()

bool QV4::Compiler::Codegen::RValue::isAccumulator ( ) const
inline

Definition at line 139 of file qv4codegen_p.h.

Referenced by QV4::Compiler::Codegen::Reference::baseObject().

+ Here is the caller graph for this function:

◆ isConst()

bool QV4::Compiler::Codegen::RValue::isConst ( ) const
inline

Definition at line 141 of file qv4codegen_p.h.

Referenced by QV4::Compiler::Codegen::Reference::baseObject().

+ Here is the caller graph for this function:

◆ isStackSlot()

bool QV4::Compiler::Codegen::RValue::isStackSlot ( ) const
inline

Definition at line 140 of file qv4codegen_p.h.

Referenced by QV4::Compiler::Codegen::Reference::baseObject().

+ Here is the caller graph for this function:

◆ isValid()

bool QV4::Compiler::Codegen::RValue::isValid ( ) const
inline

Definition at line 138 of file qv4codegen_p.h.

References Invalid.

Referenced by QV4::Compiler::Codegen::Reference::baseObject().

+ Here is the caller graph for this function:

◆ loadInAccumulator()

void Codegen::RValue::loadInAccumulator ( ) const

Definition at line 4302 of file qv4codegen.cpp.

References QQmlJS::AST::Const, constant(), QV4::Compiler::Codegen::Reference::fromConst(), QV4::Compiler::Codegen::Reference::fromStackSlot(), and QV4::Compiler::Codegen::Reference::loadInAccumulator().

+ Here is the call graph for this function:

◆ operator==()

bool Codegen::RValue::operator== ( const RValue other) const

Definition at line 4274 of file qv4codegen.cpp.

References constant, other(), and theStackSlot.

+ Here is the call graph for this function:

◆ stackSlot()

Moth::StackSlot QV4::Compiler::Codegen::RValue::stackSlot ( ) const
inline

Definition at line 143 of file qv4codegen_p.h.

References Q_ASSERT.

Referenced by QV4::Compiler::Codegen::Reference::baseObject(), and QV4::Compiler::Codegen::visit().

+ Here is the caller graph for this function:

◆ storeOnStack()

Codegen::RValue Codegen::RValue::storeOnStack ( ) const

Definition at line 4288 of file qv4codegen.cpp.

References QQmlJS::AST::Const, constant(), QV4::Compiler::Codegen::Reference::fromAccumulator(), fromStackSlot(), and QV4::Compiler::Codegen::Reference::storeConstOnStack().

Referenced by QV4::Compiler::Codegen::Reference::asLValue().

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

Member Data Documentation

◆ constant

QV4::ReturnedValue QV4::Compiler::Codegen::RValue::constant

Definition at line 111 of file qv4codegen_p.h.

Referenced by operator==().

◆ theStackSlot

Moth::StackSlot QV4::Compiler::Codegen::RValue::theStackSlot

Definition at line 110 of file qv4codegen_p.h.

Referenced by operator==().


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