mono.git
15 years ago2008-07-12 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 11 Jul 2008 22:20:41 +0000 (22:20 -0000)]
2008-07-12  Zoltan Varga  <vargaz@gmail.com>

* exceptions-arm.c (mono_arch_get_call_filter_full): Initialize ji.

* aot-runtime.c (mono_aot_get_plt_info_offset): New helper function to
return the plt info offset belonging to a given plt entry.

* mini-trampolines.c (mono_aot_plt_trampoline): Use
mono_aot_get_plt_info_offset.

* aot-runtime.c aot-compiler.c tramp-arm.c: Change the arm plt code to be
similar to the amd64 code by makeing jumps through a separate jump table
instead of embedding the jump addresses into the code.

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

15 years ago2008-07-11 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 11 Jul 2008 21:14:41 +0000 (21:14 -0000)]
2008-07-11 Rodrigo Kumpera  <rkumpera@novell.com>

* loader.c (field_from_memberref): Don't crash if the field
wasn't found.

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

15 years ago* PictureBoxTest.cs: Added (notworking) test for ImageLocation.
Gert Driesen [Fri, 11 Jul 2008 20:44:52 +0000 (20:44 -0000)]
* PictureBoxTest.cs: Added (notworking) test for ImageLocation.

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

15 years ago2008-07-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Fri, 11 Jul 2008 20:09:17 +0000 (20:09 -0000)]
2008-07-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* TextBox.cs: When focus is lost, if the auto complete listbox is
visible, hide it.

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

15 years ago2008-07-11 George Giolfan <georgegiolfan@yahoo.com>
George Giolfan [Fri, 11 Jul 2008 19:09:04 +0000 (19:09 -0000)]
2008-07-11  George Giolfan  <georgegiolfan@yahoo.com>

* InternalWindowManager.cs: HandleSizing: Implemented a better minimum
tracking size for tool windows.
* Theme.cs, ThemeWin32Classic.cs : Extracted
ManagedWindowSpacingAfterLastTitleButton.

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

15 years ago2008-07-11 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 11 Jul 2008 18:43:57 +0000 (18:43 -0000)]
2008-07-11 Rodrigo Kumpera  <rkumpera@novell.com>

* verify.c: Verify if type and method instantiations
don't have invalid VAR or MVAR arguments.

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

15 years ago2008-07-11 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 11 Jul 2008 17:14:10 +0000 (17:14 -0000)]
2008-07-11 Rodrigo Kumpera <rkumpera@novell.com>

* invalid_bad_method_instantiation.il: Test for
instantiations using VAR or MVAR that are invalid
in the current context.

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

15 years ago2008-07-11 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Fri, 11 Jul 2008 16:44:10 +0000 (16:44 -0000)]
2008-07-11  Jonathan Pobst  <monkey@jpobst.com>

* System.Windows.Forms.dll.sources: Remove the clearlooks, nice,
and old gtk themes.  They are bit-rotted and have always been listed
as "unsupported".

2008-07-11  Jonathan Pobst  <monkey@jpobst.com>

* ThemeEngine.cs: Remove the clearlooks, nice, and old gtk themes.
They are bit-rotted and have always been listed as "unsupported".

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

15 years ago2008-07-11 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 11 Jul 2008 16:03:55 +0000 (16:03 -0000)]
2008-07-11  Atsushi Enomoto  <atsushi@ximian.com>

* CP1252.cs : continue after fallback was missing.
  Fixed bug #408381, patch by Jonathan Gagnon.

* I18N.West.Test.cs : added test for bug #408381, by Jonathan Gagnon.

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

15 years ago2008-07-11 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Fri, 11 Jul 2008 15:48:35 +0000 (15:48 -0000)]
2008-07-11  Jonathan Pobst  <monkey@jpobst.com>

* PictureBox.cs: Don't crash if ImageLocation is set to "" or null.

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

15 years ago2008-07-11 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 11 Jul 2008 15:41:44 +0000 (15:41 -0000)]
2008-07-11 Rodrigo Kumpera  <rkumpera@novell.com>

* verify.c: Fix double free of function pointer list.

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

15 years ago2008-07-11 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 11 Jul 2008 15:41:01 +0000 (15:41 -0000)]
2008-07-11 Rodrigo Kumpera <rkumpera@novell.com>

