mono.git
16 years ago2007-11-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 17 Nov 2007 17:06:22 +0000 (17:06 -0000)]
2007-11-17  Zoltan Varga  <vargaz@gmail.com>

* mini-x86.c (mono_arch_get_inst_for_method): Remove code which is now in
mini.c.

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

16 years ago2007-11-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 17 Nov 2007 16:58:45 +0000 (16:58 -0000)]
2007-11-17  Zoltan Varga  <vargaz@gmail.com>

* mini-ia64.c (mono_arch_get_inst_for_method): Remove code which is now in
mini.c.

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

16 years ago2007-11-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 17 Nov 2007 16:48:33 +0000 (16:48 -0000)]
2007-11-17  Zoltan Varga  <vargaz@gmail.com>

* mini-amd64.c (mono_arch_compute_omit_fp): Disable fp elimination for methods
returning a vtype in a register.

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

16 years ago2007-11-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 17 Nov 2007 16:42:35 +0000 (16:42 -0000)]
2007-11-17  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mini_get_inst_for_method): Move the handling of the atomic operations
here from the arch specific code.

* mini-amd64.c (mono_arch_get_inst_for_method): Remove code which is now in
mini.c.

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

16 years ago2007-11-17 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Sat, 17 Nov 2007 16:13:07 +0000 (16:13 -0000)]
2007-11-17  Miguel de Icaza  <miguel@novell.com>

* SignatureHelper.cs (AddArguments): Add new 2.0 API, used by
new versions of the DLR.   Currently does not have support for
modreq, modopts.   Just a simple wrapper as consumed by the DLR.

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

16 years ago2007-11-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 17 Nov 2007 16:10:03 +0000 (16:10 -0000)]
2007-11-17  Zoltan Varga  <vargaz@gmail.com>

* mini-amd64.c (mono_arch_output_basic_block): Add some micro optimizations.
(mono_arch_emit_prolog): Increment maximum prolog size.

* mini-amd64.c inssel-amd64.brg cpu-amd64.md: Move the implementation of the
START_HANDLER/ENDFINALLY/ENDFILTER opcodes to mini-amd64.c.

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

16 years agoUpdate documentation list, sort
Miguel de Icaza [Sat, 17 Nov 2007 15:50:16 +0000 (15:50 -0000)]
Update documentation list, sort

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

16 years ago2007-11-17 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Sat, 17 Nov 2007 14:17:54 +0000 (14:17 -0000)]
2007-11-17  Marek Habersack  <mhabersack@novell.com>

* HttpResponseTest.cs: added a simple test for AddFileDep*
methods, for bug #342511
2007-11-17  Marek Habersack  <mhabersack@novell.com>

* HttpResponse.cs: make sure fileDependencies is not null before
attempting to use it. Fixes bug #342511.

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

16 years ago * DataGridViewTextBoxCell.cs: Removed CWL.
Gert Driesen [Sat, 17 Nov 2007 09:46:46 +0000 (09:46 -0000)]
 * DataGridViewTextBoxCell.cs: Removed CWL.

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

16 years ago2007-11-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 17 Nov 2007 01:30:31 +0000 (01:30 -0000)]
2007-11-17  Zoltan Varga  <vargaz@gmail.com>

* mini-x86.c (get_call_info): Receive a MonoCompile instead of a
MonoGenericSharingContext.

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

16 years ago2007-11-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 17 Nov 2007 01:30:01 +0000 (01:30 -0000)]
2007-11-17  Zoltan Varga  <vargaz@gmail.com>

* mini-x86.c (get_call_info): Receive a MonoCompile instead of a
MonoGenericSharingContext.

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

16 years ago2007-11-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 17 Nov 2007 01:28:08 +0000 (01:28 -0000)]
2007-11-17  Zoltan Varga  <vargaz@gmail.com>

* mini-ia64.c (get_call_info): Receive a MonoContext instead of a
MonoGenericSharingContext. Allocate memory from the cfg mempool.

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

16 years ago2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Sat, 17 Nov 2007 00:54:51 +0000 (00:54 -0000)]
2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListView.cs: Implement 2.0 SearchForVirtualItem event support.

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

