Author: lupus
Date: 2005-03-16 10:00:59 -0500 (Wed, 16 Mar 2005)
New Revision: 41907
Modified:
trunk/mono/mono/mini/ChangeLog
trunk/mono/mono/mini/mini-amd64.c
trunk/mono/mono/mini/mini-ppc.c
trunk/mono/mono/mini/mini-s390.c
trunk/mono/mono/mini/mini-s390x.c
trunk/mono/mono/mini/mini-sparc.c
trunk/mono/mono/mini/mini-x86.c
trunk/mono/mono/mini/mini.c
Log:
Wed Mar 16 16:24:11 CET 2005 Paolo Molaro <[EMAIL PROTECTED]>
* *.c: handle unsafe function pointers where needed.
Modified: trunk/mono/mono/mini/ChangeLog
===================================================================
--- trunk/mono/mono/mini/ChangeLog 2005-03-16 14:56:48 UTC (rev 41906)
+++ trunk/mono/mono/mini/ChangeLog 2005-03-16 15:00:59 UTC (rev 41907)
@@ -1,3 +1,8 @@
+
+Wed Mar 16 16:24:11 CET 2005 Paolo Molaro <[EMAIL PROTECTED]>
+
+ * *.c: handle unsafe function pointers where needed.
+
2005-03-16 Zoltan Varga <[EMAIL PROTECTED]>
* mini.c (mono_jit_free_method): Remove the fixme too.
Modified: trunk/mono/mono/mini/mini-amd64.c
===================================================================
--- trunk/mono/mono/mini/mini-amd64.c 2005-03-16 14:56:48 UTC (rev 41906)
+++ trunk/mono/mono/mini/mini-amd64.c 2005-03-16 15:00:59 UTC (rev 41907)
@@ -472,6 +472,7 @@
case MONO_TYPE_I:
case MONO_TYPE_U:
case MONO_TYPE_PTR:
+ case MONO_TYPE_FNPTR:
case MONO_TYPE_CLASS:
case MONO_TYPE_OBJECT:
case MONO_TYPE_SZARRAY:
@@ -566,6 +567,7 @@
case MONO_TYPE_I:
case MONO_TYPE_U:
case MONO_TYPE_PTR:
+ case MONO_TYPE_FNPTR:
case MONO_TYPE_CLASS:
case MONO_TYPE_OBJECT:
case MONO_TYPE_STRING:
@@ -714,6 +716,7 @@
case MONO_TYPE_I:
case MONO_TYPE_U:
case MONO_TYPE_PTR:
+ case MONO_TYPE_FNPTR:
return TRUE;
case MONO_TYPE_OBJECT:
case MONO_TYPE_STRING:
Modified: trunk/mono/mono/mini/mini-ppc.c
===================================================================
--- trunk/mono/mono/mini/mini-ppc.c 2005-03-16 14:56:48 UTC (rev 41906)
+++ trunk/mono/mono/mini/mini-ppc.c 2005-03-16 15:00:59 UTC (rev 41907)
@@ -229,6 +229,7 @@
case MONO_TYPE_I:
case MONO_TYPE_U:
case MONO_TYPE_PTR:
+ case MONO_TYPE_FNPTR:
return TRUE;
case MONO_TYPE_OBJECT:
case MONO_TYPE_STRING:
Modified: trunk/mono/mono/mini/mini-s390.c
===================================================================
--- trunk/mono/mono/mini/mini-s390.c 2005-03-16 14:56:48 UTC (rev 41906)
+++ trunk/mono/mono/mini/mini-s390.c 2005-03-16 15:00:59 UTC (rev 41907)
@@ -1271,6 +1271,7 @@
case MONO_TYPE_SZARRAY:
case MONO_TYPE_ARRAY:
case MONO_TYPE_PTR:
+ case MONO_TYPE_FNPTR:
case MONO_TYPE_STRING:
cinfo->ret.reg = s390_r2;
sz->code_size += 4;
@@ -1375,6 +1376,7 @@
case MONO_TYPE_I:
case MONO_TYPE_U:
case MONO_TYPE_PTR:
+ case MONO_TYPE_FNPTR:
case MONO_TYPE_CLASS:
case MONO_TYPE_OBJECT:
case MONO_TYPE_STRING:
Modified: trunk/mono/mono/mini/mini-s390x.c
===================================================================
--- trunk/mono/mono/mini/mini-s390x.c 2005-03-16 14:56:48 UTC (rev 41906)
+++ trunk/mono/mono/mini/mini-s390x.c 2005-03-16 15:00:59 UTC (rev 41907)
@@ -1145,6 +1145,7 @@
case MONO_TYPE_SZARRAY:
case MONO_TYPE_ARRAY:
case MONO_TYPE_PTR:
+ case MONO_TYPE_FNPTR:
case MONO_TYPE_STRING:
cinfo->ret.reg = s390_r2;
sz->code_size += 4;
@@ -1228,6 +1229,7 @@
case MONO_TYPE_I:
case MONO_TYPE_U:
case MONO_TYPE_PTR:
+ case MONO_TYPE_FNPTR:
case MONO_TYPE_CLASS:
case MONO_TYPE_OBJECT:
case MONO_TYPE_STRING:
@@ -5686,4 +5688,4 @@
MonoInst* mono_arch_get_thread_intrinsic (MonoCompile* cfg)
{
return NULL;
-}
\ No newline at end of file
+}
Modified: trunk/mono/mono/mini/mini-sparc.c
===================================================================
--- trunk/mono/mono/mini/mini-sparc.c 2005-03-16 14:56:48 UTC (rev 41906)
+++ trunk/mono/mono/mini/mini-sparc.c 2005-03-16 15:00:59 UTC (rev 41907)
@@ -519,6 +519,7 @@
case MONO_TYPE_I:
case MONO_TYPE_U:
case MONO_TYPE_PTR:
+ case MONO_TYPE_FNPTR:
case MONO_TYPE_CLASS:
case MONO_TYPE_OBJECT:
case MONO_TYPE_STRING:
@@ -588,6 +589,7 @@
case MONO_TYPE_I:
case MONO_TYPE_U:
case MONO_TYPE_PTR:
+ case MONO_TYPE_FNPTR:
case MONO_TYPE_CLASS:
case MONO_TYPE_OBJECT:
case MONO_TYPE_SZARRAY:
Modified: trunk/mono/mono/mini/mini-x86.c
===================================================================
--- trunk/mono/mono/mini/mini-x86.c 2005-03-16 14:56:48 UTC (rev 41906)
+++ trunk/mono/mono/mini/mini-x86.c 2005-03-16 15:00:59 UTC (rev 41907)
@@ -238,6 +238,7 @@
case MONO_TYPE_I:
case MONO_TYPE_U:
case MONO_TYPE_PTR:
+ case MONO_TYPE_FNPTR:
case MONO_TYPE_CLASS:
case MONO_TYPE_OBJECT:
case MONO_TYPE_SZARRAY:
@@ -331,6 +332,7 @@
case MONO_TYPE_I:
case MONO_TYPE_U:
case MONO_TYPE_PTR:
+ case MONO_TYPE_FNPTR:
case MONO_TYPE_CLASS:
case MONO_TYPE_OBJECT:
case MONO_TYPE_STRING:
@@ -356,6 +358,7 @@
add_float (&fr, &stack_size, ainfo, TRUE);
break;
default:
+ g_error ("unexpected type 0x%x", ptype->type);
g_assert_not_reached ();
}
}
@@ -591,6 +594,7 @@
case MONO_TYPE_I:
case MONO_TYPE_U:
case MONO_TYPE_PTR:
+ case MONO_TYPE_FNPTR:
return TRUE;
case MONO_TYPE_OBJECT:
case MONO_TYPE_STRING:
Modified: trunk/mono/mono/mini/mini.c
===================================================================
--- trunk/mono/mono/mini/mini.c 2005-03-16 14:56:48 UTC (rev 41906)
+++ trunk/mono/mono/mini/mini.c 2005-03-16 15:00:59 UTC (rev 41907)
@@ -1918,6 +1918,7 @@
case MONO_TYPE_I:
case MONO_TYPE_U:
case MONO_TYPE_PTR:
+ case MONO_TYPE_FNPTR:
return calli? OP_CALL_REG: virt? CEE_CALLVIRT: CEE_CALL;
case MONO_TYPE_CLASS:
case MONO_TYPE_STRING:
@@ -2045,6 +2046,7 @@
case MONO_TYPE_I:
case MONO_TYPE_U:
case MONO_TYPE_PTR:
+ case MONO_TYPE_FNPTR:
if (args [i]->type != STACK_I4 && args [i]->type !=
STACK_PTR && args [i]->type != STACK_MP && args [i]->type != STACK_OBJ)
return 1;
continue;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches