Added descriptive messages to always-taken assertions in Nativei386.cpp.

This commit is contained in:
David Anderson 2008-08-28 17:27:29 -07:00
parent 977123733e
commit d5e48e84d7

View File

@ -385,7 +385,7 @@ namespace nanojit
mem = &branch[6] + *(int32_t *)&branch[2];
*(intptr_t *)mem = intptr_t(location);
} else {
NanoAssert(0);
NanoAssertMsg(0, "Unknown branch type in nPatchBranch");
}
#endif
}
@ -1136,10 +1136,10 @@ namespace nanojit
} else {
if (rmask(r) & XmmRegs) {
// x87 -> xmm
NanoAssert(false);
NanoAssertMsg(false, "Should not move data from GPR to XMM");
} else {
// xmm -> x87
NanoAssert(false);
NanoAssertMsg(false, "Should not move data from GPR/XMM to x87 FPU");
}
}
}
@ -1324,7 +1324,6 @@ namespace nanojit
ORQ(rr, rv);
} else {
NanoAssert(rhs->isconst());
NanoAssert(false);
}
}