aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@me.com>2013-09-26 10:25:22 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-30 11:28:22 +0200
commit9194779ef37187b1b38d73099747459f9f5e745c (patch)
tree2ed11fa80f87d50acd886127d493b32090bc40a7 /src
parent424052000aa96b9a716efded804bf0317108596b (diff)
V4: changed environment variable SHOW_CODE.
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>
Diffstat (limited to 'src')
-rw-r--r--src/3rdparty/masm/stubs/Options.cpp2
-rw-r--r--src/qml/compiler/qv4isel_masm.cpp2
-rw-r--r--src/qml/compiler/qv4ssa.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/3rdparty/masm/stubs/Options.cpp b/src/3rdparty/masm/stubs/Options.cpp
index 24e4f3a6f1..7b64b68dab 100644
--- a/src/3rdparty/masm/stubs/Options.cpp
+++ b/src/3rdparty/masm/stubs/Options.cpp
@@ -48,7 +48,7 @@ namespace JSC {
bool Options::showDisassembly()
{
- static bool showCode = !qgetenv("SHOW_CODE").isNull();
+ static bool showCode = !qgetenv("QV4_SHOW_ASM").isNull();
return showCode;
}
diff --git a/src/qml/compiler/qv4isel_masm.cpp b/src/qml/compiler/qv4isel_masm.cpp
index 3f3c47d804..0a5b94f66c 100644
--- a/src/qml/compiler/qv4isel_masm.cpp
+++ b/src/qml/compiler/qv4isel_masm.cpp
@@ -542,7 +542,7 @@ JSC::MacroAssemblerCodeRef Assembler::link(int *codeSize)
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;
diff --git a/src/qml/compiler/qv4ssa.cpp b/src/qml/compiler/qv4ssa.cpp
index 13820851e7..7054d5140c 100644
--- a/src/qml/compiler/qv4ssa.cpp
+++ b/src/qml/compiler/qv4ssa.cpp
@@ -75,7 +75,7 @@ QTextStream qout(stdout, QIODevice::WriteOnly);
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;