16 years ago2007-11-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 17 Nov 2007 00:43:26 +0000 (00:43 -0000)]
2007-11-17  Zoltan Varga  <vargaz@gmail.com>

* boehm-gc.c (create_allocator): Fix size calculation for the string allocator.
(mono_gc_get_managed_allocator): Enable the string allocator on amd64.

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

16 years ago2007-11-16 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Sat, 17 Nov 2007 00:37:02 +0000 (00:37 -0000)]
2007-11-16  Jonathan Pobst  <monkey@jpobst.com>

* TextControl.cs: Missed some code for bug 341534 to trigger a
recalculation when the font changes.

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

16 years ago* ComboBoxTest.cs: Enabled test for bug #331144.
Gert Driesen [Fri, 16 Nov 2007 23:21:19 +0000 (23:21 -0000)]
* ComboBoxTest.cs: Enabled test for bug #331144.

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

16 years ago2007-11-17 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Fri, 16 Nov 2007 22:54:34 +0000 (22:54 -0000)]
2007-11-17  Marek Habersack  <mhabersack@novell.com>

* HandlerFactoryConfiguration.cs: FileMatchingInfo array must be
created anew on each request (before the result is cached). Fixes
bug #335669.

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

16 years ago* Control.cs: When updating the zorder, check if the child to update is
Andreia Gaita [Fri, 16 Nov 2007 20:52:57 +0000 (20:52 -0000)]
* Control.cs: When updating the zorder, check if the child to update is
the same control that is set to always be on top (i.e., scrollbars), and
just put it on top directly. Fixes BadMatch error on pdn3

2007-11-09  Andreia Gaita <avidigal@novell.com>

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

16 years ago2007-11-16 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Fri, 16 Nov 2007 20:31:22 +0000 (20:31 -0000)]
2007-11-16  Marek Habersack  <mhabersack@novell.com>

* HttpWebRequest.cs: when folding a request into a GET one, set
content length to 0 and kill the buffers. Fixes bug #327314. Patch
from Geoff Norton <gnorton@novell.com>, thanks!

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

16 years ago* AppDomain.cs: Added some obsolete messages.
Gert Driesen [Fri, 16 Nov 2007 20:28:48 +0000 (20:28 -0000)]
* AppDomain.cs: Added some obsolete messages.

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

16 years ago2007-11-16 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 16 Nov 2007 19:51:37 +0000 (19:51 -0000)]
2007-11-16  Atsushi Enomoto  <atsushi@ximian.com>

        * AssemblyBuilder.cs : added missing 2.0 member.
        * DynamicMethod.cs : removed extra stuff.
        * DynamicILInfo.cs : no public .ctor().
        * ILGenerator.cs : fixed 2.0 member signatures.

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

16 years ago2007-11-16 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 16 Nov 2007 19:49:25 +0000 (19:49 -0000)]
2007-11-16  Marek Safar  <marek.safar@gmail.com>

A test for bug #325423

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

16 years ago2007-11-16 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 16 Nov 2007 19:48:45 +0000 (19:48 -0000)]
2007-11-16  Marek Safar  <marek.safar@gmail.com>

A fix for bug #325423
  * assign.cs (FieldInitializer): Use resolved expression for emit.

  * class.cs: Print less confusing error message.

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

16 years ago2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Fri, 16 Nov 2007 19:41:19 +0000 (19:41 -0000)]
2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListViewTest.cs: New exception test for 2.0 FindNearestItem method.

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

16 years ago2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Fri, 16 Nov 2007 19:39:16 +0000 (19:39 -0000)]
2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListView.cs: Throw the needed exceptions for FindNearestItem.

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

16 years ago2007-11-16 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 16 Nov 2007 18:59:56 +0000 (18:59 -0000)]
2007-11-16  Atsushi Enomoto  <atsushi@ximian.com>

        * EnumBuilder.cs, TypeBuilder.cs : implemented missing 2.0
          stuff, in harmless manner.

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

16 years ago2007-11-16 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 16 Nov 2007 18:33:00 +0000 (18:33 -0000)]
2007-11-16  Atsushi Enomoto  <atsushi@ximian.com>

        * ConstructorBuilder.cs : added CallingConvention.

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

