mono.git
16 years ago* WebConfigurationManager.cs: performance improvement, cached GetSection method
Vladimir Krasnov [Mon, 18 Feb 2008 16:25:21 +0000 (16:25 -0000)]
* WebConfigurationManager.cs: performance improvement, cached GetSection method

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

16 years agoRemoved deprecated -langversion:linq
Marek Safar [Mon, 18 Feb 2008 15:07:33 +0000 (15:07 -0000)]
Removed deprecated -langversion:linq

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

16 years agoRemoved deprecated -langversion:linq option
Marek Safar [Mon, 18 Feb 2008 14:59:36 +0000 (14:59 -0000)]
Removed deprecated -langversion:linq option

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

16 years agoAdd new tests.
Marek Safar [Mon, 18 Feb 2008 14:35:15 +0000 (14:35 -0000)]
Add new tests.

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

16 years ago2008-02-18 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 18 Feb 2008 14:34:57 +0000 (14:34 -0000)]
2008-02-18  Marek Safar  <marek.safar@gmail.com>

A fix for bug #361457
  * ecore.cs (IsApplicable): Params methods have lower priority.

  * support.cs: Return correct parameter modifier for params types.

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

16 years agoNew test.
Marek Safar [Mon, 18 Feb 2008 11:12:34 +0000 (11:12 -0000)]
New test.

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

16 years ago2008-02-18 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 18 Feb 2008 10:48:37 +0000 (10:48 -0000)]
2008-02-18  Marek Safar  <marek.safar@gmail.com>

  * generic.cs (TypeParameter): Cache attribute target name.

  * support.cs: Removed unused variable.

  * typemanager.cs: Removed debugging leftover.

  * ecore.cs: Use local type instead of a property;

  * class.cs (VerifyMembers): Consider also parent to test whether type member
  is local or public.

  * expression.cs (FullMethodDesc): Removed.

  * attribute.cs (IsValidArgumentType): Made static.

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

16 years ago2008-02-18 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 18 Feb 2008 07:21:57 +0000 (07:21 -0000)]
2008-02-18  Atsushi Enomoto  <atsushi@ximian.com>

* DBNull.cs : ToType(typeof(DBNull),...) should be allowed.

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

16 years ago* rules.make (%/.stamp): Unify all directory creation targets here.
Raja R Harinath [Mon, 18 Feb 2008 06:28:41 +0000 (06:28 -0000)]
* rules.make (%/.stamp): Unify all directory creation targets here.

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

16 years ago* Makefile ($(dir $(PROGRAM))/.stamp): New.
Raja R Harinath [Mon, 18 Feb 2008 06:12:12 +0000 (06:12 -0000)]
* Makefile ($(dir $(PROGRAM))/.stamp): New.

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

16 years agoDisable test-coreclr-security till #362626 is fixed
Raja R Harinath [Mon, 18 Feb 2008 05:31:05 +0000 (05:31 -0000)]
Disable test-coreclr-security till #362626 is fixed

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

16 years ago* Makefile (CYCLIC_DEPS): Don't use $(eval ...) -- we still
Raja R Harinath [Mon, 18 Feb 2008 05:19:22 +0000 (05:19 -0000)]
* Makefile (CYCLIC_DEPS): Don't use $(eval ...) -- we still
support older GNU makes.

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

16 years ago* Makefile (net_2_0_centum_tests): Add System.Xml.Linq here.
Raja R Harinath [Mon, 18 Feb 2008 05:00:10 +0000 (05:00 -0000)]
* Makefile (net_2_0_centum_tests): Add System.Xml.Linq here.

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

16 years ago* Makefile (inst-%, gac-%): Fix dependencies.
Raja R Harinath [Mon, 18 Feb 2008 04:59:52 +0000 (04:59 -0000)]
* Makefile (inst-%, gac-%): Fix dependencies.

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

