mono.git
18 years agoIn .:
Raja R Harinath [Tue, 23 Aug 2005 14:15:25 +0000 (14:15 -0000)]
In .:
* System.dll.sources: Update.

In System.Text.RegularExpressions:
* regex.cs: Remove.  Split into ...
* MatchEvaluator.cs, Regex.cs, RegexCompilationInfo.cs,
RegexOptions.cs: ... these.  Now every publicly exposed type in
this namespace has its own file.

svn path=/trunk/mcs/; revision=48728

18 years ago* test-byref.il: New. Test for a call with byref return type.
Ankit Jain [Tue, 23 Aug 2005 14:13:25 +0000 (14:13 -0000)]
* test-byref.il: New. Test for a call with byref return type.

svn path=/trunk/mcs/; revision=48727

18 years ago* support.cs (SeekableStreamReader.Position): Avoid an expensive
Raja R Harinath [Tue, 23 Aug 2005 14:07:12 +0000 (14:07 -0000)]
* support.cs (SeekableStreamReader.Position): Avoid an expensive
loop that performs 'max (pos, char_count)'.

svn path=/trunk/mcs/; revision=48726

18 years agoIn mcs:
Raja R Harinath [Tue, 23 Aug 2005 13:59:43 +0000 (13:59 -0000)]
In mcs:
Fix #75862.
* expression.cs (Unary.ResolveOperator): Don't discard implicit
converted value in Operator.OnesComplement.

In tests:
* test-439.cs: New test from #75862.

svn path=/trunk/mcs/; revision=48725

18 years agoFix #75186.
Ankit Jain [Tue, 23 Aug 2005 13:42:31 +0000 (13:42 -0000)]
Fix #75186.
* get.c (get_ret_type): Use '&' instead of '[out]' for return type.

svn path=/trunk/mono/; revision=48723

18 years ago* get.c (get_encoded_user_string_or_bytearray): New. Print a string if possible
Ankit Jain [Tue, 23 Aug 2005 13:34:57 +0000 (13:34 -0000)]
* get.c (get_encoded_user_string_or_bytearray): New. Print a string if possible
  or else a bytearray from the US heap.
  (get_encoded_user_string_bytearray): New. Print a bytearray from the US heap.
  (get_constant): Use get_encoded_user_string_or_bytearray for MONO_TYPE_STRING.
* get.h (get_encoded_user_string_or_bytearray): Add the new function.
* dis-cil.c (get_encoded_user_string): Move to get.c .
  (disassemble_cil): Use get_encoded_user_string_or_bytearray instead of
  get_encoded_user_string.

svn path=/trunk/mono/; revision=48721

18 years agoTue Aug 23 15:11:44 CEST 2005 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 23 Aug 2005 13:12:30 +0000 (13:12 -0000)]
Tue Aug 23 15:11:44 CEST 2005 Paolo Molaro <lupus@ximian.com>

* cpu-g4.md: fixed instruction length exposed by the nemerle compiler.

svn path=/trunk/mono/; revision=48720

18 years agoFix #75679.
Raja R Harinath [Tue, 23 Aug 2005 12:17:17 +0000 (12:17 -0000)]
Fix #75679.
* StreamReader.cs (DiscardBufferedData): Reset the decoder too.

(r=eno)

svn path=/trunk/mcs/; revision=48719

18 years agoGraphics.jvm.cs: Fixed ResetTransform, TransfromPoints
Vladimir Krasnov [Tue, 23 Aug 2005 12:00:24 +0000 (12:00 -0000)]
Graphics.jvm.cs: Fixed ResetTransform, TransfromPoints
Fixed SmoothingMode property

svn path=/trunk/mcs/; revision=48718

18 years ago2005-08-23 Jordi Mas i Hernandez <jordi@ximian.com>
Jordi Mas i Hernandez [Tue, 23 Aug 2005 11:48:00 +0000 (11:48 -0000)]
2005-08-23 Jordi Mas i Hernandez <jordi@ximian.com>

* Brushes: Do not create the objects every time that they are requested
as in Pens we create and cache them only once when need it. This also
fixes the Equals method between two objects requested to Brushes

svn path=/trunk/mcs/; revision=48717

18 years ago2005-08-23 Jordi Mas i Hernandez <jordi@ximan.com>
Jordi Mas i Hernandez [Tue, 23 Aug 2005 11:40:01 +0000 (11:40 -0000)]
2005-08-23 Jordi Mas i Hernandez <jordi@ximan.com>

* TestPens.cs: Add test for Equals method
* TestBrushes.cs: Add test for Equals method

svn path=/trunk/mcs/; revision=48716

18 years ago * statement.cs :
Satya Sudha K [Tue, 23 Aug 2005 11:31:43 +0000 (11:31 -0000)]
    * statement.cs :
                StatementSequence : Avoid Resolving multiple times
        * ecore.cs :
                Minor fix to 'Constantify' method

svn path=/trunk/mcs/; revision=48715

18 years agoChanged reference to Consts.cs
Boris Kirzner [Tue, 23 Aug 2005 11:24:25 +0000 (11:24 -0000)]
Changed reference to Consts.cs

svn path=/trunk/mcs/; revision=48714

18 years ago2005-08-23 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 23 Aug 2005 10:36:12 +0000 (10:36 -0000)]
2005-08-23  Atsushi Enomoto  <atsushi@ximian.com>

* test-438.cs : test for bug #67711.

svn path=/trunk/mcs/; revision=48712

18 years agoFixed pathnames in some testcases
Satya Sudha K [Tue, 23 Aug 2005 10:21:54 +0000 (10:21 -0000)]
Fixed pathnames in some testcases