* unverifiable_funptr_double_free_regression.il: Regression
test for double free of funptrs.

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

15 years ago2008-07-11 George Giolfan <georgegiolfan@yahoo.com>
George Giolfan [Fri, 11 Jul 2008 14:46:00 +0000 (14:46 -0000)]
2008-07-11  George Giolfan  <georgegiolfan@yahoo.com>

* ThemeVisualStyles.cs: Fixed minimized window height adjustment.

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

15 years ago2008-07-11 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 11 Jul 2008 13:49:37 +0000 (13:49 -0000)]
2008-07-11 Rodrigo Kumpera  <rkumpera@novell.com>

* object.c (mono_string_to_utf8): Comment the new code as it
breaks under eglib.

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

15 years ago2008-07-11 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 11 Jul 2008 12:11:12 +0000 (12:11 -0000)]
2008-07-11  Marek Safar  <marek.safar@gmail.com>

* linq.cs: Reset tranparent parameter counter in probing mode.

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

15 years ago2008-07-11 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 11 Jul 2008 11:13:24 +0000 (11:13 -0000)]
2008-07-11  Marek Safar  <marek.safar@gmail.com>

* anonymous.cs: Mutate anonymous method type.

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

15 years ago2008-07-11 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 11 Jul 2008 11:10:03 +0000 (11:10 -0000)]
2008-07-11  Marek Safar  <marek.safar@gmail.com>

* ModuleBuilder.cs: Couple of micro optimizations.

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

15 years ago2008-07-11 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Fri, 11 Jul 2008 10:09:48 +0000 (10:09 -0000)]
2008-07-11  Marek Habersack  <mhabersack@novell.com>

* Control.cs: if adapter exists for the given control, use it for
rendering. Patch from Christian Hergert
<christian.hergert@gmail.com>, thanks!

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

15 years agoWarnings cleanup.
Marek Safar [Fri, 11 Jul 2008 08:42:47 +0000 (08:42 -0000)]
Warnings cleanup.

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

15 years agoNew test.
Marek Safar [Fri, 11 Jul 2008 08:33:25 +0000 (08:33 -0000)]
New test.

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

15 years ago2008-07-11 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 11 Jul 2008 08:33:00 +0000 (08:33 -0000)]
2008-07-11  Marek Safar  <marek.safar@gmail.com>

* ecore.cs, anonymous.cs: Mutate field expressions.

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

15 years ago2008-07-11 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 11 Jul 2008 08:26:01 +0000 (08:26 -0000)]
2008-07-11  Marek Safar  <marek.safar@gmail.com>

* MonoGenericClass.cs (GetField): Put back removed code.

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

15 years ago2008-07-11 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 11 Jul 2008 02:51:12 +0000 (02:51 -0000)]
2008-07-11  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mono_method_to_ir): Disable aot for calling ldtoken in a generic
method.

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

15 years ago2008-07-10 Martin Baulig <martin@ximian.com>
Martin Baulig [Thu, 10 Jul 2008 23:11:31 +0000 (23:11 -0000)]
2008-07-10  Martin Baulig  <martin@ximian.com>

* mini.c (mini_method_compile): Disable generics sharing when
running in the debugger.

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

15 years ago2008-07-10 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 10 Jul 2008 22:06:58 +0000 (22:06 -0000)]
2008-07-10  Jonathan Pobst  <monkey@jpobst.com>

* ListBox.cs: Make sure last_item_visible gets reset before we try
to do a layout due to scrollbars appearing or disappearing.
[Fixes bug #408139]

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

15 years ago2008-07-10 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 10 Jul 2008 21:56:57 +0000 (21:56 -0000)]
2008-07-10  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mono_method_to_ir): Create the got var in CEE_REFANYVAL.

* inssel.brg (CEE_CASTCLASS): Avoid reusing temporary registers to prevent
the local register allocator from running out of registers on x86 when
using aot.

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

15 years ago2008-07-10 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 10 Jul 2008 21:42:39 +0000 (21:42 -0000)]
2008-07-10  Jonathan Pobst  <monkey@jpobst.com>

