Commit Graph
750 Commits
Author SHA1 Message Date
Andrey Akinshin 4be0d33040 Removing excess line with debug Console.WriteLine 2014-08-19 11:27:33 +07:00
Zoltan Varga 68e5cc395f [bcl] Add a missing check to TypeBuilder.CreateType (). Fixes #22059. 2014-08-18 21:38:50 -04:00
Marek Safar 4e87c47d54 [corlib] Add CreateTypeInfo method 2014-06-03 11:56:47 +02:00
Andrés G. Aragoneses 0eb40ad2da Fix very sticky typo in numerous places 2014-01-19 17:51:24 +01:00
Marek Safar f74fa4a0ac [build] Add Microsoft.CSharp to monotouch profile 2014-01-14 14:25:46 +01:00
Marek Safar 2f639b3c78 Use IReflectType interface instead of TypeDelegator for introspection type extensions. Fixes #14168 2013-08-28 17:55:53 +02:00
Rodrigo Kumpera 3673d051fb [corlib]Implement .net 4.0 ParameterInfo. 2013-08-22 16:00:14 -04:00
Atsushi Eno 88dadaaf10 Revert "Revert "Fix bug #7829 - do NOT reject ConstructorInfo in DynamicILInfo.GetTokenFor().""
This reverts commit 0ef5f49c1f.
2013-08-19 12:13:38 +09:00
Atsushi Eno 0ef5f49c1f Revert "Fix bug #7829 - do NOT reject ConstructorInfo in DynamicILInfo.GetTokenFor()."
This reverts commit b43211d101.
2013-08-18 15:34:37 +09:00
Atsushi Eno b43211d101 Fix bug #7829 - do NOT reject ConstructorInfo in DynamicILInfo.GetTokenFor().
It is only one of probably many reasons that prevents Jurassic JavaScript engine.
2013-08-18 15:31:40 +09:00
Marek Safar b84ad279fb Better exception for unmarked labels 2013-07-03 14:57:40 +02:00
Martin Baulig 8c2389d8d0 Put back MethodInfo.CreateDelegate() and fix DynamicMethod. 2013-03-13 14:19:05 -04:00
Marek Safar feb5080d23 Optimize parameters handling to do much less allocation 2013-02-25 14:11:04 +01:00
Rodrigo Kumpera 1b92a4148c Since MOBILE implies NET_4_* now, take this into account and simplify our ifdefs. 2013-02-11 18:42:18 -05:00
Rodrigo Kumpera b96d05dac3 Kill the MOONLIGHT define in corlib. 2013-02-11 16:03:28 -05:00
Rodrigo Kumpera 2c8c93b378 Remove SRE from Full AOT builds. 2012-11-06 18:18:14 -05:00
Rodrigo Kumpera 301b6c6fd8 Remove SRE.UnmanagedMarshal dependency from System.Reflection.
* FieldInfo.cs:
	* MonoMethod.cs:
	* ParameterInfo.cs: Remove silly dep on UnmanagedMarshal to use
	MarshalAsAttribute which is what we need in the end.

	* icall.c:
	* reflection.c: Use the custom attribute type instead of the SRE
	one. This allows FULL_AOT_RUNTIME to work with stuff that uses
	MarshalAs.
2012-11-05 14:16:12 -05:00
Rodrigo Kumpera c3e6485245 Remove FieldInfo::UMarshal, which is dead code. 2012-11-05 14:16:12 -05:00
Marek Safar 7883a2dafd Clean up some static initializers 2012-10-03 12:19:55 +01:00
Rodrigo Kumpera 28894b99c8 Use a simpler design for IsUserType based on virtual calls.
* Type.cs (IsUserType) Replace the current hacky way with
	a virtual call. This removes a direct dependency on a type
	and a bunch of stuff that would otherwise be loaded for
	no good reason.
