mono.git
15 years ago2008-08-19 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 19 Aug 2008 00:01:08 +0000 (00:01 -0000)]
2008-08-19  Zoltan Varga  <vargaz@gmail.com>

* aot-runtime.c (decode_klass_ref): Add support for VARs/MVARs.

* aot-compiler.c (encode_klass_ref): Encode is_method too for VARs/MVARs.

* method-to-ir.c (emit_get_rgctx_method): Use MONO_PATCH_INFO_METHODCONST
as the patch type.

* mini.c (mono_resolve_patch_target): Ditto.

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

15 years ago2008-08-19 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 19 Aug 2008 00:00:55 +0000 (00:00 -0000)]
2008-08-19  Zoltan Varga  <vargaz@gmail.com>

* aot-runtime.c (decode_klass_ref): Add support for VARs/MVARs.

* aot-compiler.c (encode_klass_ref): Encode is_method too for VARs/MVARs.

* method-to-ir.c (emit_get_rgctx_method): Use MONO_PATCH_INFO_METHODCONST
as the patch type.

* mini.c (mono_resolve_patch_target): Ditto.

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

15 years ago2008-08-19 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 18 Aug 2008 23:10:28 +0000 (23:10 -0000)]
2008-08-19  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (encode_patch): Add support for RGCTX_FETCH.
(encode_klass_ref): Add support for encoding VARs/MVARs.

* mini.c (mono_patch_info_dup_mp): Handle RGCTX_FETCH.

* aot-runtime.c (decode_patch_info): Rename to 'decode_patch'. Split out
the handling of the got entries into a separate 'decode_got_entry' function.
Add support for RGCTX_FETCH.

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

15 years ago2008-08-19 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 18 Aug 2008 23:04:02 +0000 (23:04 -0000)]
2008-08-19  Zoltan Varga  <vargaz@gmail.com>

* tramp-amd64.c mini-amd64.h: Change the VTABLE_REG to RDI since RAX is
clobbered by the trampoline code.

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

15 years ago2008-08-19 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 18 Aug 2008 22:03:54 +0000 (22:03 -0000)]
2008-08-19  Zoltan Varga  <vargaz@gmail.com>

* tramp-amd64.c mini-amd64.h: Change the VTABLE_REG to RAX since that is
not clobbered by the indirect calling code.

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

15 years agoIn .:
Rodrigo Kumpera [Mon, 18 Aug 2008 20:59:54 +0000 (20:59 -0000)]
In .:
2008-08-18 Rodrigo Kumpera  <rkumpera@novell.com>

* mempool-internals.h: Header for mono private mempool functions. The first
two function are for allocating glib linked lists using pools.

* mempool.c: Added g_list_prepend_mempool and g_slist_prepend_mempool.

* Makefile.am: Added mempool-internals.h.

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

15 years ago2008-08-18 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 18 Aug 2008 20:45:46 +0000 (20:45 -0000)]
2008-08-18  Zoltan Varga  <vargaz@gmail.com>

* mini-x86.c (mono_arch_patch_code): Handle RGCTX_FETCH/GENERIC_CLASS_INIT
to fix the build.

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

15 years ago2008-08-18 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Mon, 18 Aug 2008 20:29:38 +0000 (20:29 -0000)]
2008-08-18  Jonathan Pobst  <monkey@jpobst.com>

* ListBox.cs: Fix CopyTo implementation.
[Fixes bug #409169]

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

15 years agoIn .:
Rodrigo Kumpera [Mon, 18 Aug 2008 20:16:26 +0000 (20:16 -0000)]
In .:
2008-08-18  Rodrigo Kumpera  <rkumpera@novell.com>

* method-to-ir.c (mono_emit_method_call_full): Alloc the constructor
signature using the compilation mempool otherwise we would leak it.

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

15 years ago2008-08-18 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Mon, 18 Aug 2008 20:15:14 +0000 (20:15 -0000)]
2008-08-18  Jonathan Pobst  <monkey@jpobst.com>

* ListBox.cs: Fix CopyTo implementation.
[Fixes bug #409169]

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

15 years ago2008-08-18 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 18 Aug 2008 19:59:41 +0000 (19:59 -0000)]
2008-08-18  Zoltan Varga  <vargaz@gmail.com>

* method-to-ir.c (mono_method_to_ir2): Emit the generic class inits using
mono_emit_abs_call ().

* patch-info.h: Add GENERIC_CLASS_INIT.

* mini.c (mono_resolve_patch_target): Handle GENERIC_CLASS_INIT.

* mini-amd64.c (emit_call_body): Treat abs calls which have a patch info
as their target as a near call.

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

