Fix test failure in qqmldebugjs autotest
authorLars Knoll <lars.knoll@digia.com>
Thu, 6 Mar 2014 08:09:05 +0000 (09:09 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 7 Mar 2014 15:55:12 +0000 (16:55 +0100)
commite4a6c5b3e41d655efcbd34e4e2dc0fd28f3da196
treede355eb8310f5581127f3765cae1f99c22b30023
parent39b54d7293741c712116010b33f0d9823ab2ab1c
Fix test failure in qqmldebugjs autotest

The debugger should only have one breakpoint that can
be set per line. Nevertheless, we should have proper
line number information available in case we stop at
other places.

We also need a debug instruction before the return
statement, so that step out will always find a last
stopping point in the parent frame.

Change-Id: I86145fc244148f106a4a97ce69ab60b568c8dac6
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qml/compiler/qv4isel_moth.cpp
src/qml/jit/qv4isel_masm.cpp
src/qml/jsruntime/qv4engine.cpp