noway_assert((curRegNum % 2) == 0);
// We leave the fieldSize as EA_4BYTE; but we must do 2 reg moves.
break;
- default: _ASSERTE(fieldVarDsc->lvExactSize == 4); break;
+ default: assert(fieldVarDsc->lvExactSize == 4); break;
}
}
else
#if defined(_PREFAST_) || defined(_PREFIX_)
PREFIX_ASSUME(pParam->pComp != NULL);
#else
- _ASSERTE(pParam->pComp != NULL);
+ assert(pParam->pComp != NULL);
#endif
pParam->pComp->compInit(pParam->pAlloc, pParam->inlineInfo);
// free() is redefined to cause a runtime error instead of a compile time error.
#undef free
#ifdef DEBUG
-#define free(x) _ASSERTE(false && "Must not call free(). Use a ClrXXX function instead.")
+#define free(x) assert(false && "Must not call free(). Use a ClrXXX function instead.")
#endif
#if CHECK_STRUCT_PADDING
header->gsCookieOffset = INVALID_GS_COOKIE_OFFSET;
if (compiler->getNeedsGSSecurityCookie())
{
- _ASSERTE(compiler->lvaGSSecurityCookie != BAD_VAR_NUM);
+ assert(compiler->lvaGSSecurityCookie != BAD_VAR_NUM);
int stkOffs = compiler->lvaTable[compiler->lvaGSSecurityCookie].lvStkOffs;
header->gsCookieOffset = compiler->isFramePointerUsed() ? -stkOffs : stkOffs;
assert(header->gsCookieOffset != INVALID_GS_COOKIE_OFFSET);
#ifdef DEBUG
private:
GenTree& operator=(const GenTree& gt) {
- _ASSERTE(!"Don't copy");
+ assert(!"Don't copy");
return *this;
}
#endif // DEBUG
CORINFO_GENERIC_HANDLE handle = 0;
void *pIndirection = 0;
- _ASSERTE(pLookup->constLookup.accessType != IAT_PPVALUE);
+ assert(pLookup->constLookup.accessType != IAT_PPVALUE);
if (pLookup->constLookup.accessType == IAT_VALUE)
handle = pLookup->constLookup.handle;
return gtNewLclvNode(tmp, TYP_I_IMPL);
}
- _ASSERTE(pLookup->indirections != 0);
+ assert(pLookup->indirections != 0);
impSpillSideEffects(true, CHECK_SPILL_ALL DEBUGARG("bubbling QMark1"));
}
else
{
- _ASSERTE(intrinsicID == CORINFO_INTRINSIC_Array_Address);
+ assert(intrinsicID == CORINFO_INTRINSIC_Array_Address);
// Fetch the return type
typeInfo retInfo = verMakeTypeInfo(LocalSig.retType, LocalSig.retTypeClass);
void JitConfigValues::MethodSet::initialize(const wchar_t* list, ICorJitHost* host)
{
- _ASSERTE(m_list == nullptr);
+ assert(m_list == nullptr);
enum State { NO_NAME, CLS_NAME, FUNC_NAME, ARG_LIST }; // parsing state machine
if (m_list[i] == '\0' || m_list[i] == SEP_CHAR || m_list[i] == '(')
{
DONE_FUNC_NAME:
- _ASSERTE(m_list[i] == '\0' || m_list[i] == SEP_CHAR || m_list[i] == '(');
+ assert(m_list[i] == '\0' || m_list[i] == SEP_CHAR || m_list[i] == '(');
if (m_list[nameStart] == '*' && !isQuoted)
{
}
else
{
- _ASSERTE(m_list[i] == '(');
+ assert(m_list[i] == '(');
currentName.m_numArgs = -1;
state = ARG_LIST;
}
}
DONE_ARG_LIST:
- _ASSERTE(m_list[i] == '\0' || m_list[i] == SEP_CHAR || m_list[i] == ')');
+ assert(m_list[i] == '\0' || m_list[i] == SEP_CHAR || m_list[i] == ')');
// We have parsed an entire method name; create a new entry in the list for it.
MethodName* name = (MethodName*)host->allocateMemory(sizeof(MethodName));
*name = currentName;
- _ASSERTE(name->m_next == nullptr);
+ assert(name->m_next == nullptr);
*lastName = name;
lastName = &name->m_next;
break;
default:
- _ASSERTE(!"Bad state");
+ assert(!"Bad state");
break;
}
}
void JitConfigValues::initialize(ICorJitHost* host)
{
- _ASSERTE(!m_isInitialized);
+ assert(!m_isInitialized);
#define CONFIG_INTEGER(name, key, defaultValue) m_##name = host->getIntConfigValue(key, defaultValue);
#define CONFIG_STRING(name, key) m_##name = host->getStringConfigValue(key);
void ConfigMethodRange::initRanges(const wchar_t* rangeStr)
{
// make sure that the memory was zero initialized
- _ASSERTE(m_inited == 0 || m_inited == 1);
+ assert(m_inited == 0 || m_inited == 1);
if (rangeStr == nullptr)
{
__in_ecount(cbBufSize) char * pBufStart, size_t cbBufSize,
__in_z const char * fmt, ...)
{
- _ASSERTE(fmt);
- _ASSERTE(pBufStart);
- _ASSERTE(pWriteStart);
- _ASSERTE((size_t)pBufStart <= (size_t)pWriteStart);
+ assert(fmt);
+ assert(pBufStart);
+ assert(pWriteStart);
+ assert((size_t)pBufStart <= (size_t)pWriteStart);
int ret;
//compute the space left in the buffer.
inline void ensureInit(const wchar_t* rangeStr)
{
// make sure that the memory was zero initialized
- _ASSERTE(m_inited == 0 || m_inited == 1);
+ assert(m_inited == 0 || m_inited == 1);
if (!m_inited)
{
initRanges(rangeStr);
- _ASSERTE(m_inited == 1);
+ assert(m_inited == 1);
}
}