* XPlatUIWin32.cs: Change GetMenuOrigin to calculate borders better
for different window themes.  [Fixes bug #339140]

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

15 years ago2008-07-10 Bill Holmes <billholmes54@gmail.com>
Bill Holmes [Thu, 10 Jul 2008 21:09:57 +0000 (21:09 -0000)]
2008-07-10  Bill Holmes  <billholmes54@gmail.com>

* inssel-long.brg For OP_LCONV_TO_OVF_I4 an int cast is needed when expressing
  IntMin for the VS Compiler.  See Compiler Warning (level 2) C4146.

Contributed under MIT/X11 license.

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

15 years ago* Makefile.am (testaot): Set MONO_PATH when running the AOT compiler.
Raja R Harinath [Thu, 10 Jul 2008 17:23:58 +0000 (17:23 -0000)]
* Makefile.am (testaot): Set MONO_PATH when running the AOT compiler.
Don't set LD_LIBRARY_PATH, we're already using LIBTOOL to run the program.

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

15 years ago2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
George Giolfan [Thu, 10 Jul 2008 16:51:47 +0000 (16:51 -0000)]
2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>

* ThemeWin32Classic.cs: Implemented minimized window border width properly,
in ManagedWindowBorderWidth.

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

15 years agoFixes #326182
Veerapuram Varadhan [Thu, 10 Jul 2008 16:46:48 +0000 (16:46 -0000)]
Fixes #326182

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

15 years ago2008-07-10 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 10 Jul 2008 15:46:21 +0000 (15:46 -0000)]
2008-07-10  Jonathan Pobst  <monkey@jpobst.com>

* InternalWindowManager.cs: Change MouseMove to take a point, so
we can use the same point later on.
* MdiWindowManager.cs: Store point sent to MouseMove so we can
later reset to it.  On Windows, the Cursor.Position had already
changed by the time we were resetting to it.
[Fixes bug #363239]

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

15 years ago2008-07-10 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 10 Jul 2008 15:18:49 +0000 (15:18 -0000)]
2008-07-10  Jonathan Pobst  <monkey@jpobst.com>

* InternalWindowManager.cs: Ignore mouse actions on TitleButtons that
are inactive.
* ThemeWin32Classic.cs: Disable or hide MinimizeBox/MaximizeBox if
user requested it.
[Fixes bug #398686]

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

15 years ago2008-07-10 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 10 Jul 2008 15:13:54 +0000 (15:13 -0000)]
2008-07-10  Jonathan Pobst  <monkey@jpobst.com>

* MdiWindowManager.cs: Double-clicking on the title bar should not
maximize a MDI form if MaximizeBox = false.

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

15 years ago2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
George Giolfan [Thu, 10 Jul 2008 14:56:52 +0000 (14:56 -0000)]
2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>

* ThemeVisualStyles.cs: Fixed a warning.

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

15 years agoNew test.
Marek Safar [Thu, 10 Jul 2008 14:48:26 +0000 (14:48 -0000)]
New test.

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

15 years ago2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
George Giolfan [Thu, 10 Jul 2008 14:46:36 +0000 (14:46 -0000)]
2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>

* ThemeVisualStyles.cs: Fixed warnings and formatted.
* GtkPlus.cs: Fixed warnings and formatted.

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

15 years agoNew tests.
Marek Safar [Thu, 10 Jul 2008 14:45:59 +0000 (14:45 -0000)]
New tests.

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

15 years ago2008-07-10 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 10 Jul 2008 14:45:43 +0000 (14:45 -0000)]
2008-07-10  Marek Safar  <marek.safar@gmail.com>

A fix for bug #369670
* linq.cs, statement.cs: Use explicit block for query expressions variables.

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

15 years ago2008-07-10 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 10 Jul 2008 14:38:47 +0000 (14:38 -0000)]
2008-07-10  Marek Safar  <marek.safar@gmail.com>

* report.cs, ecore.cs: Flush recorder only when silent mode is off.

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

15 years ago2008-07-10 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 10 Jul 2008 14:32:47 +0000 (14:32 -0000)]
2008-07-10  Atsushi Enomoto  <atsushi@ximian.com>

* XmlSerializationWriter.cs : more helpful error message.

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

15 years ago2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
George Giolfan [Thu, 10 Jul 2008 14:11:55 +0000 (14:11 -0000)]
2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>

* FormTest.cs: Enabled the MinimizedWindowSize test and made it "NotWorking".

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

