aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jit/qv4isel_masm.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2014-03-18 09:20:45 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-19 08:14:56 +0100
commit3b2e7bf03b656b38ba7b24acf7ed38de555635f1 (patch)
tree0a7c9ae7ef73f1fb7d186e4470330b1668477604 /src/qml/jit/qv4isel_masm.cpp
parent44ca5f1be03420978cc8d5468c4c40dcd5174a06 (diff)
Use Q_ASSERT instead of assert
Change-Id: I6185b59a7dfd6977ce82581ab4385e07d78f13f6 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jit/qv4isel_masm.cpp')
-rw-r--r--src/qml/jit/qv4isel_masm.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/qml/jit/qv4isel_masm.cpp b/src/qml/jit/qv4isel_masm.cpp
index d30d69e68f..5cda52832e 100644
--- a/src/qml/jit/qv4isel_masm.cpp
+++ b/src/qml/jit/qv4isel_masm.cpp
@@ -58,7 +58,6 @@
#include <WTFStubs.h>
#include <iostream>
-#include <cassert>
#if ENABLE(ASSEMBLER)
@@ -132,7 +131,7 @@ JSC::MacroAssemblerCodeRef Assembler::link(int *codeSize)
it.next();
IR::BasicBlock *block = it.key();
Label target = _addrs.value(block);
- assert(target.isSet());
+ Q_ASSERT(target.isSet());
foreach (Jump jump, it.value())
jump.linkTo(target, this);
}
@@ -160,7 +159,7 @@ JSC::MacroAssemblerCodeRef Assembler::link(int *codeSize)
it.next();
IR::BasicBlock *block = it.key();
Label target = _addrs.value(block);
- assert(target.isSet());
+ Q_ASSERT(target.isSet());
foreach (DataLabelPtr label, it.value())
linkBuffer.patch(label, linkBuffer.locationOf(target));
}
@@ -941,7 +940,7 @@ void InstructionSelection::binop(IR::AluOp oper, IR::Expr *leftSource, IR::Expr
void InstructionSelection::callProperty(IR::Expr *base, const QString &name, IR::ExprList *args,
IR::Temp *result)
{
- assert(base != 0);
+ Q_ASSERT(base != 0);
prepareCallData(args, base);
@@ -961,7 +960,7 @@ void InstructionSelection::callProperty(IR::Expr *base, const QString &name, IR:
void InstructionSelection::callSubscript(IR::Expr *base, IR::Expr *index, IR::ExprList *args,
IR::Temp *result)
{
- assert(base != 0);
+ Q_ASSERT(base != 0);
prepareCallData(args, base);
generateFunctionCall(result, Runtime::callElement, Assembler::ContextRegister,
@@ -1264,7 +1263,7 @@ void InstructionSelection::convertTypeToUInt32(IR::Temp *source, IR::Temp *targe
void InstructionSelection::constructActivationProperty(IR::Name *func, IR::ExprList *args, IR::Temp *result)
{
- assert(func != 0);
+ Q_ASSERT(func != 0);
prepareCallData(args, 0);
if (useFastLookups && func->global) {
@@ -1301,7 +1300,7 @@ void InstructionSelection::constructProperty(IR::Temp *base, const QString &name
void InstructionSelection::constructValue(IR::Temp *value, IR::ExprList *args, IR::Temp *result)
{
- assert(value != 0);
+ Q_ASSERT(value != 0);
prepareCallData(args, 0);
generateFunctionCall(result, Runtime::constructValue,
@@ -1371,7 +1370,7 @@ void InstructionSelection::visitCJump(IR::CJump *s)
Runtime::CompareOperationContext opContext = 0;
const char *opName = 0;
switch (b->op) {
- default: Q_UNREACHABLE(); assert(!"todo"); break;
+ default: Q_UNREACHABLE(); Q_ASSERT(!"todo"); break;
case IR::OpGt: setOp(op, opName, Runtime::compareGreaterThan); break;
case IR::OpLt: setOp(op, opName, Runtime::compareLessThan); break;
case IR::OpGe: setOp(op, opName, Runtime::compareGreaterEqual); break;