(fa23aa04c4ffac98b954bd9ec14a0adbe57a1fb6)
#include "qv4instr_moth_p.h"
#include <private/qv4compileddata_p.h>
#include <private/qv4calldata_p.h>
#include <QtCore/qdebug.h>
Go to the source code of this file.
|
static QByteArray | alignedNumber (int n) |
static QByteArray | alignedLineNumber (int line) |
static QByteArray | rawBytes (const char *data, int n) |
QString | QV4::Moth::dumpRegister (int reg, int nFormals) |
QString | QV4::Moth::dumpArguments (int argc, int argv, int nFormals) |
QString | QV4::Moth::dumpBytecode (const char *code, int len, int nLocals, int nFormals, int, const QVector< CompiledData::CodeOffsetToLineAndStatement > &lineAndStatementNumberMapping) |
QString | QV4::Moth::dumpBytecode (const char *code, int len, int nLocals, int nFormals, int beginOffset, int endOffset, const QVector< CompiledData::CodeOffsetToLineAndStatement > &lineAndStatementNumberMapping) |
◆ ABSOLUTE_OFFSET
#define ABSOLUTE_OFFSET |
( |
| ) |
|
◆ MOTH_BEGIN_INSTR
#define MOTH_BEGIN_INSTR |
( |
| instr | ) |
|
Value: { \
INSTR_##instr(MOTH_DECODE_WITH_BASE) \
if (static_cast<int>(Instr::Type::instr) >= 0x100) \
--base_ptr; \
<<
rawBytes(base_ptr,
int(code - base_ptr)) << #instr <<
" ";
const char * constData() const noexcept
Returns a pointer to the const data stored in the byte array.
static QByteArray rawBytes(const char *data, int n)
static QByteArray alignedLineNumber(int line)
static QByteArray alignedNumber(int n)
Definition at line 53 of file qv4instr_moth.cpp.
◆ MOTH_END_INSTR
#define MOTH_END_INSTR |
( |
| instr | ) |
|
◆ MOTH_RETURN_INSTR_SIZE
#define MOTH_RETURN_INSTR_SIZE |
( |
| I | ) |
|
Value:case Instr::Type::I:
case Instr::Type::I##_Wide:
return InstrMeta<int(Instr::Type::I)>
::Size;
◆ alignedLineNumber()
◆ alignedNumber()
◆ rawBytes()