15 years agoFix bug #314902
Raja R Harinath [Thu, 10 Jul 2008 13:33:49 +0000 (13:33 -0000)]
Fix bug #314902
* mcs/cs-tokenizer.cs (is_punct): If a generic lookahead is looking
only one '>', and finds a '>>', abort the generic lookahead.
* tests/gtest-402.cs: New test from #314903.

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

15 years agoChange behavior of HyperLinkField bound field key should be case insensitive.
Roei Erez [Thu, 10 Jul 2008 13:14:58 +0000 (13:14 -0000)]
Change behavior of HyperLinkField bound field key should be case insensitive.

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

15 years ago2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
George Giolfan [Thu, 10 Jul 2008 12:56:32 +0000 (12:56 -0000)]
2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>

* ThemeVisualStyles.cs: Removed ManagedWindowGetMenuButtonSize. The base
implementation produces a better result.

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

15 years ago2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
George Giolfan [Thu, 10 Jul 2008 12:41:57 +0000 (12:41 -0000)]
2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>

* ThemeVisualStyles.cs: Adjusted height and border rendering for minimized
windows.

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

15 years agoNew tests.
Marek Safar [Thu, 10 Jul 2008 11:27:23 +0000 (11:27 -0000)]
New tests.

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

15 years ago2008-07-10 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 10 Jul 2008 11:25:54 +0000 (11:25 -0000)]
2008-07-10  Marek Safar  <marek.safar@gmail.com>

A fix for bug #319902
* cs-tokenizer.cs: Always look-ahed for `>='  when tokenizing `>'.

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

15 years agoDifferentiate between IPostBackEventHandler that was registered by the user, and...
Roei Erez [Thu, 10 Jul 2008 11:17:42 +0000 (11:17 -0000)]
Differentiate between IPostBackEventHandler that was registered by the user, and one that was given as post parameter, so that in case ther post data may trigger both IPostBackEventHandler and IPostBackDataHandler, only the IPostBackDataHandler is actually triggered

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

15 years ago2008-07-10 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 10 Jul 2008 10:25:17 +0000 (10:25 -0000)]
2008-07-10  Marek Safar  <marek.safar@gmail.com>

A fix for bug #406371
* statement.cs: Moved EmitSymbolInfo to Block.

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

15 years ago2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
George Giolfan [Thu, 10 Jul 2008 07:53:11 +0000 (07:53 -0000)]
2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>

* Application.cs: Added VisualStylesEnabled because XplatUI.ThemesEnabled
cannot be used from the ThemeEngine constructor.
* ThemeEngine.cs: Changed the XplatUI.ThemesEnabled check to
Application.VisualStylesEnabled because it does not work on X11.
* ThemeElements.cs: Changed the XplatUI.ThemesEnabled check to
Application.VisualStylesEnabled because it does not work on X11.
* GtkPlus.cs, VisualStylesGtkPlus.cs: Implemented check box
size. Extended check box painting to allow all cases.
* VisualStyleElement.cs: Added some constants.
* VisualStylesEngine.cs: Now requires environment variable
MONO_VISUAL_STYLES to be set to GtkPlus in order to select the GTK+
implementation.

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

15 years ago * DataBinder.cs (GetDataItem): Commited stupid code.
Rodrigo Kumpera [Thu, 10 Jul 2008 01:53:17 +0000 (01:53 -0000)]
* DataBinder.cs (GetDataItem): Commited stupid code.

2008-07-09  Rodrigo Kumpera  <rkumpera@novell.com>

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

15 years ago2008-07-09 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 10 Jul 2008 01:52:47 +0000 (01:52 -0000)]
2008-07-09  Rodrigo Kumpera  <rkumpera@novell.com>

* DataBinder.cs (GetDataItem): Use a per-thread cache for
property lookup.

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

15 years ago2008-07-10 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 10 Jul 2008 00:53:32 +0000 (00:53 -0000)]
2008-07-10  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c: Get rid of whitespace in the generated assembly file to
speed up the assembler.

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

15 years ago2008-07-09 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 9 Jul 2008 21:56:15 +0000 (21:56 -0000)]
2008-07-09  Zoltan Varga  <vargaz@gmail.com>

