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::Moth Namespace Reference

Classes

class  BytecodeGenerator
 
class  ByteCodeHandler
 
union  Instr
 
class  InstrData
 
struct  InstrInfo
 
struct  InstrMeta
 
struct  Instruction
 
class  StackSlot
 
class  VME
 

Functions

QString dumpRegister (int reg, int nFormals)
 
QString dumpArguments (int argc, int argv, int nFormals)
 
QString dumpBytecode (const char *code, int len, int nLocals, int nFormals, int, const QVector< CompiledData::CodeOffsetToLineAndStatement > &lineAndStatementNumberMapping)
 
QString dumpBytecode (const char *code, int len, int nLocals, int nFormals, int beginOffset, int endOffset, const QVector< CompiledData::CodeOffsetToLineAndStatement > &lineAndStatementNumberMapping)
 
bool operator== (const StackSlot &l, const StackSlot &r)
 
bool operator!= (const StackSlot &l, const StackSlot &r)
 
QString dumpBytecode (const QByteArray &bytecode, int nLocals, int nFormals, int startLine=1, const QVector< CompiledData::CodeOffsetToLineAndStatement > &lineAndStatementNumberMapping=QVector< CompiledData::CodeOffsetToLineAndStatement >())
 
 FOR_EACH_MOTH_INSTR_ALL (MOTH_INSTR_META_TEMPLATE)
 

Function Documentation

◆ dumpArguments()

QString QV4::Moth::dumpArguments ( int argc,
int argv,
int nFormals )

Definition at line 100 of file qv4instr_moth.cpp.

References dumpRegister(), QString::number(), and QStringLiteral.

Referenced by dumpBytecode().

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

◆ dumpBytecode() [1/3]

Q_QML_EXPORT QString QV4::Moth::dumpBytecode ( const char * code,
int len,
int nLocals,
int nFormals,
int beginOffset,
int endOffset,
const QVector< CompiledData::CodeOffsetToLineAndStatement > & lineAndStatementNumberMapping )

Definition at line 114 of file qv4instr_moth.cpp.

References ABSOLUTE_OFFSET, args, base, Construct, Debug, dumpArguments(), dumpRegister(), line, MOTH_BEGIN_INSTR, MOTH_DISPATCH, MOTH_END_INSTR, MOTH_JUMP_TABLE, output, property, and Q_ASSERT.

+ Here is the call graph for this function:

◆ dumpBytecode() [2/3]

QString QV4::Moth::dumpBytecode ( const char * code,
int len,
int nLocals,
int nFormals,
int ,
const QVector< CompiledData::CodeOffsetToLineAndStatement > & lineAndStatementNumberMapping )

Definition at line 107 of file qv4instr_moth.cpp.

References dumpBytecode().

Referenced by QV4::Compiler::Codegen::defineFunction(), dumpBytecode(), and dumpBytecode().

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

◆ dumpBytecode() [3/3]

QString QV4::Moth::dumpBytecode ( const QByteArray & bytecode,
int nLocals,
int nFormals,
int startLine = 1,
const QVector< CompiledData::CodeOffsetToLineAndStatement > & lineAndStatementNumberMapping = QVector<CompiledData::CodeOffsetToLineAndStatement>() )
inline

Definition at line 509 of file qv4instr_moth_p.h.

References QByteArray::constData(), dumpBytecode(), and QByteArray::size().

+ Here is the call graph for this function:

◆ dumpRegister()

QString QV4::Moth::dumpRegister ( int reg,
int nFormals )

Definition at line 74 of file qv4instr_moth.cpp.

References QV4::CallData::Accumulator, QV4::CallData::Argc, QV4::CallData::Context, context, QV4::CallData::Function, QV4::CallData::HeaderSize(), QV4::CallData::NewTarget, Q_STATIC_ASSERT, QStringLiteral, and QV4::CallData::This.

Referenced by dumpArguments(), and dumpBytecode().

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

◆ FOR_EACH_MOTH_INSTR_ALL()

QV4::Moth::FOR_EACH_MOTH_INSTR_ALL ( MOTH_INSTR_META_TEMPLATE )

◆ operator!=()

bool QV4::Moth::operator!= ( const StackSlot & l,
const StackSlot & r )
inline

Definition at line 496 of file qv4instr_moth_p.h.

References QV4::Moth::StackSlot::stackSlot().

+ Here is the call graph for this function:

◆ operator==()

bool QV4::Moth::operator== ( const StackSlot & l,
const StackSlot & r )
inline

Definition at line 495 of file qv4instr_moth_p.h.

References QV4::Moth::StackSlot::stackSlot().

+ Here is the call graph for this function: