aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4engine_p.h
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@qt.io>2018-01-10 13:41:39 +0100
committerErik Verbruggen <erik.verbruggen@qt.io>2018-01-17 14:57:42 +0000
commit72c913085d7ce83733475864448e906c2894b6c1 (patch)
tree2066ed544bb6b548d2661c9c58ba6776b1d8dffb /src/qml/jsruntime/qv4engine_p.h
parenta3af371dbc19801347b715bcd2aa6d3b5e260924 (diff)
V4 JIT: Fix JIT threshold
Because increments for the interpreter call counts are done after checking the threshold, the check has to be greater or equal. Otherwise this will be an off-by-one. Change-Id: Iebe6c5770512e58ff5af8170dd33ec850b054966 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4engine_p.h')
-rw-r--r--src/qml/jsruntime/qv4engine_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4engine_p.h b/src/qml/jsruntime/qv4engine_p.h
index 61efe0c41e..44f57299bb 100644
--- a/src/qml/jsruntime/qv4engine_p.h
+++ b/src/qml/jsruntime/qv4engine_p.h
@@ -487,7 +487,7 @@ public:
bool canJIT(Function *f)
{
#if defined(V4_ENABLE_JIT) && !defined(V4_BOOTSTRAP)
- return f->interpreterCallCount > jitCallCountThreshold;
+ return f->interpreterCallCount >= jitCallCountThreshold;
#else
Q_UNUSED(f);
return false;