* mini-arm.h tramp-arm.c exceptions-arm.c aot-compiler.c: Beginnings of aot-only
support.

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

15 years ago2008-07-09 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 9 Jul 2008 21:47:16 +0000 (21:47 -0000)]
2008-07-09  Zoltan Varga  <vargaz@gmail.com>

* scripts/patch-quiet.sh: Another try to fix this on osx.

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

15 years ago2008-07-09 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 9 Jul 2008 21:38:44 +0000 (21:38 -0000)]
2008-07-09  Zoltan Varga  <vargaz@gmail.com>

* mini.c: Move the soft float handling macros a bit earlier, add
NEW_TEMPSTORE_SOFT_FLOAT macro, fix warnings, add soft-float support in one
place.

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

15 years ago2008-07-09 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 9 Jul 2008 20:28:26 +0000 (20:28 -0000)]
2008-07-09  Zoltan Varga  <vargaz@gmail.com>

* mini.h: Add prototype for mono_arch_fixup_jinfo.

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

15 years ago2008-07-09 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 9 Jul 2008 20:22:43 +0000 (20:22 -0000)]
2008-07-09  Zoltan Varga  <vargaz@gmail.com>

* scripts/patch-quiet.sh: Use \\t to encode \t.

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

15 years ago2008-07-09 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 9 Jul 2008 19:57:29 +0000 (19:57 -0000)]
2008-07-09  Zoltan Varga  <vargaz@gmail.com>

* scripts/patch-quiet.sh: Remove a stray \t.

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

15 years ago2008-07-09 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 9 Jul 2008 19:31:58 +0000 (19:31 -0000)]
2008-07-09  Zoltan Varga  <vargaz@gmail.com>

* mono-codeman.c (mono_code_manager_new): Initialize the read-only field.

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

15 years ago* configure.in (mono_cv_sizeof_sunpath): Rename cacheval from
Raja R Harinath [Wed, 9 Jul 2008 18:49:40 +0000 (18:49 -0000)]
* configure.in (mono_cv_sizeof_sunpath): Rename cacheval from
'cv_mono_sizeof_sunpath' to placate autoconf.

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

15 years ago2008-07-09 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 9 Jul 2008 18:37:38 +0000 (18:37 -0000)]
2008-07-09  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mini_init): In aot-only mode, set the root domain code manager to
read-only to help catch code allocation requests.

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

15 years ago2008-07-09 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 9 Jul 2008 18:36:32 +0000 (18:36 -0000)]
2008-07-09  Jonathan Pobst  <monkey@jpobst.com>

* StatusBar.cs: Apply patch from Andy Hume to remove lazy instantiation
that we did not always check for, as well as fixes to the IList
implementations.  [Fixes bug #402703]

2008-07-09  Jonathan Pobst  <monkey@jpobst.com>

* StatusBarTest.cs: Tests from Andy Hume for StatusBarPanelCollection.

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

15 years ago2008-07-09 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 9 Jul 2008 18:36:10 +0000 (18:36 -0000)]
2008-07-09  Zoltan Varga  <vargaz@gmail.com>

* mono-codeman.c (mono_code_manager_set_read_only): New helper function to
set the code manager to read-only status.
(mono_code_manager_reserve_align): Assert if the code manager is read only.

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

15 years ago* configure.in (enable_quiet_build): Work better on a non-srcdir build.
Raja R Harinath [Wed, 9 Jul 2008 18:35:13 +0000 (18:35 -0000)]
* configure.in (enable_quiet_build): Work better on a non-srcdir build.

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

15 years ago2008-07-09 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 9 Jul 2008 18:26:06 +0000 (18:26 -0000)]
2008-07-09  Zoltan Varga  <vargaz@gmail.com>

* mini.c inssel.brg aot-compiler.c: Make the use of IMT runtime configurable,
and turn it off when using --aot-only or when compiling with --aot=full.

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

15 years ago2008-07-09 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Wed, 9 Jul 2008 17:20:29 +0000 (17:20 -0000)]
2008-07-09  Marek Habersack  <mhabersack@novell.com>

* ConfigurationManager.cs: implemented a work-around for
OpenExeConfiguration ("") not working with ASP.NET apps properly.

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