16 years ago* CharConverterTest.cs: Added tests for ConvertFrom and ConvertTo.
Gert Driesen [Sun, 17 Feb 2008 19:08:47 +0000 (19:08 -0000)]
* CharConverterTest.cs: Added tests for ConvertFrom and ConvertTo.
* CultureInfoConverterTest.cs: Added tests for ConvertFrom and
ConvertTo.
* CharConverter.cs (ConvertFrom): Avoid NRE when value is null.
Provide more info when left of value > 1.
* CultureInfoConverter.cs (ConvertFrom): Avoid NRE when value is null.
On 2.0 profile, use case-sensitive comparison for (Default) value.
Use case-insensitive comparing when value is considered as displayname.
Provide more info in exception message.
(ConvertTo): Use '(Default)' instead of '(default)' for invariant
culture.
* System_test.dll.sources: Added CharConverterTest.cs and
CultureInfoConverterTest.cs.

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

16 years ago2008-02-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 17 Feb 2008 19:05:40 +0000 (19:05 -0000)]
2008-02-17  Zoltan Varga  <vargaz@gmail.com>

* mini-ia64.c: Use cfg->vret_addr instead of cfg->ret.

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

16 years ago2008-02-09 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 17 Feb 2008 19:03:42 +0000 (19:03 -0000)]
2008-02-09  Zoltan Varga  <vargaz@gmail.com>

* mini-arm.h mini-arm.c exceptions-arm.c: Modify the exception throwing code and
the IMT code so it is AOT friendly. Enable AOT for methods which call interface
methods.

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

16 years ago2008-02-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 17 Feb 2008 19:02:58 +0000 (19:02 -0000)]
2008-02-17  Zoltan Varga  <vargaz@gmail.com>

* mini-arm.h mini-arm.c: Use cfg->vret_addr instead of cfg->ret.

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

16 years agoIn .:
Raja R Harinath [Sun, 17 Feb 2008 17:54:22 +0000 (17:54 -0000)]
In .:
* Makefile (_boot_): Orchestrate the net_2_1 bootstrap.
(net_2_1_bootstrap_SUBDIRS, net_2_1_raw_SUBDIRS): New.

In build:
* profiles/net_2_1_bootstrap.make: New.
* profiles/net_2_1_raw.make: New.  The untuned 2.1 profile.
* profiles/net_2_1.make: New.  The tuned 2.1 profile.
* Makefile (PROFILES): Update.

In class:
* Makefile (net_3_5_dirs): Remove System.Xml.Linq, now that it's
built in the 2.0 profile.

In class/System:
* Makefile (CYCLIC_DEPS): New macro.
(CYCLIC_DEP_FILES): Use it to clean up handling of cyclic dependencies.
* net_2_1_raw_System.dll.sources: Rename from net_2_1_System.dll.sources.
* net_2_1_bootstrap_System.dll.sources: New.

In class/corlib:
* Makefile (LIBRARY_COMPILE) [net_2_1]: Remove special case.

In errors:
* Makefile: Enable testing net_2_1 profile.

In mcs:
* Makefile (GMCS_PROFILE): Remove.
(COMPILER_NAME): New helper.

In tests:
* Makefile: Enable smcs testing.

In tools:
* Makefile (net_2_1_raw_SUBDIRS): New.

In tools/compiler-tester:
* Makefile [PROFILE=net_2_1]: Copy file from net_2_1_raw profile.
* compiler-tester.cs: Work better with 'net_2_1' profiles.

In tools/tuner:
* Makefile: Improve.  Update to new net_2_1 profiles.  Specify
more dependencies.  Do work only when necessary.
* Descriptors/smcs.xml: Add CompilerCallableEntryPoint.

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

16 years ago* loader.c (mono_method_get_param_names): Initialize 'klass' after
Raja R Harinath [Sun, 17 Feb 2008 17:19:10 +0000 (17:19 -0000)]
* loader.c (mono_method_get_param_names): Initialize 'klass' after
'method' is updated.

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

16 years ago* Makefile.am (SMCS): Add temporary-smcs-hack flag.
Raja R Harinath [Sun, 17 Feb 2008 17:18:51 +0000 (17:18 -0000)]
* Makefile.am (SMCS): Add temporary-smcs-hack flag.

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

16 years agoPrepare for handling runs
Raja R Harinath [Sun, 17 Feb 2008 17:18:33 +0000 (17:18 -0000)]
Prepare for handling runs

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

