2010-03-07 Rodrigo Kumpera <rkumpera@novell.com>
[mono.git] / mcs / class / corlib / Mono / Runtime.cs
index 87d2b632a796bf800aa25b15957eec87e317d5f4..920c545e6f701ce98255cc942a2491799c47a705 100644 (file)
@@ -48,6 +48,16 @@ namespace Mono {
                [MethodImplAttribute (MethodImplOptions.InternalCall)]
                internal static extern string GetDisplayName ();
 
+               /*
+               Create a object without calling any of it's constructors.
+               @h is a pointer to the runtime type handle of that object.              
+               Recomended usage is to emit the following code sequence:
+               ldtoken [mscorlib]System.Object
+               call object [mscorlib]Mono.Runtime::NewObject(intptr)
+
+               This is the only well understood sequence known by the JIT
+               which produces faster code.
+               */
                [MethodImplAttribute (MethodImplOptions.InternalCall)]
                internal static extern object NewObject (IntPtr h);
        }