Skip to content

Commit

Permalink
Added some debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
dmpots committed Aug 12, 2011
1 parent 3604de7 commit 433d5a2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion rts/codegen/AsmCodeGen.c
Original file line number Diff line number Diff line change
Expand Up @@ -1206,7 +1206,7 @@ void genAsm(JitState *J, Fragment *T) {

/* generate code in linear backwards order need */
RA_DBG_START();
as->stopins = REF_BASE + 67;
as->stopins = REF_BASE;
as->curins = T->nins;
as->curins = REF_FIRST + 118; // for testing
for(as->curins--; as->curins > as->stopins; as->curins--) {
Expand All @@ -1222,6 +1222,13 @@ void genAsm(JitState *J, Fragment *T) {
/* Add renames for any phis spilled outside the loop */
asm_phi_spill_fixup(as);

/* Sanity check. Should never happen. */
if (as->freeset != RSET_ALL)
LC_ASSERT(0 && "Oops. All registers have not been freed");

RA_DBGX((as, "===== START ===="));
RA_DBG_FLUSH();

/* Save the trace's machine code */
T->mcode = as->mcp;
T->szmcode = (MSize)((char *)as->mctop - (char *)as->mcp);
Expand Down

0 comments on commit 433d5a2

Please sign in to comment.