aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2013-08-05 12:22:27 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-08-05 12:24:40 +0200
commitf86e123ea6c989e5f5b9e31733d596485e78cefe (patch)
tree39cae4f392fad680c46ec7fe09767bdc1bb8816e /src
parentc9d43466b871b5fb15fb6e3892a3176176ae2621 (diff)
Fix stack traces into interpreter code
Make sure to initialize the interpreter instruction pointer pointer before executing byte code. Change-Id: I57115699923eeeea627d83536b464f29926d443c Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/qml/qml/v4/moth/qv4vme_moth.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qml/qml/v4/moth/qv4vme_moth.cpp b/src/qml/qml/v4/moth/qv4vme_moth.cpp
index 5a292520eb..4090e7c35f 100644
--- a/src/qml/qml/v4/moth/qv4vme_moth.cpp
+++ b/src/qml/qml/v4/moth/qv4vme_moth.cpp
@@ -573,5 +573,6 @@ void **VME::instructionJumpTable()
QV4::Value VME::exec(QV4::ExecutionContext *ctxt, const uchar *code)
{
VME vme;
+ ctxt->interpreterInstructionPointer = &code;
return vme.run(ctxt, code);
}