16 years ago2007-11-16 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 16 Nov 2007 17:50:33 +0000 (17:50 -0000)]
2007-11-16  Atsushi Enomoto  <atsushi@ximian.com>

        * SignatureHelper.cs : Module can be null, and for non-
          ModuleBuilder argument, throw ArgumentException.
          Added missing 2.0 stuff.

        * SignatureHelperTest.cs : new test.

        * corlib_test.dll.sources : added S.R.E/SignatureHelperTest.cs.

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

16 years ago2007-11-16 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Fri, 16 Nov 2007 16:53:41 +0000 (16:53 -0000)]
2007-11-16  Jonathan Pobst  <monkey@jpobst.com>

* Control.cs: Don't perform a new layout when a label changes its text,
cause label handles its own autosizing.
[Fixes bug #342077]

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

16 years ago* mjs.cs: Added support for /warn option. Ignore /target:exe, and
Gert Driesen [Fri, 16 Nov 2007 16:42:05 +0000 (16:42 -0000)]
* mjs.cs: Added support for /warn option. Ignore /target:exe, and
report errors for /target:library and invalid targets.

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

16 years ago2007-11-16 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 16 Nov 2007 15:35:16 +0000 (15:35 -0000)]
2007-11-16  Rodrigo Kumpera  <rkumpera@novell.com>

* TypeTest.cs: Splited MakeGenericType_UserDefinedType is two tests.
MakeGenericType_NestedUserDefinedType is the NotWorking part of
the fix for bug #331199.

* TypeTest.cs: Added a NotWorking version of TestMakeGenericType_UserDefinedType
that has the behavior of .net 2.0 SP1.

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

16 years ago2007-11-16 Jb Evain <jbevain@novell.com>
Jb Evain [Fri, 16 Nov 2007 15:13:21 +0000 (15:13 -0000)]
2007-11-16  Jb Evain  <jbevain@novell.com>

* Debug_2_1.cs: simply write debug messages to the
console.

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

16 years agoDisabled 1 test.
Marek Safar [Fri, 16 Nov 2007 14:27:40 +0000 (14:27 -0000)]
Disabled 1 test.

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

16 years ago2007-11-16 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 16 Nov 2007 14:19:57 +0000 (14:19 -0000)]
2007-11-16  Marek Safar  <marek.safar@gmail.com>

  * cs-tokenizer.cs: Removed GMCS ifdefs.

  * rootcontext.cs, report.cs: Report unavailable gmcs features used by
  mcs.

* cs-parser.jay: Disabled nullable check.

* generic-mcs: Copied more generic stuff.

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

16 years agoUpdated
Marek Safar [Fri, 16 Nov 2007 11:20:03 +0000 (11:20 -0000)]
Updated

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

16 years ago2007-11-16 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 16 Nov 2007 11:19:38 +0000 (11:19 -0000)]
2007-11-16  Marek Safar  <marek.safar@gmail.com>

  * gcs-parser.jay: Merged to cs-parser.jay.

  * generic.cs, typemanager.cs, cs-tokenizer.cs, linq.cs, Makefile
  * *.csproj, *.sources: Updated to use only 1 jay file.

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

16 years agoNew tests.
Marek Safar [Fri, 16 Nov 2007 10:01:37 +0000 (10:01 -0000)]
New tests.

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

16 years ago2007-11-16 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 16 Nov 2007 10:01:27 +0000 (10:01 -0000)]
2007-11-16  Marek Safar  <marek.safar@gmail.com>

  * gcs-parser.jay: Added nullable and default expression feature checks.

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

16 years agoNew tests + update
Marek Safar [Fri, 16 Nov 2007 09:20:42 +0000 (09:20 -0000)]
New tests + update

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

16 years ago2007-11-16 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 16 Nov 2007 09:19:48 +0000 (09:19 -0000)]
2007-11-16  Marek Safar  <marek.safar@gmail.com>

  * gcs-parser.jay, cs-parser.jay, class.cs: Unified parameters parsing,
  it fixes many TODOs and hidden bugs.

  * expression: Removed duplicate error check.

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

16 years ago2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Fri, 16 Nov 2007 08:50:38 +0000 (08:50 -0000)]
2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListView.cs: Implement 2.0 FindNearestItem methods.

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