16 years ago2008-02-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 17 Feb 2008 16:46:54 +0000 (16:46 -0000)]
2008-02-17  Zoltan Varga  <vargaz@gmail.com>

* mini-sparc.c: Use cfg->vret_addr instead of cfg->ret. Name the MonoCompile
variables 'cfg' instead of 'm' for consistency.

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

16 years agofixed typo
Daniel Nauck [Sun, 17 Feb 2008 16:17:32 +0000 (16:17 -0000)]
fixed typo

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

16 years ago2008-02-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 17 Feb 2008 16:06:24 +0000 (16:06 -0000)]
2008-02-17  Zoltan Varga  <vargaz@gmail.com>

* mini-x86.c: Use cfg->vret_addr instead of cfg->ret.

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

16 years ago2008-02-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 17 Feb 2008 15:56:39 +0000 (15:56 -0000)]
2008-02-17  Zoltan Varga  <vargaz@gmail.com>

* mini.h (MonoCompile): Add new 'vret_addr' field which represents the hidden
argument holding the vtype return address, to avoid the ambigious use of
cfg->ret for this purpose.

* mini.c (NEW_RETLOADA): Use vret_addr if set.

* mini-amd64.c: Use cfg->vret_addr instead of cfg->ret.

* mini-codegen.c (mono_print_ins): Rename to mono_print_ins_index (), Add a
new mono_print_ins () function which only takes one argument.

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

16 years agoTARGET_J2EE:
Igor Zelmanovich [Sun, 17 Feb 2008 14:43:32 +0000 (14:43 -0000)]
TARGET_J2EE:
merge r95970:95971

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

16 years ago2008-02-17 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Sun, 17 Feb 2008 14:04:01 +0000 (14:04 -0000)]
2008-02-17  Ivan N. Zlatev  <contact@i-nz.net>

* GridEntry.cs: Set expanded state before notifying that the
expansion has taken place.
* PropertyGridView.cs:
 - Set the propertygridtextbox text to the selected
 StandardValue before proceeding to setting it.
 - Scrolling bugfixes.

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

16 years ago2008-02-17 Daniel Nauck <dna@mono-project.de>
Daniel Nauck [Sun, 17 Feb 2008 13:57:36 +0000 (13:57 -0000)]
2008-02-17  Daniel Nauck  <dna@mono-project.de>

* HttpWebResponse.cs: refactored cookie expires parsing to
allow all common expires datetime formats.

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

16 years agomerge r95956:95957
Igor Zelmanovich [Sun, 17 Feb 2008 07:34:31 +0000 (07:34 -0000)]
merge r95956:95957

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

16 years ago2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Sat, 16 Feb 2008 22:01:05 +0000 (22:01 -0000)]
2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>

* GridEntry.cs:
 - Fix ValueText to not return null.
 - Fix conversion error reporting to actually happen.
* PropertyGridView.cs: Set entry only if the text has changed.
[Fixes bug #362116]

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

16 years ago2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Sat, 16 Feb 2008 21:54:53 +0000 (21:54 -0000)]
2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>

* CharConverter.cs:
 - Handle \0 char.
 - Trim the ConvertFrom string
 - Handle null string in ConvertFrom as \0 char.
 [Fixes bug #362112]

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

16 years ago2008-02-16 Jb Evain <jbevain@novell.com>
Jb Evain [Sat, 16 Feb 2008 21:44:53 +0000 (21:44 -0000)]
2008-02-16  Jb Evain  <jbevain@novell.com>

* CodeGen/templates/MetadataRowReader.cs
  CodeGen/templates/Utilities.cs
  CodeGen/templates/MetadataRowWriter.cs
  Mono.Cecil.Metadata/MetadataRowReader.cs
  Mono.Cecil.Metadata/MetadataRowWriter.cs
  Mono.Cecil.Metadata/Utilities.cs:
Use a good old traditional array instead of an
Hashtable. Based on a patch by Carlo Kok <ck@remobjects.com>.

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

16 years ago2008-02-16 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sat, 16 Feb 2008 20:34:52 +0000 (20:34 -0000)]
2008-02-16  Sebastien Pouliot  <sebastien@ximian.com>

* Object.cs: Fix parameter name to match MS implementation. Found
using Gendarme.
* ValueType.cs: Fix parameter name to match MS implementation.
Found using Gendarme.

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

