[new compiler] Fix signal handlers for properties declared in the same object
authorSimon Hausmann <simon.hausmann@digia.com>
Wed, 11 Dec 2013 12:44:56 +0000 (13:44 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 8 Jan 2014 09:04:43 +0000 (10:04 +0100)
commitfb377763ac3eea4010c7a501b8363ca46874a5b3
treedb7e22d735b72f7a13c54ddfa116f6209480a1e8
parent2f185926500dba417b95ff33b0546c0d8d3ce9c0
[new compiler] Fix signal handlers for properties declared in the same object

We need to generate the property caches before we can try converting the
signal handler expressions in the AST to function declarations, as that
conversion requires looking up the signal signature / meta-data from the
property cache. This in turn requires rewriting the property cache
generator code to operate on the data structure we have before creating
the QV4::CompiledData.

Change-Id: I0d1c59d947f36171b4eb89f47a2e1ff1bc493c6f
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/compiler/qqmlcodegenerator.cpp
src/qml/compiler/qqmlcodegenerator_p.h
src/qml/qml/qqmlobjectcreator.cpp
src/qml/qml/qqmlobjectcreator_p.h
src/qml/qml/qqmltypeloader.cpp