Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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 102 of file qv4codegen_p.h.

Member Function Documentation

◆ constantValue()

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

Definition at line 149 of file qv4codegen_p.h.

References constant(), and Q_ASSERT.

+ Here is the call graph for this function:

◆ fromAccumulator()

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

Definition at line 123 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 129 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 116 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 140 of file qv4codegen_p.h.

◆ isConst()

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

Definition at line 142 of file qv4codegen_p.h.

◆ isStackSlot()

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

Definition at line 141 of file qv4codegen_p.h.

◆ isValid()

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

Definition at line 139 of file qv4codegen_p.h.

References Invalid.

◆ loadInAccumulator()

void Codegen::RValue::loadInAccumulator ( ) const

Definition at line 4332 of file qv4codegen.cpp.

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

+ Here is the call graph for this function:

◆ operator==()

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

Definition at line 4304 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 144 of file qv4codegen_p.h.

References Q_ASSERT.

Referenced by QV4::Compiler::Codegen::visit().

+ Here is the caller graph for this function:

◆ storeOnStack()

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

Definition at line 4318 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 112 of file qv4codegen_p.h.

Referenced by operator==().

◆ theStackSlot

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

Definition at line 111 of file qv4codegen_p.h.

Referenced by operator==().


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