svn path=/trunk/mcs/; revision=48711

18 years agocorrected typo.
Sureshkumar T [Tue, 23 Aug 2005 04:44:09 +0000 (04:44 -0000)]
corrected typo.

svn path=/trunk/mcs/; revision=48708

18 years ago2005-08-22 Ben Maurer <bmaurer@ximian.com>
Ben Maurer [Mon, 22 Aug 2005 23:09:48 +0000 (23:09 -0000)]
2005-08-22  Ben Maurer  <bmaurer@ximian.com>

* anonymous.cs: If the anon method is pulled into a helper class,
it needs to be `internal' not `private'. Fixes runtime behavior on
msft. bug #75704

svn path=/trunk/mcs/; revision=48702

18 years agoupdate
Gonzalo Paniagua Javier [Mon, 22 Aug 2005 22:46:00 +0000 (22:46 -0000)]
update

svn path=/trunk/mono/; revision=48699

18 years ago2005-08-23 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Mon, 22 Aug 2005 22:01:43 +0000 (22:01 -0000)]
2005-08-23  Zoltan Varga  <vargaz@freemail.hu>

* delegate.cs: Add float and double tests.

svn path=/trunk/mono/; revision=48698

18 years ago2005-08-23 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Mon, 22 Aug 2005 22:01:13 +0000 (22:01 -0000)]
2005-08-23  Zoltan Varga  <vargaz@freemail.hu>

* inssel-amd64.brg inssel-x86.brg: Fix the fcall rules.

svn path=/trunk/mono/; revision=48697

18 years agoThis was talked about on irc...
Wade Berrier [Mon, 22 Aug 2005 21:50:54 +0000 (21:50 -0000)]
This was talked about on irc...

Have the win32 mono build use mcs instead of csc.exe

svn path=/trunk/mcs/; revision=48695

18 years ago2005-08-22 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Mon, 22 Aug 2005 21:18:01 +0000 (21:18 -0000)]
2005-08-22  Zoltan Varga  <vargaz@freemail.hu>

* configure.in: Patch libtool to get rid of 'cyg' prefixes in library names.

svn path=/trunk/mono/; revision=48694

18 years ago2005-08-22 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Mon, 22 Aug 2005 21:15:46 +0000 (21:15 -0000)]
2005-08-22  Zoltan Varga  <vargaz@freemail.hu>

* delegate.cs: Restructure and add long delegate test.

svn path=/trunk/mono/; revision=48693

18 years ago2005-08-22 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Mon, 22 Aug 2005 21:09:31 +0000 (21:09 -0000)]
2005-08-22  Zoltan Varga  <vargaz@freemail.hu>

* inssel-x86.brg: Fix assert in patch_delegate_trampoline.

svn path=/trunk/mono/; revision=48692

18 years ago2005-08-22 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Mon, 22 Aug 2005 20:58:14 +0000 (20:58 -0000)]
2005-08-22  Zoltan Varga  <vargaz@freemail.hu>

* tramp-x86.c (mono_arch_patch_delegate_trampoline): Add some debug
code.

svn path=/trunk/mono/; revision=48691

18 years ago2005-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Mon, 22 Aug 2005 19:39:30 +0000 (19:39 -0000)]
2005-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* CSharpCodeCompiler.cs: patch from Maksim Vorobiev that prevents
InvalidOperationException if the thread running mcs is aborted.

svn path=/trunk/mcs/; revision=48688

18 years ago2005-08-22 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Mon, 22 Aug 2005 19:36:30 +0000 (19:36 -0000)]
2005-08-22  Zoltan Varga  <vargaz@freemail.hu>

* tramp-amd64.c (mono_arch_patch_delegate_trampoline): Add some debug
code.

* mini.c (optimize_branches): Don't quit after 1000 iterations on large
methods.

svn path=/trunk/mono/; revision=48687

18 years agoMon Aug 22 19:16:29 BST 2005 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 22 Aug 2005 17:54:31 +0000 (17:54 -0000)]
Mon Aug 22 19:16:29 BST 2005 Paolo Molaro <lupus@ximian.com>

* tramp-arm.c: allocate less memory for the trampoline and fix typo.

svn path=/trunk/mono/; revision=48686

18 years ago2005-08-22 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Mon, 22 Aug 2005 17:48:39 +0000 (17:48 -0000)]
2005-08-22  Zoltan Varga  <vargaz@freemail.hu>

* mini.c (mono_method_to_ir): Remove instructions inserted after a branch
in the tail recursion optimization.

svn path=/trunk/mono/; revision=48685

18 years ago2005-08-22 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Mon, 22 Aug 2005 16:51:24 +0000 (16:51 -0000)]
2005-08-22  Zoltan Varga  <vargaz@freemail.hu>

* mini.h helpers.c (mono_disassemble_code): Emit starts of basic blocks as
debug info into the assembly file.

* iltests.il: Add test for filter regions.

* mini.c (mono_method_to_ir): Fix handling of nested FILTER clauses. Fix
initial stack of filter regions. Fixes #75755.

svn path=/trunk/mono/; revision=48678

18 years agoMon Aug 22 17:49:16 BST 2005 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 22 Aug 2005 16:27:45 +0000 (16:27 -0000)]
Mon Aug 22 17:49:16 BST 2005 Paolo Molaro <lupus@ximian.com>

* mini-arm.c, cpu-arm.c: fixes and support for methods with bigger
stack requirements.

svn path=/trunk/mono/; revision=48675