15 years ago2008-07-09 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 9 Jul 2008 16:21:11 +0000 (16:21 -0000)]
2008-07-09  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mono_resolve_patch_target): In aot-only mode, allocate the
jump table for switches from the normal domain mempool, not the code
manager.

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

15 years ago2008-07-09 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 9 Jul 2008 16:08:38 +0000 (16:08 -0000)]
2008-07-09  Zoltan Varga  <vargaz@gmail.com>

* mini-trampolines.c (get_unbox_trampoline): New function to return an
unbox trampoline which handles aot-only mode too.

* aot-runtime.c (mono_aot_get_unbox_trampoline): New function to lookup
an AOTed unbox trampoline.

* aot-compiler.c (emit_trampolines): Emit unbox trampolines.

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

15 years ago2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
George Giolfan [Wed, 9 Jul 2008 15:53:30 +0000 (15:53 -0000)]
2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>

* IDeviceContext.cs: Added Dispose.

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

15 years agoRemove stray Console.WriteLine
Veerapuram Varadhan [Wed, 9 Jul 2008 15:45:53 +0000 (15:45 -0000)]
Remove stray Console.WriteLine

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

15 years ago2008-07-09 Bill Holmes <billholmes54@gmail.com>
Bill Holmes [Wed, 9 Jul 2008 15:43:38 +0000 (15:43 -0000)]
2008-07-09  Bill Holmes  <billholmes54@gmail.com>

* wapihandles.c: Fixing MSVC builds.  Include statement changed from <> to ""

Contributed under MIT/X11 license.

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

15 years ago2008-07-09 Bill Holmes <billholmes54@gmail.com>
Bill Holmes [Wed, 9 Jul 2008 15:39:38 +0000 (15:39 -0000)]
2008-07-09  Bill Holmes  <billholmes54@gmail.com>

* mini.c (mono_codegen):  Allocate space at the end of the code block and store
  the unwind information for the method at the end of the allocated block.

* mini-amd64.h: Added declarations for the unwind routines and adding field to
  MonoCompileArch to hold the unwind info for SEH on Winx64

* mini-amd64.c (mono_arch_emit_prolog): Calls to the unwind routines added to store
  frame pointer info for the method being compiled.

* exceptions-amd64.c (mono_arch_get_throw_corlib_exception): Added a stack adjustment before
  the call to mono_exception_from_token.

* exceptions-amd64.c: Added mono_arch_unwindinfo* implementations.  This code is responsible
  storing the method prolog information in a format that the Winx64 SEH can understand.  This
  information is stored a the end of the method block because it is all 32-bit offset based.

Contributed under MIT/X11 license.

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

15 years ago2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
George Giolfan [Wed, 9 Jul 2008 15:38:21 +0000 (15:38 -0000)]
2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>

* Control.cs: Added OnSizeInitializedOrChanged.
* Form.cs: OnLoadInternal: Added a call to
Control.OnSizeInitializedOrChanged.
* InternalWindowManager.cs:
 * HandleTitleBarMouseMove: No longer invalidates the parent window.
 * DrawTitleButton: Extracted Theme.ManagedWindowDrawMenuButton.
 * TitleButton: Added Entered.
 * TitleButtons.MouseMove: Added handling of TitleButton.Entered.
* MdiWindowManager.cs:
 * HandleTitleBarMouseMove: Now invalidates the parent window when a mouse
 move over the maximized title buttons causes a change.
 * IsActive: Can now be called before the window is added to a MDI parent.
* Theme.cs: Added ManagedWindowTitleButtonHasHotElementStyle,
ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
* ThemeVisualStyles.cs: Implemented proper managed window rendering.
* ThemeWin32Classic.cs:
 * Extracted ManagedWindowDrawTitleBarAndBorders, ManagedWindowDrawTitleButton.
 * DrawTitleButton takes a new form parameter.
 * Added ManagedWindowTitleButtonHasHotElementStyle,
 ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.

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

15 years agoFixes ##407208 - Validate for IP before calling DNS.GetHostEntry()
Veerapuram Varadhan [Wed, 9 Jul 2008 14:36:11 +0000 (14:36 -0000)]
Fixes ##407208 - Validate for IP before calling DNS.GetHostEntry()

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

15 years ago2008-07-09 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 9 Jul 2008 14:00:28 +0000 (14:00 -0000)]
2008-07-09  Zoltan Varga  <vargaz@gmail.com>

