aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4object_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2017-05-03 15:11:55 +0200
committerLars Knoll <lars.knoll@qt.io>2017-05-08 06:42:16 +0000
commit799f4a526375701d2b68d2ca1c85648994468394 (patch)
tree90a2e02b5f922fab4dc973cb870dd41a355700ce /src/qml/jsruntime/qv4object_p.h
parent99594f518a5fb657b75f68bba73537c4e9208e46 (diff)
Optimize other lookups
Add some more optimized lookups for accessing properties stored inline or in the memberData. Change-Id: Id74901d1dd91fd60933bf164c2bf90fed86232e3 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io> Reviewed-by: Robin Burchell <robin.burchell@crimson.no>
Diffstat (limited to 'src/qml/jsruntime/qv4object_p.h')
-rw-r--r--src/qml/jsruntime/qv4object_p.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4object_p.h b/src/qml/jsruntime/qv4object_p.h
index c1d5fd66b2..45392c0486 100644
--- a/src/qml/jsruntime/qv4object_p.h
+++ b/src/qml/jsruntime/qv4object_p.h
@@ -75,6 +75,10 @@ struct Object : Base {
Q_ASSERT(index < vt->nInlineProperties);
return reinterpret_cast<const Value *>(this) + vt->inlinePropertyOffset + index;
}
+ Value *inlinePropertyData(uint index) {
+ Q_ASSERT(index < vt->nInlineProperties);
+ return reinterpret_cast<Value *>(this) + vt->inlinePropertyOffset + index;
+ }
const Value *propertyData(uint index) const {
uint nInline = vt->nInlineProperties;