18 years ago2005-08-23 Iain McCoy <iain@mccoy.id.au>
Iain McCoy [Mon, 22 Aug 2005 16:23:29 +0000 (16:23 -0000)]
2005-08-23  Iain McCoy  <iain@mccoy.id.au>

        * demo/runtimetest.cs: consume the new ObjectWriter interface
        * xamlc.cs: consume the new CodeWriter interface

        * System.Windows.Serialization/XamlParser.cs: rearrange class so that
        it presents a ReadNextNode() method, repeated calling of which will
        produce the next node with information about the Xaml file being
        parsed
        * Test/XamlParser.cs: rewrite tests so that they use the new interface
        of the parser
        * System.Windows.Serialization/CodeWriter.cs: changed code generator
        so that it consumes the event stream from the parser
        * Test/CodeWriter.cs: made tests friendly to the new way CodeWriter
        works
        * System.Windows.Serialization/CodeWriter.cs: changed object builder
        so that it consumes the event stream from the parser
        * Test/ObjectWriter.cs: made tests friendly to the new way ObjectWriter
        works

2005-08-07  Iain McCoy  <iain@mccoy.id.au>

        * System.Windows.Serialization/data-classes-builder.pl,
          System.Windows.Serialization/data-classes.txt: add stuff to generate
        the zillion little classes to carry information around
        * PresentationFramework.dll.sources, Makefile: invoke
        data-classes-builder.pl as needed.

svn path=/trunk/mcs/; revision=48670

18 years ago2005-08-22 Michael Hutchinson <m.j.hutchinson@gmail.com>
Michael Hutchinson [Mon, 22 Aug 2005 16:20:57 +0000 (16:20 -0000)]
2005-08-22 Michael Hutchinson <m.j.hutchinson@gmail.com>

* WebControl.cs: Correct type for some default values
* UnitConverter.cs: Fix potential infinite loop

svn path=/trunk/mcs/; revision=48669

18 years ago2005-08-22 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 22 Aug 2005 15:12:45 +0000 (15:12 -0000)]
2005-08-22  Sebastien Pouliot  <sebastien@ximian.com>

* GenericPrincipal.cs: Roles are case-insensitive.

svn path=/trunk/mcs/; revision=48660

18 years ago2005-08-22 Jordi Mas i Hernandez <jordi@ximian.com>
Jordi Mas i Hernandez [Mon, 22 Aug 2005 14:43:10 +0000 (14:43 -0000)]
2005-08-22 Jordi Mas i Hernandez <jordi@ximian.com>

* SolidBrush.cs: Fixes Dispose to avoid non-disposing some objects
* Brush.cs Fixes Dispose to avoid non-disposing some objects
* Pen.cs: Fixes Dispose to avoid non-disposing some objects
* Region.cs: Dipose always frees if the resource was allocated

svn path=/trunk/mcs/; revision=48659

18 years ago2005-08-22 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Mon, 22 Aug 2005 13:11:20 +0000 (13:11 -0000)]
2005-08-22  Zoltan Varga  <vargaz@freemail.hu>

* mini.c (mono_create_delegate_trampoline): Fix memory leak. Put back
the check for an already compiled method on non-ia64 platforms.
(mono_create_jump_trampoline): Store the MonoJitInfo structure into the
proper domain.

svn path=/trunk/mono/; revision=48656

18 years ago2005-08-22 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Mon, 22 Aug 2005 13:06:28 +0000 (13:06 -0000)]
2005-08-22  Zoltan Varga  <vargaz@freemail.hu>

* thread-2.cs: New file.

svn path=/trunk/mono/; revision=48655

18 years agoChanged reference to Consts.cs in TARGET_JVM project file.
Boris Kirzner [Mon, 22 Aug 2005 12:43:28 +0000 (12:43 -0000)]
Changed reference to Consts.cs in TARGET_JVM project file.

svn path=/trunk/mcs/; revision=48654

18 years ago2005-08-22 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Mon, 22 Aug 2005 12:24:50 +0000 (12:24 -0000)]
2005-08-22  Zoltan Varga  <vargaz@freemail.hu>

* threads.c (ves_icall_System_Threading_Thread_Thread_internal): Remove the
BROKEN_THREAD_START stuff.

svn path=/trunk/mono/; revision=48653

18 years ago2005-08-22 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Mon, 22 Aug 2005 12:17:57 +0000 (12:17 -0000)]
2005-08-22  Zoltan Varga  <vargaz@freemail.hu>

* mini-x86.h tramp-x86.c: Add support for delegate trampolines.

* inssel-x86.brg: Add some optimized call rules.

svn path=/trunk/mono/; revision=48652

18 years ago2005-08-22 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Mon, 22 Aug 2005 12:00:13 +0000 (12:00 -0000)]
2005-08-22  Zoltan Varga  <vargaz@freemail.hu>

* threads.c (ves_icall_System_Threading_Thread_Thread_internal): Remove the
BROKEN_THREAD_START stuff.

svn path=/trunk/mono/; revision=48651

18 years agoMinor fixes to 'StringType.FromObject' and the 'Conversion.Val' methods
Satya Sudha K [Mon, 22 Aug 2005 11:56:37 +0000 (11:56 -0000)]
Minor fixes to 'StringType.FromObject' and the 'Conversion.Val' methods

svn path=/trunk/mcs/; revision=48650

18 years ago2005-08-22 Satya Sudha K <ksathyasudha@novell.com>
Satya Sudha K [Mon, 22 Aug 2005 11:50:08 +0000 (11:50 -0000)]
2005-08-22 Satya Sudha K <ksathyasudha@novell.com>
        * expression.cs :
                Invocation's DoResolve method : Avoid resolving multiple
