Zoltan Varga [Mon, 6 Oct 2008 17:04:11 +0000 (17:04 -0000)]
2008-10-06 Zoltan Varga <vargaz@gmail.com>
* method-to-ir.c (check_inline_called_method_name_limit): Return TRUE
so inlining actually works.
(check_inline_caller_method_name_limit): Ditto.
svn path=/trunk/mono/; revision=114968
Sebastien Pouliot [Mon, 6 Oct 2008 15:06:44 +0000 (15:06 -0000)]
2008-10-06 Sebastien Pouliot <sebastien@ximian.com>
* TestRectangleF.cs: Add test case for bug #431587
svn path=/trunk/mcs/; revision=114954
Sebastien Pouliot [Mon, 6 Oct 2008 15:05:57 +0000 (15:05 -0000)]
RectangleF.cs: Fix edge intersection. Path by Brian Browning. [Fix bug #431587]
svn path=/trunk/mcs/; revision=114953
Paolo Molaro [Mon, 6 Oct 2008 14:14:15 +0000 (14:14 -0000)]
Mon Oct 6 16:10:02 CEST 2008 Paolo Molaro <lupus@ximian.com>
* gc.c, attach.h, attach.c: remove a bad pattern:
add_finalizer_callback () is not implemented correctly, it can't
without adding more overhead to the finalizer loop and it's not
even needed, since we know exactly what we need to call, so there is
no need to do so through an expensive function pointer.
svn path=/trunk/mono/; revision=114944
Paolo Molaro [Mon, 6 Oct 2008 13:14:21 +0000 (13:14 -0000)]
Mon Oct 6 15:12:25 CEST 2008 Paolo Molaro <lupus@ximian.com>
* Array.cs: better message when keys cannot be compared
when sorting (bug #368455).
svn path=/trunk/mcs/; revision=114936
Paolo Molaro [Mon, 6 Oct 2008 09:06:33 +0000 (09:06 -0000)]
Mon Oct 6 11:04:38 CEST 2008 Paolo Molaro <lupus@ximian.com>
* mini-ppc.c: mono_arch_flush_icache () cast pointer using gsize for
64 bit safety (from Olaf Hering and Andreas Färber).
svn path=/trunk/mono/; revision=114929
Paolo Molaro [Mon, 6 Oct 2008 07:50:20 +0000 (07:50 -0000)]
Mon Oct 6 09:46:09 CEST 2008 Paolo Molaro <lupus@ximian.com>
* UTF8Encoding.cs: rewritten InternalGetByteCount () and
InternalGetBytes (): among other things this versions are
10% to 60% faster, depending on input type and size.
svn path=/trunk/mcs/; revision=114925
Marek Habersack [Mon, 6 Oct 2008 06:50:27 +0000 (06:50 -0000)]
2008-10-06 Marek Habersack <mhabersack@novell.com>
* machine.config: added entries to ignore the mobileControls and
deviceFilters sections.
svn path=/trunk/mono/; revision=114924
Zoltan Varga [Mon, 6 Oct 2008 03:38:50 +0000 (03:38 -0000)]
2008-10-06 Zoltan Varga <vargaz@gmail.com>
* DictionaryTest.cs: Add a test for #432441.
svn path=/trunk/mcs/; revision=114916
Zoltan Varga [Mon, 6 Oct 2008 03:35:26 +0000 (03:35 -0000)]
2008-10-06 Zoltan Varga <vargaz@gmail.com>
* Dictionary.cs (Clear): Clear the linkSlots array as well, as
Enumerator.MoveNext () depends on it. Fixes #432441.
svn path=/trunk/mcs/; revision=114915
Zoltan Varga [Mon, 6 Oct 2008 00:11:43 +0000 (00:11 -0000)]
2008-10-06 Zoltan Varga <vargaz@gmail.com>
* mini-trampolines.c (mono_aot_trampoline): Delegate processing to
mono_magic_trampoline () if aot_get_method_from_token () fails. Remove
unused virtual call support code.
* aot-runtime.c (decode_method_ref): Add a 'no_aot_trampoline' out argument.
* aot-runtime.c (mono_aot_get_method_from_vt_slot): Return NULL for methods
which can't use aot trampolines.
(decode_patch): Don't create aot trampolines for methods which can't use
them.
* aot-compiler.c (encode_method_ref): Add a marker for methods which can't
use aot trampolines.
* mini.h: Bump AOT image format version.
svn path=/trunk/mono/; revision=114912
Marek Safar [Sun, 5 Oct 2008 18:03:39 +0000 (18:03 -0000)]
2008-10-05 Marek Safar <marek.safar@gmail.com>
* cs-parser.jay: Allow parsing weird array creation construct.
svn path=/trunk/mcs/; revision=114890
Zoltan Varga [Sun, 5 Oct 2008 17:44:06 +0000 (17:44 -0000)]
2008-10-05 Zoltan Varga <vargaz@gmail.com>
* method-to-ir.c (mono_method_to_ir2): Pass cil_method instead of cmethod
to save_token_info () since cmethod is inflated for constrained calls.
svn path=/trunk/mono/; revision=114889
Marek Safar [Sun, 5 Oct 2008 09:23:19 +0000 (09:23 -0000)]
Updated
svn path=/trunk/mcs/; revision=114886
Marek Safar [Sun, 5 Oct 2008 09:23:04 +0000 (09:23 -0000)]
2008-10-05 Marek Safar <marek.safar@gmail.com>
* cs-parser.jay: Conflicts reduction.
svn path=/trunk/mcs/; revision=114885
Gert Driesen [Sun, 5 Oct 2008 09:13:33 +0000 (09:13 -0000)]
* CustomizableFileSettingsProvider.cs (LoadPropertyValue): Do not
hide ArgumentException.
svn path=/trunk/mcs/; revision=114883
Gonzalo Paniagua Javier [Sun, 5 Oct 2008 02:01:08 +0000 (02:01 -0000)]
2008-10-04 Gonzalo Paniagua Javier <gonzalo@novell.com>
* NetworkInterface.cs: detect wireless 802.11 on linux.
svn path=/trunk/mcs/; revision=114857
Zoltan Varga [Sun, 5 Oct 2008 00:18:47 +0000 (00:18 -0000)]
2008-10-05 Zoltan Varga <vargaz@gmail.com>
* mini-<ARCH>.h mini-x86.c: Remove some unused defines.
svn path=/trunk/mono/; revision=114854
Gonzalo Paniagua Javier [Sat, 4 Oct 2008 21:50:11 +0000 (21:50 -0000)]
2008-10-04 Gonzalo Paniagua Javier <gonzalo@novell.com>
* CustomizableFileSettingsProvider.cs: when reading application or
user settings, only read those settings appropriate for the context.
This avoids duplicate key errors when 2 different groups have a key
with the same name.
* ApplicationSettingsBase.cs: the context is a hashtable with several
values set upon creation: SettingsKey, GroupName and
SettingsClassType.
Fixes bug #432466.
svn path=/trunk/mcs/; revision=114853
Andreas Färber [Sat, 4 Oct 2008 19:11:10 +0000 (19:11 -0000)]
2008-10-04 Andreas Faerber <andreas.faerber@web.de>
* Makefile.am: Add build rules for ppc64.
This avoids the build failing at pedump with unresolved symbols
due to lack of arch_sources. Instead it will now fail earlier
due to lack of cpu-ppc64.md.
This commit is licensed under the MIT X11 license.
svn path=/trunk/mono/; revision=114845
Zoltan Varga [Sat, 4 Oct 2008 18:39:03 +0000 (18:39 -0000)]
2008-10-04 Zoltan Varga <vargaz@gmail.com>
* gc.c: Define a dummy version of mono_gc_add_finalizer_thread_callback ()
for the no-gc case.
* attach.c (mono_attach_init): Remove the #ifdef.
svn path=/trunk/mono/; revision=114843
Gonzalo Paniagua Javier [Sat, 4 Oct 2008 18:24:39 +0000 (18:24 -0000)]
2008-10-04 Gonzalo Paniagua Javier <gonzalo@novell.com>
* ApplicationSettingsBase.cs: honor the IsSynchronized value in the
Context, Properties, PropertyValues and Providers. All of them might
initialize an instance field for the class. Hopefully this fixes some
nullrefs.
svn path=/trunk/mcs/; revision=114842
Andreas Färber [Sat, 4 Oct 2008 17:23:51 +0000 (17:23 -0000)]
2008-10-04 Andreas Faerber <andreas.faerber@web.de>
* attach.c (mono_attach_init): Don't use
mono_gc_add_finalizer_thread_callback when compiling without GC.
Fixes #432306.
This commit is licensed under the MIT X11 license.
svn path=/trunk/mono/; revision=114841
Gonzalo Paniagua Javier [Sat, 4 Oct 2008 16:42:47 +0000 (16:42 -0000)]
2008-10-04 Gonzalo Paniagua Javier <gonzalo@novell.com>
* ApplicationSettingsBase.cs: honor the IsSynchronized value in the
indexer.
svn path=/trunk/mcs/; revision=114837
Gonzalo Paniagua Javier [Sat, 4 Oct 2008 15:27:52 +0000 (15:27 -0000)]
2008-10-03 Gonzalo Paniagua Javier <gonzalo@novell.com>
* HttpApplication.cs: make sure we release the resources used by the
request and/or the response at the end of the request.
Fixes bug #430040.
svn path=/trunk/mcs/; revision=114832
Marek Safar [Sat, 4 Oct 2008 14:32:41 +0000 (14:32 -0000)]
Disabled for now
svn path=/trunk/mcs/; revision=114831
Marek Safar [Sat, 4 Oct 2008 14:32:20 +0000 (14:32 -0000)]
2008-10-04 Marek Safar <marek.safar@gmail.com>
* cs-parser.jay: Conflicts reduction.
svn path=/trunk/mcs/; revision=114830
Raja R Harinath [Sat, 4 Oct 2008 10:39:14 +0000 (10:39 -0000)]
Fix #398325
* flowanalysis.cs (MyBitvector.MakeShared): Rename from 'Shared'
property. Add a 'count' hint about the use of the shared vector.
Ensure that we don't leak out dirty bits.
(UsageVector.MergeChild): Throw away information about variables
in child vectors.
Based on patch and analysis by Moritz Kroll <Moritz.Kroll@gmx.de>.
svn path=/trunk/mcs/; revision=114825
Raja R Harinath [Sat, 4 Oct 2008 10:38:49 +0000 (10:38 -0000)]
update known issues
svn path=/trunk/mcs/; revision=114824
Ivan Zlatev [Fri, 3 Oct 2008 23:03:15 +0000 (23:03 -0000)]
2008-10-04 Ivan N. Zlatev <contact@i-nz.net>
* ButtonBase.cs, Control.cs, Label.cs, PictureBox.cs, TabControl.cs,
TextBoxBase.cs, ToolBar.cs, TrackBar.cs, TreeView.cs: Cleanup
compilation warnings.
svn path=/trunk/mcs/; revision=114812
Ivan Zlatev [Fri, 3 Oct 2008 22:48:09 +0000 (22:48 -0000)]
2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
* RTF.cs, Application.cs, BindingContext.cs, BindingSource.cs,
ContextMenuStrip.cs, Control.cs, Hwnd.cs, Line.cs, MaskedTextBox.cs,
ProgressBar.cs, SaveFileDialog.cs, TextControl.cs, Theme.cs,
ToolBar.cs, ToolStripItemCollection.cs, TrackBar.cs: Cleanup
compilation warnings.
svn path=/trunk/mcs/; revision=114809
Ivan Zlatev [Fri, 3 Oct 2008 22:23:20 +0000 (22:23 -0000)]
2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
* DataGridView.cs, DataGridViewCell.cs,
DataGridViewCellValidatingEventArgs.cs,
DataGridViewComboBoxEditingControl.cs, DataGridViewHeaderCell.cs,
DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
DataGridViewTextBoxEditingControl.cs: Cleanup compilation warnings.
svn path=/trunk/mcs/; revision=114808
Mark Probst [Fri, 3 Oct 2008 22:18:06 +0000 (22:18 -0000)]
2008-10-04 Mark Probst <mark.probst@gmail.com>
* mini-amd64.c (mono_arch_emit_call): Support stack arguments for
tail calls.
* iltests.il.in: Add test case for tail call with many arguments.
svn path=/trunk/mono/; revision=114807
Jb Evain [Fri, 3 Oct 2008 21:59:40 +0000 (21:59 -0000)]
mark as working
svn path=/trunk/mcs/; revision=114804
Jb Evain [Fri, 3 Oct 2008 21:59:03 +0000 (21:59 -0000)]
2008-10-03 Jb Evain <jbevain@novell.com>
* Expression.cs: make sure we properly test complex generic methods
as a Call candidate.
svn path=/trunk/mcs/; revision=114803
Jb Evain [Fri, 3 Oct 2008 21:38:03 +0000 (21:38 -0000)]
add failing test
svn path=/trunk/mcs/; revision=114802
Miguel de Icaza [Fri, 3 Oct 2008 21:34:34 +0000 (21:34 -0000)]
Sort the options in enable-minimal, and add simd
svn path=/trunk/mono/; revision=114800
Paolo Molaro [Fri, 3 Oct 2008 21:17:58 +0000 (21:17 -0000)]
Fri Oct 3 23:08:06 CEST 2008 Paolo Molaro <lupus@ximian.com>
* Dictionary.cs: by popular demand, return keys/values in insertion
order when possible.
svn path=/trunk/mcs/; revision=114791
Rodrigo Kumpera [Fri, 3 Oct 2008 20:37:36 +0000 (20:37 -0000)]
Initial version.
svn path=/trunk/mcs/; revision=114784
Ivan Zlatev [Fri, 3 Oct 2008 19:51:29 +0000 (19:51 -0000)]
2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
* HtmlElementEventArgs.cs, HtmlWindowCollection.cs:
Cleanup compilation warnings.
svn path=/trunk/mcs/; revision=114777
Rodrigo Kumpera [Fri, 3 Oct 2008 18:28:59 +0000 (18:28 -0000)]
Merge branch 'simd'
svn path=/trunk/mono/; revision=114773
Zoltan Varga [Fri, 3 Oct 2008 18:21:50 +0000 (18:21 -0000)]
2008-10-03 Zoltan Varga <vargaz@gmail.com>
* method-to-ir.c (mono_method_to_ir2): Add an !cfg->compile_aot assert
to the fast virtual generic method code until the aot case is fixed.
svn path=/trunk/mono/; revision=114772
Zoltan Varga [Fri, 3 Oct 2008 18:13:26 +0000 (18:13 -0000)]
2008-10-03 Zoltan Varga <vargaz@gmail.com>
* class.c (mono_class_create_from_typedef): Remove the
#ifndef DISABLE_SIMD stuff.
svn path=/trunk/mono/; revision=114771
Ivan Zlatev [Fri, 3 Oct 2008 18:10:35 +0000 (18:10 -0000)]
2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
* XplatUIWin32.cs: Cleanup compilation warnings.
svn path=/trunk/mcs/; revision=114770
Ivan Zlatev [Fri, 3 Oct 2008 17:59:44 +0000 (17:59 -0000)]
2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
* PropertyGrid.cs: Cleanup compilation warnings.
svn path=/trunk/mcs/; revision=114768
Mark Probst [Fri, 3 Oct 2008 17:33:11 +0000 (17:33 -0000)]
2008-10-03 Mark Probst <mark.probst@gmail.com>
* generic-virtual-invoke.2.cs: Use different instantiations and
iterate the test.
svn path=/trunk/mono/; revision=114767
Marek Safar [Fri, 3 Oct 2008 17:27:36 +0000 (17:27 -0000)]
New test.
svn path=/trunk/mcs/; revision=114765
Marek Safar [Fri, 3 Oct 2008 17:27:09 +0000 (17:27 -0000)]
2008-10-03 Marek Safar <marek.safar@gmail.com>
A fix for bug #431746
* iterators.cs, anonymous.cs: Re-initialize hoisted iterator
parameters when iterator is created.
svn path=/trunk/mcs/; revision=114764
Mark Probst [Fri, 3 Oct 2008 17:14:13 +0000 (17:14 -0000)]
2008-10-03 Mark Probst <mark.probst@gmail.com>
* mini-ppc.c, mini-ppc.h: Implement generic virtual method thunks.
svn path=/trunk/mono/; revision=114762
Mark Probst [Fri, 3 Oct 2008 14:49:36 +0000 (14:49 -0000)]
2008-10-03 Mark Probst <mark.probst@gmail.com>
* mini-amd64.c, mini-amd64.h: Implement generic virtual method
thunks.
2008-10-03 Mark Probst <mark.probst@gmail.com>
* generic-virtual.2.cs: Iterate the test to make the generic
virtual method chunks kick in.
svn path=/trunk/mono/; revision=114756
Zoltan Varga [Fri, 3 Oct 2008 14:48:02 +0000 (14:48 -0000)]
2008-10-03 Zoltan Varga <vargaz@gmail.com>
* invoke.cs: Fix this test after the ConstructorInfo changes.
svn path=/trunk/mono/; revision=114755
Rodrigo Kumpera [Fri, 3 Oct 2008 14:43:03 +0000 (14:43 -0000)]
2008-10-03 Rodrigo Kumpera <rkumpera@novell.com>
* simd-intrinsics.c: Forgot to add this one.
* mini-codegen.c: Fix macro in case SIMD is not supported.
svn path=/trunk/mono/; revision=114754
Rodrigo Kumpera [Fri, 3 Oct 2008 14:28:21 +0000 (14:28 -0000)]
2008-10-03 Rodrigo Kumpera <rkumpera@novell.com>
This patch land initial JIT support for simd intrinsics.
* mini-x86.h: Added new define to make --enable_minimal work on x86.
* Makefile.am: Added simd-intrinsics.c
* simd-intrinsics.c: New file with simd instrinsic related
code.
* cfold.c (mono_constant_fold_ins2): Fold XZERO.
* cpu-x86.md: Add simd related instructions.
* driver.c: Added MONO_OPT_SIMD to the default set of optimizations.
* driver.c: Added two new --regression variants.
* ir-emit.h (MONO_EMIT_NEW_VZERO): Emit XZERO if the type is a simd intrinsic.
* local-propagation.c (mono_local_cprop2): Eliminate useless XMOVE.
* local-propagation.c (mono_local_deadce): Use new macro MONO_IS_NON_FP_MOVE and
extract some complicated logic to helper functions.
* method-to-ir.c (mono_type_to_regmove): Handle simd intrinsics.
* method-to-ir.c (mini_emit_inst_for_method): Emit simd intrinsics.
* method-to-ir.c (mono_handle_global_vregs): If a simd intrinsic was found, apply
the specialized simplification pass.
* method-to-ir.c (mono_spill_global_vars): Use new macro.
* mini-codegen.c: Added SIMD constants to all regbanks arrays.
* mini-codegen.c: Added reg_bank_table_init to initialize the reg desc -> bank
table.
* mini-codegen.c: Define a version of the reg_bank macro that uses desc_to_reg_type
if MONO_ARCH_NEED_SIMD_BANK is defined.
* mini-ops.h: Added the new simd ops.
* mini-x86.c: Added mono_arch_xregname.
* mini-x86.c (mono_arch_cpu_optimizazions): Disable MONO_OPT_SIMD if SSE3 is not detected.
* mini-x86.c (mono_arch_output_basic_block): Add simd related opcodes.
* mini-x86.h: Define simd related MONO_ARCH macros.
* mini.c (mono_type_to_load_membase): Handle simd intrinsics.
* mini.c (mono_type_to_store_membase): Handle simd intrinsics.
* mini.h: Added new macros MONO_IS_NON_FP_MOVE, MONO_IS_REAL_MOVE, MONO_IS_ZERO and
MONO_CLASS_IS_SIMD to deal with simd related IR.
* mini.h (MonoInst): Added spill_var to the backend union.
* mini.h (MonoCompile): Added uses_simd_intrinsics and iconv_raw_var.
* mini.h: Added forward declarations of the new simd fuctions.
* optflags-def.h: Added new optimization names SIMD.
* regalloc.c (mono_regstate_reset): Set next vreg to be the max value of the 3 reg banks.
* regalloc.h: Added support for working with 3 register banks.
* regalloc.h (MonoRegState): Added xsymbolic field if a third regbank is required.
* ssa2.c (mono_ssa_deadce2): Use new MONO_IS_ZERO macro.
svn path=/trunk/mono/; revision=114753
Rodrigo Kumpera [Fri, 3 Oct 2008 14:28:11 +0000 (14:28 -0000)]
2008-10-03 Rodrigo Kumpera <rkumpera@novell.com>
* class-internals.h (MonoClass): Added simd_type bit field.
* class.c (mono_class_create_from_typedef): Check if type is a simd
intrinsic.
svn path=/trunk/mono/; revision=114752
Rodrigo Kumpera [Fri, 3 Oct 2008 14:28:09 +0000 (14:28 -0000)]
2008-10-03 Rodrigo Kumpera <rkumpera@novell.com>
* x86/x86-codegen.h: Add macros and enum for SSE instructions.
svn path=/trunk/mono/; revision=114751
Marek Habersack [Fri, 3 Oct 2008 14:24:08 +0000 (14:24 -0000)]
Refactoring to fix the case when the requested virtual path needs to be recompiled alone, previous approach was incorrect.
svn path=/trunk/mcs/; revision=114750
Zoltan Varga [Fri, 3 Oct 2008 14:21:09 +0000 (14:21 -0000)]
2008-10-03 Zoltan Varga <vargaz@gmail.com>
* stack-overflow.cs: Fix warnings. Add unmanaged tests.
svn path=/trunk/mono/; revision=114749
Zoltan Varga [Fri, 3 Oct 2008 14:17:47 +0000 (14:17 -0000)]
2008-10-03 Zoltan Varga <vargaz@gmail.com>
* mini-exceptions.c (mono_handle_soft_stack_ovf): Fix the previous
change.
svn path=/trunk/mono/; revision=114748
Paolo Molaro [Fri, 3 Oct 2008 14:04:30 +0000 (14:04 -0000)]
Fri Oct 3 16:03:22 CEST 2008 Paolo Molaro <lupus@ximian.com>
* mini-exceptions.c: remove 64 bit related ifdef clutter.
svn path=/trunk/mono/; revision=114747
Mark Probst [Fri, 3 Oct 2008 12:41:29 +0000 (12:41 -0000)]
2008-10-03 Mark Probst <mark.probst@gmail.com>
* generic-virtual-invoke.2.cs: Test for runtime invoking generic
virtual methods.
* Makefile.am: Test added.
svn path=/trunk/mono/; revision=114746
Mark Probst [Fri, 3 Oct 2008 11:58:24 +0000 (11:58 -0000)]
2008-10-03 Mark Probst <mark.probst@gmail.com>
* object.c (mono_method_add_generic_virtual_invocation): Only add
instantiations to the thunk whose count is at least as large as
the threshold.
svn path=/trunk/mono/; revision=114744
Marek Safar [Fri, 3 Oct 2008 10:21:44 +0000 (10:21 -0000)]
New tests.
svn path=/trunk/mcs/; revision=114740
Marek Safar [Fri, 3 Oct 2008 10:21:22 +0000 (10:21 -0000)]
2008-10-03 Marek Safar <marek.safar@gmail.com>
A fix for bug #431827
* expression.cs: Fixed right based pointer arithmetic operations
emit.
svn path=/trunk/mcs/; revision=114739
Atsushi Eno [Fri, 3 Oct 2008 09:44:42 +0000 (09:44 -0000)]
2008-10-03 Atsushi Enomoto <atsushi@ximian.com>
* ja.po : ok, having pending translation could result
in a mess when it is updated by other means.
svn path=/trunk/mono/; revision=114737
Marek Safar [Fri, 3 Oct 2008 08:45:45 +0000 (08:45 -0000)]
2008-10-03 Marek Safar <marek.safar@gmail.com>
A fix for bug #353779
* assign.cs, expression.cs: Fixed compound assignment conversions.
svn path=/trunk/mcs/; revision=114734
Marek Habersack [Fri, 3 Oct 2008 07:53:06 +0000 (07:53 -0000)]
2008-10-03 Marek Habersack <mhabersack@novell.com>
* TemplateParser.cs: make sure the generated class name is a valid
language independent identifier. Fixes bug #431622
2008-10-03 Marek Habersack <mhabersack@novell.com>
* BuildManager.cs: if an assembly fails to build out of a batch of
files, extract the virtual path that was requested by the client
and attempt to compile it alone.
svn path=/trunk/mcs/; revision=114732
Zoltan Varga [Fri, 3 Oct 2008 05:28:26 +0000 (05:28 -0000)]
2008-10-03 Zoltan Varga <vargaz@gmail.com>
* mini-exceptions.c (mono_handle_soft_stack_ovf): Unprotect two pages
instead of one on 64 bit systems.
svn path=/trunk/mono/; revision=114731
Zoltan Varga [Fri, 3 Oct 2008 05:22:50 +0000 (05:22 -0000)]
2008-10-03 Zoltan Varga <vargaz@gmail.com>
* method-to-ir.c: Remove unused includes.
svn path=/trunk/mono/; revision=114730
Gonzalo Paniagua Javier [Thu, 2 Oct 2008 22:09:26 +0000 (22:09 -0000)]
2008-10-02 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
* Test/System.Reflection/ConstructorInfoTest.cs: enable abstract class
test.
* System.Reflection/MonoMethod.cs: throw a MemberAccessException when
trying to invoke a constructor creating an instance of an abstract
class. Return null when an instance of an object was passed as a
parameter when invoking a .ctor.
Fixes bug #324185.
svn path=/trunk/mcs/; revision=114720
Gonzalo Paniagua Javier [Thu, 2 Oct 2008 22:06:03 +0000 (22:06 -0000)]
2008-10-02 Gonzalo Paniagua Javier <gonzalo@novell.com>
* icall.c: changed the Type of the exception thrown when trying to
invoke a constructor on an abstract class. Part of the fix for bug
#324185.
svn path=/trunk/mono/; revision=114719
Jonathan Pobst [Thu, 2 Oct 2008 21:31:03 +0000 (21:31 -0000)]
2008-10-02 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewRow.cs: Only clear the row background if we
are going to paint a new background.
svn path=/trunk/mcs/; revision=114718
Jonathan Pobst [Thu, 2 Oct 2008 21:27:17 +0000 (21:27 -0000)]
2008-10-02 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewCell.cs, DataGridViewColumnHeaderCell.cs,
DataGridViewRowHeaderCell.cs: Remove PaintPartBorder and
use PaintBorder instead.
svn path=/trunk/mcs/; revision=114717
Zoltan Varga [Thu, 2 Oct 2008 21:03:02 +0000 (21:03 -0000)]
2008-10-02 Zoltan Varga <vargaz@gmail.com>
* aot-compiler.c (emit_exception_debug_info): Use jinfo->used_regs instead of
cfg->used_int_regs, since the two are different on arm.
svn path=/trunk/mono/; revision=114713
Jonathan Pobst [Thu, 2 Oct 2008 20:59:59 +0000 (20:59 -0000)]
2008-10-02 Jonathan Pobst <monkey@jpobst.com>
* DataGridView.cs: When CellBorderStyle is set, update the
AdvancedCellBorderStyle to match.
svn path=/trunk/mcs/; revision=114712
Jonathan Pobst [Thu, 2 Oct 2008 20:23:18 +0000 (20:23 -0000)]
2008-10-02 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewCell.cs: Add helper methods to convert Alignment
to TextFormatFlags and align rectangles.
* DataGridViewTextBoxCell.cs: Use Alignment when painting text.
* DataGridViewImageCell.cs: Use Alignment when painting the image.
svn path=/trunk/mcs/; revision=114707
Ivan Zlatev [Thu, 2 Oct 2008 20:21:48 +0000 (20:21 -0000)]
2008-10-02 Ivan N. Zlatev <contact@i-nz.net>
* ToolTip.cs: Display tooltips only for controls on the active
* form.
[Fixes bug #428115]
svn path=/trunk/mcs/; revision=114706
Jonathan Pobst [Thu, 2 Oct 2008 20:16:43 +0000 (20:16 -0000)]
2008-10-02 Jonathan Pobst <monkey@jpobst.com>
* DataGridView.cs: Make OnCellValueNeeded internal.
* DataGridViewCell.cs: Raise the CellValueNeeded event so the
user can supply their own value if they choose.
svn path=/trunk/mcs/; revision=114703
Mark Probst [Thu, 2 Oct 2008 19:46:44 +0000 (19:46 -0000)]
2008-10-02 Mark Probst <mark.probst@gmail.com>
* class.c, class-internals.h (mono_method_get_vtable_index): New
function which returns the index into the vtable and properly
handles inflated virtual generic methods.
2008-10-02 Mark Probst <mark.probst@gmail.com>
* method-to-ir.c, inssel.brg, mini-trampolines.c: Use
mono_method_get_vtable_index() to get the vtable index.
svn path=/trunk/mono/; revision=114701
Marek Safar [Thu, 2 Oct 2008 18:01:46 +0000 (18:01 -0000)]
New test.
svn path=/trunk/mcs/; revision=114691
Marek Safar [Thu, 2 Oct 2008 18:01:32 +0000 (18:01 -0000)]
2008-10-02 Marek Safar <marek.safar@gmail.com>
A fix for bug #375262
* statement.cs: Refactor ArrayForeach to be usable with string
indexer. Optimized single dimentional arrays foreach.
svn path=/trunk/mcs/; revision=114690
Jonathan Pobst [Thu, 2 Oct 2008 16:33:32 +0000 (16:33 -0000)]
2008-10-02 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewColumnHeaderCell.cs: Create a new style object
so the DefaultCellStyle doesn't get changed.
svn path=/trunk/mcs/; revision=114681
Jonathan Pobst [Thu, 2 Oct 2008 16:02:03 +0000 (16:02 -0000)]
2008-10-02 Jonathan Pobst <monkey@jpobst.com>
* ToolStripItem.cs: Check to make sure the owner is actually
changing in InternalOwner before doing any work. Fixes some
failing tests.
svn path=/trunk/mcs/; revision=114676
Mark Probst [Thu, 2 Oct 2008 14:52:25 +0000 (14:52 -0000)]
2008-10-02 Mark Probst <mark.probst@gmail.com>
* method-to-ir.c (mono_method_to_ir2): Don't create native
wrappers for array methods, because they're never called (and if
they were called they wouldn't work).
svn path=/trunk/mono/; revision=114671
Marek Safar [Thu, 2 Oct 2008 14:43:10 +0000 (14:43 -0000)]
New test.
svn path=/trunk/mcs/; revision=114670
Marek Safar [Thu, 2 Oct 2008 14:42:55 +0000 (14:42 -0000)]
2008-10-02 Marek Safar <marek.safar@gmail.com>
A fix for bug #431255
* anonymous.cs, expression.cs: Removed broken optimization.
svn path=/trunk/mcs/; revision=114669
Mark Probst [Thu, 2 Oct 2008 14:19:23 +0000 (14:19 -0000)]
2008-10-02 Mark Probst <mark.probst@gmail.com>
* method-to-ir.c (mono_method_to_ir2): Array methods are
special-cased and must not be invoked indirectly via the (M)RGCTX
when generic sharing is turned on. Fixes #431413.
2008-10-02 Mark Probst <mark.probst@gmail.com>
* bug-431413.2.cs: Test for bug #431413 (multidimensional generic
arrays).
* Makefile.am: Test added.
svn path=/trunk/mono/; revision=114668
Marek Habersack [Thu, 2 Oct 2008 12:03:38 +0000 (12:03 -0000)]
2008-10-02 Marek Habersack <mhabersack@novell.com>
* ScriptManager.cs: Cosmetical output change - the hidden fields are output after the
update panels contents is sent in an async request. It makes the
async response look similar to the MS.NET's one but, more
importantly, makes debugging easier.
svn path=/trunk/mcs/; revision=114660
Marek Habersack [Thu, 2 Oct 2008 10:02:26 +0000 (10:02 -0000)]
2008-10-02 Marek Habersack <mhabersack@novell.com>
* ScriptManager.cs: reverting revision 114552 since the real bug
was somewhere else. The correct fix is to make sure UpdatePanels
which output something _or_ have been named in the POST request as
requiring a refresh are marked as such. Only in that situation
HasBeenRendered returns true (as it should for those panels)
svn path=/trunk/mcs/; revision=114654
Gonzalo Paniagua Javier [Thu, 2 Oct 2008 04:09:54 +0000 (04:09 -0000)]
2008-10-02 Gonzalo Paniagua Javier <gonzalo@novell.com>
* InotifyWatcher.cs: IN_CLOSE_WRITE is triggered when a writable file is
closed, but that does not mean that the file was actually modified.
Fixes bug #323188.
svn path=/trunk/mcs/; revision=114646
Mark Probst [Wed, 1 Oct 2008 21:54:55 +0000 (21:54 -0000)]
2008-10-01 Mark Probst <mark.probst@gmail.com>
* object.c, domain.c, object-internals.h, domain-internals.h:
Generalize IMT thunk machinery to also handle thunks for virtual
generic method invokes. When a virtual generic method is invoked
more than a number of times we insert it into the thunk so that it
can be called without lookup in unmanaged code.
* generic-sharing.c, class-internals.h: Fetching a
MonoGenericInst* for a method from an (M)RGCTX.
2008-10-01 Mark Probst <mark.probst@gmail.com>
* method-to-ir.c: When generic sharing is active, call
non-interface virtual generic methods via the standard trampoline.
* mini-trampolines.c: Handle virtual generic shared methods.
* mini.h, mini-x86.c, mini-x86.h: New argument for
mono_arch_build_imt_thunk() which is non-NULL for virtual generic
method thunks and which is the trampoline to call if the lookup
fails. Enable the virtual generic method thunk for x86.
* mini-amd64.c, mini-arm.c, mini-ia64.c, mini-sparc.c,
mini-ppc.c (mono_arch_build_imt_thunk): Add the additional
argument but assert that it's NULL, because these archs don't yet
implement the virtual generic method thunk. Changes in the IMT
thunk data structures.
svn path=/trunk/mono/; revision=114630
Jonathan Pobst [Wed, 1 Oct 2008 21:48:01 +0000 (21:48 -0000)]
2008-10-01 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewColumnHeaderCell.cs: Correctly calculate style.
* DataGridView.cs: Use a column header's inherited style instead
of just using the default.
svn path=/trunk/mcs/; revision=114628
Zoltan Varga [Wed, 1 Oct 2008 20:57:40 +0000 (20:57 -0000)]
Revert r114538, vc++ compiled code uses byref return types.
svn path=/trunk/mono/; revision=114623
Jonathan Pobst [Wed, 1 Oct 2008 20:48:41 +0000 (20:48 -0000)]
2008-10-01 Jonathan Pobst <monkey@jpobst.com>
* SplitContainer.cs: Raise SplitterMoved when the splitter is
moved through code.
svn path=/trunk/mcs/; revision=114619
Zoltan Varga [Wed, 1 Oct 2008 20:39:52 +0000 (20:39 -0000)]
2008-10-01 Zoltan Varga <vargaz@gmail.com>
* aot-compiler.c (emit_globals): Avoid invalid characters in
the static linking symbol.
svn path=/trunk/mono/; revision=114617
Mario Carrion [Wed, 1 Oct 2008 20:12:52 +0000 (20:12 -0000)]
2008-10-01 Mario Carrion <mcarrion@novell.com>
* ScrollBar.cs: Internal property added: UIAThumbPosition.
svn path=/trunk/mcs/; revision=114608
Jonathan Pobst [Wed, 1 Oct 2008 19:25:38 +0000 (19:25 -0000)]
2008-10-01 Jonathan Pobst <monkey@jpobst.com>
* ToolStripOverflowButton.cs: Use InternalOwner instead of Owner.
svn path=/trunk/mcs/; revision=114606
Jonathan Pobst [Wed, 1 Oct 2008 19:21:17 +0000 (19:21 -0000)]
2008-10-01 Jonathan Pobst <monkey@jpobst.com>
* ToolStripItem.cs: When the user sets Owner, we need to remove
it from its previous owner and then add it to the new owner's
item collection. Also, create InternalOwner, so we can set the owner
that doesn't do this new stuff.
* ToolStripItemCollection.cs: Use InternalOwner instead of Owner.
svn path=/trunk/mcs/; revision=114603
Marek Safar [Wed, 1 Oct 2008 19:09:52 +0000 (19:09 -0000)]
2008-10-01 Marek Safar <marek.safar@gmail.com>
* anonymous.cs: Use full type parameters of parent generic
containers. Removed unnecessary AddParentStoreyReference call.
svn path=/trunk/mcs/; revision=114602
Jonathan Pobst [Wed, 1 Oct 2008 18:42:02 +0000 (18:42 -0000)]
2008-10-01 Jonathan Pobst <monkey@jpobst.com>
* ToolStripItem.cs: When our parent changes, recalculate our text
size, since we may be getting our Font from our parent. When our
owner's Font changes, recalculate ourselves as we may be using
that font.
svn path=/trunk/mcs/; revision=114600
Zoltan Varga [Wed, 1 Oct 2008 18:34:30 +0000 (18:34 -0000)]
2008-10-01 Zoltan Varga <vargaz@gmail.com>
* objects.cs: Add a test for the range check optimization. Fix warnings.
svn path=/trunk/mono/; revision=114599