Author: zoltan
Date: 2006-01-15 18:28:02 -0500 (Sun, 15 Jan 2006)
New Revision: 55611

Modified:
   branches/vargaz/mini-linear-il/mono/mono/mini/method-to-ir.c
Log:
Ongoing work

Modified: branches/vargaz/mini-linear-il/mono/mono/mini/method-to-ir.c
===================================================================
--- branches/vargaz/mini-linear-il/mono/mono/mini/method-to-ir.c        
2006-01-15 21:20:32 UTC (rev 55610)
+++ branches/vargaz/mini-linear-il/mono/mono/mini/method-to-ir.c        
2006-01-15 23:28:02 UTC (rev 55611)
@@ -387,6 +387,21 @@
  * IR Emission Macros
  */
 
+static int the_count = 0;
+
+#undef MONO_INST_NEW
+/* 
+ * FIXME: alloc0 is not needed with the new IR, but the old JIT code still
+ * uses the left and right fields, so it has to stay.
+ */
+#define MONO_INST_NEW(cfg,dest,op) do {        \
+        the_count ++; \
+               (dest) = mono_mempool_alloc0 ((cfg)->mempool, sizeof 
(MonoInst));       \
+               (dest)->opcode = (op);  \
+        (dest)->dreg = (dest)->sreg1 = (dest)->sreg2 = -1;  \
+        (dest)->next = NULL; \
+       } while (0)
+
 /*
  * Variants which take a dest argument and do not do an emit
  */

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to