summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-08-28 13:45:58 (GMT)
committerKent Hansen <khansen@trolltech.com>2009-08-28 13:49:10 (GMT)
commitbd3cd571ac061b0ed0e8c001c90c4edeafae67d7 (patch)
treebe52a02107fa5157af696cff3c71d731fea4d9ac /src
parent81303731b56a0a7e36673d6eae874e1d7fd95d6d (diff)
downloadQt-bd3cd571ac061b0ed0e8c001c90c4edeafae67d7.zip
Qt-bd3cd571ac061b0ed0e8c001c90c4edeafae67d7.tar.gz
Qt-bd3cd571ac061b0ed0e8c001c90c4edeafae67d7.tar.bz2
Make it possible for autotests to check if JIT is enabled or not
Currently there are some differences in behavior and availability of information between the interpreter and the JIT. This is now documented as expected failures in the relevant autotests.
Diffstat (limited to 'src')
-rw-r--r--src/script/api/qscriptengine.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/script/api/qscriptengine.cpp b/src/script/api/qscriptengine.cpp
index 29044a9..46c6abb 100644
--- a/src/script/api/qscriptengine.cpp
+++ b/src/script/api/qscriptengine.cpp
@@ -3789,4 +3789,15 @@ QScriptSyntaxCheckResult &QScriptSyntaxCheckResult::operator=(const QScriptSynta
return *this;
}
+#ifdef QT_BUILD_INTERNAL
+Q_AUTOTEST_EXPORT bool qt_script_isJITEnabled()
+{
+#if ENABLE(JIT)
+ return true;
+#else
+ return false;
+#endif
+}
+#endif
+
QT_END_NAMESPACE