Replace QV8QObjectResource with QV4::QObjectWrapper
authorSimon Hausmann <simon.hausmann@digia.com>
Wed, 22 May 2013 14:51:34 +0000 (16:51 +0200)
committerLars Knoll <lars.knoll@digia.com>
Thu, 23 May 2013 13:42:24 +0000 (15:42 +0200)
commit31b700b9ddf38283ca06cf78db4a80d674b74661
treec947874ad9e5284c35cab7f3af73a5d4dcd8d12f
parentb71fa87e000c5d72d4b2a7146e450dc41dc69055
Replace QV8QObjectResource with QV4::QObjectWrapper

Use a proper sub-class instead of external object resources, as a first
step towards porting the QObject bindings away from V8.

This also replaces the function template / constructor approach and the
faster getter optimization with a plain virtual get in the V4::Object.

Property lookup in QObject bindings will be subject to future optimizations
that will work very differently once we enable the faster V4 lookup mechanism
in QML.

Change-Id: Ib7c2eead5323c22290c2924de786d9cfcf308c03
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/qml/qqmlpropertycache_p.h
src/qml/qml/qqmlvmemetaobject.cpp
src/qml/qml/v4/qv4managed_p.h
src/qml/qml/v4/qv4value_p.h
src/qml/qml/v8/qv8engine.cpp
src/qml/qml/v8/qv8objectresource_p.h
src/qml/qml/v8/qv8qobjectwrapper.cpp
src/qml/qml/v8/qv8qobjectwrapper_p.h
src/qml/qml/v8/v8.pri
src/qml/types/qqmllistmodel.cpp