* Removed all Id tags.
[cacao.git] / src / vm / jit / show.h
index 0cb488016035472495ca544d60ef43be37ae7edc..573932273bfd0669fd6d4269d595aebf38230c87 100644 (file)
@@ -1,4 +1,4 @@
-/* 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,
@@ -30,7 +30,6 @@
             Christian Thalinger
             Christian Ullrich
 
-   $Id$
 
 */
 
 
 #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[];
@@ -55,11 +61,28 @@ extern char show_jit_type_letters[];
 
 bool show_init(void);
 
-void new_show_method(jitdata *jd, int stage);
-void new_show_basicblock(jitdata *jd, basicblock *bptr, int stage);
-void new_show_icmd(jitdata *jd, instruction *iptr, bool deadcode, int stage);
+void show_method(jitdata *jd, int stage);
+void show_basicblock(jitdata *jd, basicblock *bptr, int stage);
+void show_icmd(jitdata *jd, instruction *iptr, bool deadcode, int stage);
+void show_variable(jitdata *jd, s4 index, int stage);
+void show_variable_array(jitdata *jd, s4 *vars, int n, int stage);
+void show_javalocals_array(jitdata *jd, s4 *vars, int n, int stage);
+void show_allocation(s4 type, s4 flags, s4 regoff);
 #endif /* !defined(NDEBUG) */
 
+/* Debug output filtering */
+
+#if defined(ENABLE_DEBUG_FILTER)
+void show_filters_init(void);
+#define SHOW_FILTER_FLAG_VERBOSECALL_INCLUDE 0x01
+#define SHOW_FILTER_FLAG_VERBOSECALL_EXCLUDE 0x02
+#define SHOW_FILTER_FLAG_SHOW_METHOD 0x04
+void show_filters_apply(methodinfo *m);
+int show_filters_test_verbosecall_enter(methodinfo *m);
+int show_filters_test_verbosecall_exit(methodinfo *m);
+#endif
+
+
 #endif /* _SHOW_H */
 
 /*