2012-07-10 16:58:53 -03:00
Marek Safar f293d90615 Fix few warnings 2012-06-26 13:26:56 +01:00
Zoltan Varga 72c896066b Allow TypeBuilder.DefineMethodOverride () to be called multiple times. Fixes #5665. 2012-06-24 22:44:46 +02:00
Konrad M. Kruczynski 02080f980e Fix for creating dynamic method with owner being array or iface.
It shouldn't be possible, according to MSDN documentation. Two
test cases included.
2012-06-09 19:38:04 +02:00
Marek Safar c14d3585bd Update to the latest dlr 2012-06-08 09:40:15 +01:00
Gleb Golubitsky a0181c6c91 Fixing formatting glitches in my previous bug #3912 solution
Signed-off-by: Gleb Golubitsky <[email protected]>
2012-03-15 18:06:25 +02:00
Gleb Golubitsky f218bddfeb the patch fixing issue
Signed-off-by: Gleb Golubitsky <[email protected]>
2012-03-15 17:12:49 +02:00
Zoltan Varga b42fb3a0fa Avoid passing a Module to the GetSigHelper methods (), which can happen if an ILBuilder is used from a dynamic method. Fixes #1900. 2012-01-20 05:56:48 +01:00
Rodrigo Kumpera 83dccf8fe7 Add all missing sequential layout directives to corlib and system. 2011-12-13 11:57:23 -02:00
Zoltan Varga 929b66f583 Get rid of IsCompilerContext, mcs no longer uses SRE. 2011-11-06 19:36:36 +01:00
Marek Safar b8887fb8c2 Update public corlib api 2011-09-19 15:01:21 +01:00
Zoltan Varga 4d778cc3c7 Avoid creating an AssemblyBuilder in DynamicMethod if not needed. 2011-06-30 20:46:44 +02:00
Jb Evain 3c812d8a93 Remove warnings 2011-04-15 14:11:27 +02:00
Zoltan Varga ea353d283d Add checks to ParameterBuilder.SetConstant () to avoid an assert in the runtime. Fixes #684438. 2011-04-10 20:27:58 +02:00
Rolf Bjarne Kvinge f64261401d Fix many corcompare issues for moonlight 2011-03-31 16:05:03 +02:00
Sebastien Pouliot be471b69d9 Add missing API that are to be decorated with [SecurityCritical] for compatibility
* System.Reflection.Emit/AssemblyBuilder.cs: Add missing GetName(bool)
* System.Threading/ThreadPool.cs: Add missing UnsafeQueueNativeOverlapped

This is not a big issue since the missing API are unusable from
application code (and obviously not needed inside the platform code).
However it makes validating the tuned assemblies easier :)
2011-03-23 08:52:19 -04:00
Zoltan Varga 682d244754 Implement some DynamicILInfo methods. 2011-03-07 20:19:04 +01:00
Marek Safar b6513d2047 Fixes build 2011-02-10 09:22:04 +00:00
Miguel de Icaza d352810dff Do not throw if we get a RunAndCollect 2011-02-09 18:33:05 -05:00
Miguel de Icaza 1afdb2bead Style 2011-02-09 18:25:17 -05:00
Rodrigo Kumpera 89d1455a80 Don't use finalization to cleanup dynamic methods.
* reflection.c: Use a reference queue to cleanup
	dynamic methods instead of finalization.

	* runtime.c: Shutdown the dynamic method queue
	before runtime cleanup begins.

	* DynamicMethod.cs: No longer finalizable.

	* icall-def.h: Remove unused dynamic method icall.

	Fixes #660422
2011-02-01 16:52:43 +01:00
Geoff Norton 16d4fd790b Further .NET 4.0 ification of the mobile profile 2011-01-25 20:10:54 -05:00
Zoltan Varga 9899a5f249 Change some usages of ArrayList to List<T> to avoid calls to the slow ArrayList.ToArray(Type) method. 2011-01-06 13:11:56 +01:00
Marek Safar d84d7c7eb9 Remove no longer used BOOTSTRAP conditionals 2010-12-29 12:41:12 +00:00
Marek Safar 71c948128d Re-enable EmbedResourceFile overload used by al.exe 2010-12-13 12:10:54 +00:00
Marek Safar 578e0521a6 Don't throw an obsolete exception 2010-12-03 10:13:03 +00:00
Rodrigo Kumpera 80e7e4d92b Check for null and valuetypes.
* CustomAttributeBuilder.cs (Initialize): Check if we are
	not passing null as values to valuetypes as this is invalid.

	Fixes #515938
2010-11-30 14:54:27 -02:00
Marek Safar 5e61ba899a Switch symbol writer to public api 2010-11-26 09:08:12 +00:00
Marek Safar 311e2d637f Removed SetCharSet 2010-11-22 16:50:33 +00:00
Marek Safar ea6c9f5408 Comment out no longer used code 2010-11-22 11:36:46 +00:00
Marek Safar a5641afb29 Add comment details to DefineUnmanagedResource 2010-11-22 11:00:58 +00:00