Revert "Local initialisation is now done in codegen."
authorSimon Hausmann <simon.hausmann@digia.com>
Sun, 16 Jun 2013 20:42:47 +0000 (22:42 +0200)
committerLars Knoll <lars.knoll@digia.com>
Mon, 17 Jun 2013 06:01:11 +0000 (08:01 +0200)
commit42825af048ab2724e0d434178dcef1b23b4850ff
tree8a45e1e61adadb8ceb854a61dae0cda3969f1829
parente3ee3ecc0272a0f144a573753b842952762bbe59
Revert "Local initialisation is now done in codegen."

This reverts commit 2bd6e240a3c2b3dc7a2c81c639d4f30e4dfd685f.

This doesn't work properly as the code generator will not keep those
initializations at the beginning of the function, resulting in
uninitialized values in ctx->locals[], which gives valgrind warnings
when they're marked.

Change-Id: I81501e0ea80e7f76b7d9112fea261e406084b69b
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/qml/v4/qv4codegen.cpp
src/qml/qml/v4/qv4context.cpp