From 8fdfd9ff5ded388a3d29c917aebb795485abfbfd Mon Sep 17 00:00:00 2001 From: Erik Verbruggen Date: Fri, 6 Jul 2018 14:36:11 +0200 Subject: JS: Encode result of Math.min and Math.max as int when possible So now Math.max(array1.length, array2.length) won't return a double anymore. This improves the score in the crypto benchmark by ~10% Change-Id: I8453a671d28d7f2a39ba74b18b3155f031d9b12f Reviewed-by: Simon Hausmann --- src/qml/jsapi/qjsvalue_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qml/jsapi/qjsvalue_p.h') diff --git a/src/qml/jsapi/qjsvalue_p.h b/src/qml/jsapi/qjsvalue_p.h index 62e09f72be..bcf0a9d12d 100644 --- a/src/qml/jsapi/qjsvalue_p.h +++ b/src/qml/jsapi/qjsvalue_p.h @@ -62,7 +62,7 @@ QT_BEGIN_NAMESPACE -class QJSValuePrivate +class Q_AUTOTEST_EXPORT QJSValuePrivate { public: static inline QV4::Value *getValue(const QJSValue *jsval) -- cgit v1.2.3