16 years ago2007-11-15 Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
Francisco Figueiredo Jr. [Thu, 15 Nov 2007 23:42:28 +0000 (23:42 -0000)]
2007-11-15  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
*Npgsql/NpgsqlCommand.cs:  [#1010187] Problem with parsing parameters and "<" or ">" operator with Prepare().
 [#1010186] Thread safety problem when Parsing command text.
 Thanks Hubert FONGARNAND for patches!

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

16 years ago2007-11-16 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 15 Nov 2007 23:36:24 +0000 (23:36 -0000)]
2007-11-16  Zoltan Varga  <vargaz@gmail.com>

* Assembly.cs (GetFiles): Include the assembly itself as the first entry.

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

16 years ago2007-11-16 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 15 Nov 2007 23:01:07 +0000 (23:01 -0000)]
2007-11-16  Zoltan Varga  <vargaz@gmail.com>

* configure.in: Make --with-moonlight=yes the default.

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

16 years ago2007-11-15 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 15 Nov 2007 22:48:13 +0000 (22:48 -0000)]
2007-11-15  Jonathan Pobst  <monkey@jpobst.com>

* ToolStripPanel.cs: Make Join at least add the control to the panel,
even if the rest of what Join does isn't supported.  Add some more
support for vertical toolbars.
* ToolStripPanelRow.cs: Add some more support for vertical toolbars.
[Fixes the application breaking parts of bug #341998]

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

16 years ago2007-11-15 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 15 Nov 2007 22:42:59 +0000 (22:42 -0000)]
2007-11-15  Jonathan Pobst <monkey@jpobst.com>

* ToolStripItem.cs: When determining if we have a check/image margin,
we need to look at ShowCheckMargin as well as ShowImageMargin.

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

16 years ago2007-11-15 Geoff Norton <gnorton@novell.com>
Geoff Norton [Thu, 15 Nov 2007 22:41:34 +0000 (22:41 -0000)]
2007-11-15  Geoff Norton  <gnorton@novell.com>

        * LOADER: Reflect the renamed environment variable in the new Carbon driver.

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

16 years ago2007-11-15 Geoff Norton <gnorton@novell.com>
Geoff Norton [Thu, 15 Nov 2007 22:38:12 +0000 (22:38 -0000)]
2007-11-15  Geoff Norton  <gnorton@novell.com>

        * gdipFunctions.cs: Reflect the renamed environment variable in the new Carbon driver.
        * Graphics.cs: Remove support for the deprecated Cocoa driver until its fixed.

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

16 years ago2007-11-15 Geoff Norton <gnorton@novell.com>
Geoff Norton [Thu, 15 Nov 2007 22:36:45 +0000 (22:36 -0000)]
2007-11-15  Geoff Norton  <gnorton@novell.com>

* Commit my local branch tracking the new event handling/translation system for the
Carbon driver.  This fixes many issues with many of the event ordering issues we
were having as well as drastically improves maintainability.

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

16 years ago2007-11-15 Dick Porter <dick@ximian.com>
Dick Porter [Thu, 15 Nov 2007 22:10:53 +0000 (22:10 -0000)]
2007-11-15  Dick Porter  <dick@ximian.com>

* configure.in: Check for g_strsplit_set() and g_strv_length()

2007-11-15  Dick Porter  <dick@ximian.com>

* processes.c (load_modules): Don't bother if we don't have
g_strsplit_set() and g_strv_length().  Allows building against old
glib versions.
(EnumProcessModules): Don't miss the first module returned by
load_modules().

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

16 years ago2007-11-15 Jb Evain <jbevain@novell.com>
Jb Evain [Thu, 15 Nov 2007 22:10:14 +0000 (22:10 -0000)]
2007-11-15  Jb Evain  <jbevain@novell.com>

* LinkedList.cs: ifdef out manually the Serialization part of the
LinkedList.Enumerator. As it is a struct, the field SerializationInfo
have to be assigned in the default constructor, and the tuner cannot
remove that. Fixes #341938 for real.

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

16 years agorevert
Jb Evain [Thu, 15 Nov 2007 22:01:14 +0000 (22:01 -0000)]
revert

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

16 years ago2007-11-15 Jb Evain <jbevain@novell.com>
Jb Evain [Thu, 15 Nov 2007 20:36:46 +0000 (20:36 -0000)]
2007-11-15  Jb Evain  <jbevain@novell.com>

