Author: martin
Date: 2005-07-06 15:33:49 -0400 (Wed, 06 Jul 2005)
New Revision: 47016

Modified:
   trunk/mono/mono/metadata/ChangeLog
   trunk/mono/mono/metadata/icall.c
   trunk/mono/mono/metadata/object.c
Log:
2005-07-06  Martin Baulig  <[EMAIL PROTECTED]>

        * icall.c
        (ves_icall_FieldInfo_SetValueInternal): Add MONO_TYPE_GENERICINST.

        * object.c (set_value): Add MONO_TYPE_GENERICINST; fixes #75299.



Modified: trunk/mono/mono/metadata/ChangeLog
===================================================================
--- trunk/mono/mono/metadata/ChangeLog  2005-07-06 18:01:46 UTC (rev 47015)
+++ trunk/mono/mono/metadata/ChangeLog  2005-07-06 19:33:49 UTC (rev 47016)
@@ -1,5 +1,12 @@
 2005-07-06  Martin Baulig  <[EMAIL PROTECTED]>
 
+       * icall.c
+       (ves_icall_FieldInfo_SetValueInternal): Add MONO_TYPE_GENERICINST.
+
+       * object.c (set_value): Add MONO_TYPE_GENERICINST; fixes #75299.
+
+2005-07-06  Martin Baulig  <[EMAIL PROTECTED]>
+
        * metadata.c (mono_metadata_class_equal): Add MONO_TYPE_SZARRAY if
        we're doing a signature-only comparision; fixes #74945.
 

Modified: trunk/mono/mono/metadata/icall.c
===================================================================
--- trunk/mono/mono/metadata/icall.c    2005-07-06 18:01:46 UTC (rev 47015)
+++ trunk/mono/mono/metadata/icall.c    2005-07-06 19:33:49 UTC (rev 47016)
@@ -1432,6 +1432,13 @@
                case MONO_TYPE_SZARRAY:
                        /* Do nothing */
                        break;
+               case MONO_TYPE_GENERICINST: {
+                       MonoGenericClass *gclass = cf->type->data.generic_class;
+                       g_assert (!gclass->inst->is_open);
+                       if (gclass->container_class->valuetype && (v != NULL))
+                               v += sizeof (MonoObject);
+                       break;
+               }
                default:
                        g_error ("type 0x%x not handled in "
                                 "ves_icall_FieldInfo_SetValueInternal", 
cf->type->type);

Modified: trunk/mono/mono/metadata/object.c
===================================================================
--- trunk/mono/mono/metadata/object.c   2005-07-06 18:01:46 UTC (rev 47015)
+++ trunk/mono/mono/metadata/object.c   2005-07-06 19:33:49 UTC (rev 47016)
@@ -1372,6 +1372,9 @@
                                memcpy (dest, value, size);
                }
                return;
+       case MONO_TYPE_GENERICINST:
+               t = type->data.generic_class->container_class->byval_arg.type;
+               goto handle_enum;
        default:
                g_warning ("got type %x", type->type);
                g_assert_not_reached ();

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

Reply via email to