aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlcompiler_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/qml/qqmlcompiler_p.h')
-rw-r--r--src/qml/qml/qqmlcompiler_p.h21
1 files changed, 7 insertions, 14 deletions
diff --git a/src/qml/qml/qqmlcompiler_p.h b/src/qml/qml/qqmlcompiler_p.h
index 5ad2ee5c48..c866638650 100644
--- a/src/qml/qml/qqmlcompiler_p.h
+++ b/src/qml/qml/qqmlcompiler_p.h
@@ -55,7 +55,6 @@
#include "qqml.h"
#include "qqmlerror.h"
-#include <private/qv8_p.h>
#include "qqmlinstruction_p.h"
#include "qqmlscript_p.h"
#include "qqmlengine_p.h"
@@ -111,7 +110,7 @@ public:
: program(p), cdata(c) {}
QByteArray program;
- v8::Persistent<v8::Array> bindings;
+ QV4::PersistentValue bindings;
QQmlCompiledData *cdata;
};
@@ -187,7 +186,7 @@ namespace QQmlCompilerTypes {
struct BindingReference
{
- enum DataType { QtScript, V4, V8,
+ enum DataType { QtScript,
Tr, TrId };
DataType dataType;
};
@@ -195,17 +194,15 @@ namespace QQmlCompilerTypes {
struct JSBindingReference : public QQmlPool::Class,
public BindingReference
{
- JSBindingReference() : isSafe(false), nextReference(0) {}
+ JSBindingReference() : nextReference(0) {}
QQmlScript::Variant expression;
QQmlScript::Property *property;
QQmlScript::Value *value;
- int compiledIndex:15;
- int sharedIndex:15;
- bool isSafe:1;
+ int compiledIndex : 16;
+ int sharedIndex : 16;
- QString rewrittenExpression;
BindingContext bindingContext;
JSBindingReference *nextReference;
@@ -255,7 +252,7 @@ namespace QQmlCompilerTypes {
{
ComponentCompileState()
: parserStatusCount(0), totalBindingsCount(0), pushedProperties(0), nested(false),
- v8BindingProgramLine(-1), root(0) {}
+ root(0) {}
IdList ids;
int parserStatusCount;
@@ -264,8 +261,6 @@ namespace QQmlCompilerTypes {
bool nested;
QByteArray compiledBindingData;
- QByteArray v8BindingProgram;
- int v8BindingProgramLine;
DepthStack objectDepth;
DepthStack listDepth;
@@ -299,7 +294,7 @@ public:
int evaluateEnum(const QHashedStringRef &scope, const QByteArray& enumValue, bool *ok) const; // for QQmlCustomParser::evaluateEnum
const QMetaObject *resolveType(const QString& name) const; // for QQmlCustomParser::resolveType
- int rewriteBinding(const QQmlScript::Variant& value, const QString& name); // for QQmlCustomParser::rewriteBinding
+ int bindingIdentifier(const QQmlScript::Variant& value); // for QQmlCustomParser::bindingIndex
QString rewriteSignalHandler(const QQmlScript::Variant& value, const QString &name); // for QQmlCustomParser::rewriteSignalHandler
private:
@@ -446,8 +441,6 @@ private:
int ids;
QList<QQmlScript::LocationSpan> scriptBindings;
- QList<QQmlScript::LocationSpan> sharedBindings;
- QList<QQmlScript::LocationSpan> optimizedBindings;
int objects;
};
struct ComponentStats : public QQmlPool::Class