16 years ago2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Sat, 16 Feb 2008 20:18:47 +0000 (20:18 -0000)]
2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>

* CultureInfoConverter.cs:
 - Handle "(default)" to and from conversion
 - Sort cultures alphabetically and also cache them.
 [Fixes bug #362113]

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

16 years ago2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Sat, 16 Feb 2008 20:07:09 +0000 (20:07 -0000)]
2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>

* GridEntry.cs:
 - Fix handling of a null current value.
 - Swallow editor exceptions.
[Fixes bug #362114]

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

16 years ago2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Sat, 16 Feb 2008 17:57:46 +0000 (17:57 -0000)]
2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>

* PropertyGridTextBox.cs, PropertyGridView.cs: Explicitly send
a mouse down event to the textbox so that we get the caret
positioned under cursor.
[Fixes bug #362119]

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

16 years ago2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Sat, 16 Feb 2008 14:46:22 +0000 (14:46 -0000)]
2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>

* PropertyGrid.cs: Clear current items first thing before
repopulating subitems.
* GridEntry.cs:
 - Handle null StandardValuesCollection.
 - Mark as not editable if there is no PropertyDescriptor and
 if the Converter cannot convert from string.
[Part of fix for bugs #360666 and #358332]

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

16 years ago2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Sat, 16 Feb 2008 14:37:53 +0000 (14:37 -0000)]
2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>

* CollectionEditor.cs: Handle null collection.
[Part of fix for bugs #360666 and #358332]

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

16 years ago2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Sat, 16 Feb 2008 14:35:03 +0000 (14:35 -0000)]
2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>

* UITypeEditor.cs: Associate string[] with StringArrayEditor in the
editors table.
[Part of fix for bugs #360666 and #358332]

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

16 years ago2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Sat, 16 Feb 2008 14:29:53 +0000 (14:29 -0000)]
2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>

* TypeDescriptor.cs, PropertyDescriptor.cs:
Do not throw when can't find Type from string.
* ReferenceConverter.cs: Convert null value from and to string.
Return an empty StandardValueCollection.
[Part of fix for bugs #360666 and #358332]

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

16 years ago2008-02-16 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Sat, 16 Feb 2008 07:58:49 +0000 (07:58 -0000)]
2008-02-16  Atsushi Enomoto  <atsushi@ximian.com>

* ContentType.cs : Reject such MediaType that lacks '/'.
  Do not reject such parameters that are not standard ones.

* ContentTypeTest.cs : (oops we didn't have ChangeLog here) added
  another .ctor() test.

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

16 years ago2008-02-15 Luke Page <luke.a.page@gmail.com>
Luke Page [Fri, 15 Feb 2008 23:33:55 +0000 (23:33 -0000)]
2008-02-15  Luke Page  <luke.a.page@gmail.com>
* MaskedTextBox.cs: Now skips non editable characters after a
character has been entered and we are progressing to the next
position in the MaskedTextBox.

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

16 years agoFixed test syntax.
Marek Safar [Fri, 15 Feb 2008 22:48:15 +0000 (22:48 -0000)]
Fixed test syntax.

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

16 years ago2008-02-15 Luke Page <luke.a.page@gmail.com>
Luke Page [Fri, 15 Feb 2008 22:43:58 +0000 (22:43 -0000)]
2008-02-15  Luke Page  <luke.a.page@gmail.com>
* TextBoxBase.cs: Handles MouseDown when shift key is clicked so
that it changes the selection rather than just repositioning the
cursor. Fixes Bug #360873.

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

16 years agoUpdated cs0214-10.cs error status
Marek Safar [Fri, 15 Feb 2008 22:42:25 +0000 (22:42 -0000)]
Updated cs0214-10.cs error status

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

16 years ago2008-02-15 Luke Page <luke.a.page@gmail.com>
Luke Page [Fri, 15 Feb 2008 22:14:49 +0000 (22:14 -0000)]
2008-02-15  Luke Page  <luke.a.page@gmail.com>
* TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
correctly. See #359330

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

16 years ago2008-02-15 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Fri, 15 Feb 2008 21:48:54 +0000 (21:48 -0000)]
2008-02-15  Miguel de Icaza  <miguel@novell.com>

