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 Custom


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Reflection/Emit CustomAttributeBuilder.cs,1.2,1.3 ILGenerator.cs,1.10,1.11 OpCode.cs,1.1,1.2 OpCodes.cs,1.4,1.5
Date: Thu, 24 Apr 2003 23:53:09 -0400

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

Modified Files:
        CustomAttributeBuilder.cs ILGenerator.cs OpCode.cs OpCodes.cs 
Log Message:


Signature-compatibility fixes to a large number of classes.


Index: CustomAttributeBuilder.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Reflection/Emit/CustomAttributeBuilder.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** CustomAttributeBuilder.cs   28 Feb 2003 14:52:04 -0000      1.2
--- CustomAttributeBuilder.cs   25 Apr 2003 03:53:07 -0000      1.3
***************
*** 31,35 ****
  
  [TODO]
! public sealed class CustomAttributeBuilder
  {
        [TODO]
--- 31,35 ----
  
  [TODO]
! public class CustomAttributeBuilder
  {
        [TODO]

Index: ILGenerator.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Reflection/Emit/ILGenerator.cs,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -r1.10 -r1.11
*** ILGenerator.cs      5 Apr 2003 06:28:32 -0000       1.10
--- ILGenerator.cs      25 Apr 2003 03:53:07 -0000      1.11
***************
*** 547,550 ****
--- 547,551 ----
                                EmitByte((int)(val >> 56));
                        }
+       [CLSCompliant(false)]
        public void Emit(OpCode opcode, sbyte val)
                        {
***************
*** 1027,1030 ****
--- 1028,1043 ----
                                        }
                                }
+ 
+                               // Emit the instruction using the constructed 
signature.
+                               Emit(opcode, helper);
+                       }
+       public void EmitCalli(OpCode opcode, CallingConvention 
unmanagedCallConv,
+                                                 Type returnType, Type[] 
paramTypes)
+                       {
+                               // Build the full signature.
+                               SignatureHelper helper =
+                                       SignatureHelper.GetMethodSigHelper
+                                               (module, 
CallingConventions.Standard,
+                                                unmanagedCallConv, returnType, 
paramTypes);
  
                                // Emit the instruction using the constructed 
signature.

Index: OpCode.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Reflection/Emit/OpCode.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** OpCode.cs   1 Dec 2001 02:06:47 -0000       1.1
--- OpCode.cs   25 Apr 2003 03:53:07 -0000      1.2
***************
*** 159,162 ****
--- 159,168 ----
                        }
  
+       // Convert the opcode into a string.
+       public override String ToString()
+                       {
+                               return Name;
+                       }
+ 
  }; // struct OpCode
  

Index: OpCodes.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Reflection/Emit/OpCodes.cs,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** OpCodes.cs  1 Mar 2003 19:32:28 -0000       1.4
--- OpCodes.cs  25 Apr 2003 03:53:07 -0000      1.5
***************
*** 28,31 ****
--- 28,34 ----
  public class OpCodes
  {
+       // Cannot instantiate this class.
+       private OpCodes() {}
+ 
        public static readonly OpCode Nop =
                 new OpCode("nop", 0x00, FlowControl.Next,
***************
*** 1126,1130 ****
                                        StackBehaviour.Pop0, 
StackBehaviour.Push0);
  
!       public static readonly OpCode Tail =
                 new OpCode("tail.", 0xFE14, FlowControl.Meta,
                                        OpCodeType.Prefix, 
OperandType.InlineNone,
--- 1129,1133 ----
                                        StackBehaviour.Pop0, 
StackBehaviour.Push0);
  
!       public static readonly OpCode Tailcall =
                 new OpCode("tail.", 0xFE14, FlowControl.Meta,
                                        OpCodeType.Prefix, 
OperandType.InlineNone,





reply via email to

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