mono.git
16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

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

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

16 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

16 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

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

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

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

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

16 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

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

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

16 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

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

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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 years ago2008-07-08 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 8 Jul 2008 16:48:44 +0000 (16:48 -0000)]
2008-07-08 Rodrigo Kumpera  <rkumpera@novell.com>

* object.c (mono_string_to_utf8): Avoid allocating a temp array.

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

16 years ago2008-07-08 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Tue, 8 Jul 2008 16:26:21 +0000 (16:26 -0000)]
2008-07-08  Ivan N. Zlatev  <contact@i-nz.net>

* ThemeWin32Classic.cs: (ManagedWindowBorderWidth): width 3 is only
for fixed toolwindows.

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

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

* Form.cs: SetBoundsCore: Added minimum size for minimized windows.
* FormTest.cs: Added the MinimizedWindowSize test.

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

16 years agoNew tests.
Marek Safar [Tue, 8 Jul 2008 14:57:53 +0000 (14:57 -0000)]
New tests.

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

16 years ago2008-07-08 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 8 Jul 2008 14:56:46 +0000 (14:56 -0000)]
2008-07-08  Marek Safar  <marek.safar@gmail.com>

A fix for bug #378189, #370577
* lambda.cs, ecore.cs: Implemented 3.0 enhancement to better conversion
from expression.

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

16 years ago2008-07-08 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 8 Jul 2008 14:28:29 +0000 (14:28 -0000)]
2008-07-08  Marek Safar  <marek.safar@gmail.com>

* anonymous.cs, class.cs, decl.cs: Emit CompilerGenerated attribute
hierarchically.

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

16 years agoRevert
Marek Safar [Tue, 8 Jul 2008 10:52:46 +0000 (10:52 -0000)]
Revert

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

16 years agoNew tests.
Marek Safar [Tue, 8 Jul 2008 10:38:50 +0000 (10:38 -0000)]
New tests.

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

16 years ago2008-07-08 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 8 Jul 2008 10:38:15 +0000 (10:38 -0000)]
2008-07-08  Marek Safar  <marek.safar@gmail.com>

A fix for bug #406702
* anonymous.cs: Always park anonymous method in the nearest parent storey.

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

16 years agoFixed few warnings
Marek Safar [Tue, 8 Jul 2008 10:34:18 +0000 (10:34 -0000)]
Fixed few warnings

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

16 years ago2008-07-08 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 8 Jul 2008 04:36:46 +0000 (04:36 -0000)]
2008-07-08  Zoltan Varga  <vargaz@gmail.com>

* mini-exceptions.c (mono_exceptions_init): Fix the ppc build.

* mini-trampolines.c: Call mono_create_specific_trampoline () instead of
mono_arch_create_specific_trampoline () in all places.

* aot-compiler.c aot-runtime.c: Refactor the trampoline emitting/loading code
a bit so it can be used for other things as well.

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

16 years ago2008-07-08 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 8 Jul 2008 00:26:47 +0000 (00:26 -0000)]
2008-07-08  Zoltan Varga  <vargaz@gmail.com>

* mini-exceptions.c (mono_exceptions_init): Initialize throw_exception_by_name
on demand as well.

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

16 years ago2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Mon, 7 Jul 2008 23:02:23 +0000 (23:02 -0000)]
2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>

* Control.cs: CreateControl just returns if the Control is diposed
and doesn't throw ObjectDisposedException.
* ControlTest.cs: Add tests for the Dispose behavior.
[Fixes bug #406566]

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

16 years ago2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Mon, 7 Jul 2008 22:53:30 +0000 (22:53 -0000)]
2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>

* Control.cs: Do not create the control if the parent isn't created
yet, e.g in the case of a parented form on which .Show is called.
It will be created when the parent is made visible/created.
Improves #402446.

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

16 years ago2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Mon, 7 Jul 2008 22:49:22 +0000 (22:49 -0000)]
2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>