times.
        * typemanager.cs :
                'GetPertinentStandardModules' : Case-insensitive name
lookup

svn path=/trunk/mcs/; revision=48649

18 years ago* Makefile (EXTRA_DISTFILES): Add README.gb18030 and gb18030.table.
Raja R Harinath [Mon, 22 Aug 2005 10:28:07 +0000 (10:28 -0000)]
* Makefile (EXTRA_DISTFILES): Add README.gb18030 and gb18030.table.

svn path=/trunk/mcs/; revision=48648

18 years agoMon Aug 22 10:41:41 BST 2005 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 22 Aug 2005 09:21:51 +0000 (09:21 -0000)]
Mon Aug 22 10:41:41 BST 2005 Paolo Molaro <lupus@ximian.com>

* include/private/gc_locks.h: make gcc generate correct code for swp
(patch by tomba@bat.org, Tomi Valkeinen).

svn path=/trunk/mono/; revision=48647

18 years agoFixed build for TARGET_JVM.
Boris Kirzner [Mon, 22 Aug 2005 09:19:48 +0000 (09:19 -0000)]
Fixed build for TARGET_JVM.

svn path=/trunk/mcs/; revision=48646

18 years ago* Makefile (DISTFILES): Move files in common/ to ...
Raja R Harinath [Mon, 22 Aug 2005 06:17:11 +0000 (06:17 -0000)]
* Makefile (DISTFILES): Move files in common/ to ...
(COMMON_SRCS): ... this.  Add Consts.cs, MonoVersion.cs and
TestConfiguration.cs.

svn path=/trunk/mcs/; revision=48645

18 years ago2005-08-21 Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
Francisco Figueiredo Jr. [Sun, 21 Aug 2005 20:09:53 +0000 (20:09 -0000)]
2005-08-21  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
        * Makefile,
  Npgsql.dll.resources: Removed references to design time support. This is not needed when compiling Npgsql with mono.

svn path=/trunk/mcs/; revision=48633

18 years ago2005-08-21 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Sun, 21 Aug 2005 17:45:28 +0000 (17:45 -0000)]
2005-08-21  Zoltan Varga  <vargaz@freemail.hu>

* mini.c (mono_create_delegate_trampoline): Do not return an already compiled
method here.

svn path=/trunk/mono/; revision=48629

18 years ago2005-08-21 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Sun, 21 Aug 2005 17:44:39 +0000 (17:44 -0000)]
2005-08-21  Zoltan Varga  <vargaz@freemail.hu>

* mini.h mini-trampolines.c: Pass the trampoline argument to
mono_arch_patch_delegate_trampoline.

* mini-ia64.h mini-ia64.c tramp-ia64.c: Add support for delegate trampolines.

svn path=/trunk/mono/; revision=48628

18 years ago2005-08-21 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Sun, 21 Aug 2005 16:44:34 +0000 (16:44 -0000)]
2005-08-21  Zoltan Varga  <vargaz@freemail.hu>

* mini-trampolines.c: Fix build.

svn path=/trunk/mono/; revision=48626

18 years ago2005-08-21 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Sun, 21 Aug 2005 16:32:45 +0000 (16:32 -0000)]
2005-08-21  Zoltan Varga  <vargaz@freemail.hu>

* mini-amd64.h: Add delegate trampolines.

svn path=/trunk/mono/; revision=48625

18 years ago2005-08-21 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Sun, 21 Aug 2005 16:31:24 +0000 (16:31 -0000)]
2005-08-21  Zoltan Varga  <vargaz@freemail.hu>

* mini.h mini.c mini-trampolines.c tramp-amd64.c: Add delegate trampolines.

* inssel-amd64.brg: Add optimized call rules.

svn path=/trunk/mono/; revision=48624

18 years ago2005-08-21 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Sun, 21 Aug 2005 16:29:33 +0000 (16:29 -0000)]
2005-08-21  Zoltan Varga  <vargaz@freemail.hu>

* class-internals.h object.c: Add a new kind of trampoline called a delegate
trampoline.

* domain-internals.h domain.c: Add a has for delegate trampolines to MonoDomain.

* object.c (mono_delegate_ctor): Replace the original function address with
a delegate trampoline.

svn path=/trunk/mono/; revision=48622

18 years agoSmall bug fixes for TARGET_JVM.
Boris Kirzner [Sun, 21 Aug 2005 16:00:11 +0000 (16:00 -0000)]
Small bug fixes for TARGET_JVM.

svn path=/trunk/mcs/; revision=48621

18 years ago* Convert.cs: In FromBase64String, return empty byte array for zero
Gert Driesen [Sun, 21 Aug 2005 08:28:06 +0000 (08:28 -0000)]
* Convert.cs: In FromBase64String, return empty byte array for zero
length string. Pass bool to InternalFromBase64String to control
whether to allow a whitespace-only string.
* Environment.cs: Bump corlib version.
* ConvertTest.cs: FromBase64String always return zero-length byte
array for a zero-length string. On 2.0 profile, FromBase64String also
returns a zero-length byte array for a whitespace-only string.
Added tests for empty and whitespace-only byte array.

svn path=/trunk/mcs/; revision=48617

18 years ago* icall.c: add boolean argument to base64_to_byte_array and
Gert Driesen [Sun, 21 Aug 2005 08:27:48 +0000 (08:27 -0000)]
* icall.c: add boolean argument to base64_to_byte_array and
InternalFromBase64String to control whether a whitespace-only string
is allowed (or should casue a FormatException to be thrown). We need
this as the behavior has changed between MS.NET 1.x and 2.0, and we
to match the MS behaviour in both profiles.
* appdomain.c: Bump corlib version.

