2007-08-17 Rolf Bjarne Kvinge <[email protected]>
* ILGenerator.cs: Change BeginCatchBlock to end the current filter block if called with a null exceptionType. Added ILExceptionBlock.FILTER_START to be able to track if we're in a filter block or not. Renamed PatchLastClauseStart to PatchFilterClause to match better what it does, and make it update the handler's type to FILTER. Fixes#81431.
In Test/System.Reflection.Emit:
2007-08-17 Rolf Bjarne Kvinge <[email protected]>
* ILGeneratorTest.cs: Added FilterAndCatchBlock (bug #81431), InvalidFilterBlock1, ValidFilterBlock1, ValidFilterBlock2.
svn path=/trunk/mcs/; revision=84262
* DirectoryInfo.cs (GetFiles): Implement option with SearchOptions
== AllDirectories
And a lot of MonoTODOs updated as well
svn path=/trunk/mcs/; revision=67998
* DynamicMethod.cs: Create all other DynamicMethod's referenced by
this method as well. Check for an empty method body.
* ILGenerator.cs (Emit): Handle DynamicMethod's which might not have a
declaring type.
svn path=/trunk/mcs/; revision=62369
* Array.cs: Changed protected ctor to private. Fixes API compatibility
with MS.NET.
* RuntimeFieldHandle.cs: Equals methods and GetHashCode should only
be exposed in 2.0 profile.
* RuntimeMethodHandle.cs: Equals methods and GetHashCode should only
be exposed in 2.0 profile.
* RuntimeTypeHandle.cs: Equals methods and GetHashCode should only
be exposed in 2.0 profile.
* Type.cs: Added GetType method and implemented _Type interface.
Fixes API compatibility with MS.NET.
* corlib.dll.sources: Added System.Runtime.InteropServices/
TypeLibImportClassAttribute.cs.
* AssemblyBuilder.cs: Implement _AssemblyBuilder, CA fixes to correspond
with MS.NET
* ConstructorBuilder.cs: Implement _ConstructorBuilder, CA fixes to
correspond with MS.NET
* CustomAttributeBuilder.cs: Implement _CustomAttributeBuilder, CA
fixes to correspond with MS.NET
* EnumBuilder.cs: Implement _EnumBuilder, CA fixes to correspond with MS.NET
* EventBuilder.cs: Implement _EventBuilder, CA fixes to correspond with MS.NET
* FieldBuilder.cs: Implement _FieldBuilder, CA fixes to correspond with MS.NET
* LocalBuilder.cs: Implement _LocalBuilder, CA fixes to correspond with MS.NET
* MethodBuilder.cs: Implement _MethodBuilder, CA fixes to correspond
with MS.NET
* MethodRental.cs: CA fixes to correspond with MS.NET, implemented
_MethodRental.
* ModuleBuilder.cs: Implement _ModuleBuilder, CA fixes to correspond
with MS.NET
* ILGenerator.cs: Implement _ILGenerator, CA fixes to correspond with MS.NET
* ParameterBuilder.cs Implement _ParameterBuilder, CA fixes to correspond
with MS.NET
* PropertyBuilder.cs: Implement _PropertyBuilder, CA fixes to correspond
with MS.NET
* SignatureHelper.cs: Implement _SignatureHelper, CA fixes to correspond
with MS.NET
* TypeBuilder.cs: Implement _TypeBuilder, CA fixes to correspond with MS.NET
* DecimalConstantAttribute.cs: Only mark ctor not CLSCompliant on 2.0
profile to match MS.NET.
* Assembly.cs: Added GetType() method in 1.1 to match MS.NET.
* ConstructorInfo.cs: Added GetType() method in 1.1 to match MS.NET,
implemented _ConstructorInfo.
* EventInfo.cs: Added GetType() method in 1.1 to match MS.NET, implemented
_EventInfo.
* FieldInfo.cs: Added GetType() method in 1.1 to match MS.NET, implemented
_FieldInfo.
* MemberInfo.cs: Added GetType() method in 1.1 to match MS.NET, implemented
_MemberInfo.
* MethodBase.cs: Added GetType() method in 1.1 to match MS.NET, implemented
_MethodBase.
* MethodInfo.cs: Added GetType() method in 1.1 to match MS.NET, implemented
_MethodInfo.
* PropertyInfo.cs: Added GetType() method in 1.1 to match MS.NET, implemented
_PropertyInfo.
* TypeAttributes.cs: CustomFormatMask and CustomFormatClass should only be
exposed in 2.0 profile.
svn path=/trunk/mcs/; revision=48073
* ModuleBuilder.cs: Implemented DefineDocument(). Generate debug
info when saving the module.
* ILGenerator.cs: Keep marked sequence points in a list.
Added a GenerateDebugInfo method, which dumps the info collected
during code generation.
* TypeBuilder.cs:
* ConstructorBuilder.cs:
* MethodBuilder.cs: Added method for generating debug info.
* LocalBuilder.cs: Added StartOffset and EndOffset properties.
* CustomAttributeBuilder.cs: Use IsInstanceOfType instead of
IsAssignableFrom when possible.
svn path=/trunk/mcs/; revision=44983
* LocalBuilder.cs: Remove MakePinned, we are now going to use
ILGenerator.DeclaraLocal that takes the `bool pinned' argument.
* ILGenerator.cs (DeclareLocal): Add `pinned' version of the
method on the 2.0 profile.
svn path=/trunk/mcs/; revision=30814
* ILGenerator.cs (TokenGenerator.GetToken): Added overloaded
version which takes a MethodInfo and a Type[].
(IlGenerator.EmitCall): When emitting a call to a varargs method,
use the new GetToken() to pass the optional argument types to the
runtime.
* ModuleBuilder.cs (ModuleBuilder.getMethodToken): New interncall.
svn path=/trunk/mcs/; revision=29000
* ILGenerator.cs: Applied patch from Ben Maurer
([email protected]). Allocate arrays holding label data
lazily and reduce their size.
svn path=/trunk/mcs/; revision=21321
* ILGenerator.cs MethodBuilder.cs ConstructorBuilder.cs: Retrieve
tokens from a token generator object instead of from the ModuleBuilder,
to support the implementation of DynamicMethod. Also get rid of the
unused 'mbuilder' field.
* ModuleBuilder.cs: Create a token generator object which can be
passed to ILGenerator.
svn path=/trunk/mcs/; revision=20383
* AssemblyBuilder.cs ModuleBuilder.cs ILGenerator.cs: Move getUSIndex
and getToken methods, and the associated icalls to ModuleBuilder,
since tokens are per-module.
* AssemblyBuilder.cs ModuleBuilder.cs: Partially revert the previous
patch, since having the 'is_main' field is useful in the unmanaged
code.
* AssemblyBuilder.cs ModuleBuilder.cs: Move the metadata creation and
file creation logic to ModuleBuilder:Save (), since this needs to be
done for every module. Also move the corresponding icalls to
ModuleBuilder.
svn path=/trunk/mcs/; revision=19592
* ILGenerator.cs (EmitCall): Implement.
Flag a few unimplemented methods with MonoTODO, make coding style
for method definitions Mono consistent.
svn path=/trunk/mcs/; revision=13832
* ILGenerator.cs (Emit): Add fixup for already created methods and
fields. Do not add fixup for types since their table index do not
change any more.
svn path=/trunk/mcs/; revision=12067
* IMonoSymbolWriter.cs (MarkSequencePoint): New method which takes
just the required arguments as scalars, not arrays.
* ILGenerator.cs (ILGenerator.MarkSequencePoint): Use that new
interface method; unnecessarily creating such a large number of
arrays is both slow and too memory consuming.
svn path=/trunk/mcs/; revision=11406
* ILGenerator.cs (Emit (OpCode, LocalBuilder)): Throw an exception
when trying to emit a local that was defined in a different ILGenerator.
* LocalBuilder.cs (LocalBuilder): Added `ILGenetator' argument to
the constructor.
svn path=/trunk/mcs/; revision=5914