* Form.cs: Avoid recursively calling OnSizeChanged due to recursive
WM_WINDOWPOSCHANGED caused by the layouting code on win32.
[Fixes bug #406786]

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

16 years ago2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Mon, 7 Jul 2008 22:45:35 +0000 (22:45 -0000)]
2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>

* Form.cs: When disposed set owner to null. Improves #402446.

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

16 years ago2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Mon, 7 Jul 2008 22:42:55 +0000 (22:42 -0000)]
2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>

* Form.cs, FlowLayoutPanel.cs: When calculating the PreferredSize
use children's PreferredSize if in AutoSize mode and ExplicitBounds
if not.
* Form.cs: Take the Padding into account for the PreferredSize.
[Fixes bug #402849]

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

16 years ago2008-07-08 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 7 Jul 2008 22:42:08 +0000 (22:42 -0000)]
2008-07-08  Zoltan Varga  <vargaz@gmail.com>

* exceptions-amd64.c: Change the signature of the exception code creation
functions to allow the creation of relocatable code later.

* mini-exceptions.c: Add a set of functions to query the various
runtime-generated exception functions.

* mini.c mini-exceptions.c: Use the newly added functions instead of the
mono_arch_.. () functions.

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

16 years ago2008-07-08 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 7 Jul 2008 22:41:46 +0000 (22:41 -0000)]
2008-07-08  Zoltan Varga  <vargaz@gmail.com>

* exceptions-amd64.c: Change the signature of the exception code creation
functions to allow the creation of relocatable code later.

* mini-exceptions.c: Add a set of functions to query the various
runtime-generated exception functions.

* mini.c mini-exceptions.c: Use the newly added functions instead of the
mono_arch_.. () functions.

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

16 years ago2008-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Mon, 7 Jul 2008 22:31:52 +0000 (22:31 -0000)]
2008-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* TabControl.cs: Since we don't support more than one direction in
TabControl rows alignment (this is, the row becomes the
bottom row when selected), make Direction return always 1. This way
the layout doesn't get confused about a bad calculation.
Fixes #399582.

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

16 years ago2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Mon, 7 Jul 2008 22:31:47 +0000 (22:31 -0000)]
2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>

* TableLayout.cs: Controls bounds should be taken into account regardless
of their Dock and Anchor states.
* TableLayoutTest.cs: Add test for bug #402651
[Fixes bug #402651]

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

16 years ago2008-07-07 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 7 Jul 2008 22:29:35 +0000 (22:29 -0000)]
2008-07-07  Rodrigo Kumpera  <rkumpera@novell.com>

* ConfigurationManager.cs: Return the right path if the calling assembly is
not null. This happens when ConfigurationSession::GetRuntimeObject() is
called, SectionHandler != null and the handler itself calls
OpenExeConfigurationInternal ("").

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

16 years ago * ConfigurationManager.cs: Reaply the patch from Gert.
Rodrigo Kumpera [Mon, 7 Jul 2008 22:25:55 +0000 (22:25 -0000)]
* ConfigurationManager.cs: Reaply the patch from Gert.
This change doesn't contain any fix to to not clutter
the commit history.

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

* ClientConfigurationSystem.cs:

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

16 years ago2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Mon, 7 Jul 2008 22:19:45 +0000 (22:19 -0000)]
2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>

* XplatUIX11.cs: Implement NC hit-testing for mouse down/up messages,
so that the wparam is properly set.
Fixes form moving in the test case in bug 402446.

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

16 years ago2008-07-07 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 7 Jul 2008 20:53:14 +0000 (20:53 -0000)]
2008-07-07  Zoltan Varga  <vargaz@gmail.com>

* mini-trampolines.c (mono_aot_get_trampoline_code): Removed, no longer used.

* aot-runtime.c aot-compiler.c: AOT the generic trampolines in aot-only mode.

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

16 years ago2008-07-07 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 7 Jul 2008 20:50:29 +0000 (20:50 -0000)]
2008-07-07  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mini_get_imt_trampoline): Call mono_create_specific_trampoline ().
(mini_get_vtable_trampoline): Ditto.