svn path=/trunk/mono/; revision=48616

18 years ago2005-08-21 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Sat, 20 Aug 2005 22:18:45 +0000 (22:18 -0000)]
2005-08-21  Zoltan Varga  <vargaz@freemail.hu>

* mini-ia64.c tramp-ia64.c: Improve instruction scheduling.

* inssel-ia64.brg: Add optimized ldind(reg) rules.

svn path=/trunk/mono/; revision=48615

18 years ago2005-08-21 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Sat, 20 Aug 2005 22:16:11 +0000 (22:16 -0000)]
2005-08-21  Zoltan Varga  <vargaz@freemail.hu>

* ia64/ia64-codegen.h: Improve ins scheduling and fix some bugs.

svn path=/trunk/mono/; revision=48614

18 years ago2005-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Sat, 20 Aug 2005 21:49:34 +0000 (21:49 -0000)]
2005-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>

This patch implements a big portion of publisher policy
support, used to bind assembly versions and redirect
one assembly from version A to version B.

* assembly.c:
New GSList loaded_assembly_bindings, for storing the cached
assembly bindings.
(assembly_binding_maps_name): New static function for checking if a
assembly binding information maps an assembly name.
(mono_assembly_binding_info_free): New function for freeing
assembly binding information resources.
(get_publisher_policy_info): New static function for retrieving
assembly binding information from a MonoImage.
(compare_versions): New static function for comparing an assembly
binding information data and the version of an assembly name.
(check_policy_versions): New static function for checking if an
assembly binding info mapping an assembly name is valid for it.
(mono_assembly_load_publisher_policy): New static function for
loading the 'policy.major.minor.MyAssembly' image for an assembly
with an assembly name 'aname'.
(mono_assembly_bind_version): New static function for updating
assembly redirection.
(mono_assembly_apply_binding): New static function for applying
assembly binding.
(search_binding_loaded): New static function for searching
loaded assembly binding infos in the cache domain.
(mono_assembly_load_full): Don't apply assembly binding for
reflection only assemblies.

* metadata-internals.h: Add MonoAssemblyBindingInfo,
which contains information about assembly binding. Also
declare signature for mono_config_parse_publisher_policy ()
function, used to retrieve pub policy info.

* mono-config.c:
(publisher_policy_start): New static function used to parse publisher
policy config files.
(publisher_policy_parser): New static MonoParseHandler containing
the functions used when parsing config files.
(mono_config_parse_publisher_policy): New function for parsing
publisher policy files.

svn path=/trunk/mono/; revision=48612

18 years ago2005-08-20 Martin Baulig <martin@ximian.com>
Martin Baulig [Sat, 20 Aug 2005 20:56:42 +0000 (20:56 -0000)]
2005-08-20  Martin Baulig  <martin@ximian.com>

* anonymous.cs (CaptureContext.CaptureThis): Create the topmost
scope if we don't already have it.

* expression.cs (Invocation.EmitCall): Use `ec.EmitThis ()' rather
than `ig.Emit (OpCodes.Ldarg_0)' to make it work inside iterators;
fixes #75867.

svn path=/trunk/mcs/; revision=48610

18 years ago2005-08-20 Martin Baulig <martin@ximian.com>
Martin Baulig [Sat, 20 Aug 2005 20:56:31 +0000 (20:56 -0000)]
2005-08-20  Martin Baulig  <martin@ximian.com>

* anonymous.cs (CaptureContext.CaptureThis): Create the topmost
scope if we don't already have it.

* expression.cs (Invocation.EmitCall): Use `ec.EmitThis ()' rather
than `ig.Emit (OpCodes.Ldarg_0)' to make it work inside iterators;
fixes #75867.

svn path=/trunk/mcs/; revision=48609

18 years ago2005-08-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Sat, 20 Aug 2005 20:36:26 +0000 (20:36 -0000)]
2005-08-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* CSharpCodeCompiler.cs: made the colon optional so that both mcs and
gmcs work.

svn path=/trunk/mcs/; revision=48608

18 years ago2005-08-20 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Sat, 20 Aug 2005 18:55:33 +0000 (18:55 -0000)]
2005-08-20  Zoltan Varga  <vargaz@freemail.hu>

* mini.c (mono_create_class_init_trampoline): Fix bug caused by last
change.

svn path=/trunk/mono/; revision=48606

18 years ago*** Merged r47879 from MCS ***
Martin Baulig [Sat, 20 Aug 2005 17:55:44 +0000 (17:55 -0000)]
*** Merged r47879 from MCS ***

svn path=/trunk/mcs/; revision=48604

18 years ago2005-08-20 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Sat, 20 Aug 2005 17:10:46 +0000 (17:10 -0000)]
2005-08-20  Zoltan Varga  <vargaz@freemail.hu>

* mini-ia64.c: Remove LMF fixmes.

* mini-ia64.h: Remove most fields from LMF.

* inssel-ia64.brg (stmt): Fix unaligned access errors.

* mini-trampolines.c: Add support for IA64 function descriptors.

svn path=/trunk/mono/; revision=48603

18 years ago2005-08-20 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Sat, 20 Aug 2005 17:08:21 +0000 (17:08 -0000)]
2005-08-20  Zoltan Varga  <vargaz@freemail.hu>

* mini.h mini.c jit-icalls.c exceptions-ia64.cdriver.c: Add support
for IA64 function descriptors.

