summaryrefslogtreecommitdiff
path: root/src/qml/compiler/qv4codegen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/compiler/qv4codegen.cpp')
-rw-r--r--src/qml/compiler/qv4codegen.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qml/compiler/qv4codegen.cpp b/src/qml/compiler/qv4codegen.cpp
index 7803276fcc..c55db0fe65 100644
--- a/src/qml/compiler/qv4codegen.cpp
+++ b/src/qml/compiler/qv4codegen.cpp
@@ -2294,6 +2294,9 @@ int Codegen::defineFunction(const QString &name, AST::Node *ast,
_block->JUMP(_exitBlock);
// _function->code = bytecodeGenerator->finalize();
+ static const bool showCode = qEnvironmentVariableIsSet("QV4_SHOW_BYTECODE");
+ if (showCode)
+ QV4::Moth::dumpBytecode(_function->code);
qSwap(_function, function);
qSwap(_block, entryBlock);