* UnmanagedMemoryStream.cs: Implement few missing pieces.

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

16 years ago2008-02-15 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Fri, 15 Feb 2008 20:18:14 +0000 (20:18 -0000)]
2008-02-15  Miguel de Icaza  <miguel@novell.com>

* cs-tokenizer.cs: if a conditional expression happens inside a
(...) this also means that we do not need to de-ambiguate between
an parenthesized expression and a cast.

Fixes 346484.

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

16 years agoErrors should compile, except for the one error they highlight
Miguel de Icaza [Fri, 15 Feb 2008 20:16:58 +0000 (20:16 -0000)]
Errors should compile, except for the one error they highlight

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

16 years ago2008-02-15 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Fri, 15 Feb 2008 16:48:42 +0000 (16:48 -0000)]
2008-02-15  Miguel de Icaza  <miguel@novell.com>

* constant.cs (SideEffectConstant): a constant value that happens
to have a side effect.

Fixes the build regressions introduced by the fix for #359789

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

16 years agoErrors in general should build, except for the one error they trigger
Miguel de Icaza [Fri, 15 Feb 2008 16:35:24 +0000 (16:35 -0000)]
Errors in general should build, except for the one error they trigger

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

16 years ago2008-02-15 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 15 Feb 2008 14:49:39 +0000 (14:49 -0000)]
2008-02-15  Zoltan Varga  <vargaz@gmail.com>

* mini-s390.h (MONO_OUTPUT_VTR): Use cfg instead of s, avoid assignments to
macro arguments.

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

16 years ago2008-02-15 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 15 Feb 2008 13:45:11 +0000 (13:45 -0000)]
2008-02-15  Atsushi Enomoto  <atsushi@ximian.com>

* Uri.cs : UriParser field blocks serialization.

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

16 years ago* XplatUIX11.cs: If the handle is null when posting a message, use the
Andreia Gaita [Fri, 15 Feb 2008 13:17:06 +0000 (13:17 -0000)]
* XplatUIX11.cs: If the handle is null when posting a message, use the
current thread queue to post instead. Fixes #332409

* SendKeys.cs: Slight optimization

2008-02-15  Andreia Gaita <avidigal@novell.com>

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

16 years ago2008-02-14 Rodrigo Kumpera <rkumpera@novell.com>
Miguel de Icaza [Thu, 14 Feb 2008 23:31:16 +0000 (23:31 -0000)]
2008-02-14  Rodrigo Kumpera  <rkumpera@novell.com>

* expression.cs (Conditional.Emit): when emitting the ternary
operator, use local variables to generate code verifiable code.

The verifier cannot infer that the type on stack before the
stloc.0 is executed is of type ParentB. This happens because the
stack merge algorithm uses only parent types when deciding which
is the common type.  This is described in Part III 1.8.1.3 of ECMA
335.

This code compiled with mcs is not verifiable under MS. The MS
verifier picks the first common interface of Foo and Bar, which is
wrong, but doesn't use a full join type of the 2 interfaces.

CSC uses a clever hack to compile such code in a verifiable
way. It stores the intermediate values in a local variable with
the expected type.

Fixes: #358102

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

16 years ago2008-02-14 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Thu, 14 Feb 2008 23:24:14 +0000 (23:24 -0000)]
2008-02-14  Miguel de Icaza  <miguel@novell.com>

* expression.cs: Do not fold BitwiseAnd operators when the left
side is a false constant, because we still need to evaluate the
right-hand side.

Fixes #359789

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

16 years ago2008-02-14 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Thu, 14 Feb 2008 22:56:09 +0000 (22:56 -0000)]
2008-02-14  Miguel de Icaza  <miguel@novell.com>

* support.cs: Instead of throwing an InternalErrorException when
the position of the stream is outside the boundary of our buffer,
reset the state of the reader, and restart the reading from the
beginning of the file.

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

16 years ago2008-02-14 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Thu, 14 Feb 2008 19:32:43 +0000 (19:32 -0000)]
2008-02-14  Ivan N. Zlatev  <contact@i-nz.net>

