mono.git
16 years ago2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Wed, 20 Feb 2008 11:15:20 +0000 (11:15 -0000)]
2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>

* PropertyGridView.cs:
 - Fix a NRE that caused a test failure
 - Another performance improvement - cache the standard values
 listbox.

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

16 years agosvn path=/trunk/mcs/; revision=96233
Veerapuram Varadhan [Wed, 20 Feb 2008 11:02:56 +0000 (11:02 -0000)]
svn path=/trunk/mcs/; revision=96233

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

* cpu-s390x.md: Remove some unused opcodes.

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

16 years ago* reflection.c (mono_custom_attrs_from_method): Don't silently
Raja R Harinath [Wed, 20 Feb 2008 09:58:13 +0000 (09:58 -0000)]
* reflection.c (mono_custom_attrs_from_method): Don't silently
return an empty list for generic method instances.
(mono_custom_attrs_from_param): Likewise.

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

16 years agoIn class/corlib/Test/System.Reflection.Emit:
Raja R Harinath [Wed, 20 Feb 2008 08:22:24 +0000 (08:22 -0000)]
In class/corlib/Test/System.Reflection.Emit:
* MethodBuilderTest.cs (Bug354757): New test.

In class/corlib/Test/System.Reflection:
* MethodInfoTest.cs (GetGenericMethodDefinition): Add a test for
an instantiation.
(Bug354757): New test.

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

16 years ago2008-02-20 Rodrigo Kumpera <rkumpera@novell.com>
Raja R Harinath [Wed, 20 Feb 2008 08:21:00 +0000 (08:21 -0000)]
2008-02-20  Rodrigo Kumpera  <rkumpera@novell.com>
    Raja R Harinath  <harinath@hurrynot.org>

Fix #354757
* class-internals.h (struct _MonoMethodInflated.is_mb_open): Add.
* class.c (mono_class_inflate_generic_method_full): Initialize it
when a fully-open method is instantiated.
* metadata.c (inflated_method_equal, inflated_method_hash): Update
to new field.
* reflection.c (inflate_mono_method): Don't create a temporary context.

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

16 years agofix some whitespace
Raja R Harinath [Wed, 20 Feb 2008 07:56:54 +0000 (07:56 -0000)]
fix some whitespace

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

16 years ago* typemanager.cs (DropGenericMethodArguments): Ensure we get an underlying
Raja R Harinath [Wed, 20 Feb 2008 07:56:26 +0000 (07:56 -0000)]
* typemanager.cs (DropGenericMethodArguments): Ensure we get an underlying
MethodBuilder.

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

16 years ago* icall.c (ves_icall_MonoMethod_GetGenericMethodDefinition):
Raja R Harinath [Wed, 20 Feb 2008 07:16:39 +0000 (07:16 -0000)]
* icall.c (ves_icall_MonoMethod_GetGenericMethodDefinition):
Compute correct value, to prepare for imethod->reflection_info going away.

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

16 years ago2008-02-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Wed, 20 Feb 2008 01:14:38 +0000 (01:14 -0000)]
2008-02-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* SerialPortStream.cs: Set DllImport.SetLastError to true for
all MonoPosixHelper functions, so in case of error we can retrieve the
error and print a simple but effective message about it.

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

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

* mini-ia64.c (mono_arch_lowering_pass): Add some more opcodes. Use
mono_op_imm_to_op ().

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

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

* mini-sparc.c (opcode_to_sparc_cond): Use the mono_opcode_to_cond () functions
instead of a switch statement.

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

16 years agoFix some whitespace issues.
Zoltan Varga [Wed, 20 Feb 2008 00:00:35 +0000 (00:00 -0000)]
Fix some whitespace issues.

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

16 years ago2008-02-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 19 Feb 2008 23:59:22 +0000 (23:59 -0000)]
2008-02-20  Zoltan Varga  <vargaz@gmail.com>

* mini-sparc.c (mono_arch_allocate_vars): Allocate a stack slot for use by
the int<->float conversion opcodes instead of using mono_spillvar_offset_float ().

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

16 years ago2008-02-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 19 Feb 2008 23:33:54 +0000 (23:33 -0000)]
2008-02-20  Zoltan Varga  <vargaz@gmail.com>

* mini-codegen.c: Eliminate rassign macro which is no longer needed.

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

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

* mini-codegen.c: Remove unused mono_regstate2_... functions.

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

16 years ago2008-02-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 19 Feb 2008 23:18:48 +0000 (23:18 -0000)]
2008-02-20  Zoltan Varga  <vargaz@gmail.com>

* mini-codegen.c (mono_print_ins_index): Avoid printing an index when it is
-1.

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