* LinkedList.cs: let's not have an access to the SerializationInfo
field outside of serializations methods (We need a gendarme rule). Fixes #341938.

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

16 years ago2007-11-15 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 15 Nov 2007 20:22:22 +0000 (20:22 -0000)]
2007-11-15  Atsushi Enomoto  <atsushi@ximian.com>

* Makefile : added -r:System.Data.
* t45.cs, t45.exe.expected : test for bug #323708.

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

16 years ago2007-11-15 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 15 Nov 2007 20:13:44 +0000 (20:13 -0000)]
2007-11-15  Atsushi Enomoto  <atsushi@ximian.com>

* DbProviderFactoriesConfigurationHandler.cs : Create() now takes
  parent DataSet into consideration i.e. it now merges items in
  different configurations. Fixed bug #323708.

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

16 years ago2007-11-15 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 15 Nov 2007 20:11:52 +0000 (20:11 -0000)]
2007-11-15  Atsushi Enomoto  <atsushi@ximian.com>

Part of fix for bug #323708.
* ConfigurationSection.cs : in GetRuntimeObject(), take parent
  section instance into consideration.
* SectionInformation.cs : to make it possible, GetParentSection()
  should be implemented.
* Configuration.cs : to make it possible, GetSectionInstance()
  should set parent section on its SectionInformation. It used to
  just steal parent's xml when its own xml does not exist, but
  it now blocks correct configuration retrieval.

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

16 years ago2007-11-15 Dick Porter <dick@ximian.com>
Dick Porter [Thu, 15 Nov 2007 20:03:27 +0000 (20:03 -0000)]
2007-11-15  Dick Porter  <dick@ximian.com>

* threads.c (ves_icall_System_Threading_Thread_Join_internal):
When joining a thread, it's the thread that's calling Join that
gets WaitSleepJoin state not the target.  Fixes the standalone
test case in bug 334740, and hopefully the whole bug too.

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

16 years ago2007-11-15 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 15 Nov 2007 19:56:28 +0000 (19:56 -0000)]
2007-11-15  Atsushi Enomoto  <atsushi@ximian.com>

* SectionGroupInfo.cs : remove extra StringBuilder creation.

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

16 years agoFixed Optimize for ldc_i4
Rodrigo B. de Oliveira [Thu, 15 Nov 2007 19:41:53 +0000 (19:41 -0000)]
Fixed Optimize for ldc_i4

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

16 years ago2007-11-15 Dick Porter <dick@ximian.com>
Dick Porter [Thu, 15 Nov 2007 17:13:51 +0000 (17:13 -0000)]
2007-11-15  Dick Porter  <dick@ximian.com>

* process.c: Read file version info from the files pointed at by
process modules, not the current process.  Fixes bug 315969.

Use windows typedef names in some places to fix warnings on the
windows build.

2007-11-15  Dick Porter  <dick@ximian.com>

* processes.c: Implement process module support by reading from
/proc if it's available.

* versioninfo.h:
* versioninfo.c: New functions to implement PE file version info
support.

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

16 years ago2007-11-15 Dick Porter <dick@ximian.com>
Dick Porter [Thu, 15 Nov 2007 17:13:46 +0000 (17:13 -0000)]
2007-11-15  Dick Porter  <dick@ximian.com>

* Process.cs: Pass the process handle to GetModules_internal();

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

16 years ago2007-11-12 Atsushi Enomoto <atsushi@ximian.com>
Miguel de Icaza [Thu, 15 Nov 2007 16:50:05 +0000 (16:50 -0000)]
2007-11-12  Atsushi Enomoto  <atsushi@ximian.com>

* System.dll.sources : added S.R.InteropSvcs.ComTypes types.

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

16 years ago2007-11-15 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 15 Nov 2007 16:38:57 +0000 (16:38 -0000)]
2007-11-15  Jonathan Pobst  <monkey@jpobst.com>

