aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qv4isel_moth.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/compiler/qv4isel_moth.cpp')
-rw-r--r--src/qml/compiler/qv4isel_moth.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/qml/compiler/qv4isel_moth.cpp b/src/qml/compiler/qv4isel_moth.cpp
index a0a89482d6..40a44844ce 100644
--- a/src/qml/compiler/qv4isel_moth.cpp
+++ b/src/qml/compiler/qv4isel_moth.cpp
@@ -321,7 +321,9 @@ InstructionSelection::InstructionSelection(QQmlEnginePrivate *qmlEngine, QV4::Ex
, _codeEnd(0)
, _currentStatement(0)
, compilationUnit(new CompilationUnit)
-{}
+{
+ setUseTypeInference(false);
+}
InstructionSelection::~InstructionSelection()
{
@@ -351,7 +353,7 @@ void InstructionSelection::run(int functionIndex)
qSwap(codeEnd, _codeEnd);
IR::Optimizer opt(_function);
- opt.run(qmlEngine);
+ opt.run(qmlEngine, useTypeInference, /*peelLoops =*/ false);
if (opt.isInSSA()) {
static const bool doStackSlotAllocation =
qgetenv("QV4_NO_INTERPRETER_STACK_SLOT_ALLOCATION").isEmpty();