Fix compile of the non-threaded V4 interpreter.
authorRoberto Raggi <roberto.raggi@nokia.com>
Wed, 28 Sep 2011 13:27:48 +0000 (15:27 +0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 29 Sep 2011 07:51:09 +0000 (09:51 +0200)
Change-Id: I263e9826c513f8edaaf510ff1206b588dfe92f7b
Reviewed-on: http://codereview.qt-project.org/5725
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
src/declarative/qml/v4/qdeclarativev4instruction.cpp
src/declarative/qml/v4/qdeclarativev4instruction_p.h

index 6ae28f9..e9556d6 100644 (file)
@@ -362,7 +362,7 @@ V4Instr::Type Bytecode::instructionType(const V4Instr *instr) const
     return static_cast<V4Instr::Type>(0);
 #  undef CHECK_V4_INSTR_CODE
 #else
-    return static_cast<V4Instr::Type>(instr.common.type);
+    return static_cast<V4Instr::Type>(instr->common.type);
 #endif
 
 }
index 46336b4..3a125f7 100644 (file)
@@ -161,7 +161,7 @@ QT_BEGIN_NAMESPACE
 #  define QML_V4_END_INSTR(I,FMT) code += QML_V4_INSTR_SIZE(I, FMT); instr = (const V4Instr *) code; goto *instr->common.code;
 #  define QML_V4_INSTR_HEADER void *code;
 #else
-#  define QML_V4_BEGIN_INSTR(I,FMT) case Instr::I:
+#  define QML_V4_BEGIN_INSTR(I,FMT) case V4Instr::I:
 #  define QML_V4_END_INSTR(I,FMT) code += QML_V4_INSTR_SIZE(I, FMT); instr = (const V4Instr *) code; break;
 #  define QML_V4_INSTR_HEADER quint8 type;
 #endif