15 years ago2008-08-18 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Mon, 18 Aug 2008 19:49:08 +0000 (19:49 -0000)]
2008-08-18  Marek Habersack  <mhabersack@novell.com>

* TemplateControlCompiler.cs: process expression when they are
used used in values of attributes without associated
properties. Fixes bug #417883

* ResourceExpressionBuilder.cs: added two overloads of
CreateGetLocalResourceObject to encompass cases when the generated
expression is not assigned to a property but rather used as a
parameter to the SetAttribute method. Fixes bug #417883

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

15 years ago2008-08-18 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 18 Aug 2008 19:13:20 +0000 (19:13 -0000)]
2008-08-18  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mono_codegen): Handle patches stored in cfg->abs_patches in the
ABS handling code.
(mono_resolve_patch_target): Add support for MONO_PATCH_INFO_RGCTX_FETCH.

* method-to-ir.c (mono_emit_abs_call): New helper function which emits a
call to a runtime function described by a patch.

* method-to-ir.c: Emit rgctx entry fetches and class init trampolines using
mono_emit_abs_call, this has the advantage that the ABS handling code in
mono_codegen () can handle them both, and can handle other stuff in the
future without additional code.

* mini.h (struct MonoJumpInfoRgctxEntry): New structure describing an rgctx
entry.
(MonoCompile): Add 'abs_patches' hashtable, which contains patches describing
abs addresses.

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

15 years ago2008-08-18 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 18 Aug 2008 18:00:19 +0000 (18:00 -0000)]
2008-08-18  Zoltan Varga  <vargaz@gmail.com>

* mini.h: Add missing bblock related prototypes.

* mini.h (MonoCompile): Remove unused reverse_inst_list and
reverse_inst_list_len fields.

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

15 years ago2008-08-19 Geoff Norton <gnorton@novell.com>
Geoff Norton [Mon, 18 Aug 2008 17:52:10 +0000 (17:52 -0000)]
2008-08-19  Geoff Norton  <gnorton@novell.com>

        * WebClient_2_1.cs: Keep a reference to the tick callback until its completed.

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

15 years ago2008-08-18 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 18 Aug 2008 17:29:15 +0000 (17:29 -0000)]
2008-08-18  Sebastien Pouliot  <sebastien@ximian.com>

* X509Certificate[20].cs: Silverlight 2.0 does not implement either
IDeserializationCallback or ISerializable interfaces for this type.

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

15 years ago2008-08-18 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 18 Aug 2008 15:51:48 +0000 (15:51 -0000)]
2008-08-18  Zoltan Varga  <vargaz@gmail.com>

* mini.c: Refactor this file a bit by moving branch optimizations to
branch-opts.c.

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

15 years ago2008-08-18 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Mon, 18 Aug 2008 15:11:50 +0000 (15:11 -0000)]
2008-08-18  Jonathan Pobst  <monkey@jpobst.com>

* ThemeWin32Classic.cs: Use ClientRectangle instead of Bounds when
drawing a ComboBox's background.  Fixes bad disabled rendering when
the control is not at 0,0.
[Fixes bug #416063]

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

15 years ago2008-08-18 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 18 Aug 2008 14:30:48 +0000 (14:30 -0000)]
2008-08-18  Zoltan Varga  <vargaz@gmail.com>

* method-to-ir.c: Merge generic sharing changes missed earlier.

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

15 years ago2008-08-18 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Mon, 18 Aug 2008 14:27:46 +0000 (14:27 -0000)]
2008-08-18  Marek Habersack  <mhabersack@novell.com>

* Unit.cs: rewrote the unit parser in a slightly slower, but more
correct, way. Fixes bug #417502

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

15 years ago2008-08-18 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 18 Aug 2008 13:13:32 +0000 (13:13 -0000)]
2008-08-18  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (is_shared_got_patch): Add MONO_PATCH_INFO_METHODCONST.

* aot-runtime.c (decode_patch_info): Refactor the code dealing with the
shared patches. Process METHODCONST as a shared patch.

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

15 years ago2008-08-18 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Mon, 18 Aug 2008 10:21:44 +0000 (10:21 -0000)]
2008-08-18  Marek Habersack  <mhabersack@novell.com>

* Numeric.cs: Max/Min operations do not convert string
IConvertibles to double - they perform a simple string compare
instead.

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

15 years ago2008-08-18 Geoff Norton <gnorton@novell.com>
Geoff Norton [Mon, 18 Aug 2008 03:12:39 +0000 (03:12 -0000)]
2008-08-18  Geoff Norton  <gnorton@novell.com>

        * WebRequest_2_1.cs: Set a delegate callback for BrowserHttpWebRequest
        to update progress.
        * WebClient_2_1.cs: Refactor the OnDownloadedChanged method, as its already
        emitting on the right thread.  Clean up the OnOpenReadCompleted method.
        Set a delegate callback for BrowserHttpWebRequest to updated Progress.

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

