Get rid of the signal expression rewriter
authorSimon Hausmann <simon.hausmann@digia.com>
Mon, 1 Jul 2013 06:48:41 +0000 (08:48 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 3 Jul 2013 11:22:25 +0000 (13:22 +0200)
commit06eaeb0ac8d861cf3e60b11a8fbbabdeef1d6759
tree825fb27485c376d0b83e8dfbcd20c852f2dd525c
parentb30657647a7f816a2945302b3569b882d7ac6b72
Get rid of the signal expression rewriter

This replaces the entire rewriter with more or less:

expressionToEval = "(function(<named params here>) { " + expr + " } )"

This also fixes crashes at run-time when the signal rewriter was
executed from the loader thread and tried to use a v4 identifier
hash with the same engine that's also in the main thread.

Change-Id: Ib1e4927d330706a593411fbff64ed3da1e23d0e0
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
18 files changed:
src/qml/debugger/qqmlenginedebugservice.cpp
src/qml/qml/qml.pri
src/qml/qml/qqmlboundsignal.cpp
src/qml/qml/qqmlboundsignal_p.h
src/qml/qml/qqmlcompiler.cpp
src/qml/qml/qqmlcompiler_p.h
src/qml/qml/qqmlcustomparser.cpp
src/qml/qml/qqmlcustomparser_p.h
src/qml/qml/qqmlinstruction_p.h
src/qml/qml/qqmlpropertycache.cpp
src/qml/qml/qqmlpropertycache_p.h
src/qml/qml/qqmlrewrite.cpp [deleted file]
src/qml/qml/qqmlrewrite_p.h [deleted file]
src/qml/qml/qqmlvme.cpp
src/qml/types/qqmlconnections.cpp
src/quick/util/qquickpropertychanges.cpp
tests/auto/qml/debugger/qqmlenginedebugservice/tst_qqmlenginedebugservice.cpp
tests/auto/qml/qqmlproperty/tst_qqmlproperty.cpp