* PropertyGrid.cs, PropertyGridView.cs:
Fix multiple scrolling and sizing issues.
[Fixes bug #359199]

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

16 years ago2008-02-14 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 14 Feb 2008 18:00:56 +0000 (18:00 -0000)]
2008-02-14  Zoltan Varga  <vargaz@gmail.com>

* mini-ops.h: Get rid of OP_SPARC_LOCALLOC_IMM.

* mini-sparc.c inssel-sparc.brg: Use OP_LOCALLOC_IMM instead of OP_SPARC_LOCALLOC_IMM.

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

16 years ago2008-02-14 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 14 Feb 2008 17:58:46 +0000 (17:58 -0000)]
2008-02-14  Zoltan Varga  <vargaz@gmail.com>

* mini-ops.h: Get rid of OP_SPARC_LOCALLOC_IMM.

* mini-sparc. inssel-sparc.brg: Use OP_LOCALLOC_IMM instead of OP_SPARC_LOCALLOC_IMM.

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

16 years agoIn .:
Geoff Norton [Thu, 14 Feb 2008 17:39:43 +0000 (17:39 -0000)]
In .:
2008-02-14  Geoff Norton  <gnorton@novell.com>

* WindowHandler.cs: Ensure we send WM_ACTIVATE when we activate our
Form.  Fixes #360721

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

16 years ago2008-02-14 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 14 Feb 2008 17:24:55 +0000 (17:24 -0000)]
2008-02-14  Zoltan Varga  <vargaz@gmail.com>

* mini-x86.c: Sync with the version on the linear IR branch by adding new
opcodes and other small changes.

* mini-ops.h: Add some new opcodes from the linear IR branch.

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

16 years agoThu Feb 14 19:03:00 CET 2008 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 14 Feb 2008 17:21:54 +0000 (17:21 -0000)]
Thu Feb 14 19:03:00 CET 2008 Paolo Molaro <lupus@ximian.com>

* RxCompiler.cs, RxInterpreter.cs, RxOp.cs, CILCompiler.cs : support for word
boundary position opcodes, ignorecase backreference and more capture
work.

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

16 years agoThu Feb 14 17:11:10 CET 2008 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 14 Feb 2008 15:31:24 +0000 (15:31 -0000)]
Thu Feb 14 17:11:10 CET 2008 Paolo Molaro <lupus@ximian.com>

* RxCompiler.cs, RxInterpreter.cs, RxOp.cs: replace EcmaDigit with
Range, fixed matching of "" =~ /$/, implementedt TestCharGroup.
Fixes and other misc opcodes implemented.

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

16 years ago2008-02-14 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 14 Feb 2008 14:24:56 +0000 (14:24 -0000)]
2008-02-14  Zoltan Varga  <vargaz@gmail.com>

* mini-ops.h: Get rid of the OP_X86_..._MEMBASE opcodes.

* mini-x86.c inssel-x86.brg cpu-x86.md: Get rid of the confusing _MEMBASE
opcodes, use the REG_MEMBASE opcodes instead.

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

16 years ago2008-02-14 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 14 Feb 2008 14:21:56 +0000 (14:21 -0000)]
2008-02-14  Zoltan Varga  <vargaz@gmail.com>

* amd64/amd64-codegen.h (amd64_alu_membase8_imm_size): New codegen macro.

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

16 years ago2008-02-14 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 14 Feb 2008 14:18:40 +0000 (14:18 -0000)]
2008-02-14  Zoltan Varga  <vargaz@gmail.com>

* mini-amd64.c inssel-amd64.brg cpu-amd64.md: Get rid of the confusing _MEMBASE
opcodes, use the REG_MEMBASE opcodes instead.

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

16 years ago2008-02-14 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 14 Feb 2008 14:01:02 +0000 (14:01 -0000)]
2008-02-14  Zoltan Varga  <vargaz@gmail.com>

* mini-amd64.c (mono_arch_output_basic_block): Sync with the version on the
linear IR branch.

* mini.c (mono_op_imm_to_op): New helper function.

* mini-ops.h: Add some opcodes from linear IR branch.

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

16 years agoUse correct parser file in `qh' profile
Marek Safar [Thu, 14 Feb 2008 12:08:02 +0000 (12:08 -0000)]
Use correct parser file in `qh' profile

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

