From 1be51cc3e7c9ca5256a52136d6fcc9c22c997625 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Sun, 13 Oct 2013 21:03:44 +0200 Subject: inline get_element calls Inline calls to get_element if the base is an object with a simple array structure, and the index is an integer number. Implemented for 64bit only for now, saves ~25% on crypto.js Change-Id: I3e34a6409169d90d3937f62264707d52a6c2f9f7 Reviewed-by: Simon Hausmann --- src/qml/qml/qqmllistwrapper.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/qml/qml/qqmllistwrapper.cpp') diff --git a/src/qml/qml/qqmllistwrapper.cpp b/src/qml/qml/qqmllistwrapper.cpp index c1ec5dc1c1..0364659ecc 100644 --- a/src/qml/qml/qqmllistwrapper.cpp +++ b/src/qml/qml/qqmllistwrapper.cpp @@ -57,6 +57,7 @@ QmlListWrapper::QmlListWrapper(QV8Engine *engine) v8(engine) { vtbl = &static_vtbl; + flags &= ~SimpleArray; } QmlListWrapper::~QmlListWrapper() -- cgit v1.2.3