Optimize setting new properties on objects
authorLars Knoll <lars.knoll@digia.com>
Fri, 16 Aug 2013 08:11:20 +0000 (10:11 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Sun, 18 Aug 2013 11:03:13 +0000 (13:03 +0200)
commitb6a6a6387e279c431d520243345530fa19bd96c5
treeb2551748458f0728ba6a5c403c4d56c61caa072f
parent091f20de8c7fc33ae82b12c1ee5a7835da1daa81
Optimize setting new properties on objects

When a property on an object is set for the first time,
this triggers a change in internal class for the object.
Record that change in the lookup, and do the same transition
in the future.

Change-Id: Ib0e8ac61ce3aaecb736532600740cec51996e3d6
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qml/jsruntime/qv4lookup.cpp
src/qml/jsruntime/qv4lookup_p.h
src/qml/jsruntime/qv4object.cpp
src/qml/jsruntime/qv4object_p.h