aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmldiskcache
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@qt.io>2016-07-20 12:50:56 +0200
committerSimon Hausmann <simon.hausmann@qt.io>2016-07-21 04:55:52 +0000
commita6b2c5100afd3236042f9a44811686bf67508a52 (patch)
tree93651e5686f82675b87b1f0c3ec878ab03ab7d4f /tests/auto/qml/qmldiskcache
parente4aaa3845ce153273be8322cf95808ee04bb30c8 (diff)
Add support for saving/loading the moth interpreter byte code
With the JIT and moth supporting persistence, we can enable the disk cache tests unconditionally. Change-Id: I6d6652411237001433a32a2de21d1f78f51b43ef Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'tests/auto/qml/qmldiskcache')
-rw-r--r--tests/auto/qml/qmldiskcache/tst_qmldiskcache.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/tests/auto/qml/qmldiskcache/tst_qmldiskcache.cpp b/tests/auto/qml/qmldiskcache/tst_qmldiskcache.cpp
index f85f66378a..bb78f2856f 100644
--- a/tests/auto/qml/qmldiskcache/tst_qmldiskcache.cpp
+++ b/tests/auto/qml/qmldiskcache/tst_qmldiskcache.cpp
@@ -134,7 +134,6 @@ void tst_qmldiskcache::regenerateAfterChange()
QVERIFY2(testCompiler.compile(contents), qPrintable(testCompiler.lastErrorString));
-#ifdef V4_ENABLE_JIT
{
const QV4::CompiledData::Unit *testUnit = testCompiler.mapUnit();
QVERIFY2(testUnit, qPrintable(testCompiler.lastErrorString));
@@ -151,10 +150,6 @@ void tst_qmldiskcache::regenerateAfterChange()
const QV4::CompiledData::Function *bindingFunction = testUnit->functionAt(1);
QVERIFY(bindingFunction->codeOffset > testUnit->unitSize);
}
-#else
- QVERIFY(!testCompiler.mapUnit());
- return;
-#endif
engine.clearComponentCache();
@@ -196,7 +191,6 @@ void tst_qmldiskcache::registerImportForImplicitComponent()
"}");
QVERIFY2(testCompiler.compile(contents), qPrintable(testCompiler.lastErrorString));
-#ifdef V4_ENABLE_JIT
{
const QV4::CompiledData::Unit *testUnit = testCompiler.mapUnit();
QVERIFY2(testUnit, qPrintable(testCompiler.lastErrorString));
@@ -218,10 +212,6 @@ void tst_qmldiskcache::registerImportForImplicitComponent()
const QV4::CompiledData::Object *implicitComponent = testUnit->objectAt(obj->bindingTable()->value.objectIndex);
QCOMPARE(testUnit->stringAt(implicitComponent->inheritedTypeNameIndex), QStringLiteral("QmlInternals.") + componentType->elementName());
}
-#else
- QVERIFY(!testCompiler.mapUnit());
- return;
-#endif
}
QTEST_MAIN(tst_qmldiskcache)