aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4engine_p.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2021-02-18 17:33:34 +0100
committerUlf Hermann <ulf.hermann@qt.io>2021-02-19 00:14:28 +0100
commitd446cb746f4e8e84efea8b3afda530d6da52d5f5 (patch)
treedcc440d1fde2d053eb831525027ff8b36bc8ab75 /src/qml/jsruntime/qv4engine_p.h
parent7104a3a6f8fe518bd8a0d0d246c0f65df340ee38 (diff)
QML: Do not JIT-compile AOT-compiled function
The AOT-compiled code is supposed to be the best one if available. Pick-to: 6.1 Change-Id: Ib66a3d8e57cf437e0a5e6395f2ec6a0ab21f39c0 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4engine_p.h')
-rw-r--r--src/qml/jsruntime/qv4engine_p.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4engine_p.h b/src/qml/jsruntime/qv4engine_p.h
index 4529d09c2d..7fc2b1670b 100644
--- a/src/qml/jsruntime/qv4engine_p.h
+++ b/src/qml/jsruntime/qv4engine_p.h
@@ -677,8 +677,10 @@ public:
#if QT_CONFIG(qml_jit)
if (!m_canAllocateExecutableMemory)
return false;
- if (f)
- return !f->isGenerator() && f->interpreterCallCount >= jitCallCountThreshold;
+ if (f) {
+ return !f->aotFunction && !f->isGenerator()
+ && f->interpreterCallCount >= jitCallCountThreshold;
+ }
return true;
#else
Q_UNUSED(f);