diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-07-15 09:22:42 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-07-15 09:22:42 (GMT) |
commit | f828db056642ac2373c8592c11039e1c7f1b1046 (patch) | |
tree | 53cd65d3e1f44778b608f711b37c0183023b34bb /src/declarative/qml/qmlcompileddata.cpp | |
parent | fa04625271c725deb669500a8196a07f0c1683b5 (diff) | |
download | Qt-f828db056642ac2373c8592c11039e1c7f1b1046.zip Qt-f828db056642ac2373c8592c11039e1c7f1b1046.tar.gz Qt-f828db056642ac2373c8592c11039e1c7f1b1046.tar.bz2 |
Remove pointless QmlCompiledComponent class
Diffstat (limited to 'src/declarative/qml/qmlcompileddata.cpp')
-rw-r--r-- | src/declarative/qml/qmlcompileddata.cpp | 37 |
1 files changed, 18 insertions, 19 deletions
diff --git a/src/declarative/qml/qmlcompileddata.cpp b/src/declarative/qml/qmlcompileddata.cpp index 5c47d62..0834794 100644 --- a/src/declarative/qml/qmlcompileddata.cpp +++ b/src/declarative/qml/qmlcompileddata.cpp @@ -43,13 +43,15 @@ #include "qmlengine.h" #include "qmlcomponent.h" #include "qmlcomponent_p.h" -#include "qmlcompiledcomponent_p.h" #include "qmlcontext.h" #include "qmlcontext_p.h" #include <private/qobject_p.h> +#include <QtCore/qdebug.h> QT_BEGIN_NAMESPACE +DEFINE_BOOL_CONFIG_OPTION(compilerDump, QML_COMPILER_DUMP); + int QmlCompiledData::pack(const char *data, size_t size) { const char *p = packData.constData(); @@ -153,11 +155,6 @@ QmlCompiledData::QmlCompiledData() { } -QmlCompiledData::QmlCompiledData(const QmlCompiledData &other) -{ - *this = other; -} - QmlCompiledData::~QmlCompiledData() { for (int ii = 0; ii < types.count(); ++ii) { @@ -166,19 +163,6 @@ QmlCompiledData::~QmlCompiledData() } } -QmlCompiledData &QmlCompiledData::operator=(const QmlCompiledData &other) -{ - types = other.types; - root = other.root; - primitives = other.primitives; - floatData = other.floatData; - intData = other.intData; - customTypeData = other.customTypeData; - datas = other.datas; - bytecode = other.bytecode; - return *this; -} - QObject *QmlCompiledData::TypeReference::createInstance(QmlContext *ctxt) const { if (type) { @@ -207,5 +191,20 @@ const QMetaObject *QmlCompiledData::TypeReference::metaObject() const } } +void QmlCompiledData::dumpInstructions() +{ + if (!compilerDump()) + return; + + if (!name.isEmpty()) + qWarning() << name; + qWarning() << "Index\tLine\tOperation\t\tData1\tData2\t\tComments"; + qWarning() << "-------------------------------------------------------------------------------"; + for (int ii = 0; ii < bytecode.count(); ++ii) { + dump(&bytecode[ii], ii); + } + qWarning() << "-------------------------------------------------------------------------------"; +} + QT_END_NAMESPACE |