diff options
-rw-r--r-- | src/qml/compiler/qv4regalloc.cpp | 2 | ||||
-rw-r--r-- | src/qml/jsruntime/qv4vme_moth.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/qml/compiler/qv4regalloc.cpp b/src/qml/compiler/qv4regalloc.cpp index acf09461ae..1c8bb66fc1 100644 --- a/src/qml/compiler/qv4regalloc.cpp +++ b/src/qml/compiler/qv4regalloc.cpp @@ -812,8 +812,8 @@ private: foreach (const Move &m, _moves) if (m.needsSwap) ++swapCount; -#endif Q_ASSERT(output.size() == _moves.size() + swapCount); +#endif } #ifdef DEBUG_REGALLOC diff --git a/src/qml/jsruntime/qv4vme_moth.cpp b/src/qml/jsruntime/qv4vme_moth.cpp index d5416105fa..5049dffe7d 100644 --- a/src/qml/jsruntime/qv4vme_moth.cpp +++ b/src/qml/jsruntime/qv4vme_moth.cpp @@ -183,7 +183,9 @@ static inline QV4::Value *getValueRef(QV4::ExecutionContext *context, return c->locals + index; } else if (param.isTemp()) { VMSTATS(paramIsTemp); +#if !defined(QT_NO_DEBUG) Q_ASSERT(param.index < stackSize); +#endif return stack + param.index; } else if (param.isScopedLocal()) { VMSTATS(paramIsScopedLocal); |