15 years ago2008-08-18 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 18 Aug 2008 02:13:52 +0000 (02:13 -0000)]
2008-08-18  Zoltan Varga  <vargaz@gmail.com>

* liveness.c (mono_analyze_liveness): Disable the liveness2 code for now
as it crashes on the 2.0 mscorlib.

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

15 years ago2008-08-18 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 18 Aug 2008 00:06:54 +0000 (00:06 -0000)]
2008-08-18  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c: Use is_plt_patch () in a few additional places.
(is_shared_got_patch): Add MONO_PATCH_INFO_METHODCONST, which is generated
by IMT.

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

15 years ago2008-08-18 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 17 Aug 2008 23:07:29 +0000 (23:07 -0000)]
2008-08-18  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c: Reorganize the got handling code to be a bit more
understandable.

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

15 years ago2008-08-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 17 Aug 2008 21:52:42 +0000 (21:52 -0000)]
2008-08-17  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c: Make the patch_to_plt_offset hash table use
mono_patch_info_equals/hash, and use it to massively simplify
get_plt_index ().

* mini.c (mono_patch_info_hash): Simplify this and add support for
more patch types.

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

15 years ago2008-08-17 Geoff Norton <gnorton@novell.com>
Geoff Norton [Sun, 17 Aug 2008 21:45:54 +0000 (21:45 -0000)]
2008-08-17  Geoff Norton  <gnorton@novell.com>

        * WebRequest_2_1.cs: We support relative URI's now.

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

15 years ago2008-08-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 17 Aug 2008 21:23:31 +0000 (21:23 -0000)]
2008-08-17  Zoltan Varga  <vargaz@gmail.com>

* patch-info.h: Rename RGCTX_LAZY_FETCH_TRAMPOLINE to just RGCTX_FETCH.

* mini.c aot-compiler.c aot-runtime.c: Revert the LAZY_FETCH_TRAMPOLINE
handling code, since an offset is not enough to identify a trampoline.

* method-to-ir.c: Remove some g_assert (!cfg->compile_aot) lines.

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

15 years agoFix the build.
Zoltan Varga [Sun, 17 Aug 2008 19:43:41 +0000 (19:43 -0000)]
Fix the build.

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

15 years ago2008-08-17 Mark Probst <mark.probst@gmail.com>
Mark Probst [Sun, 17 Aug 2008 11:59:05 +0000 (11:59 -0000)]
2008-08-17  Mark Probst  <mark.probst@gmail.com>

* mini.c (mono_op_imm_to_op): Add case for OP_IMUL_IMM.

* method-to-ir.c (mono_method_to_ir2): Decompose OP_CKFINITE.

* mini-ops.h: Argument and result types for OVF_CARRY ops.

* decompose.c: PPC decompositions for various ops.

* cpu-ppc.md, inssel-ppc.brg, mini-ppc.c: PPC changes for Linear IL.

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

15 years ago2008-08-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 17 Aug 2008 00:11:25 +0000 (00:11 -0000)]
2008-08-17  Zoltan Varga  <vargaz@gmail.com>

* tramp-amd64.c (mono_arch_create_rgctx_lazy_fetch_trampoline): Make this
call the generic trampoline code using a call, instead of a jump, to
remove some special casing from the generic trampoline code.

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

15 years ago2008-08-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 16 Aug 2008 23:45:02 +0000 (23:45 -0000)]
2008-08-17  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mono_resolve_patch_target): Handle LAZY_FETCH_TRAMPOLINE.
(mono_codegen): Ditto.

* aot-compiler.c aot-runtime.c: Ditto.

* patch-info.h: Add MONO_PATCH_INFO_RGCTX_LAZY_FETCH_TRAMPOLINE.

* mini-trampolines.c (mono_find_rgctx_lazy_fetch_trampoline_by_addr): New
helper function to find the offset corresponding to a lazy fetch trampoline.

* mini.h (MonoCompile): Add 'orig_method' field to hold the original method
when doing generic sharing.

* aot-compiler.c: Use cfg->orig_method instead of cfg->method in a lot of
places.

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

15 years ago2008-08-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 16 Aug 2008 22:49:49 +0000 (22:49 -0000)]
2008-08-17  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mono_create_rgctx_lazy_fetch_trampoline): Move this to
mini-trampolines.c to be with the other trampoline creation functions.

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

15 years ago2008-08-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 16 Aug 2008 22:34:50 +0000 (22:34 -0000)]
2008-08-17  Zoltan Varga  <vargaz@gmail.com>

