* COUNT, COUNT_SPILLS: Added.
authortwisti <none@none>
Thu, 22 Dec 2005 14:01:34 +0000 (14:01 +0000)
committertwisti <none@none>
Thu, 22 Dec 2005 14:01:34 +0000 (14:01 +0000)
src/vm/jit/jit.h

index f3d858701778f5dce725f2daf3d245dda3b17a18..e82a986b0b65e29c65c34734aa7f4c2c150ad4e5 100644 (file)
@@ -29,7 +29,7 @@
 
    Changes: Christian Thalinger
 
-   $Id: jit.h 3811 2005-11-28 16:23:40Z edwin $
+   $Id: jit.h 3996 2005-12-22 14:01:34Z twisti $
 
 */
 
@@ -46,15 +46,28 @@ typedef struct instruction instruction;
 typedef struct subroutineinfo subroutineinfo;
 
 
+#include "config.h"
+#include "vm/types.h"
+
 #include "toolbox/chain.h"
 #include "vm/global.h"
-#include "vm/references.h"
 #include "vm/method.h"
+#include "vm/references.h"
+#include "vm/statistics.h"
 #include "vm/jit/codegen.inc.h"
 #include "vm/jit/verify/typeinfo.h"
 
 
-/**************************** resolve typedef-cycles **************************/
+/* common jit/codegen macros **************************************************/
+
+#if defined(ENABLE_STATISTICS)
+# define COUNT(x)        (x)++
+# define COUNT_SPILLS    count_spills++
+#else
+# define COUNT(x)        /* nothing */
+# define COUNT_SPILLS    /* nothing */
+#endif
+
 
 /************************** stack element structure ***************************/