Author: zoltan
Date: 2007-05-28 11:44:03 -0400 (Mon, 28 May 2007)
New Revision: 78068
Modified:
branches/vargaz/mini-linear-il/mono/mono/mini/ChangeLog
branches/vargaz/mini-linear-il/mono/mono/mini/method-to-ir.c
Log:
2007-05-28 Zoltan Varga <[EMAIL PROTECTED]>
* method-to-ir.c (mono_method_to_ir2): Fix loading of static fields of
type i8.
Modified: branches/vargaz/mini-linear-il/mono/mono/mini/ChangeLog
===================================================================
--- branches/vargaz/mini-linear-il/mono/mono/mini/ChangeLog 2007-05-28
15:21:09 UTC (rev 78067)
+++ branches/vargaz/mini-linear-il/mono/mono/mini/ChangeLog 2007-05-28
15:44:03 UTC (rev 78068)
@@ -1,3 +1,7 @@
+2007-05-28 Zoltan Varga <[EMAIL PROTECTED]>
+
+ * method-to-ir.c (mono_method_to_ir2): Fix loading of static fields of
type i8.
+
2007-05-27 Zoltan Varga <[EMAIL PROTECTED]>
* abcremoval2.c (mono_perform_abc_removal2): Avoid using alloca.
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
2007-05-28 15:21:09 UTC (rev 78067)
+++ branches/vargaz/mini-linear-il/mono/mono/mini/method-to-ir.c
2007-05-28 15:44:03 UTC (rev 78068)
@@ -345,6 +345,12 @@
(dest)->dreg = alloc_dreg ((cfg), STACK_PTR); \
} while (0)
+#define NEW_I8CONST(cfg,dest,val) do { \
+ MONO_INST_NEW ((cfg), (dest), OP_I8CONST); \
+ (dest)->dreg = alloc_lreg ((cfg)); \
+ (dest)->inst_l = (val); \
+ } while (0)
+
#define NEW_STORE_MEMBASE(cfg,dest,op,base,offset,sr) do { \
MONO_INST_NEW ((cfg), (dest), (op)); \
(dest)->sreg1 = sr; \
@@ -571,6 +577,8 @@
#define EMIT_NEW_PCONST(cfg,dest,val) do { NEW_PCONST ((cfg), (dest), (val));
MONO_ADD_INS ((cfg)->cbb, (dest)); } while (0)
+#define EMIT_NEW_I8CONST(cfg,dest,val) do { NEW_I8CONST ((cfg), (dest),
(val)); MONO_ADD_INS ((cfg)->cbb, (dest)); } while (0)
+
#define EMIT_NEW_AOTCONST(cfg,dest,patch_type,cons) do { NEW_AOTCONST ((cfg),
(dest), (patch_type), (cons)); MONO_ADD_INS ((cfg)->cbb, (dest)); } while (0)
#define
EMIT_NEW_AOTCONST_TOKEN(cfg,dest,patch_type,image,token,stack_type,stack_class)
do { NEW_AOTCONST_TOKEN ((cfg), (dest), (patch_type), (image), (token),
(stack_type), (stack_class)); MONO_ADD_INS ((cfg)->cbb, (dest)); } while (0)
@@ -7719,9 +7727,7 @@
break;
case MONO_TYPE_I8:
case MONO_TYPE_U8:
- MONO_INST_NEW (cfg, *sp,
OP_I8CONST);
- sp [0]->type = STACK_I8;
- sp [0]->inst_l = *((gint64
*)addr);
+ EMIT_NEW_I8CONST (cfg, *sp,
*((gint64 *)addr));
sp++;
break;
case MONO_TYPE_R4:
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches