Fix line number resolution with the interpreter and try {} catch {}
authorSimon Hausmann <simon.hausmann@digia.com>
Mon, 5 Aug 2013 13:20:08 +0000 (15:20 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 5 Aug 2013 19:19:56 +0000 (21:19 +0200)
commitd459eb7e3dda1caffc88673468353c237cd0615c
tree8668500b11997afea0a211b380bcac869d9fc3ef
parenta7f0e770f6452d68998114c3d05187b79a879d2c
Fix line number resolution with the interpreter and try {} catch {}

When re-entering the interpreter for a try block, we use a different code
pointer and therefore need to set context->interpreterInstructionPointer
accordingly. We do that now at the beginning of run(), before we start
interpreting the instructions. When returning from a try block, we continue
using the old "code" pointer and therefore need to set
context->interpreterInstructionPointer back.

Change-Id: I607aef104d5f74bb0c44c6635619c99a6b397bce
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/qml/v4/moth/qv4vme_moth.cpp