* KeysConverter.cs: The default values should be an array of Keys, not
strings.  Also, the array has more values for 2.0.
[Fixes bug #341851]

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

16 years ago2007-11-15 Mark Probst <mark.probst@gmail.com>
Mark Probst [Thu, 15 Nov 2007 15:05:34 +0000 (15:05 -0000)]
2007-11-15  Mark Probst  <mark.probst@gmail.com>

* mini.c, mini.h, generic-sharing.c: Functions for producing code
which extract fields out of the runtime generic context.  Full
sharing of the NEWARR opcode.

2007-11-15  Mark Probst  <mark.probst@gmail.com>

* image.c, metadata-internals.h: Added a generic_class_cache hash
to MonoImage for looking up generic classes when sharing generics.

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

16 years agoThu Nov 15 16:11:30 CET 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 15 Nov 2007 14:48:14 +0000 (14:48 -0000)]
Thu Nov 15 16:11:30 CET 2007 Paolo Molaro <lupus@ximian.com>

* sgen-gc.c: warning cleanups.

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

16 years agoWarnings cleanup
Marek Safar [Thu, 15 Nov 2007 14:14:49 +0000 (14:14 -0000)]
Warnings cleanup

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

16 years ago2007-11-15 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 15 Nov 2007 13:42:27 +0000 (13:42 -0000)]
2007-11-15  Zoltan Varga  <vargaz@gmail.com>

* TypeTest.cs: Add new test for GetProperties () and virtual new properties.

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

16 years ago2007-11-15 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 15 Nov 2007 13:40:47 +0000 (13:40 -0000)]
2007-11-15  Zoltan Varga  <vargaz@gmail.com>

* icall.c (ves_icall_Type_GetPropertiesByName): Implement proper hiding of
inherited properties.

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

16 years agoThu Nov 15 14:20:21 CET 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 15 Nov 2007 12:57:50 +0000 (12:57 -0000)]
Thu Nov 15 14:20:21 CET 2007 Paolo Molaro <lupus@ximian.com>

* abcremoval.c, mini.c, ssa.c, ssapre.c: updated to implement
--enable-minimal=ssa.

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

16 years ago* Typetest.cs: Added and improve tests for InvokeMember. Enabled test
Gert Driesen [Thu, 15 Nov 2007 12:11:41 +0000 (12:11 -0000)]
* Typetest.cs: Added and improve tests for InvokeMember. Enabled test
for bug #321735.
* MonoType.cs: Modified ParamName for ArgumentException to match
MS. Provide meaningful exception messages. On 2.0, throw ANE instead
of ArgumentException when args is null.

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

16 years agoWarnings cleanup
Marek Safar [Thu, 15 Nov 2007 11:51:57 +0000 (11:51 -0000)]
Warnings cleanup

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

16 years agoCompact Framework support by using Guid(string) if CF_2_0 is defined
Rodrigo B. de Oliveira [Thu, 15 Nov 2007 11:18:56 +0000 (11:18 -0000)]
Compact Framework support by using Guid(string) if CF_2_0 is defined

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

16 years agoNew test.
Marek Safar [Thu, 15 Nov 2007 11:15:20 +0000 (11:15 -0000)]
New test.

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

16 years agoNew tests.
Marek Safar [Thu, 15 Nov 2007 11:14:50 +0000 (11:14 -0000)]
New tests.

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

16 years ago2007-11-15 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 15 Nov 2007 11:13:50 +0000 (11:13 -0000)]
2007-11-15  Marek Safar  <marek.safar@gmail.com>

  * gcs-parser.jay, statement.cs, decl.cs, ecore.cs: Try to resolve an
  implicitly type local variable only when it is used in a declaration.

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

16 years ago2007-11-15 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 15 Nov 2007 10:30:24 +0000 (10:30 -0000)]
2007-11-15  Marek Safar  <marek.safar@gmail.com>

  * attribute.cs: Use CS0612 for empty strings.

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

16 years ago* MemberDescriptor.cs: Spaces to tabs, code formatting.
Gert Driesen [Thu, 15 Nov 2007 09:25:50 +0000 (09:25 -0000)]
* MemberDescriptor.cs: Spaces to tabs, code formatting.
* PropertyDescriptor.cs: When adding or removing a new handler for an
existing component, update the hashtable. In GetValueChangedHandler,
return null if component is null.
* PropertyDescriptorTests.cs: Added tests for AddValueChanged,
GetInvocationTarget, GetValueChangedHandler and RemoveValueChanged.

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