svn path=/trunk/mono/; revision=48602

18 years ago2005-08-20 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Sat, 20 Aug 2005 17:03:38 +0000 (17:03 -0000)]
2005-08-20  Zoltan Varga  <vargaz@freemail.hu>

* object.c (mono_delegate_ctor): Add support for IA64 function descriptors.

* marshal.c (mono_delegate_free_ftnptr): Ditto.

* object.c (mono_get_addr_from_ftnptr): New helper function.

* object.h (mono_array_addr): Fix unaligned access warnings on IA64.

svn path=/trunk/mono/; revision=48601

18 years ago2005-08-20 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Sat, 20 Aug 2005 17:00:58 +0000 (17:00 -0000)]
2005-08-20  Zoltan Varga  <vargaz@freemail.hu>

* include/private/gc_locks.h: Fix compilation of GC_test_and_set on IA64 with gcc-3.3.5.

svn path=/trunk/mono/; revision=48600

18 years agoSat Aug 20 16:51:44 BST 2005 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Sat, 20 Aug 2005 15:42:48 +0000 (15:42 -0000)]
Sat Aug 20 16:51:44 BST 2005 Paolo Molaro <lupus@ximian.com>

* tramp-arm.c: patch the vtable for virtual calls. Added
support code to register/unregister the LMF.
* mini-arm.c, mini-arm.h: warning fixes, fixes, speedups,
more LMF work.

svn path=/trunk/mono/; revision=48598

18 years ago* dis-cil.c (dissasemble_cil): Specify precision to enable
Ankit Jain [Sat, 20 Aug 2005 14:26:31 +0000 (14:26 -0000)]
* dis-cil.c (dissasemble_cil): Specify precision to enable
  roundtripping of floats.
* get.c (get_constant): Likewise.

svn path=/trunk/mono/; revision=48597

18 years ago* OdbcDataReader.cs: Marked GetPrimaryKeysBySQLStatistics unsafe.
Gert Driesen [Sat, 20 Aug 2005 13:12:56 +0000 (13:12 -0000)]
* OdbcDataReader.cs: Marked GetPrimaryKeysBySQLStatistics unsafe.
This fixes the build on Windows (using csc).
* Makefile: Allow unsafe code. This fixes the build on Windows (using
csc).

svn path=/trunk/mcs/; revision=48595

18 years ago2005-08-19 Cesar Lopez Nataren <cnataren@novell.com>
César Natarén [Sat, 20 Aug 2005 00:57:22 +0000 (00:57 -0000)]
2005-08-19  Cesar Lopez Nataren  <cnataren@novell.com>

* mjs-most.tests: Uncomment tests ecma/Array/15.4.2.3.js,
ecma/Array/15.4.3.2.js, ecma/Boolean/15.6.3.1-5.js,
ecma/Boolean/15.6.3.1.js, ecma/Boolean/15.6.3.js,
ecma/Boolean/15.6.4-1.js, ecma/Boolean/15.6.4.1.js,
ecma/Boolean/15.6.4.js, ecma/Date/15.9.5.1.js,
ecma/Date/15.9.5.js, ecma/Expressions/11.4.6.js,
ecma/Expressions/11.5.2.js, ecma/FunctionObjects/15.3.3.1-1.js,
ecma/FunctionObjects/15.3.3.2.js, ecma/GlobalObject/15.1.2.2-2.js,
ecma/Math/15.8.2.3.js, ecma/NativeObjects/15-1.js,
ecma/Number/15.7.3.5-1.js, ecma/Number/15.7.3.js,
ecma/Number/15.7.4-1.js, ecma/ObjectObjects/15.2.3-1.js,
ecma/ObjectObjects/15.2.3.js, ecma/String/15.5.3.js,
ecma/String/15.5.4.2.js, ecma/TypeConversion/9.3.1-1.js,
ecma_2/RegExp/properties-001.js, ecma_2/RegExp/properties-002.js

as they are no longer freezing.

svn path=/trunk/mcs/; revision=48590

18 years ago2005-08-20 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Sat, 20 Aug 2005 00:43:08 +0000 (00:43 -0000)]
2005-08-20  Zoltan Varga  <vargaz@freemail.hu>

* Makefile.am: Reenable disabled amd64 tests.

svn path=/trunk/mono/; revision=48589

18 years ago2005-08-20 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Sat, 20 Aug 2005 00:35:39 +0000 (00:35 -0000)]
2005-08-20  Zoltan Varga  <vargaz@freemail.hu>

* appdomain.c (MONO_CORLIB_VERSION): Bump corlib version.

svn path=/trunk/mono/; revision=48588

18 years ago2005-08-20 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Sat, 20 Aug 2005 00:35:05 +0000 (00:35 -0000)]
2005-08-20  Zoltan Varga  <vargaz@freemail.hu>

* Environment.cs: Bump corlib version.

svn path=/trunk/mcs/; revision=48587

18 years ago2005-08-19 Cesar Lopez Nataren <cnataren@novell.com>
César Natarén [Sat, 20 Aug 2005 00:05:22 +0000 (00:05 -0000)]
2005-08-19  Cesar Lopez Nataren  <cnataren@novell.com>

* mjs-most.tests: comment js1_2/regexp/regress-9141.js as the
value/ref patch exposes bugs that make it freeze.

* mjs-most.fail: added js1_2/regexp/octal.js and
js1_2/regexp/special_characters.js waiting for a RE patch to the
base class library.

svn path=/trunk/mcs/; revision=48585