* mini.h: Remove duplicate definitions of the mini_wapi_ functions.

* wapihandles.c: Fix warnings.

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

15 years ago2008-07-09 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 9 Jul 2008 12:00:46 +0000 (12:00 -0000)]
2008-07-09  Zoltan Varga  <vargaz@gmail.com>

* aot-runtime.c (load_aot_module): Add a missing error message in aot-only
mode.

* mini-trampolines.c (mono_create_jit_trampoline_in_domain): Avoid calling
mono_jit_compile_method in aot-only mode since that calls the type
initializer.

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

15 years agoNew tests.
Marek Safar [Wed, 9 Jul 2008 11:46:19 +0000 (11:46 -0000)]
New tests.

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

15 years ago2008-07-09 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 9 Jul 2008 11:46:07 +0000 (11:46 -0000)]
2008-07-09  Marek Safar  <marek.safar@gmail.com>

* ecore.cs: Report better error for extension method overload failures.

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

15 years ago2008-07-09 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 9 Jul 2008 10:52:10 +0000 (10:52 -0000)]
2008-07-09  Atsushi Enomoto  <atsushi@ximian.com>

* MapCodeGenerator.cs : use explicit element name for explicitly added
  XmlElementAttribute. (exposed by some product from some company.)

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

15 years agoNew test.
Marek Safar [Wed, 9 Jul 2008 10:33:58 +0000 (10:33 -0000)]
New test.

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

15 years agoNew test.
Marek Safar [Wed, 9 Jul 2008 10:33:23 +0000 (10:33 -0000)]
New test.

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

15 years ago2008-07-09 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 9 Jul 2008 10:33:12 +0000 (10:33 -0000)]
2008-07-09  Marek Safar  <marek.safar@gmail.com>

* expression.cs (Is): No need to box reference values.

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

15 years agoNew tests.
Marek Safar [Wed, 9 Jul 2008 09:36:29 +0000 (09:36 -0000)]
New tests.

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

15 years ago2008-07-09 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 9 Jul 2008 09:35:43 +0000 (09:35 -0000)]
2008-07-09  Marek Safar  <marek.safar@gmail.com>

* class.cs: Use event resolve context when initializing CreateEmitContext.

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

15 years agoNew test.
Marek Safar [Wed, 9 Jul 2008 08:29:49 +0000 (08:29 -0000)]
New test.

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

15 years ago2008-07-09 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 9 Jul 2008 08:29:28 +0000 (08:29 -0000)]
2008-07-09  Marek Safar  <marek.safar@gmail.com>

A fix for bug #394436
* anonymous.cs, class.cs, expression.cs, lambda.cs: Emit correctly extension
method used inside expression trees. Added more LINQ to expression tree
conversions.

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

15 years ago2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
George Giolfan [Wed, 9 Jul 2008 07:19:02 +0000 (07:19 -0000)]
2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>

* ThemeEngine.cs: ThemeVisualStyles is now selected if
Application.EnableVisualStyles has been called, even if the current system
configuration does not support rendering with Visual Styles.
* ThemeVisualStyles.cs: Now falls back to ThemeWin32Classic when Visual
Styles should not be used.
* ThemeElements.cs: ThemeElementsVisualStyles is now selected if
Application.EnableVisualStyles has been called, even if the current system
configuration does not support rendering with Visual Styles.
* TabControlPainter.cs, ToolStripPainter.cs: Now falls back to the default
implementation when Visual Styles should not be used.

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

15 years ago2008-07-09 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 9 Jul 2008 00:29:12 +0000 (00:29 -0000)]
2008-07-09  Zoltan Varga  <vargaz@gmail.com>

* mini-trampolines.c (mono_create_delegate_trampoline): Avoid calling
get_delegate_invoke_impl in aot-only mode.

* mini.c (mono_global_codeman_reserve): Reenable the aot-only check.

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

15 years ago2008-07-08 George Giolfan <georgegiolfan@yahoo.com>
George Giolfan [Tue, 8 Jul 2008 22:07:07 +0000 (22:07 -0000)]
2008-07-08  George Giolfan  <georgegiolfan@yahoo.com>

* FormTest.cs: Disabled the MinimizedWindowSize test.

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