16 years ago2008-02-14 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 14 Feb 2008 12:06:18 +0000 (12:06 -0000)]
2008-02-14  Marek Safar  <marek.safar@gmail.com>

  * generic.cs (TypeParameter.GetMembers): Is not supported operation.

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

16 years ago2008-02-14 Jb Evain <jbevain@novell.com>
Jb Evain [Thu, 14 Feb 2008 11:32:11 +0000 (11:32 -0000)]
2008-02-14  Jb Evain  <jbevain@novell.com>

* Delegate.cs (CreateDelegate): refactor. DRY!

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

16 years ago2008-02-14 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 14 Feb 2008 11:24:05 +0000 (11:24 -0000)]
2008-02-14  Marek Safar  <marek.safar@gmail.com>

A test for bug #361686

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

16 years ago2008-02-14 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 14 Feb 2008 11:22:59 +0000 (11:22 -0000)]
2008-02-14  Marek Safar  <marek.safar@gmail.com>

A fix for bug #361686
  * decl.cs: A protected types used inside a private class which parents
  derives from the protected class are accessible.

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

16 years ago2008-02-13 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 13 Feb 2008 21:39:25 +0000 (21:39 -0000)]
2008-02-13  Zoltan Varga  <vargaz@gmail.com>

* CILCompiler.cs: Restructure some code to avoid a branch inside a loop.

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

16 years ago2008-02-13 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 13 Feb 2008 21:21:39 +0000 (21:21 -0000)]
2008-02-13  Zoltan Varga  <vargaz@gmail.com>

* CILCompiler.cs: Fix the unsafe string matching code.

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

16 years ago2008-02-13 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 13 Feb 2008 18:31:11 +0000 (18:31 -0000)]
2008-02-13  Zoltan Varga  <vargaz@gmail.com>

* CILCompiler.cs: Improved version which emits only one method in most cases.

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

16 years ago2008-02-13 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 13 Feb 2008 15:46:10 +0000 (15:46 -0000)]
2008-02-13  Marek Safar  <marek.safar@gmail.com>

* generic.cs (ConstraintChecker): Use cached member lookup when looking for
the parameterless constructor.

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

16 years ago2008-02-13 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 13 Feb 2008 15:20:21 +0000 (15:20 -0000)]
2008-02-13  Zoltan Varga  <vargaz@gmail.com>

* CILCompiler.cs: Fix some comments.

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

16 years ago2008-02-13 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 13 Feb 2008 14:58:33 +0000 (14:58 -0000)]
2008-02-13  Zoltan Varga  <vargaz@gmail.com>

* CILCompiler.cs: New file, extracted from RxCompiler.cs.

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

16 years ago2008-02-13 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 13 Feb 2008 14:30:06 +0000 (14:30 -0000)]
2008-02-13  Zoltan Varga  <vargaz@gmail.com>

* RxInterpreter.cs RxCompiler.cs: First version of regex IL compiler.

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

16 years agoFixed build
Marek Safar [Wed, 13 Feb 2008 14:29:49 +0000 (14:29 -0000)]
Fixed build

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

16 years ago2008-02-13 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 13 Feb 2008 14:03:08 +0000 (14:03 -0000)]
2008-02-13  Marek Safar  <marek.safar@gmail.com>

* generic.cs, typemanager.cs, iterators.cs, codegen.cs: Refactored core
lookup methods to use standard member cache when doing member lookup.

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

16 years agoWed Feb 13 13:18:12 CET 2008 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Wed, 13 Feb 2008 11:36:07 +0000 (11:36 -0000)]
Wed Feb 13 13:18:12 CET 2008 Paolo Molaro <lupus@ximian.com>

* RxCompiler.cs, RxInterpreter.cs, RxOp.cs: unicode categories and
some grouping/capture support.

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

16 years ago* HtmlForm.cs: fixed action attribute in RenderAttributes under TARGET_JVM
Vladimir Krasnov [Wed, 13 Feb 2008 10:09:28 +0000 (10:09 -0000)]
* HtmlForm.cs: fixed action attribute in RenderAttributes under TARGET_JVM

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