18 years ago2005-08-19 Cesar Lopez Nataren <cnataren@novell.com>
César Natarén [Sat, 20 Aug 2005 00:04:20 +0000 (00:04 -0000)]
2005-08-19  Cesar Lopez Nataren  <cnataren@novell.com>

* SemanticAnalyser.cs: Added ArrayLiteral, StringLiteral,
BooleanConstant, ByteConstant, ShortConstant, IntConstant,
LongConstant, FloatConstant, DoubleConstant to the
prototypes. Added methods IsNumericConstant, NeedsToBoolean.

* Parser.cs: Added methods InRangeOf, HasNoDecimals which help on
building the property AST node depending on how big and precise
the number is.

* CodeGenerator.cs: (emit_get_default_this) Receives an extra
argument which indicates if we are inside a method, use
load_engine. Added method EmitBox, EmitConv, GetBoxType

* Literal.cs: Add abstract class Constant. Renamed BooleanLiteral
to BooleanConstant. Delete NumericLiteral, handle the number code
generation properly categorizing in ByteConstant, ShortConstant,
IntConstant, LongConstant, FloatConstant and DoubleConstant which
inherit from NumericConstant. (ObjectLiteral) Handle boxing issue.

* Statement.cs, Relational.cs: (If) Handle boxing issue.

* VariableDeclaration.cs: Handle the boxing issue when
we have initializers.

* Equality.cs, StrictEquality.cs: Handle the boxing issue before invoking
EvaluateEquality, JScriptStrictEquals.

* ArrayLiteral.cs: Implement ICanLookupPrototype so we can
optimize access to methods through the prototype and not
generating IL code that uses late binding. Handle the boxing
issue.

* expression.cs: (Unary.Emit) Nuke emit_unary_op. Take care of
properly boxing the operands of methods that evaluate the unary
operators at runtime. Fix the minus logic for IL generation, add
method emit_non_numeric_unary. Optimize the numeric
cases. (Binary) Add LateBinding internal
property. (Binary.emit_late_get_or_set, emit_array_access,
Conditional.Emit, Call.Emit, emit_print_stm, emit_late_call,
setup_late_call_args, EmitBuiltInArgs, Identifier.Emit, Args.Emit,
Expression.Emit, Assign.Emit, New.Emit)
Take care of properly boxing the built in .NET
values. (force_strong_type) Change the type from ParameterInfo to
object, take care specifically. (Expression) Add Last internal
property. In general, the point is that value types like integers,
booleans, etc... do not have to generate a box operation, the user
of the arg must handle that.

svn path=/trunk/mcs/; revision=48584

18 years ago2005-08-19:2 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
Rafael Teixeira [Fri, 19 Aug 2005 22:16:23 +0000 (22:16 -0000)]
2005-08-19:2  Rafael Teixeira <rafaelteixeirabr@hotmail.com>
* TreeView.cs : Revamped drawing logic, and support for FullRowSelect

svn path=/trunk/mcs/; revision=48582

18 years ago2005-08-19 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Fri, 19 Aug 2005 22:10:40 +0000 (22:10 -0000)]
2005-08-19  Zoltan Varga  <vargaz@freemail.hu>

        * icall.c (ves_icall_MonoField_GetValueInternal): Add support for generic
        types.

svn path=/trunk/mono/; revision=48581

18 years ago2005-08-19: Rafael Teixeira <rafaelteixeirabr@hotmail.com>
Rafael Teixeira [Fri, 19 Aug 2005 22:10:39 +0000 (22:10 -0000)]
2005-08-19:  Rafael Teixeira <rafaelteixeirabr@hotmail.com>
* TreeView.cs : Revamped drawing logic, and support for FullRowSelect

svn path=/trunk/mcs/; revision=48580

18 years ago2005-08-19 Jb Evain <jbevain@gmail.com>
Jb Evain [Fri, 19 Aug 2005 21:59:23 +0000 (21:59 -0000)]
2005-08-19  Jb Evain  <jbevain@gmail.com>

* NameObjectCollectionBase (GetEnumerator):
Use the virtual modifier only in 2.0 profile.

svn path=/trunk/mcs/; revision=48579

18 years ago2005-08-19 Dick Porter <dick@ximian.com>
Dick Porter [Fri, 19 Aug 2005 20:38:36 +0000 (20:38 -0000)]
2005-08-19  Dick Porter  <dick@ximian.com>

        * Thread.cs: Reserve 64 bits for the thread ID.

svn path=/trunk/mcs/; revision=48576

18 years ago2005-08-19 Dick Porter <dick@ximian.com>
Dick Porter [Fri, 19 Aug 2005 20:37:40 +0000 (20:37 -0000)]
2005-08-19  Dick Porter  <dick@ximian.com>

        * threads.c, threads.h, thread-private.h: Use a gsize to store the
        thread ID, so it can hold a 64 bit value if needed.

2005-08-19  Dick Porter  <dick@ximian.com>

        * threads.c, threads.h, appdomain.c, appdomain.h,
        profiler-private.h, monitor.c, object.c, object-internals.h,
        profiler.c, mono-debug-debugger.h, profiler.h: Use a gsize to
        store the thread ID, so it can hold a 64 bit value if needed.

2005-08-19  Dick Porter  <dick@ximian.com>

        * mini.c: Use a gsize to store the thread ID, so it can hold a 64
        bit value if needed.

svn path=/trunk/mono/; revision=48575

18 years ago2005-08-19 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Fri, 19 Aug 2005 20:05:32 +0000 (20:05 -0000)]
2005-08-19  Zoltan Varga  <vargaz@freemail.hu>

