Improve memory usage in QML/V4 engine.
authorMichael Brasser <michael.brasser@live.com>
Thu, 27 Feb 2014 21:59:39 +0000 (15:59 -0600)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 28 Feb 2014 18:01:21 +0000 (19:01 +0100)
commita3688bf41fd42befe7ab83a633dbbd71eda56cd9
tree042d3b4a4a78f6787a6c641e09ff957b62b40aa5
parent0b2d05093c6fc030d40be8c873ad1e0af9bba8cc
Improve memory usage in QML/V4 engine.

* Don't create prototype Object for bindings and
  signal handlers. It is inaccessible and not required.
  This saves one Object-sized allocation per binding.
* Shrink the size of QQmlContextWrapper by removing
  the v8 member variable.
* Shrink the size of QObjectWrapper by moving the destroy
  identifier to the engine.

Change-Id: I76e84e4c0581e97a19d2e959f814ac84d9c431fa
Task-number: QTBUG-37134
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qml/jsruntime/qv4engine.cpp
src/qml/jsruntime/qv4engine_p.h
src/qml/jsruntime/qv4functionobject.cpp
src/qml/jsruntime/qv4functionobject_p.h
src/qml/jsruntime/qv4qobjectwrapper.cpp
src/qml/jsruntime/qv4qobjectwrapper_p.h
src/qml/jsruntime/qv4runtime.cpp
src/qml/qml/qqmlcontextwrapper.cpp
src/qml/qml/qqmlcontextwrapper_p.h
src/qml/qml/qqmlobjectcreator.cpp
src/qml/qml/qqmlvme.cpp