Bug 453636 Make nanojit build with VC7.1 r=danderson a191=beltzner

This commit is contained in:
Roy Tam 2008-11-27 10:21:22 +00:00
parent 18f4d49483
commit fe427a60e2
2 changed files with 8 additions and 2 deletions

View File

@ -142,7 +142,9 @@ namespace nanojit
trackFree(-1);
}
//fprintf(stderr, "Fragmento::pageAlloc %X, %d free pages of %d\n", (int)page, _stats.freePages, _stats.pages);
#ifdef NJ_VERBOSE
NanoAssert(pageCount()==_stats.freePages);
#endif
return page;
}
@ -154,7 +156,9 @@ namespace nanojit
page->next = _pageList;
_pageList = page;
trackFree(+1);
#ifdef NJ_VERBOSE
NanoAssert(pageCount()==_stats.freePages);
#endif
}
void Fragmento::pagesGrow(int32_t count)
@ -203,7 +207,9 @@ namespace nanojit
page = next;
}
page->next = 0;
#ifdef NJ_VERBOSE
NanoAssert(pageCount()==_stats.freePages);
#endif
//fprintf(stderr,"Fragmento::pageGrow adding page %x ; %d\n", (intptr_t)page, count);
}
}

View File

@ -131,12 +131,12 @@ namespace nanojit
#define verbose_output if (verbose_enabled()) Assembler::output
#define verbose_outputf if (verbose_enabled()) Assembler::outputf
#define verbose_enabled() (_verbose)
#define verbose_only(...) __VA_ARGS__
#define verbose_only(x) x
#else
#define verbose_output
#define verbose_outputf
#define verbose_enabled()
#define verbose_only(...)
#define verbose_only(x)
#endif /*NJ_VERBOSE*/
#ifdef _DEBUG