* method-to-ir.c (mono_emit_method_call): Remove the 'signature' argument
as it is equal to method->signature in most cases, add a
mono_emit_method_call_full variant which takes a signature and an imt
argument as well.

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

15 years ago2008-08-16 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 16 Aug 2008 20:12:55 +0000 (20:12 -0000)]
2008-08-16  Zoltan Varga  <vargaz@gmail.com>

* jit-icalls.c (mono_helper_compile_generic_method): Don't pass the context
to this function, since it could be computed easily from the method
argument.
(mono_helper_compile_generic_method_wo_context): Removed, not needed any
more.

* method-to-ir.c mini.c: Remove references to
compile_generic_method_wo_context.

* method-to-ir.c (mono_method_to_ir2): Enable AOT for virtual
generic method calls.

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

15 years ago2008-08-16 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 16 Aug 2008 19:41:22 +0000 (19:41 -0000)]
2008-08-16  Zoltan Varga  <vargaz@gmail.com>

* method-to-ir.c (mono_method_to_ir2): Use mono_array_new_1 for 1
dimensional non-szarrays.

* mini.c (mini_init): Register mono_array_new_1.

* jit-icalls.c (mono_array_new_1): New jit icall.

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

15 years ago2008-08-16 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 16 Aug 2008 15:48:06 +0000 (15:48 -0000)]
2008-08-16  Zoltan Varga  <vargaz@gmail.com>

* mini-trampolines.c (mono_magic_trampoline): For jumps, patch the GOT entries
pointing to the method.

* aot-runtime.c (mono_aot_get_method_from_token): Register GOT slots holding
method addresses belonging to METHOD_JUMP patches in the
jump_target_got_slot_hash.
(mono_aot_load_method): Ditto.

* aot-compiler.c (compile_method): Allow AOT compilation of methods with
METHOD_JUMP patches.

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

15 years ago2008-08-16 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 16 Aug 2008 15:45:58 +0000 (15:45 -0000)]
2008-08-16  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mini_create_jit_domain_info): New helper function which
initializes/frees domain->runtime_info.
(mini_free_jit_domain_info): Ditto.
(mini_init): Install the domain hook functions with the runtime.

* mini.h (MonoJitDomainInfo): New structure which stores the domain specific
information maintained by the JIT.

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

15 years ago2008-08-16 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 16 Aug 2008 15:43:58 +0000 (15:43 -0000)]
2008-08-16  Zoltan Varga  <vargaz@gmail.com>

* domain.c (mono_domain_create): Call the JIT domain hook if installed.
(mono_domain_free): Ditto.

* domain-internals.h (struct _MonoDomain): Add 'runtime_info' field, this could
be used by the JIT to store its domain-specific information, instead of putting
it directly into MonoDomain.

* domain.c (mono_install_create_domain_hook): New helper function to install
a hook which initializes domain->runtime_info.

* domain.c (mono_install_free_domain_hook): Ditto.

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

15 years ago2008-08-16 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 16 Aug 2008 15:00:32 +0000 (15:00 -0000)]
2008-08-16  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mono_resolve_patch_target): For PATCH_INFO_METHOD_JUMP, move the
insertion into jump_table_hash into mono_codegen (), also implement proper
locking.

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

15 years ago* SmtpClient.cs: Fixed paramname of Argument(Null)Exceptions to match
Gert Driesen [Sat, 16 Aug 2008 12:34:38 +0000 (12:34 -0000)]
* SmtpClient.cs: Fixed paramname of Argument(Null)Exceptions to match
MS. Removed upper limit check for Port. Modified Send to no longer
allow a whitespace-only Host. Moved checks for SpecifiedPickupDirectory
delivery method to SendFile, and use Path.IsPathRooted to check for
absolute paths instead of using a unix-only check. In Send, wrap all
non-SMTP errors in an SmtpException.
* SmtpException.cs: Correctly chain up all .ctors. Removed extra
null check in deserialization .ctor.
* SmtpClientTest.cs: Added property tests. Added Send argument check
tests.
* SmtpExceptionTest.cs: Added .ctor and GetObjectData tests.
* System_test.dll.sources: Added SmtpExceptionTest.cs.

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

15 years ago* ExceptionCas.cs: Sync with method name change in ExceptionTest.cs.
Gert Driesen [Sat, 16 Aug 2008 12:04:13 +0000 (12:04 -0000)]
* ExceptionCas.cs: Sync with method name change in ExceptionTest.cs.

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

15 years ago2008-08-16 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 16 Aug 2008 11:43:18 +0000 (11:43 -0000)]
2008-08-16  Zoltan Varga  <vargaz@gmail.com>

* method-to-ir.c (mono_method_to_ir2): Don't disable AOT for CEE_JMP and
tail calls, it is already done by the aot code.

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

