Port QObject bindings to use new cast

Change-Id: Ib0a8ba76df51276d53cf251b0ed979176e1fba01
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Fix uninitialized return value for QQmlJavaScriptExpression::evaluate

In case of an exception, we'd return an uninitialized value.

(visible when running tst_qqmlecmascript in valgrind)

Change-Id: I2c95a112b09ba527e61088904fa7daff003be05d
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
valgrind support: Destroy mempool when memoryManager is destroyed

Fixes "impossible situation!" abort in valgrind when running tests that
create and destroy a lot of engines.

Change-Id: I58cfd2380b0149d25ebecdb270be428ec6b8a64f
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Fix missing object markings in QV4::Script

Store the qml activation object as Persistent value, as the script object is
often stored on the heap. Also make sure to mark it in QmlBindingWrapper. Fixes
various valgrind errors in tst_qqmlecmascript.

Change-Id: I7edf1e18db0e6a5ab9dcbfd57e258d72fe62cd77
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Fix uninitialized memory read in tst_qqmlecmascript::include auto-test

Make sure to initialize the callback variable, in the unlikely (but possible)
event of it not getting initialized otherwise.

Change-Id: Ic8bbf90b825157e55bb93dd9e600ff22ca11b911
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Implement line number resolving of stack traces in the interpreter

Change-Id: I18fc141c4cf8a38036ec78e45fe380c2c1fa3055
Reviewed-by: Lars Knoll <lars.knoll@digia.com>