15 years ago2008-07-08 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 8 Jul 2008 21:53:05 +0000 (21:53 -0000)]
2008-07-08  Jonathan Pobst  <monkey@jpobst.com>

* ComboBox.cs: PreferredHeight is not tied to ItemHeight.  Fixes 3rd
ComboBox in FormsTest.

2008-07-08  Jonathan Pobst  <monkey@jpobst.com>

* ComboBoxTest.cs: Test showing PreferredHeight is independent of
ItemHeight.

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

15 years ago2008-07-08 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
Andreas N [Tue, 8 Jul 2008 21:29:06 +0000 (21:29 -0000)]
2008-07-08  Andreas Nahr <ClassDevelopment@A-SoftTech.com>

* Char.cs: Remove obsolete lamespecs (it implements IConvertible), small formatting

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

15 years ago2008-07-08 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 8 Jul 2008 21:13:57 +0000 (21:13 -0000)]
2008-07-08  Zoltan Varga  <vargaz@gmail.com>

* trace.c (mono_trace_enter_method): Fix printing of Type instances.

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

15 years ago2008-07-08 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
Andreas N [Tue, 8 Jul 2008 21:00:26 +0000 (21:00 -0000)]
2008-07-08  Andreas Nahr <ClassDevelopment@A-SoftTech.com>

* Char.cs: Optimize some Is* checks

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

15 years ago2008-07-08 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 8 Jul 2008 20:07:51 +0000 (20:07 -0000)]
2008-07-08  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (compile_method): Disable the check for GSHARED since it
is on by default.

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

15 years ago2008-07-08 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 8 Jul 2008 19:58:34 +0000 (19:58 -0000)]
2008-07-08  Zoltan Varga  <vargaz@gmail.com>

* inssel-long.brg (reg): Add a rule for LCALL_REG (OP_I8CONST).

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

15 years ago2008-07-08 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 8 Jul 2008 19:58:06 +0000 (19:58 -0000)]
2008-07-08  Zoltan Varga  <vargaz@gmail.com>

* tramp-amd64.c (mono_arch_nullify_plt_entry): Read the nullified class
init trampoline from the AOT file as well.

* mini-amd64.c (mono_arch_register_lowlevel_calls): Register
mono_amd64_throw_exception as a jit icall since it is needed by the aot-only
code.

* mini.c (mini_init): Move the call to mono_exceptions_init () after
mono_init.

* exceptions-amd64.c: Add _full variants for the remaining exception code
creation functions as well, allow emission of relocatable code, remove
caching since that is now done by the caller.

* mini-exceptions.c: Add _full variants for the remaining exception code
creation functions as well, add aot-only support.

* aot-compiler.c (compile_method): Allow calls to methods of constructed types
if we can determine a proper token for them.
(add_wrappers): Add a few more wrappers.
(emit_method_code): Remove some dead code.
(emit_trampolines): Emit exception code too.

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

15 years ago2008-07-08 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 8 Jul 2008 19:57:52 +0000 (19:57 -0000)]
2008-07-08  Zoltan Varga  <vargaz@gmail.com>

* tramp-amd64.c (mono_arch_nullify_plt_entry): Read the nullified class
init trampoline from the AOT file as well.

* mini-amd64.c (mono_arch_register_lowlevel_calls): Register
mono_amd64_throw_exception as a jit icall since it is needed by the aot-only
code.

* mini.c (mini_init): Move the call to mono_exceptions_init () after
mono_init.

* exceptions-amd64.c: Add _full variants for the remaining exception code
creation functions as well, allow emission of relocatable code, remove
caching since that is now done by the caller.

* mini-exceptions.c: Add _full variants for the remaining exception code
creation functions as well, add aot-only support.

* aot-compiler.c (compile_method): Allow calls to methods of constructed types
if we can determine a proper token for them.
(add_wrappers): Add a few more wrappers.
(emit_method_code): Remove some dead code.
(emit_trampolines): Emit exception code too.

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

15 years ago2008-07-08 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 8 Jul 2008 18:35:57 +0000 (18:35 -0000)]
2008-07-08  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mono_method_to_ir): Call mono_array_new_2 if possible.

* jit-icalls.c (mono_array_new_2): New jit icall, specialized version of
mono_array_new_va which avoids varargs.

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