15 years ago2008-08-16 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Sat, 16 Aug 2008 11:18:51 +0000 (11:18 -0000)]
2008-08-16  Ivan N. Zlatev  <contact@i-nz.net>

* GridEntry.cs: Leave the ICustomTypeDescriptor handling up to the
ComponentModel layer, which will properly prioritize the attributes.
Avoids wrong prioritization of duplicate attributes when retrieving
the converter and editor.
[Fixes bug #417729]

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

15 years ago2008-08-16 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 16 Aug 2008 11:10:56 +0000 (11:10 -0000)]
2008-08-16  Zoltan Varga  <vargaz@gmail.com>

* method-to-ir.c (mono_method_to_ir2): Handle CEE_JMP using the tail call
mechanism on amd64.

* iltests.il.in: Make the jmp test a bit more complex.

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

15 years ago2008-08-16 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 16 Aug 2008 11:07:45 +0000 (11:07 -0000)]
2008-08-16  Zoltan Varga  <vargaz@gmail.com>

* jmpTest.il: Removed, there is already a test for this in mini/iltests.il.

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

15 years ago* ExceptonTest.cs: Added GetObjectData and deserialization ctor tests.
Gert Driesen [Sat, 16 Aug 2008 10:49:12 +0000 (10:49 -0000)]
* ExceptonTest.cs: Added GetObjectData and deserialization ctor tests.
Added/improved tests for Source, HResult and StackTrace. Use Assert
instead of deriving from TestCase.
* Exception.cs: Fixed value of HResult to match MS. Added support for
(de)serializing Data. Use deserialized ClassName, if available, to
when name of type is used.

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

15 years ago* StreamWriterTest.cs: Only check paramname for buffersize exception on
Gert Driesen [Sat, 16 Aug 2008 09:39:34 +0000 (09:39 -0000)]
* StreamWriterTest.cs: Only check paramname for buffersize exception on
2.0 profile.

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

15 years ago* StreamWriterTest.cs: Removed Constructor2_Path_Whitespace test, as
Gert Driesen [Sat, 16 Aug 2008 09:37:01 +0000 (09:37 -0000)]
* StreamWriterTest.cs: Removed Constructor2_Path_Whitespace test, as
it only applies to Windows (and is duplicate for illegal chars test).
Only check paramname for buffersize exception on 2.0 profile.

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

15 years agoupdate to changes in compiler/libraries
Raja R Harinath [Sat, 16 Aug 2008 03:42:28 +0000 (03:42 -0000)]
update to changes in compiler/libraries

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

15 years ago2008-08-16 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 15 Aug 2008 23:50:35 +0000 (23:50 -0000)]
2008-08-16  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (encode_method_ref): Handle references to normal methods of
generic instances which doesn't have a token.

* aot-runtime.c (decode_method_ref): Ditto.

* method-to-ir.c (handle_unbox_nullable): Don't disable AOT, the aot code
can handle this case now.
(handle_box): Ditto.

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

15 years ago* StreamWriter.cs: Change argument check for buffersize to require
Gert Driesen [Fri, 15 Aug 2008 22:00:24 +0000 (22:00 -0000)]
* StreamWriter.cs: Change argument check for buffersize to require
positive number. Removed duplicate disposed check for AutoFlush.
Removed unnecessary initialization of bools.
* StreamWriterTest.cs: Added more .ctor tests. Enabled AutoFlush
test.

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

15 years ago* StreamWriter.cs: Removed duplicate argument checks from .ctor taking
Gert Driesen [Fri, 15 Aug 2008 21:18:10 +0000 (21:18 -0000)]
* StreamWriter.cs: Removed duplicate argument checks from .ctor taking
path, as these checks are already done in FileStream .ctor. Removed
parameter name from ArgumentException to match MS.
* StreamWriterTest.cs: Moved ctor argument checks to separate methods.
Added and improved ctor tests. Added test for Close. Improved
(Auto)Flush tests. Use Assert class instead of Assertion.

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

15 years ago2008-07-23 Martin Baulig <martin@ximian.com>
Martin Baulig [Fri, 15 Aug 2008 18:43:33 +0000 (18:43 -0000)]
2008-07-23  Martin Baulig  <martin@ximian.com>

*** Merged this from trunk revision 108527 ***