* tramp-amd64.c (mono_arch_create_trampoline_code_full): Create relocatable
code in the AOT case by returning the code size and a list of relocations to
the caller.

* mini-trampolines.c (mono_create_specific_trampoline): New helper function.

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

16 years ago2008-07-07 Bill Holmes <billholmes54@gmail.com>
Bill Holmes [Mon, 7 Jul 2008 20:44:44 +0000 (20:44 -0000)]
2008-07-07  Bill Holmes  <billholmes54@gmail.com>
* libtest.c, winx64structs.cs :
  Adding tests to exercise bug 404729 on Winx64.

Contributed under MIT/X11 license.

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

16 years ago2008-07-07 Bill Holmes <billholmes54@gmail.com>
Bill Holmes [Mon, 7 Jul 2008 20:44:21 +0000 (20:44 -0000)]
2008-07-07  Bill Holmes  <billholmes54@gmail.com>

* mini-amd64.c:  On Winx64 the calling convention always requires the caller to
  clean the stack.

Contributed under MIT/X11 license.

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

16 years ago2008-07-07 Bill Holmes <billholmes54@gmail.com>
Bill Holmes [Mon, 7 Jul 2008 17:03:30 +0000 (17:03 -0000)]
2008-07-07  Bill Holmes  <billholmes54@gmail.com>

* ThreadTest.cs : Tests added for Thread.Interrupt.

Code is contributed under MIT/X11 license.

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

16 years ago2008-07-07 Bill Holmes <billholmes54@gmail.com>
Bill Holmes [Mon, 7 Jul 2008 17:02:16 +0000 (17:02 -0000)]
2008-07-07  Bill Holmes  <billholmes54@gmail.com>

* threads.c : Thread.Interrupt changes to ensure that ThreadInterruptedException
  is not throw too many times.

Code is contributed under MIT/X11 license.

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

16 years ago2008-07-07 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Mon, 7 Jul 2008 16:34:39 +0000 (16:34 -0000)]
2008-07-07  Jonathan Pobst  <monkey@jpobst.com>

* FolderBrowserDialog.cs: If we can't find the SelectedPath, display
the full tree instead of nothing.  [Improves bug #406584]

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

16 years ago2008-07-07 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Mon, 7 Jul 2008 15:58:52 +0000 (15:58 -0000)]
2008-07-07  Jonathan Pobst  <monkey@jpobst.com>

* ResXResourceReaderTest.cs: Ignore test that is dependent on
hashtable ordering.

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

16 years ago2008-07-07 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Mon, 7 Jul 2008 15:51:35 +0000 (15:51 -0000)]
2008-07-07  Jonathan Pobst  <monkey@jpobst.com>

* TableLayoutSettingsTypeConverterTest.cs: Make 'roundtrip' not
dependent on exact order of <Control> elements.

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

16 years ago2008-07-07 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 7 Jul 2008 15:25:41 +0000 (15:25 -0000)]
2008-07-07  Zoltan Varga  <vargaz@gmail.com>

* mono-debug.c (mono_debug_find_method): Allow this to be called even when
debugging is turned off.

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

16 years ago2008-07-07 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 7 Jul 2008 14:01:18 +0000 (14:01 -0000)]
2008-07-07  Sebastien Pouliot  <sebastien@ximian.com>

* TestBitmap.cs: Add test case for #406763 and similar cases.

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

16 years ago2008-07-07 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 7 Jul 2008 14:00:14 +0000 (14:00 -0000)]
2008-07-07  Sebastien Pouliot  <sebastien@ximian.com>

