diff options
author | Lars Knoll <lars.knoll@digia.com> | 2013-10-13 21:03:44 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-10-14 21:59:59 +0200 |
commit | 1be51cc3e7c9ca5256a52136d6fcc9c22c997625 (patch) | |
tree | e0c4f1feae828c4f04f0b8b63201627aa20cf43c /src/qml/jsruntime/qv4sequenceobject.cpp | |
parent | 668eca2b9343cf5d79dc1faa6c251595e2e84918 (diff) | |
download | qtdeclarative-1be51cc3e7c9ca5256a52136d6fcc9c22c997625.tar.gz |
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 <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4sequenceobject.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4sequenceobject.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4sequenceobject.cpp b/src/qml/jsruntime/qv4sequenceobject.cpp index 05f51beecf..320646805b 100644 --- a/src/qml/jsruntime/qv4sequenceobject.cpp +++ b/src/qml/jsruntime/qv4sequenceobject.cpp @@ -175,6 +175,7 @@ public: { type = Type_QmlSequence; vtbl = &static_vtbl; + flags &= ~SimpleArray; QV4::Scope scope(engine); QV4::ScopedObject protectThis(scope, this); init(); @@ -188,6 +189,7 @@ public: { type = Type_QmlSequence; vtbl = &static_vtbl; + flags &= ~SimpleArray; QV4::Scope scope(engine); QV4::ScopedObject protectThis(scope, this); loadReference(); |