16 years ago2007-11-14 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 15 Nov 2007 01:46:53 +0000 (01:46 -0000)]
2007-11-14  Jonathan Pobst  <monkey@jpobst.com>

* Application.cs: Change ExecutablePath to use
Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
[Fixes bug #323552]

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

16 years ago2007-11-15 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 15 Nov 2007 00:35:33 +0000 (00:35 -0000)]
2007-11-15  Zoltan Varga  <vargaz@gmail.com>

* MonoType.cs (Invoke): Allow BindingFlags.SetField and BindingFlags.SetProperty to be specified together. Fixes #321735.

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

16 years ago2007-11-14 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 14 Nov 2007 22:49:20 +0000 (22:49 -0000)]
2007-11-14  Jonathan Pobst  <monkey@jpobst.com>

* LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
* TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
be ignored.  Create a new GetLineEnding that can specify which types of
line endings to look for.  On Insert, only create new lines for \n and \r\n.
[Fixes bug #324274]

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

16 years ago2007-11-14 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Wed, 14 Nov 2007 20:29:41 +0000 (20:29 -0000)]
2007-11-14  Marek Habersack  <mhabersack@novell.com>

* FileMatchingInfo.cs: if Request is present, construct MatchExact
using Request.BaseVirtualDir instead of
HttpRuntime.AppDomainAppVirtualPath, falling back to the latter if
the former is not available. Fixes bug #341703

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

16 years ago2007-11-14 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Wed, 14 Nov 2007 16:21:55 +0000 (16:21 -0000)]
2007-11-14  Miguel de Icaza  <miguel@novell.com>

* Console.cs, ConsoleDriver.cs, TermInfoDriver.cs,
TermInfoReader.cs, TermInfoNumber.cs, TermInfoStrings.cs,
CStreamReader.cs, CStreamWriter.cs, NullConsoleDriver.cs,
WindowsConsoleDriver.cs: In the 2.1 profile we do not need the
full-blown Console (the terminal-addressable console) so we shrink
it down to the basic 1.0 Console.

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

16 years ago2007-11-14 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 14 Nov 2007 15:39:54 +0000 (15:39 -0000)]
2007-11-14  Jonathan Pobst  <monkey@jpobst.com>

* TextBoxBase.cs: As we loop through each line changing the font, tell
the document that the line needs to be recalculated.  Fixes bug #341534.

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

16 years ago2007-11-14 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 14 Nov 2007 15:28:40 +0000 (15:28 -0000)]
2007-11-14  Marek Safar  <marek.safar@gmail.com>

* Nullable.cs: Optimized to use generic comparers.

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

16 years ago2007-11-14 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 14 Nov 2007 14:39:25 +0000 (14:39 -0000)]
2007-11-14  Zoltan Varga  <vargaz@gmail.com>

* ArrayTest.cs: Add a test for Copy () and exceptions.

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

16 years ago2007-11-14 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 14 Nov 2007 14:38:47 +0000 (14:38 -0000)]
2007-11-14  Zoltan Varga  <vargaz@gmail.com>

* Array.cs (Copy): Throw InvalidCastException in more cases.

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

16 years agoNew test.
Marek Safar [Wed, 14 Nov 2007 13:15:38 +0000 (13:15 -0000)]
New test.

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

16 years ago2007-11-14 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 14 Nov 2007 13:14:02 +0000 (13:14 -0000)]
2007-11-14  Marek Safar  <marek.safar@gmail.com>

  * lambda.cs, statement.cs: Contextual return may act as a statement.

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

16 years ago2007-11-14 Mark Probst <mark.probst@gmail.com>
Mark Probst [Wed, 14 Nov 2007 12:06:40 +0000 (12:06 -0000)]
2007-11-14  Mark Probst  <mark.probst@gmail.com>

* object.c, class-internals.h: Added more information to the
runtime generic context.

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

16 years agoMore test coverage.
Marek Safar [Wed, 14 Nov 2007 10:10:22 +0000 (10:10 -0000)]
More test coverage.

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

16 years ago2007-11-14 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 14 Nov 2007 10:06:12 +0000 (10:06 -0000)]
2007-11-14  Marek Safar  <marek.safar@gmail.com>

  A fix for a regression cause by #324222
  * class.cs: Don't report unused even when it implements an interface.

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

