77 Q_STATIC_ASSERT(offsetof(CallData, function) == 0);
78 Q_STATIC_ASSERT(offsetof(CallData, context) ==
sizeof(StaticValue));
79 Q_STATIC_ASSERT(offsetof(CallData, accumulator) == 2*
sizeof(StaticValue));
80 Q_STATIC_ASSERT(offsetof(CallData, thisObject) == 3*
sizeof(StaticValue));
81 if (reg == CallData::Function)
82 return QStringLiteral(
"(function)");
83 else if (reg == CallData::Context)
84 return QStringLiteral(
"(context)");
85 else if (reg == CallData::Accumulator)
86 return QStringLiteral(
"(accumulator)");
87 else if (reg == CallData::NewTarget)
88 return QStringLiteral(
"(new.target)");
89 else if (reg == CallData::This)
90 return QStringLiteral(
"(this)");
91 else if (reg == CallData::Argc)
92 return QStringLiteral(
"(argc)");
93 reg -= CallData::HeaderSize();
95 return QStringLiteral(
"a%1").arg(reg);
97 return QStringLiteral(
"r%1").arg(reg);
109 const char *code,
int len,
int nLocals,
int nFormals,
int ,
110 const QList<CompiledData::CodeOffsetToLineAndStatement> &lineAndStatementNumberMapping)
112 return dumpBytecode(code, len, nLocals, nFormals, 0, len - 1, lineAndStatementNumberMapping);
QString dumpBytecode(const char *code, int len, int nLocals, int nFormals, int, const QList< CompiledData::CodeOffsetToLineAndStatement > &lineAndStatementNumberMapping)