* statement.cs
(ExplicitBlock.EmitSymbolInfo): Moved to `ToplevelBlock'.
(ToplevelBlock.EmitSymbolInfo): Tell the symbol writer about the
scope variable.

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

15 years ago2008-08-15 Geoff Norton <gnorton@novell.com>
Geoff Norton [Fri, 15 Aug 2008 18:13:23 +0000 (18:13 -0000)]
2008-08-15  Geoff Norton  <gnorton@novell.com>

* mini-x86.c: Fix alignment on Apple x86, and re-disable the alignment
debugging check.

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

15 years agoNew test.
Marek Safar [Fri, 15 Aug 2008 17:58:11 +0000 (17:58 -0000)]
New test.

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

15 years agoNew tests.
Marek Safar [Fri, 15 Aug 2008 17:52:59 +0000 (17:52 -0000)]
New tests.

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

15 years ago2008-08-15 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 15 Aug 2008 17:52:43 +0000 (17:52 -0000)]
2008-08-15  Marek Safar  <marek.safar@gmail.com>

* ecore.cs, linq.cs, const.cs, expression.cs, statement.cs: More robust
error checks.

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

15 years ago2008-08-15 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 15 Aug 2008 17:03:06 +0000 (17:03 -0000)]
2008-08-15  Zoltan Varga  <vargaz@gmail.com>

* method-to-ir.c (mono_method_to_ir2): Allow AOT compilation of methods
calling generic methods.

* aot-compiler.c (encode_patch): Handle MONO_PATCH_INFO_METHOD_RGCTX.

* aot-runtime.c (decode_patch_info): Ditto.

* mini.c (mono_resolve_patch_target): Ditto.

* patch-info.h: Add METHOD_RGCTX.

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

15 years ago2008-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Fri, 15 Aug 2008 16:58:04 +0000 (16:58 -0000)]
2008-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* XplatUIX11.cs: Increase the interval for the Timer, to not fire our
pseudo motion HandleMouseOver method so aggresive. Also, don't call it
when the pointer is actually in motion, but only when the pointer
seems to stop (as .net does).
Fixes part of #381876.

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

15 years ago2008-08-15 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 15 Aug 2008 13:34:03 +0000 (13:34 -0000)]
2008-08-15  Zoltan Varga  <vargaz@gmail.com>

* marshal.c (mono_delegate_end_invoke): Raise an exception instead of
asserting if the ares parameter is null.

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

15 years ago2008-08-15 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Fri, 15 Aug 2008 12:37:46 +0000 (12:37 -0000)]
2008-08-15  Ivan N. Zlatev  <contact@i-nz.net>

* GridEntry.cs: Perform stricter check for the ParentEntry's
PropertyDescriptor/PropertyOwner for the ICustomTypeDescriptor
implementation.
[Fixes bug #417567]

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

15 years agoNew tests.
Marek Safar [Fri, 15 Aug 2008 11:26:22 +0000 (11:26 -0000)]
New tests.

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

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

* delegate.cs: Fixed compiler crash when creating delegate using partial
method.

* typemanager.cs: MulticastDelegate is not a delegate.

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

15 years agoRevert broken change
Marek Safar [Fri, 15 Aug 2008 10:01:39 +0000 (10:01 -0000)]
Revert broken change

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

15 years ago2008-08-15 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 15 Aug 2008 07:29:37 +0000 (07:29 -0000)]
2008-08-15  Atsushi Enomoto  <atsushi@ximian.com>

* IPInterfaceProperties.cs, UnicastIPAddressInformation.cs,
  UnicastIPAddressInformationCollection.cs : fixed bug #416526, based
  on the patch by Fredrik Kling. support UnicastIPAddressInformation
  on win32.

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

15 years ago2008-08-15 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 15 Aug 2008 05:56:20 +0000 (05:56 -0000)]
2008-08-15  Atsushi Enomoto  <atsushi@ximian.com>

* SmtpClient.cs : fixed bug #382670, based on the patch by Ted
  Unangst. DeriveryMethod.SpecifiedPickupDirectory was not supported.

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

15 years ago2008-08-15 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 15 Aug 2008 01:08:21 +0000 (01:08 -0000)]
2008-08-15  Zoltan Varga  <vargaz@gmail.com>

* mono-perfcounters.c: Fix warnings.

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

15 years ago2008-08-15 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 15 Aug 2008 01:06:36 +0000 (01:06 -0000)]
2008-08-15  Zoltan Varga  <vargaz@gmail.com>

* marshal.c (mono_marshal_get_delegate_begin_invoke): Don't set save_lmf, it
is not needed, don't check for interruptions either.
(mono_marshal_get_delegate_end_invoke): Ditto.

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

15 years ago2008-08-15 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 15 Aug 2008 00:44:21 +0000 (00:44 -0000)]
2008-08-15  Zoltan Varga  <vargaz@gmail.com>

* mini-amd64.c (mono_arch_output_basic_block): Optimize LOCALLOC_IMM.

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

15 years ago2008-08-15 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Thu, 14 Aug 2008 23:38:07 +0000 (23:38 -0000)]
2008-08-15  Marek Habersack  <mhabersack@novell.com>

* mono-perfcounters.c (predef_readonly_counter): added support for
reading the ASP.NET Requests Queued counter from another process.

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

15 years ago2008-08-14 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 14 Aug 2008 20:15:48 +0000 (20:15 -0000)]
2008-08-14  Zoltan Varga  <vargaz@gmail.com>

* mini-amd64.c (mono_arch_emit_call): Nullify call->vret_var if returning
arguments in registers.

* decompose.c (mono_decompose_vtype_opts): Create a var for the vreg in
OP_VCALL too, don't depend on OP_OUTARG_VTRETADDR doing it.

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

15 years ago2007-08-14 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 14 Aug 2008 20:09:21 +0000 (20:09 -0000)]
2007-08-14  Marek Safar  <marek.safar@gmail.com>

* Enumerable.cs (Cast): Simplified.

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

15 years ago2008-08-14 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 14 Aug 2008 19:42:02 +0000 (19:42 -0000)]
2008-08-14  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mini_method_compile): Abort aot compilation for generic
methods if generic sharing is disabled.

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

15 years ago2008-08-14 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 14 Aug 2008 19:39:31 +0000 (19:39 -0000)]
2008-08-14  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mono_method_to_ir): Disable AOT for virtual calls requiring
an mrgctx.

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

15 years ago2008-08-14 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 14 Aug 2008 19:36:31 +0000 (19:36 -0000)]
2008-08-14  Zoltan Varga  <vargaz@gmail.com>

* method-to-ir.c (mono_method_to_ir2): Disable AOT for virtual calls requiring
an mrgctx.

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

15 years agoUpdate.
Marek Safar [Thu, 14 Aug 2008 19:33:21 +0000 (19:33 -0000)]
Update.

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

15 years ago2008-08-14 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Thu, 14 Aug 2008 18:50:46 +0000 (18:50 -0000)]
2008-08-14  Marek Habersack  <mhabersack@novell.com>

* Makefile: allow compiling with the DEBUG, TRACE and MONO_TRACE
preprocessor symbols defined.

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

15 years ago2008-08-14 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Thu, 14 Aug 2008 18:42:15 +0000 (18:42 -0000)]
2008-08-14  Marek Habersack  <mhabersack@novell.com>

* AspGenerator.cs: do not ignore directives inside HTML comments.

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

15 years ago2008-08-14 Geoff Norton <gnorton@novell.com>
Geoff Norton [Thu, 14 Aug 2008 18:38:37 +0000 (18:38 -0000)]
2008-08-14  Geoff Norton  <gnorton@novell.com>

        * WindowHandler.cs: Revert the change which didn't set ActiveWindow
        here and fix the problem in the driver.  Fully fixes #393317.

2008-08-01  Geoff Norton  <gnorton@novell.com>

        * CarbonCursor.cs: If the window doesn't have a cursor set, revert
        to the default.  Fixes #411114.

2008-07-31  Geoff Norton  <gnorton@novell.com>

        * WindowHandler.cs: Dont set ActiveWindow when emitting the event,
        its set when the event is handled.  Fixes #393317.

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

15 years ago2008-08-14 Geoff Norton <gnorton@novell.com>
Geoff Norton [Thu, 14 Aug 2008 18:38:30 +0000 (18:38 -0000)]
2008-08-14  Geoff Norton  <gnorton@novell.com>

        * XplatUICarbon.cs: Properly implement PeekMessage and DoEvents.
        Fixes #396983.  Properly fix ActiveWindow trackin and do not
        prematurely show POPUP windows.

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

15 years ago2008-08-14 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 14 Aug 2008 18:13:42 +0000 (18:13 -0000)]
2008-08-14  Zoltan Varga  <vargaz@gmail.com>

* decompose.c (mono_decompose_vtype_opts): Emit the correct sized
store instructions when converting a vcall to a normal call.

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

15 years agoNew tests.
Marek Safar [Thu, 14 Aug 2008 17:40:42 +0000 (17:40 -0000)]
New tests.

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

15 years ago2008-08-14 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 14 Aug 2008 17:40:20 +0000 (17:40 -0000)]
2008-08-14  Marek Safar  <marek.safar@gmail.com>

* expression.cs, ecore.cs, anonymous.cs, class.cs: Fixed missing error
checks.

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

15 years ago* mcs/cs-parser.jay (type): Allow 'var' in mcs too.
Raja R Harinath [Thu, 14 Aug 2008 16:07:10 +0000 (16:07 -0000)]
* mcs/cs-parser.jay (type): Allow 'var' in mcs too.
(local_variable_type): Likewise.
* tests, errors: Run 'var' tests with mcs too.

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

15 years ago* TypeBuilderTest.cs (DefineCtorUsingDefineMethod): Use a
Raja R Harinath [Thu, 14 Aug 2008 16:06:47 +0000 (16:06 -0000)]
* TypeBuilderTest.cs (DefineCtorUsingDefineMethod): Use a
'DefineMethod' overload that's present in the 1.1 profile.

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

15 years ago2008-08-14 Geoff Norton <gnorton@novell.com>
Geoff Norton [Thu, 14 Aug 2008 15:42:49 +0000 (15:42 -0000)]
2008-08-14  Geoff Norton  <gnorton@novell.com>

        * WebClient_2_1.cs: A dirty hack to emit the events on the proper thread
        until we can figure out exactly how to leverage Dispatcher over here.

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

15 years ago2008-08-14 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 14 Aug 2008 15:31:41 +0000 (15:31 -0000)]
2008-08-14  Atsushi Enomoto  <atsushi@ximian.com>

        * SmtpClient.cs : Patch by Ted Unangst, fixed bug #392843.
          Encode emails correctly as well as join multiple emails
          correctly.

        * ContentType.cs : patch by Ted Unangst, fixed bug #392843.
          handle RFC2047 encoding.

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

15 years ago2008-08-14 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 14 Aug 2008 12:06:18 +0000 (12:06 -0000)]
2008-08-14  Zoltan Varga  <vargaz@gmail.com>

* mini.c (sigprof_signal_handler): Call mono_find_jit_info instead of
mono_arch_find_jit_info.

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

15 years ago2008-08-14 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 14 Aug 2008 11:24:57 +0000 (11:24 -0000)]
2008-08-14  Marek Safar  <marek.safar@gmail.com>

* driver.cs: Removed broken -noconfig variants.

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

15 years ago* DataViewTest2.cs (DataViewManager): Check for reference equality
Gert Driesen [Thu, 14 Aug 2008 11:20:20 +0000 (11:20 -0000)]
* DataViewTest2.cs (DataViewManager): Check for reference equality
instead of using Equals to avoid test regression using more recent
versions of NUnit.

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

15 years ago* SqlConnection.cs: Use constants for min/max values. When value is
Gert Driesen [Thu, 14 Aug 2008 11:12:49 +0000 (11:12 -0000)]
* SqlConnection.cs: Use constants for min/max values. When value is
zero-length string, then fallback to default value for boolean and
integer backed properties. Throw ArgumentException when min pool size
exceeds max pool size. Check whether value for 'MARS' is a bool.
The 'user instance' property is 2.0 only.
* SqlConnectionTest.cs: Enabled connection string related tests that
previously failed. Added/improved connection string tests.

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

15 years ago2008-08-14 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 14 Aug 2008 11:04:35 +0000 (11:04 -0000)]
2008-08-14  Marek Safar  <marek.safar@gmail.com>

A test for bug #417078

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

15 years ago* SqlConnection.cs: Convert keywords to lowercase instead of uppercase
Gert Driesen [Thu, 14 Aug 2008 11:02:54 +0000 (11:02 -0000)]
* SqlConnection.cs: Convert keywords to lowercase instead of uppercase
to avoid further case changes in exception messages.

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

15 years ago2008-08-14 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 14 Aug 2008 11:01:17 +0000 (11:01 -0000)]
2008-08-14  Marek Safar  <marek.safar@gmail.com>

A fix for bug #417078
* expression.cs: Emit correctly left side pointer operators.

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

15 years ago2008-08-14 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 14 Aug 2008 08:45:14 +0000 (08:45 -0000)]
2008-08-14  Atsushi Enomoto  <atsushi@ximian.com>

        * CultureInfo.cs : applied patch by Robert Jordan,
          fixed bug #402128. Create uninitialized parent culture
          when required.

        * CultureInfoTest.cs : added test for bug #402128.

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

15 years ago* DataTableTest2.cs: Added test for LoadDataRow with readonly columns.
Gert Driesen [Thu, 14 Aug 2008 07:38:43 +0000 (07:38 -0000)]
* DataTableTest2.cs: Added test for LoadDataRow with readonly columns.

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

15 years ago* KeyInfoX509DataTest.cs
Gert Driesen [Thu, 14 Aug 2008 06:19:36 +0000 (06:19 -0000)]
* KeyInfoX509DataTest.cs
* SignedInfoTest.cs
* XmlDsigC14NTransformTest.cs
* XmlDsigExcC14NTransformTest.cs
* XmlDsigC14NWithCommentsTransformTest.cs
* ReferenceTet.cs
* SignatureTest.cs: Fixed line endings.

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

15 years agoSet eol-style to native.
Gert Driesen [Thu, 14 Aug 2008 06:10:13 +0000 (06:10 -0000)]
Set eol-style to native.

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