16 years ago2008-02-13 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 12 Feb 2008 23:53:53 +0000 (23:53 -0000)]
2008-02-13  Zoltan Varga  <vargaz@gmail.com>

* mini-alpha.h mini-alpha.c tramp-alpha.c: Alpha port updates from Sergey Tikhonov
<tsv@solvo.ru>.

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

16 years ago2008-02-13 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 12 Feb 2008 23:52:55 +0000 (23:52 -0000)]
2008-02-13  Zoltan Varga  <vargaz@gmail.com>

* mono-membar.h (mono_memory_barrier): Applied patch by Sergey Tikhonov
<tsv@solvo.ru>. Add alpha support.

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

16 years ago* DelegateTest.cs: Added more tests for CreateDelegate, dealing with
Gert Driesen [Tue, 12 Feb 2008 19:49:57 +0000 (19:49 -0000)]
* DelegateTest.cs: Added more tests for CreateDelegate, dealing with
a non-matching return type, case, arguments and inherited methods.
* Delegate.cs (CreateDelegate): Walk the inheritance change to find
matching method. Skip methods for which the return type does not match
the delegate. Fixes bug #360784.

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

16 years agoflush forgotten changelog
Robert Jordan [Tue, 12 Feb 2008 18:53:48 +0000 (18:53 -0000)]
flush forgotten changelog

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

16 years ago2008-02-12 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 12 Feb 2008 18:10:52 +0000 (18:10 -0000)]
2008-02-12  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mono_normalize_opcodes): Always convert CEE_CONV_R4/R8 to
OP_ICONV_TO_R4/R8.

* mini-ia64.c cpu-ia64.md: Add OP_ICONV_TO_R4/R8.

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

16 years agoTue Feb 12 19:16:49 CET 2008 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 12 Feb 2008 17:35:01 +0000 (17:35 -0000)]
Tue Feb 12 19:16:49 CET 2008 Paolo Molaro <lupus@ximian.com>

* RxCompiler.cs, RxInterpreter.cs, RxOp.cs: experimental new
interpreter.

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

16 years ago2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Tue, 12 Feb 2008 17:21:16 +0000 (17:21 -0000)]
2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>

* DateTimeEditor.cs: Set edit value only if the user sets it
in the editor.
[Fixes #359159]

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

16 years ago2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Tue, 12 Feb 2008 16:54:27 +0000 (16:54 -0000)]
2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>

* PropertyGridView.cs: Ensure that drop down editors are shown
in the WorkingArea of the screen.
[Fixes bug #359807]

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

16 years ago * signal.c: SLES9 has glib 2.2, so we can't rely on g_atomic_int_*().
Jonathan Pryor [Tue, 12 Feb 2008 16:54:18 +0000 (16:54 -0000)]
* signal.c: SLES9 has glib 2.2, so we can't rely on g_atomic_int_*().
  Provide a fallback mechanism between using Mono's atomic.h, glib 2.4
  functions, and horribly unsafe-but-no-alternative code.

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

16 years agoNew test.
Marek Safar [Tue, 12 Feb 2008 16:32:31 +0000 (16:32 -0000)]
New test.

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

16 years ago2008-02-12 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 12 Feb 2008 16:29:58 +0000 (16:29 -0000)]
2008-02-12  Marek Safar  <marek.safar@gmail.com>

* driver.cs: Don't report full path for referenced module as assembly error.

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

16 years ago2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Tue, 12 Feb 2008 15:36:59 +0000 (15:36 -0000)]
2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>

* GridEntry.cs: Fail silently when UITypeEditor is missing.
[Fixes bug #360666]

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

16 years agoadd mangling attribute
Leonid Freydovich [Tue, 12 Feb 2008 14:43:10 +0000 (14:43 -0000)]
add mangling attribute

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

16 years agoTARGET_J2EE:
Igor Zelmanovich [Tue, 12 Feb 2008 14:42:23 +0000 (14:42 -0000)]
TARGET_J2EE:
merge r95502-95503

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

16 years agoTARGET_J2EE:
Igor Zelmanovich [Tue, 12 Feb 2008 14:39:52 +0000 (14:39 -0000)]
TARGET_J2EE:
merge r95501-95502

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