Avoid dynamic lookup of signal handler arguments
authorMichael Brasser <michael.brasser@nokia.com>
Sun, 20 May 2012 23:27:43 +0000 (09:27 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 23 Aug 2012 22:55:55 +0000 (00:55 +0200)
commit0853343c33e394f35c31c161b019b2aed17f9256
tree3f792f58979ae75f8e75a0c0ef6e7f89265b1c16
parent9ee6bb0e14d968647350683eafbe80eed7a27058
Avoid dynamic lookup of signal handler arguments

Rewrite signal handlers to include the parameters
in the rewrite. Also check whether parameters are
actually used when possible, and if not don't
provide them to the expression.

Change-Id: I7d65c05f4639979dd61035cf7478119ef7647c25
Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com>
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
25 files changed:
src/qml/debugger/qqmlenginedebugservice.cpp
src/qml/qml/qqmlboundsignal.cpp
src/qml/qml/qqmlboundsignal_p.h
src/qml/qml/qqmlcompiler.cpp
src/qml/qml/qqmlinstruction_p.h
src/qml/qml/qqmljavascriptexpression.cpp
src/qml/qml/qqmljavascriptexpression_p.h
src/qml/qml/qqmlpropertycache.cpp
src/qml/qml/qqmlpropertycache_p.h
src/qml/qml/qqmlrewrite.cpp
src/qml/qml/qqmlrewrite_p.h
src/qml/qml/qqmlvme.cpp
src/qml/qml/v8/qv8contextwrapper.cpp
src/qml/qml/v8/qv8contextwrapper_p.h
src/quick/util/qquickconnections.cpp
src/quick/util/qquickpropertychanges.cpp
tests/auto/qml/qqmlecmascript/data/signalArguments.1.qml [new file with mode: 0644]
tests/auto/qml/qqmlecmascript/data/signalArguments.2.qml [new file with mode: 0644]
tests/auto/qml/qqmlecmascript/data/signalWithUnknownTypes.qml
tests/auto/qml/qqmlecmascript/testtypes.h
tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp
tests/auto/qml/qqmlproperty/tst_qqmlproperty.cpp
tests/auto/qml/qquickconnection/data/rewriteError-global.qml [new file with mode: 0644]
tests/auto/qml/qquickconnection/data/rewriteError-unnamed.qml [new file with mode: 0644]
tests/auto/qml/qquickconnection/tst_qquickconnection.cpp