16 years agoadd some ListInit tests
Jb Evain [Tue, 19 Feb 2008 22:15:23 +0000 (22:15 -0000)]
add some ListInit tests

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

16 years ago2008-02-19 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 19 Feb 2008 21:49:22 +0000 (21:49 -0000)]
2008-02-19  Jonathan Pobst  <monkey@jpobst.com>

* ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
code paths.

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

16 years agowe pass MemberInit tests
Jb Evain [Tue, 19 Feb 2008 21:44:19 +0000 (21:44 -0000)]
we pass MemberInit tests

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

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

* Expression.cs, ExpressionPrinter.cs: implement MemberInit.

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

16 years agoadd MemberInit tests
Jb Evain [Tue, 19 Feb 2008 21:36:57 +0000 (21:36 -0000)]
add MemberInit tests

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

16 years ago2008-02-19 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 19 Feb 2008 20:33:45 +0000 (20:33 -0000)]
2008-02-19  Zoltan Varga  <vargaz@gmail.com>

* driver.c (mono_main): Improve error reporting when an assembly cannot be
opened. Fixes #362607.

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

16 years ago2008-02-18 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 19 Feb 2008 20:31:50 +0000 (20:31 -0000)]
2008-02-18  Zoltan Varga  <vargaz@gmail.com>

* CustomAttributeTypedArgument.cs (.ctor): Convert arrays into a collection of
CustomAttributeTypedArguments to match MS.

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

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

* cpu-ia64.md cpu-s390x.md: Remove some unused opcodes.

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

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

* PropertyGridView.cs: Fix a big performance bug.

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

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

* iltests.il.in: Add a test for static methods in interfaces.

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

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

* class.c (mono_class_setup_vtable_general): Ignore static methods in interfaces.

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

16 years ago2008-02-19 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 19 Feb 2008 18:22:18 +0000 (18:22 -0000)]
2008-02-19  Jonathan Pobst  <monkey@jpobst.com>

* SelectionRangeTest.cs: Add NET_2_0 so that 1.1 profile will build.

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

16 years agoSet eol-style to native.
Gert Driesen [Tue, 19 Feb 2008 17:46:47 +0000 (17:46 -0000)]
Set eol-style to native.

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

16 years agomerge r96167:96168
Igor Zelmanovich [Tue, 19 Feb 2008 17:19:33 +0000 (17:19 -0000)]
merge r96167:96168

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

16 years ago2008-02-19 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 19 Feb 2008 17:06:32 +0000 (17:06 -0000)]
2008-02-19  Jonathan Pobst  <monkey@jpobst.com>

* SelectionRange.cs: Apply patch from Andy Hume to make
constructor behavior more accurate.  [Fixes bug #362117]

2008-02-19  Jonathan Pobst  <monkey@jpobst.com>

* SelectionRangeTest.cs: Add tests from Andy Hume.

2008-02-19  Jonathan Pobst  <monkey@jpobst.com>

* System.Windows.Forms_test.dll.sources: Added SelectionRangeTest.cs.

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

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

  * constant.cs, cfold.cs: SideEffectConstant results can apply for folding.

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

16 years ago* Control.cs: Added a new flag is_disposing to track if the
Andreia Gaita [Tue, 19 Feb 2008 16:50:50 +0000 (16:50 -0000)]
* Control.cs: Added a new flag is_disposing to track if the
window is currently in the process of being disposed of.
This is used so that, when firing visibility changes triggered
by unparenting controls during Dispose, the control doesn't
get created again.

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

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

16 years agoAdd some debugging info.
Jonathan Pobst [Tue, 19 Feb 2008 16:42:25 +0000 (16:42 -0000)]
Add some debugging info.

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

16 years ago2008-02-19 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 19 Feb 2008 16:40:04 +0000 (16:40 -0000)]
2008-02-19  Jonathan Pobst  <monkey@jpobst.com>

* ComboBoxTest.cs: Use PreferredHeight in MethodScaleControl.
Fixes buildbot failure.

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

16 years ago2008-02-19 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 19 Feb 2008 16:10:23 +0000 (16:10 -0000)]
2008-02-19  Jonathan Pobst  <monkey@jpobst.com>

* FlowLayout.cs: Take padding into account when determining if there
is still room left on a row.  [Fixes bug #361448]

2008-02-19  Jonathan Pobst  <monkey@jpobst.com>

* FlowPanelTests.cs: Add test for bug #361448.

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

16 years ago2008-02-19 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 19 Feb 2008 15:59:12 +0000 (15:59 -0000)]
2008-02-19  Atsushi Enomoto <atsushi@ximian.com>

