diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-05-26 07:46:40 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-05-26 07:46:40 (GMT) |
commit | d010e6e53c1f3c2704eb3c548e58e8f37febcc29 (patch) | |
tree | ef4e2b8fed66e056eacf4c1d9fd816b8a8cce52b | |
parent | 59c3a7ca89742992e3737e8bb03c7e3eacf578e1 (diff) | |
download | Qt-d010e6e53c1f3c2704eb3c548e58e8f37febcc29.zip Qt-d010e6e53c1f3c2704eb3c548e58e8f37febcc29.tar.gz Qt-d010e6e53c1f3c2704eb3c548e58e8f37febcc29.tar.bz2 |
Remove the NoOp instruction
-rw-r--r-- | src/declarative/qml/qmlinstruction.cpp | 3 | ||||
-rw-r--r-- | src/declarative/qml/qmlinstruction_p.h | 11 | ||||
-rw-r--r-- | src/declarative/qml/qmlvme.cpp | 10 |
3 files changed, 2 insertions, 22 deletions
diff --git a/src/declarative/qml/qmlinstruction.cpp b/src/declarative/qml/qmlinstruction.cpp index 7103d87..31bd2f5 100644 --- a/src/declarative/qml/qmlinstruction.cpp +++ b/src/declarative/qml/qmlinstruction.cpp @@ -163,9 +163,6 @@ void QmlCompiledComponent::dump(QmlInstruction *instr, int idx) case QmlInstruction::PopQList: qWarning() << idx << "\t" << line << "\t" << "POP_QLIST"; break; - case QmlInstruction::NoOp: - qWarning() << idx << "\t" << line << "\t" << "NOOP"; - break; case QmlInstruction::PushProperty: qWarning() << idx << "\t" << line << "\t" << "PUSH_PROPERTY" << "\t\t" << instr->pushProperty.property; break; diff --git a/src/declarative/qml/qmlinstruction_p.h b/src/declarative/qml/qmlinstruction_p.h index bc696b1..47a8d76 100644 --- a/src/declarative/qml/qmlinstruction_p.h +++ b/src/declarative/qml/qmlinstruction_p.h @@ -143,17 +143,10 @@ public: // StoreStackObject - Assign the stack object (no checks) PushProperty, /* pushProperty */ AssignStackObject, /* assignStackObject */ - StoreStackObject, /* assignStackObject */ - - - // - // Miscellaneous - // - // NoOp - Do nothing - NoOp + StoreStackObject /* assignStackObject */ }; QmlInstruction() - : type(NoOp), line(0) {} + : line(0) {} Type type; unsigned short line; diff --git a/src/declarative/qml/qmlvme.cpp b/src/declarative/qml/qmlvme.cpp index 07165ec..e2441c6 100644 --- a/src/declarative/qml/qmlvme.cpp +++ b/src/declarative/qml/qmlvme.cpp @@ -103,7 +103,6 @@ Q_DECLARE_PERFORMANCE_LOG(QFxCompiler) { Q_DECLARE_PERFORMANCE_METRIC(InstrPushProperty); Q_DECLARE_PERFORMANCE_METRIC(InstrAssignStackObject); Q_DECLARE_PERFORMANCE_METRIC(InstrStoreStackObject); - Q_DECLARE_PERFORMANCE_METRIC(InstrNoOp); Q_DECLARE_PERFORMANCE_METRIC(Dummy); } @@ -144,7 +143,6 @@ Q_DEFINE_PERFORMANCE_LOG(QFxCompiler, "QFxCompiler") { Q_DEFINE_PERFORMANCE_METRIC(InstrPushProperty, "PushProperty"); Q_DEFINE_PERFORMANCE_METRIC(InstrAssignStackObject, "AssignStackObject"); Q_DEFINE_PERFORMANCE_METRIC(InstrStoreStackObject, "StoreStackObject"); - Q_DEFINE_PERFORMANCE_METRIC(InstrNoOp, "NoOp"); Q_DEFINE_PERFORMANCE_METRIC(Dummy, "Dummy"); } @@ -986,14 +984,6 @@ QObject *QmlVME::run(QmlContext *ctxt, QmlCompiledComponent *comp, int start, in } break; - case QmlInstruction::NoOp: - { -#ifdef Q_ENABLE_PERFORMANCE_LOG - QFxCompilerTimer<QFxCompiler::InstrNoOp> cc; -#endif - } - break; - default: qFatal("QmlCompiledComponent: Internal error - unknown instruction %d", instr.type); break; |