dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Reflection/Emit Assemb


From: Richard Baumann <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Reflection/Emit AssemblyBuilder.cs, 1.10, 1.11 ILGenerator.cs, 1.12, 1.13
Date: Wed, 23 Jul 2003 11:35:26 -0400

Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Reflection/Emit
In directory subversions:/tmp/cvs-serv24869/runtime/System/Reflection/Emit

Modified Files:
        AssemblyBuilder.cs ILGenerator.cs 
Log Message:
Implement method body output for dynamic assemblies.


Index: AssemblyBuilder.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Reflection/Emit/AssemblyBuilder.cs,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -r1.10 -r1.11
*** AssemblyBuilder.cs  22 Jul 2003 13:46:38 -0000      1.10
--- AssemblyBuilder.cs  23 Jul 2003 15:35:24 -0000      1.11
***************
*** 453,456 ****
--- 453,461 ----
                        }
  
+       internal int WriteMethod(byte[] code)
+       {
+               return ClrWriteMethod(privateData, writer, code);
+       }
+ 
        // Create a new assembly.
        [MethodImpl(MethodImplOptions.InternalCall)]
***************
*** 473,476 ****
--- 478,488 ----
        extern internal static IntPtr ClrGetItemFromToken
                        (IntPtr assembly, int token);
+ 
+       // Write the body of a method to the code section and return the RVA
+       // that corresponds to it.
+       [MethodImpl(MethodImplOptions.InternalCall)]
+       extern private static int ClrWriteMethod(IntPtr assembly,
+                                                IntPtr writer,
+                                                byte[] code);
  
  }; // class AssemblyBuilder

Index: ILGenerator.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Reflection/Emit/ILGenerator.cs,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -r1.12 -r1.13
*** ILGenerator.cs      26 May 2003 05:03:41 -0000      1.12
--- ILGenerator.cs      23 Jul 2003 15:35:24 -0000      1.13
***************
*** 1249,1253 ****
                        {
                                // TODO
!                               return 0;
                        }
  
--- 1249,1253 ----
                        {
                                // TODO
!                               return module.assembly.WriteMethod(code);
                        }
  





reply via email to

[Prev in Thread] Current Thread [Next in Thread]