[Mono-dev] [PATCH] Implement support for compiled regular expressions in profile 1.x
Kornél Pál
kornelpal at gmail.com
Fri Apr 3 16:30:45 EDT 2009
Hi,
The runtime has support for generic types in profile 1.0 as well,
OnDeserializedAttribute could also be used, just like new case
insensitive and culture invariant string operations/comparison, static
classes could be supported by profile 1.0 C# compiler because no runtime
support is needed, and this is just some examples of possible 2.0 suff
for internal use in 1.0 class library.
As far as I know none of them or any other 2.0 features are used outside
of mscorlib.dll.
Also note that this is a complete patch including replacing the generic
Dictionaries with non-generic Hashtables.
Attached a more recent version of the patch with some minor updates.
Kornél
Rodrigo Kumpera wrote:
> I think a better approach instead of using dynamic assemblies is to use
> dynamic methods on 1.0 as well.
> They can be exposed as internal stuff from mscorlib to System and most
> of the work will replacing the generic
> stuff.
>
> 2009/4/2 Kornél Pál <kornelpal at gmail.com <mailto:kornelpal at gmail.com>>
>
> Hi,
>
> Because of the restrictions of 1.x I modified visibility so I also would
> like to set skipVisibility = false in DynamicMethod constructor (not
> included in the patch) to avoid 1.x only bugs because of this.
>
> Kornél
>
> Kornél Pál wrote:
> > Hi,
> >
> > I've implement support for compiled regular expressions in
> profile 1.x
> > using dynamic assemblies.
> >
> > I also have cleaned up the code by removing GetEvalMethod and
> > CreateEvalMethod methods and moving their functionality to
> > GetMachineFactory.
> >
> > I also modified the signature of EmitEvalMethodBody and replaced
> generic
> > dictionaries with hashtables in profile 1.x that results in a larger
> > patch but I haven't modify the actual code generator.
> >
> > I also had to modify some visibility levels to pass runtime type
> checks.
> >
> > Please review the attached patch.
> >
> > Kornél
> >
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> <mailto:Mono-devel-list at lists.ximian.com>
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: RxCilCompiler1x_1.diff.txt
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20090403/978f8c06/attachment-0001.txt
More information about the Mono-devel-list
mailing list