16 years ago2007-11-14 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Wed, 14 Nov 2007 09:16:36 +0000 (09:16 -0000)]
2007-11-14  Marek Habersack  <mhabersack@novell.com>

* SimpleWebHandlerParser.cs: expect GetTypeFromBin to be called
with a fully qualified type name and act accordingly. Fixes bug
#341456.

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

16 years ago2007-11-14 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 14 Nov 2007 08:44:22 +0000 (08:44 -0000)]
2007-11-14  Atsushi Enomoto  <atsushi@ximian.com>

* Configuration.cs : (Save) when the given file path is relative
  it failed to create directory. Fixed standalone test t25/t26.
* InternalConfigurationHost.cs : pass userLevel to create a host
  instance.

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

16 years ago2007-11-14 Atushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 14 Nov 2007 08:10:43 +0000 (08:10 -0000)]
2007-11-14  Atushi Enomoto  <atsushi@ximian.com>

* DataSetTest.cs : added test for r89307 fix (it is for XmlSerializer
  but needs to be in sys.data).
* MonkeyDataSet.cs : test support classes (generated by xsd).

* System.Data_test.dll.sources: added MonkeyDataSet.cs, test helper.

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

16 years ago2007-11-13 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 13 Nov 2007 19:39:16 +0000 (19:39 -0000)]
2007-11-13  Zoltan Varga  <vargaz@gmail.com>

* DelegateTest.cs: Add tests for virtual target methods.

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

16 years ago2007-11-13 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 13 Nov 2007 19:26:53 +0000 (19:26 -0000)]
2007-11-13  Zoltan Varga  <vargaz@gmail.com>

* mini-trampolines.c (mono_delegate_trampoline): Update after
mono_marshal_get_delegate_invoke () signature change.

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

16 years ago2007-11-13 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 13 Nov 2007 19:26:13 +0000 (19:26 -0000)]
2007-11-13  Zoltan Varga  <vargaz@gmail.com>

* marshal.c (mono_marshal_get_delegate_invoke): Take a delegate as argument
instead of just the target method. Generalize the abstract method handling to
handle any non-static method.

* icall.c (ves_icall_System_Delegate_SetMulticastInvoke): Update after
mono_marshal_get_delegate_invoke () signature change.

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

16 years ago2007-11-13 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 13 Nov 2007 17:43:21 +0000 (17:43 -0000)]
2007-11-13  Jonathan Pobst  <monkey@jpobst.com>

* DateTimePickerTest.cs: Remove a compare on seconds in a format
string so that we get a Assert.AreEqual (DateTime.Now, DateTime.Now)
failure 60x less often on the buildbots.  (I've never actually seen
the minutes be different, but the possibility is still there.)

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

16 years ago2007-11-13 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 13 Nov 2007 16:29:21 +0000 (16:29 -0000)]
2007-11-13  Jonathan Pobst  <monkey@jpobst.com>
[Another round of refactoring]
* Line.cs: Add DeleteCharacters.
* LineTag.cs: Add Delete.
* TextBoxBase.cs: Update to use new methods.
* TextControl.cs: Refactor the Delete* methods.

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

16 years ago2007-11-13 Mark Probst <mark.probst@gmail.com>
Mark Probst [Tue, 13 Nov 2007 16:16:00 +0000 (16:16 -0000)]
2007-11-13  Mark Probst  <mark.probst@gmail.com>

* mini.c: Removed the shared context in favor of the generic
sharing context.  Allocate the MonoJitInfo structure with room for
the generic sharing context if it's needed.

* mini.h: Remove MonoGenericSharingContext declaration.  It's in
domain-internals.h now.

* mini-x86.c: Pass the generic sharing context to get_call_info ().

* generic-sharing.c: Several changes for working without a shared
context and instead operating on open types instead.

2007-11-13  Mark Probst  <mark.probst@gmail.com>

* class.c, class-internals.h: Made
mono_type_get_basic_type_from_generic () public.  Fixed member
access check for shared generics.

* loader.c: Don't insert field into field cache if it's part of a
non-inflated generic class.

* domain.c, domain-internals.h: The generic sharing context is now
part of the jit info data structure.  Added two accessor
functions.

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