diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2020-11-26 12:04:15 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2020-11-26 15:00:04 +0100 |
commit | f3ff873f67474d30cc04fb7b7a35e78d1c8922e3 (patch) | |
tree | 9d5873494e9058fa3a165af8674d29175692c201 /src/qml/jsruntime/qv4executablecompilationunit.cpp | |
parent | 845b84980ec14979d08277b8f0ea026fcc99a6ac (diff) |
Respect QV4_FORCE_INTERPRETER when AOT compiled functions are available
Those should not be executed then.
Change-Id: I80bc4b2da0bc0e5813ba4eef4b756065d48ac586
Reviewed-by: Maximilian Goldstein <max.goldstein@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4executablecompilationunit.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4executablecompilationunit.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4executablecompilationunit.cpp b/src/qml/jsruntime/qv4executablecompilationunit.cpp index c01a1142e0..7059c14212 100644 --- a/src/qml/jsruntime/qv4executablecompilationunit.cpp +++ b/src/qml/jsruntime/qv4executablecompilationunit.cpp @@ -211,7 +211,9 @@ QV4::Function *ExecutableCompilationUnit::linkToEngine(ExecutionEngine *engine) } runtimeFunctions.resize(data->functionTableSize); - const QQmlPrivate::AOTCompiledFunction *aotFunction = aotCompiledFunctions; + static bool forceInterpreter = qEnvironmentVariableIsSet("QV4_FORCE_INTERPRETER"); + const QQmlPrivate::AOTCompiledFunction *aotFunction + = forceInterpreter ? nullptr : aotCompiledFunctions; auto advanceAotFunction = [&](int i) -> const QQmlPrivate::AOTCompiledFunction * { if (aotFunction) { |