* XmlSchema.cs : Do recursively process xs:include inside included
  schemas. Fixed bug #361818.

* XmlSchemaTests.cs: added test for bug #361818.

* 361818.xsd, 361818-2.xsd, 361818-3.xsd : new test files.

* Makefile : extra distfiles (361818*.xsd).

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

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

* IPv4InterfaceStatistics.cs: Implemented Linux support.

* NetworkInterface.cs: Implemented Linux support.

TODO: still missing GetIPProperties.

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

16 years ago2008-02-19 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 19 Feb 2008 15:17:31 +0000 (15:17 -0000)]
2008-02-19  Jonathan Pobst  <monkey@jpobst.com>

* ComboBox.cs: Set height to preferred height when the handle
is created.  [Fixes bug #360862]

2008-02-19  Jonathan Pobst  <monkey@jpobst.com>

* ComboBoxTest.cs: Add test for bug #360862.

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

16 years agowe pass those tests
Jb Evain [Tue, 19 Feb 2008 14:11:54 +0000 (14:11 -0000)]
we pass those tests

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

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

* Expression.cs, ExpressionPrinter.cs: implement last New
overload for anonymous types.

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

16 years agoadd a few tests
Jb Evain [Tue, 19 Feb 2008 13:47:58 +0000 (13:47 -0000)]
add a few tests

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

16 years ago2008-02-19 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 19 Feb 2008 13:17:24 +0000 (13:17 -0000)]
2008-02-19  Marek Safar  <marek.safar@gmail.com>

A fix for bug #328136
  * expression.cs: Do not fold immediately LogicalAnd operators when the left
side is a false constant, because we still need to evaluate the right-hand
side.

* statement.cs (If): Emit two types of boolean constants (simple constant,
side-effect constant).

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

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

  * constant.cs (SideEffectConstant): Don't emit boolean constant.

  * expression.cs: Fold immediately LogicalAnd operators when both sides are
  constants.

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

16 years ago2008-02-19 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 19 Feb 2008 09:28:43 +0000 (09:28 -0000)]
2008-02-19  Jb Evain  <jbevain@novell.com>

* Mono.Cecil/DefaultImporter.cs:
Add support for importing function pointers. Based on a
patch by Andrea Carlo Ornstein <andrea.ornstein@st.com>.

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

16 years ago2008-02-19 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 19 Feb 2008 09:20:39 +0000 (09:20 -0000)]
2008-02-19  Jb Evain  <jbevain@novell.com>

* Mono.Cecil/ModuleDefinition.cs:
Add a Inject(FieldDef) overload for symmetry.
Patch by Andrea Carlo Ornstein <andrea.ornstein@st.com>.

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

16 years ago2008-02-19 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 19 Feb 2008 05:33:38 +0000 (05:33 -0000)]
2008-02-19  Atsushi Enomoto  <atsushi@ximian.com>

* XmlParserContext.cs : .net does not populate XmlNamespaceManager
  automatically.
* XmlDocument.cs : so, always create one here.

* XmlParserContextTests.cs : they are working. case #3 should not
  try to parse broken internalSubset (we do not allow broken
  intsubset and it is almost no worthy of assuring only-nominal
  .net compat that such broken internalSubset should be allowed).

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

16 years ago2008-02-19 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 19 Feb 2008 04:02:53 +0000 (04:02 -0000)]
2008-02-19  Atsushi Enomoto <atsushi@ximian.com>

* XsdWildcard.cs : block extra compilation and made compilation reset.
  This somehow fixed bug #360541.

* XmlSchemaAny.cs : block extra compilation in anyTypeContent.

* XmlSchemasTests.cs : new test file (for bug #360541).

* System.Xml_test.dll.sources: added XmlSchemasTests.cs.

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

16 years ago2008-02-18 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 18 Feb 2008 22:56:07 +0000 (22:56 -0000)]
2008-02-18 Rodrigo Kumpera  <rkumpera@novell.com>

* verify.c: Implement skip visibility flag.

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

16 years ago2008-02-19 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Mon, 18 Feb 2008 22:35:24 +0000 (22:35 -0000)]
2008-02-19  Marek Habersack  <mhabersack@novell.com>

* HttpParamsCollection.cs: do not override the NVC behavior for
GetValues - values from different sources (Form, Query, Cookies,
ServerVariables) must be kept separate for this purpose. This is
also the behavior of MS.NET. Fixes bug #362189

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

16 years ago* ControlTest.cs: New test to check if, when controls don't have
Andreia Gaita [Mon, 18 Feb 2008 22:33:49 +0000 (22:33 -0000)]
* ControlTest.cs: New test to check if, when controls don't have
a parent and are then reparented, their location is not changed.

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

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

