aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/compiler')
-rw-r--r--src/qml/compiler/qv4bytecodegenerator_p.h2
-rw-r--r--src/qml/compiler/qv4compilationunit_moth.cpp2
-rw-r--r--src/qml/compiler/qv4isel_moth.cpp7
3 files changed, 10 insertions, 1 deletions
diff --git a/src/qml/compiler/qv4bytecodegenerator_p.h b/src/qml/compiler/qv4bytecodegenerator_p.h
index 6206086d8e..a9e2bce159 100644
--- a/src/qml/compiler/qv4bytecodegenerator_p.h
+++ b/src/qml/compiler/qv4bytecodegenerator_p.h
@@ -220,7 +220,7 @@ private:
struct JumpData {
int instructionIndex;
int offset;
- int linkedLabel = -1;
+ int linkedLabel;
};
struct I {
diff --git a/src/qml/compiler/qv4compilationunit_moth.cpp b/src/qml/compiler/qv4compilationunit_moth.cpp
index b0a69a6584..a93f0f3407 100644
--- a/src/qml/compiler/qv4compilationunit_moth.cpp
+++ b/src/qml/compiler/qv4compilationunit_moth.cpp
@@ -37,8 +37,10 @@
**
****************************************************************************/
#include "qv4compilationunit_moth_p.h"
+#ifndef V4_BOOTSTRAP
#include <private/qv4function_p.h>
#include <private/qv4vme_moth_p.h>
+#endif
#include <wtf/StdLibExtras.h>
using namespace QV4::Moth;
diff --git a/src/qml/compiler/qv4isel_moth.cpp b/src/qml/compiler/qv4isel_moth.cpp
index dbb67346d2..d2503af5fc 100644
--- a/src/qml/compiler/qv4isel_moth.cpp
+++ b/src/qml/compiler/qv4isel_moth.cpp
@@ -1435,3 +1435,10 @@ Param InstructionSelection::getParam(IR::Expr *e) {
return Param();
}
}
+
+QQmlRefPointer<CompiledData::CompilationUnit> ISelFactory::createUnitForLoading()
+{
+ QQmlRefPointer<CompiledData::CompilationUnit> result;
+ result.adopt(new Moth::CompilationUnit);
+ return result;
+}