break;
}
- printf(", icount: %d, preds: %d [ ",
- bptr->icount, bptr->predecessorcount);
+ printf(", icount: %d", bptr->icount);
- for (i = 0; i < bptr->predecessorcount; i++)
- printf("%d ", bptr->predecessors[i]->nr);
+ if (stage >= SHOW_CFG) {
+ printf(", preds: %d [ ", bptr->predecessorcount);
- printf("]):");
+ for (i = 0; i < bptr->predecessorcount; i++)
+ printf("%d ", bptr->predecessors[i]->nr);
+
+ printf("]");
+ }
+
+ printf("):\n");
if (bptr->original)
printf(" (clone of L%03d)", bptr->original->nr);
-/* vm/jit/show.h - showing the intermediate representation
+/* src/vm/jit/show.h - showing the intermediate representation
Copyright (C) 1996-2005, 2006 R. Grafl, A. Krall, C. Kruegel,
C. Oates, R. Obermaisser, M. Platter, M. Probst, S. Ring,
#include "vm/jit/jit.h"
+
+/* compiler stage defines *****************************************************/
+
#define SHOW_INSTRUCTIONS 0
#define SHOW_PARSE 1
#define SHOW_STACK 2
-#define SHOW_REGS 3
-#define SHOW_CODE 4
+#define SHOW_CFG 3
+#define SHOW_REGS 4
+#define SHOW_CODE 5
+
+
+/* function prototypes ********************************************************/
#if !defined(NDEBUG)
extern char *show_jit_type_names[];