Removed usage of QQmlValueType in QQmlValueTypeWrapper
authorSimon Hausmann <simon.hausmann@theqtcompany.com>
Wed, 19 Nov 2014 17:12:21 +0000 (18:12 +0100)
committerSimon Hausmann <simon.hausmann@digia.com>
Sun, 28 Dec 2014 17:39:51 +0000 (18:39 +0100)
commitb7bcde88a35c0dba8bf78b829b60a634137fc778
tree34395bdc64775394b8406511c86924c05a9ce73c
parent7dd5895854087c006d9ec58ada6899df6020b3c6
Removed usage of QQmlValueType in QQmlValueTypeWrapper

QQmlValueType doesn't have anything really necessary :). Some code it has, but
that was only called from the wrapper, so it was moved there. This also reduces
one level of memory allocation for the wrapper.

In theory the allocation for the JavaScript wrapper could be changed to be the
size of the wrapper _plus_ the size needed for the gadget. However in
anticipation of wanting to be able to move objects, we can't do that as we
can't memmove() gadgets around - they might contain pointers to memory areas
within.

Change-Id: Icb5a6f5513e3b2c87f6639f6f7b1fb572af08137
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/jsruntime/qv4qobjectwrapper.cpp
src/qml/qml/qqmlvaluetype.cpp
src/qml/qml/qqmlvaluetype_p.h
src/qml/qml/qqmlvaluetypewrapper.cpp
src/qml/qml/qqmlvaluetypewrapper_p.h
src/qml/qml/v8/qv8engine_p.h