aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4object_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-08-16 10:11:20 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-08-18 13:03:13 +0200
commitb6a6a6387e279c431d520243345530fa19bd96c5 (patch)
treeb2551748458f0728ba6a5c403c4d56c61caa072f /src/qml/jsruntime/qv4object_p.h
parent091f20de8c7fc33ae82b12c1ee5a7835da1daa81 (diff)
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>
Diffstat (limited to 'src/qml/jsruntime/qv4object_p.h')
-rw-r--r--src/qml/jsruntime/qv4object_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4object_p.h b/src/qml/jsruntime/qv4object_p.h
index e6b1e04286..ea8911124d 100644
--- a/src/qml/jsruntime/qv4object_p.h
+++ b/src/qml/jsruntime/qv4object_p.h
@@ -328,6 +328,7 @@ public:
return false;
}
+ void ensureMemberIndex(uint idx);
inline Value get(String *name, bool *hasProperty = 0)
{ return vtbl->get(this, name, hasProperty); }