diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2011-11-30 17:54:03 +0000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-12-01 18:55:39 +0100 |
commit | 8fd12405b9976ca4c9dec6cf53ccde24bfa76dd7 (patch) | |
tree | 12dd5dfbad6e20a515fc557e2a83a1ef111ca828 /src/declarative/qml/v8/qv8valuetypewrapper_p.h | |
parent | 32115087589939225a4516ed15196a4f6632c13b (diff) |
Improve value type read performance
On x86, this gives ~3x improvement in property read time.
Change-Id: I8f75e9bb7450bc56ca42f8258c3a5641bc9c18d3
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
Diffstat (limited to 'src/declarative/qml/v8/qv8valuetypewrapper_p.h')
-rw-r--r-- | src/declarative/qml/v8/qv8valuetypewrapper_p.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/declarative/qml/v8/qv8valuetypewrapper_p.h b/src/declarative/qml/v8/qv8valuetypewrapper_p.h index 2582560c0f..ce8944efb5 100644 --- a/src/declarative/qml/v8/qv8valuetypewrapper_p.h +++ b/src/declarative/qml/v8/qv8valuetypewrapper_p.h @@ -56,6 +56,7 @@ #include <QtCore/qglobal.h> #include <QtDeclarative/qdeclarativelist.h> #include <private/qv8_p.h> +#include <private/qhashedstring_p.h> QT_BEGIN_NAMESPACE @@ -92,6 +93,8 @@ private: QV8Engine *m_engine; v8::Persistent<v8::Function> m_constructor; v8::Persistent<v8::Function> m_toString; + v8::Persistent<v8::String> m_toStringSymbol; + QHashedV8String m_toStringString; }; QT_END_NAMESPACE |