Minor optimization

Use the pre-computed hasQmlDependencies boolean in
QV4::Function instead of checking three integers.

Change-Id: Ib7194ccf9e9eb58b0d3c692388adc0cfa4cd3891
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
Lars Knoll 2016-12-12 12:34:56 +01:00
parent 180decaf11
commit 798b3e6fa6
1 changed files with 1 additions and 1 deletions

View File

@ -343,7 +343,7 @@ void QV4::ExecutionContext::simpleCall(Scope &scope, CallData *callData, Functio
scope.result = Q_V4_PROFILE(scope.engine, function);
if (function->compiledFunction->hasQmlDependencies())
if (function->hasQmlDependencies)
QQmlPropertyCapture::registerQmlDependencies(function->compiledFunction, scope);
}