From 996e54602a05649e3a84a505b439742809172d6f Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Tue, 7 Nov 2017 12:10:39 +0100 Subject: Allow tuning the amount of inline properties per object type Different JS objects need different amount of properties by default. Tune the amount of inline properties we pre-allocate by what's usually needed for the object. Change-Id: I2703d123939f9b7e3a06531361cbb6a3a3c04944 Reviewed-by: Erik Verbruggen --- src/qml/jsruntime/qv4object_p.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/qml/jsruntime/qv4object_p.h') diff --git a/src/qml/jsruntime/qv4object_p.h b/src/qml/jsruntime/qv4object_p.h index e2512f48c7..ff3ad7c0c6 100644 --- a/src/qml/jsruntime/qv4object_p.h +++ b/src/qml/jsruntime/qv4object_p.h @@ -214,6 +214,8 @@ struct Q_QML_EXPORT Object: Managed { V4_INTERNALCLASS(Object) V4_PROTOTYPE(objectPrototype) + enum { NInlineProperties = 2 }; + enum { IsObject = true, GetterOffset = 0, -- cgit v1.2.3