* Math.cs: Implement a new 2.0 Round method.

svn path=/trunk/mcs/; revision=48574

18 years ago2005-08-19 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Fri, 19 Aug 2005 18:59:42 +0000 (18:59 -0000)]
2005-08-19  Zoltan Varga  <vargaz@freemail.hu>

* DynamicMethod.cs (CreateDelegate): Don't cache the delegate since it
needs to be different for each target.

svn path=/trunk/mcs/; revision=48571

18 years ago2005-08-19 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Fri, 19 Aug 2005 18:33:43 +0000 (18:33 -0000)]
2005-08-19  Zoltan Varga  <vargaz@freemail.hu>

* reflection.c (mono_reflection_create_dynamic_method): Store the
handle class into the method references as well so ldtoken works in
dynamic methods.

* icall.c (ves_icall_MonoField_GetValueInternal): Add support for generic
types.

svn path=/trunk/mono/; revision=48570

18 years ago2005-08-19 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Fri, 19 Aug 2005 18:32:57 +0000 (18:32 -0000)]
2005-08-19  Zoltan Varga  <vargaz@freemail.hu>

* DynamicMethod.cs (CreateDynMethod): Call ilgen.label_fixup ().

* DynamicMethod.cs (AddRef): Reserve every second ref slot for use by the
runtime.

svn path=/trunk/mcs/; revision=48569

18 years ago2005-08-19 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Fri, 19 Aug 2005 18:30:51 +0000 (18:30 -0000)]
2005-08-19  Zoltan Varga  <vargaz@freemail.hu>

* mini.c (mini_get_method): Move handling of wrapper data here.

* mini.c (mono_method_to_ir): Add support for dynamic methods.

svn path=/trunk/mono/; revision=48568

18 years ago2005-08-19 Jb Evain <jbevain@gmail.com>
Jb Evain [Fri, 19 Aug 2005 18:29:07 +0000 (18:29 -0000)]
2005-08-19  Jb Evain  <jbevain@gmail.com>

* NameObjectCollectionBase (GetEnumerator):
Remove the virtual modifier.

svn path=/trunk/mcs/; revision=48567

18 years ago2005-08-19 Ben Maurer <bmaurer@novell.com>
Ben Maurer [Fri, 19 Aug 2005 18:23:12 +0000 (18:23 -0000)]
2005-08-19  Ben Maurer  <bmaurer@novell.com>

* outline.cs:
   - Support for `sealed'
   - Handle iface impls with non-virtual methods
   - ';' for delegates

svn path=/trunk/mcs/; revision=48566

18 years agodeleted, compile your own
Florian Gross [Fri, 19 Aug 2005 17:50:23 +0000 (17:50 -0000)]
deleted, compile your own

svn path=/trunk/mcs/; revision=48565

18 years ago2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
Jordi Mas i Hernandez [Fri, 19 Aug 2005 16:31:16 +0000 (16:31 -0000)]
2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>

* gdipFunctions.cs: Before calling GdiplusShutdown we make that all of handles
from gdiplus have been released

svn path=/trunk/mcs/; revision=48562

18 years ago2005-08-19 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Fri, 19 Aug 2005 16:22:48 +0000 (16:22 -0000)]
2005-08-19  Zoltan Varga  <vargaz@freemail.hu>

* mini.c (mono_method_to_ir): Convert nonvirtual calls to abstract methods into
virtual.

svn path=/trunk/mono/; revision=48561

18 years ago2005-08-19 Ankit Jain <jankit@novell.com>
Ankit Jain [Fri, 19 Aug 2005 14:33:38 +0000 (14:33 -0000)]
2005-08-19  Ankit Jain <jankit@novell.com>

Fix #75847.
* marshal.c (mono_marshal_get_ptr_to_struct): Build method signature
  here rather than using the method signature of a arbitrary function
  named 'System.Runtime.InteropServices.Marshal::PtrToStructure' with
  two arguments.
  Hack done with Harinath.

svn path=/trunk/mono/; revision=48558

18 years agocomment security attributes as CSC has trouble digesting them
Sebastien Pouliot [Fri, 19 Aug 2005 14:05:47 +0000 (14:05 -0000)]
comment security attributes as CSC has trouble digesting them

svn path=/trunk/mcs/; revision=48557

18 years agofixed System.ServiceProcess name and the lot of regressions that goes with it
Sebastien Pouliot [Fri, 19 Aug 2005 13:56:56 +0000 (13:56 -0000)]
fixed System.ServiceProcess name and the lot of regressions that goes with it

svn path=/trunk/mcs/; revision=48556

18 years ago2005-08-19 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Fri, 19 Aug 2005 13:49:03 +0000 (13:49 -0000)]
2005-08-19  Zoltan Varga  <vargaz@freemail.hu>

* mini.c (mono_method_to_ir): Emit IR for CEE_NOP as well, so
bblock->code does not remain empty.

svn path=/trunk/mono/; revision=48555

18 years ago* profiles/basic.make: Handle disassemblers that print corlib version in hex.
Raja R Harinath [Fri, 19 Aug 2005 13:24:27 +0000 (13:24 -0000)]
* profiles/basic.make: Handle disassemblers that print corlib version in hex.

svn path=/trunk/mcs/; revision=48554

18 years ago* profiles/basic.make (do-profile-check): Add some debugging output.
Raja R Harinath [Fri, 19 Aug 2005 13:08:00 +0000 (13:08 -0000)]
* profiles/basic.make (do-profile-check): Add some debugging output.

svn path=/trunk/mcs/; revision=48553