16 years ago2008-02-18 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 18 Feb 2008 21:47:06 +0000 (21:47 -0000)]
2008-02-18 Rodrigo Kumpera <rkumpera@novell.com>

* unverifiable_locals_without_initlocals.il: Methods with locals
that are not .init are allways unverifiable.

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

16 years ago2008-02-18 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 18 Feb 2008 20:35:55 +0000 (20:35 -0000)]
2008-02-18  Zoltan Varga  <vargaz@gmail.com>

* CustomAttributeDataTest.cs: New file.

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

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

* corlib_test.dll.sources: Add System.Reflection/CustomAttributeDataTest.cs.

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

16 years ago2008-02-18 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 18 Feb 2008 20:33:47 +0000 (20:33 -0000)]
2008-02-18  Zoltan Varga  <vargaz@gmail.com>

* CustomAttributeTypedArgument.cs (.ctor): Convert arrays into a collection of
CustomAttributeTypedArguments to match MS.

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

16 years agoReverted a fix for bug #328136
Marek Safar [Mon, 18 Feb 2008 20:00:30 +0000 (20:00 -0000)]
Reverted a fix for bug #328136

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

16 years ago2008-02-18 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Mon, 18 Feb 2008 19:36:57 +0000 (19:36 -0000)]
2008-02-18  Marek Habersack  <mhabersack@novell.com>

* HttpRuntime.cs: When app is offline, send status code 503
instead of 200. Fixes bug #357565

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

16 years ago* XplatUIX11.cs: Create FosterParent with border width at 0.
Andreia Gaita [Mon, 18 Feb 2008 19:19:40 +0000 (19:19 -0000)]
* XplatUIX11.cs: Create FosterParent with border width at 0.
With the previous value of 4, everytime a control got reparented
from parent = null, its location would be shifted right and
down by 4, since these coordinates would be offset by the
FosterParent's border width.

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

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

16 years ago2008-02-18 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Mon, 18 Feb 2008 19:13:19 +0000 (19:13 -0000)]
2008-02-18  Marek Habersack  <mhabersack@novell.com>

* FormView.cs: the ItemCreated must be fired before data is bound
to the FormView. Fixes bug #360434

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

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

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

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

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

* genmdesc.c (build_table): Fix a crash on older glib versions.

* cpu-sparc.md: Remove some unused opcodes.

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

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

* genmdesc.c: Error out if the .md contains CEE_ opcodes if
MONO_ARCH_ENABLE_NORMALIZE_OPCODES is defined.

* cpu-amd64.md: Remove some unused opcodes.

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

16 years ago2008-02-18 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 18 Feb 2008 17:53:25 +0000 (17:53 -0000)]
2008-02-18 Rodrigo Kumpera  <rkumpera@novell.com>

* verify.h: Added MONO_VERIFY_SKIP_VISIBILITY and struct MonoVerifyInfoExtended
which contains an extra field to tell the kind of exception that should be thrown.

* verify.c: Use MonoVerifyInfoExtended instead of MonoVerifyInfo.

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

16 years ago2008-02-18 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 18 Feb 2008 17:45:23 +0000 (17:45 -0000)]
2008-02-18  Zoltan Varga  <vargaz@gmail.com>

* mini.h mini-ops.h mini.c: Define the OP_Ccc opcodes in mini-ops.h normally
like the other opcodes.

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

16 years ago2008-02-18 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Mon, 18 Feb 2008 17:01:53 +0000 (17:01 -0000)]
2008-02-18  Marek Habersack  <mhabersack@novell.com>

* VirtualPathProvider.cs: chain up to the previous provider, if
prexent. Fixes bug #362038

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

16 years agoUpdated
Marek Safar [Mon, 18 Feb 2008 16:51:08 +0000 (16:51 -0000)]
Updated

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

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

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

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

A fix for bug #328136
  * constant.cs (SideEffectConstant): Don't emit boolean constant.

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

* statement.cs (If): Emit two types of boolean constants (simple constant,
side-effect constant).

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

16 years agoRemoved to many spaces
Marek Safar [Mon, 18 Feb 2008 16:49:36 +0000 (16:49 -0000)]
Removed to many spaces

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

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

* CILCompiler.cs (EmitEvalMethodBody): Check for the not-yet supported
groups.Count > 1.

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

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

* Control.cs: During diposing firstly remove ourselfes from
the parent and *then* destroy our handle, because removing
ourselfes from the parent controls collection causes
VisibilityChange, etc events, which require a handle and end
up recreating the control.

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

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