From d5e48e84d79be3e956129e5f991e3373d2a46830 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 28 Aug 2008 17:27:29 -0700 Subject: [PATCH] Added descriptive messages to always-taken assertions in Nativei386.cpp. --- js/src/nanojit/Nativei386.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/js/src/nanojit/Nativei386.cpp b/js/src/nanojit/Nativei386.cpp index 9c294ae94c4..4949a8dc3a4 100644 --- a/js/src/nanojit/Nativei386.cpp +++ b/js/src/nanojit/Nativei386.cpp @@ -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); } }