Use QV4_SHOW_ASM for the generated assembly from the JIT, and use
QV4_SHOW_IR to get dumps of the IR.
Change-Id: Id85d3d6c87b47088c312475a7c737d54c58c7791
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
bool Options::showDisassembly()
{
- static bool showCode = !qgetenv("SHOW_CODE").isNull();
+ static bool showCode = !qgetenv("QV4_SHOW_ASM").isNull();
return showCode;
}
JSC::MacroAssemblerCodeRef codeRef;
- static bool showCode = !qgetenv("SHOW_CODE").isNull();
+ static bool showCode = !qgetenv("QV4_SHOW_ASM").isNull();
if (showCode) {
#if OS(LINUX) && !defined(Q_OS_ANDROID)
char* disasmOutput = 0;
void showMeTheCode(Function *function)
{
- static bool showCode = !qgetenv("SHOW_CODE").isNull();
+ static bool showCode = !qgetenv("QV4_SHOW_IR").isNull();
if (showCode) {
QVector<Stmt *> code;
QHash<Stmt *, BasicBlock *> leader;