* Bitmap.cs: Fix exceptions for some ctors.
* Image.cs: Throw ArgumentNullException for null streams.
[Fix bug #406763]

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

16 years ago2008-07-07 George Giolfan <georgegiolfan@yahoo.com>
George Giolfan [Mon, 7 Jul 2008 13:37:08 +0000 (13:37 -0000)]
2008-07-07  George Giolfan  <georgegiolfan@yahoo.com>

* ThemeWin32Classic.cs: Adjusted minimized window painting.

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

16 years agoIn .:
Rodrigo Kumpera [Mon, 7 Jul 2008 12:51:19 +0000 (12:51 -0000)]
In .:
2008-07-07  Rodrigo Kumpera  <rkumpera@novell.com>

* ClientConfigurationSystem.cs:
* ConfigurationManager.cs: The previous patch since it
causes a regression. It will remain reverted until we figure
out what's wrong and how to fix it.

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

16 years agoNew test.
Marek Safar [Mon, 7 Jul 2008 12:06:23 +0000 (12:06 -0000)]
New test.

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

16 years ago2008-07-07 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 7 Jul 2008 12:06:10 +0000 (12:06 -0000)]
2008-07-07  Marek Safar  <marek.safar@gmail.com>

A fix for bug #406648
* cs-parser.jay: Report nullable use in mcs for some cases.

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

16 years ago2008-07-07 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 7 Jul 2008 11:54:56 +0000 (11:54 -0000)]
2008-07-07  Atsushi Enomoto  <atsushi@ximian.com>

* ServiceDescriptionSerializerBase2.cs,
  ServiceDescriptionSerializerBase.cs : regenerated with the latest
  sys.xml(.serialization).

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

16 years agoError messages update.
Marek Safar [Mon, 7 Jul 2008 11:17:55 +0000 (11:17 -0000)]
Error messages update.

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

16 years ago2008-07-07 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 7 Jul 2008 11:17:39 +0000 (11:17 -0000)]
2008-07-07  Marek Safar  <marek.safar@gmail.com>

* ecore.cs: Improved argument mismatch error messages.

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

16 years agoupdate
Jb Evain [Mon, 7 Jul 2008 11:13:20 +0000 (11:13 -0000)]
update

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

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

* InternalWindowManager.cs: No longer draws decorations for maximized MDI
children.

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

16 years agoNew tests.
Marek Safar [Mon, 7 Jul 2008 09:41:45 +0000 (09:41 -0000)]
New tests.

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

16 years ago2008-07-07 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 7 Jul 2008 09:40:13 +0000 (09:40 -0000)]
2008-07-07  Marek Safar  <marek.safar@gmail.com>

* anonymous.cs: Don't cache generic delegates when reference MVAR argument.

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

16 years ago2008-07-07 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 7 Jul 2008 08:37:24 +0000 (08:37 -0000)]
2008-07-07  Marek Safar  <marek.safar@gmail.com>

* expression.cs (TypeOf): Mutate type argument.

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

16 years ago2008-07-07 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 7 Jul 2008 00:33:38 +0000 (00:33 -0000)]
2008-07-07  Zoltan Varga  <vargaz@gmail.com>

* Makefile.am: Run the aot tests using --debug.

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

16 years ago2008-07-07 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 7 Jul 2008 00:33:08 +0000 (00:33 -0000)]
2008-07-07  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (emit_exception_debug_info): Serialize the debug info first
so the buffer size can be computed correctly. Fixes #404735.

* debug-mini.c (mono_debug_serialize_debug_info): Lookup the debug info
normally as cfg->debug_info is already freed.

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

16 years ago2008-07-06 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 7 Jul 2008 00:19:15 +0000 (00:19 -0000)]
2008-07-06  Sebastien Pouliot  <sebastien@ximian.com>

* DbDataReader.cs: Replace a few Type.GetType by typeof
[Found using Gendarme AvoidTypeGetTypeForConstantStringsRule]

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

16 years ago2008-07-07 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 6 Jul 2008 23:45:21 +0000 (23:45 -0000)]
2008-07-07  Zoltan Varga  <vargaz@gmail.com>

* resolve_field_bug.2.il: Fix this test.

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

16 years ago2008-07-07 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 6 Jul 2008 22:36:35 +0000 (22:36 -0000)]
2008-07-07  Zoltan Varga  <vargaz@gmail.com>

* configure.in: Make the patching done by --enable-quiet quiet.

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