summaryrefslogtreecommitdiff
path: root/src/qml/compiler/qv4isel_moth.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/compiler/qv4isel_moth.cpp')
-rw-r--r--src/qml/compiler/qv4isel_moth.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qml/compiler/qv4isel_moth.cpp b/src/qml/compiler/qv4isel_moth.cpp
index 3041be79a7..7d62d71e98 100644
--- a/src/qml/compiler/qv4isel_moth.cpp
+++ b/src/qml/compiler/qv4isel_moth.cpp
@@ -281,6 +281,9 @@ void InstructionSelection::run(int functionIndex)
patchJumpAddresses();
_function->code = squeezeCode();
+ static const bool showCode = qEnvironmentVariableIsSet("QV4_SHOW_BYTECODE");
+ if (showCode)
+ QV4::Moth::dumpBytecode(_function->code);
qSwap(_currentStatement, cs);
qSwap(_removableJumps, removableJumps);