Bill Holmes [Mon, 13 Apr 2009 20:41:07 +0000 (20:41 -0000)]
2009-04-13 Bill Holmes <billholmes54@gmail.com>
* Makefile.am: Adding marshalbool.cs.
* libtest.c: Adding native code for marshalbool.cs tests.
* marshalbool.cs: Adding tests for emit_marshal_boolean.
Contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=131619
Bill Holmes [Mon, 13 Apr 2009 20:38:45 +0000 (20:38 -0000)]
2009-04-13 Bill Holmes <billholmes54@gmail.com>
* marshal.c (emit_marshal_boolean): Adding code to ensure that
the correct TRUE value is passed through the marshaling layer.
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=131618
Zoltan Varga [Mon, 13 Apr 2009 20:08:15 +0000 (20:08 -0000)]
2009-04-13 Zoltan Varga <vargaz@gmail.com>
* pinvoke2.cs: Add a test for #492330.
svn path=/trunk/mono/; revision=131617
Zoltan Varga [Mon, 13 Apr 2009 20:08:08 +0000 (20:08 -0000)]
2009-04-13 Zoltan Varga <vargaz@gmail.com>
* marshal.c (mono_marshal_emit_managed_wrapper): Handle closed delegates
correctly. Fixes #492330.
svn path=/trunk/mono/; revision=131616
Zoltan Varga [Mon, 13 Apr 2009 19:51:41 +0000 (19:51 -0000)]
2009-04-13 Zoltan Varga <vargaz@gmail.com>
* marshal.c: Fix the embedding of object pointers into JITted code in
the native-to-managed wrappers by allocating some GC tracked memory, and
embedding the address of that.
svn path=/trunk/mono/; revision=131614
Zoltan Varga [Mon, 13 Apr 2009 19:51:32 +0000 (19:51 -0000)]
2009-04-13 Zoltan Varga <vargaz@gmail.com>
* marshal.c: Fix the embedding of object pointers into JITted code in
the native-to-managed wrappers by allocating some GC tracked memory, and
embedding the address of that.
svn path=/trunk/mono/; revision=131613
Zoltan Varga [Mon, 13 Apr 2009 19:51:19 +0000 (19:51 -0000)]
2009-04-13 Zoltan Varga <vargaz@gmail.com>
* mini-trampolines.c (mono_create_delegate_trampoline): Delegate the
full aot support to the arch specific code.
* mini-amd64.c (mono_arch_get_delegate_invoke_impl): Add full-aot support.
* aot-compiler.c (emit_trampolines): Emit delegate invoke impl trampolines.
* aot-compiler.c (emit_named_code): Rename this to 'emit_trampoline'.
* mini-amd64.c (mono_arch_get_delegate_invoke_impls): New function to
collect information about the delegate invoke impl trampolines.
* mini.h (MonoAotTrampInfo): New structure collecting the information needed
to save trampolines during full-aot mode.
svn path=/trunk/mono/; revision=131612
Jonathan Pryor [Mon, 13 Apr 2009 16:44:08 +0000 (16:44 -0000)]
* sys-time.c: Properly set the modification time, instead of using the
access time as the modification time. Fixes #494253.
svn path=/trunk/mono/; revision=131601
Gonzalo Paniagua Javier [Mon, 13 Apr 2009 16:28:20 +0000 (16:28 -0000)]
2009-04-13 Gonzalo Paniagua Javier <gonzalo@novell.com>
* HttpUtility.cs: the collection returned from ParseQueryString knows
how to convert the key/value pairs to a string.
svn path=/trunk/mcs/; revision=131599
Marek Safar [Mon, 13 Apr 2009 13:19:38 +0000 (13:19 -0000)]
Better test.
svn path=/trunk/mcs/; revision=131589
Marek Safar [Mon, 13 Apr 2009 13:19:10 +0000 (13:19 -0000)]
2009-04-13 Marek Safar <marek.safar@gmail.com>
A fix for bug #493887
* statement.cs: Don't skip string multi-section with default or
null label when populating string hashtable.
svn path=/trunk/mcs/; revision=131588
Zoltan Varga [Mon, 13 Apr 2009 11:16:02 +0000 (11:16 -0000)]
2009-04-13 Zoltan Varga <vargaz@gmail.com>
* configure.in: Quiet 'copying selected object files' messages from
newer libtool versions as well.
svn path=/trunk/mono/; revision=131570
Zoltan Varga [Mon, 13 Apr 2009 09:59:02 +0000 (09:59 -0000)]
2009-04-13 Zoltan Varga <vargaz@gmail.com>
* configure.in: Disable AC_PROG_CXX for now to fix the windows build.
In mono/mini:
* Makefile.am: Comment out the cpp files as f@#%$ automake complains even
if they are inside a conditional.
svn path=/trunk/mono/; revision=131565
Zoltan Varga [Mon, 13 Apr 2009 09:43:40 +0000 (09:43 -0000)]
Fix the build.
svn path=/trunk/mono/; revision=131563
Zoltan Varga [Sun, 12 Apr 2009 22:11:36 +0000 (22:11 -0000)]
2009-04-13 Zoltan Varga <vargaz@gmail.com>
* mini-trampolines.c (mono_create_static_rgctx_trampoline): New trampoline
creation function which returns a trampoline which sets the rgctx
argument.
(mono_magic_trampoline): Use the rgctx trampoline instead of an rgctx
wrapper if possible.
(mono_delegate_trampoline): Ditto.
* mini.c (mono_jit_runtime_invoke): Ditto.
* tramp-amd64.c: Add an implemention of static rgctx trampolines for AMD64.
* aot-compiler.c aot-runtime.c: Add support for static rgctx trampolines.
* mini.h (MONO_AOT_FILE_VERSION): Bump this.
svn path=/trunk/mono/; revision=131555
Zoltan Varga [Sun, 12 Apr 2009 21:01:49 +0000 (21:01 -0000)]
2009-04-12 Zoltan Varga <vargaz@gmail.com>
* mono-gdb.py (MonoMethodPrinter.to_string): Add a MonoMethod* pretty
printer.
svn path=/trunk/mono/; revision=131553
Gonzalo Paniagua Javier [Sun, 12 Apr 2009 14:11:18 +0000 (14:11 -0000)]
2009-04-12 Gonzalo Paniagua Javier <gonzalo@novell.com>
* System.Threading/WaitHandle.cs: implemented 2 missing WaitAny overloads.
* corlib.dll.sources: add GCNotificationStatus.
* System/GCNotificationStatus.cs: new enum.
svn path=/trunk/mcs/; revision=131542
Zoltan Varga [Sun, 12 Apr 2009 14:01:42 +0000 (14:01 -0000)]
2009-04-12 Zoltan Varga <vargaz@gmail.com>
* mini-ia64.c (mono_arch_lowering_pass): Use NULLIFY_INS instead of
just setting the opcode to OP_NOP.
svn path=/trunk/mono/; revision=131541
Gonzalo Paniagua Javier [Sun, 12 Apr 2009 13:53:48 +0000 (13:53 -0000)]
update MonoTODO
svn path=/trunk/mcs/; revision=131540
Zoltan Varga [Sat, 11 Apr 2009 20:39:40 +0000 (20:39 -0000)]
2009-04-11 Zoltan Varga <vargaz@gmail.com>
* mini.c (mini_method_compile): Put the last change inside an
#ifdef MONO_ARCH_HAVE_LIVERANGE_OPS.
svn path=/trunk/mono/; revision=131529
Zoltan Varga [Sat, 11 Apr 2009 20:37:16 +0000 (20:37 -0000)]
2009-04-11 Zoltan Varga <vargaz@gmail.com>
* mini.c (mini_method_compile): Disable sharing of stack slots/registers
and extend live ranges to cover the whole method when using xdb.
svn path=/trunk/mono/; revision=131528
Zoltan Varga [Sat, 11 Apr 2009 19:59:53 +0000 (19:59 -0000)]
2009-04-11 Zoltan Varga <vargaz@gmail.com>
* jit-icalls.c (ldvirtfn_internal): Avoid creating rgctx wrappers here,
do it in the trampolines.
* mini-trampolines.c (mono_magic_trampoline): Add an rgctx wrapper if
needed.
* mini-trampolines.c (mono_delegate_trampoline): Ditto.
svn path=/trunk/mono/; revision=131527
Sebastien Pouliot [Sat, 11 Apr 2009 16:12:48 +0000 (16:12 -0000)]
2009-04-11 Sebastien Pouliot <sebastien@ximian.com>
* WebClient_2_1.cs: WebClient allows relative URI...
* WebRequest_2_1.cs: ...while WebRequest does not by default.
Also uncomment a few checks for new test cases
svn path=/trunk/mcs/; revision=131518
Zoltan Varga [Sat, 11 Apr 2009 14:34:09 +0000 (14:34 -0000)]
2009-04-11 Zoltan Varga <vargaz@gmail.com>
* method-to-ir.c (mono_method_to_ir): Avoid using the fast virtual method
call code in full-aot mode since IMT is disabled there.
(mono_method_to_ir): Inline ldfld wrappers which return structures too, the
new JIT no longer has that restriction.
svn path=/trunk/mono/; revision=131517
Zoltan Varga [Sat, 11 Apr 2009 14:34:01 +0000 (14:34 -0000)]
2009-04-11 Zoltan Varga <vargaz@gmail.com>
* object.c (mono_class_create_runtime_vtable): Avoid putting MonoMethod
pointers into the vtable.
svn path=/trunk/mono/; revision=131516
Marek Habersack [Sat, 11 Apr 2009 13:36:46 +0000 (13:36 -0000)]
2009-04-11 Marek Habersack <mhabersack@novell.com>
* UpdatePanel.cs: implemented SingleChildControlCollection to be
used in CreateControlCollection ().
RequiresUpdate not only checks the update mode and explicit update
requests, but also looks if any triggers fired.
Initialize () initializes triggers only if partial rendering is
supported by the ScriptManager.
IsInPartialRendering property no longer returns the value of
ScriptManager.IsInPartialRendering. Instead, it relies on the
value of instance field which can be set using new internal
SetInPartialRendering () method (called from
ScriptManager.RenderPageCallback ())
Simplified the logic in RenderChildren ().
* ScriptManager.cs: no need to register panels for refresh in
OnPreRenderComplete, this is now done in RenderPageCallback.
Modified HasBeenRendered () so that it doesn't query whether the
panel has been explicitly updated by the user, but checks whether
panel is in the list of panels to refresh.
RaisePostDataChangedEvent () doesn't update the panel whose id is
named in the POST request for refresh. This is handled in
RenderPageCallback.
Reverted the changes to WriteCallbackPanel and RenderFormCallback
committed in r129774.
RenderPageCallback now correctly detects panels to be refreshed
(and thus included in the async response).
* AsyncPostBackTrigger.cs, PostBackTrigger.cs: implemented
HasTriggered ().
svn path=/trunk/mcs/; revision=131511
Sebastien Pouliot [Sat, 11 Apr 2009 13:16:44 +0000 (13:16 -0000)]
2009-04-11 Sebastien Pouliot <sebastien@ximian.com>
* DnsEndPoint_2_1.cs: Adjust exceptions wrt unit tests
* HttpWebRequest_2_1.cs: Fix Headers property wrt unit tests:
* WebClient_2_1.cs: Fix some properties
* WebHeaderCollection_2_1.cs: Adjust exceptions wrt unit tests
* WebRequest_2_1.cs: Add RegisterPrefix functionality and add
missing checks (fix unit tests)
svn path=/trunk/mcs/; revision=131507
Zoltan Varga [Sat, 11 Apr 2009 04:48:44 +0000 (04:48 -0000)]
2009-04-11 Zoltan Varga <vargaz@gmail.com>
* mini.h (MONO_AOT_FILE_VERSION): Bump this.
* aot-compiler.c (emit_extra_methods): Emit the wrapper method names in
a more compact format.
(mono_aot_wrapper_name): New function to return a unique name for a
wrapper method, also used by the AOT runtime.
* aot-runtime.c (find_extra_method_in_amodule): Update after the changes to
aot-compiler.c.
svn path=/trunk/mono/; revision=131502
Zoltan Varga [Sat, 11 Apr 2009 04:47:22 +0000 (04:47 -0000)]
2009-04-11 Zoltan Varga <vargaz@gmail.com>
* aot-compiler.c (add_generic_class): Add the helper methods from T[]
when a ICollection<T> etc is encountered.
(add_generic_instances): Process method arguments/locals too.
(emit_trampolines): Emit unbox trampolines for extra methods too. Shorten
trampoline names.
* aot-runtime.c (mono_aot_get_unbox_trampoline): Handle extra methods too.
svn path=/trunk/mono/; revision=131501
Zoltan Varga [Fri, 10 Apr 2009 17:44:25 +0000 (17:44 -0000)]
2009-04-10 Zoltan Varga <vargaz@gmail.com>
* aot-compiler.c: Disable the AOT compiler if the JIT is disabled.
svn path=/trunk/mono/; revision=131480
Zoltan Varga [Fri, 10 Apr 2009 17:44:14 +0000 (17:44 -0000)]
2009-04-10 Zoltan Varga <vargaz@gmail.com>
* mono-gdb.py: Update to the latest archer api.
svn path=/trunk/mono/; revision=131479
Mark Probst [Fri, 10 Apr 2009 15:00:10 +0000 (15:00 -0000)]
Test case for invoking a proxy whose server's domain was unloaded.
2009-04-10 Mark Probst <mark.probst@gmail.com>
* appdomain-unload.cs: Test for invoking on a proxy whose server
domain was unloaded.
svn path=/trunk/mono/; revision=131473
Zoltan Varga [Fri, 10 Apr 2009 14:32:31 +0000 (14:32 -0000)]
2009-04-10 Zoltan Varga <vargaz@gmail.com>
* include/private/gc_locks.h (GC_test_and_set): Merge a change from libgc
7.1's libatomic-ops to fix the ppc build with gcc 4.4.
svn path=/trunk/mono/; revision=131471
Zoltan Varga [Fri, 10 Apr 2009 14:29:01 +0000 (14:29 -0000)]
2009-04-10 Zoltan Varga <vargaz@gmail.com>
* ArrayTest.cs: Add a test for ICollection:IsReadOnly on generic arrays.
svn path=/trunk/mcs/; revision=131470
Zoltan Varga [Fri, 10 Apr 2009 14:28:50 +0000 (14:28 -0000)]
2009-04-10 Zoltan Varga <vargaz@gmail.com>
* Array.cs: Make some of the InternalArray methods non-generic to cut down
on the number of instantiations. Add implementation for
ICollection:IsReadOnly.
svn path=/trunk/mcs/; revision=131469
Zoltan Varga [Fri, 10 Apr 2009 13:18:04 +0000 (13:18 -0000)]
2009-04-10 Zoltan Varga <vargaz@gmail.com>
* dwarfwriter.c (emit_type): Emit byref to reference types as 'int' for now.
svn path=/trunk/mono/; revision=131468
Gonzalo Paniagua Javier [Fri, 10 Apr 2009 04:47:18 +0000 (04:47 -0000)]
2009-04-10 Gonzalo Paniagua Javier <gonzalo@novell.com>
* HttpResponseStream.cs: use the unsafe version when copying buffers.
svn path=/trunk/mcs/; revision=131451
Jonathan Pryor [Fri, 10 Apr 2009 02:06:01 +0000 (02:06 -0000)]
* mdoc-update.1: Document -L, -r options.
svn path=/trunk/mono/; revision=131449
Jonathan Pryor [Fri, 10 Apr 2009 01:49:42 +0000 (01:49 -0000)]
* Mono.Documentation/monodocer.cs: Using a single IAssemblyResolver is
an improvement, but doesn't fix all problems. In particular, some
assemblies will depend upon other assemblies to load (e.g. 3rd party
assemblies) but these dependent assemblies shouldn't be documented.
Add support for -r:ASSEMBLY and -L:DIRECTORY arguments to allow the
user to manually add to the assembly search path so that assemblies
can be found. Assemblies added via -r will NOT be documented.
svn path=/trunk/mcs/; revision=131447
Zoltan Varga [Fri, 10 Apr 2009 00:29:55 +0000 (00:29 -0000)]
2009-04-10 Zoltan Varga <vargaz@gmail.com>
* decompose.c (mono_decompose_opcode): Make this return a MonoInst*
representing the result of the decomposition. Nullify instructions
instead of setting them to OP_NOP since nops can't have registers
set.
svn path=/trunk/mono/; revision=131445
Rodrigo Kumpera [Thu, 9 Apr 2009 22:33:02 +0000 (22:33 -0000)]
2009-04-09 Rodrigo Kumpera <rkumpera@novell.com>
* valid_delegate_signature_with_generics.cs: Test for the compatibility
of delegate arguments when a function has a non generic type argument
and the delegate has a generic one.
svn path=/trunk/mono/; revision=131437
Rodrigo Kumpera [Thu, 9 Apr 2009 22:32:52 +0000 (22:32 -0000)]
2009-04-09 Rodrigo Kumpera <rkumpera@novell.com>
* verify.c (mono_delegate_type_equal): Proper check MONO_TYPE_CLASS.
* verify.c (verify_ldftn_delegate): Improve error message.
svn path=/trunk/mono/; revision=131436
Zoltan Varga [Thu, 9 Apr 2009 20:42:28 +0000 (20:42 -0000)]
2009-04-09 Zoltan Varga <vargaz@gmail.com>
* thread6.cs: Fix race added by the last change.
svn path=/trunk/mono/; revision=131424
Bill Holmes [Thu, 9 Apr 2009 20:36:38 +0000 (20:36 -0000)]
2009-04-09 Bill Holmes <billholmes54@gmail.com>
* finalizer-abort.cs, finalizer-exception.cs, finalizer-exit.cs :
Adding a sleep to the waiting thread to give Mono on Windows an
opportunity to interrupt the thread via QueueUserAPC.
Contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=131423
Zoltan Varga [Thu, 9 Apr 2009 20:16:57 +0000 (20:16 -0000)]
2009-04-09 Zoltan Varga <vargaz@gmail.com>
* Makefile.am: Disable the finalizer tests which only work under sgen.
svn path=/trunk/mono/; revision=131422
Zoltan Varga [Thu, 9 Apr 2009 19:43:53 +0000 (19:43 -0000)]
2009-04-09 Zoltan Varga <vargaz@gmail.com>
* aot-compiler.c (mono_compile_assembly): Split this huge function into
smaller parts. Add 'nodebug' option to prevent generation of DWARF debug
info. Strip 'mapping symbols' on ARM.
* iltests.il.in (test_0_fconv_to_i): Disable this on ARM too.
svn path=/trunk/mono/; revision=131421
Carlos Alberto Cortez [Thu, 9 Apr 2009 18:33:37 +0000 (18:33 -0000)]
2009-04-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListBox.cs: The default instance StringFormat field used to draw our
items should use the StringFormatFlags.NoWrap value, so it doesn't try
to put in a different line the text that doesn't fit our bounds, but
show it partially.
Fixes #475581.
svn path=/trunk/mcs/; revision=131415
Raja R Harinath [Thu, 9 Apr 2009 18:26:11 +0000 (18:26 -0000)]
* reflection.c (my_mono_class_from_mono_type): Remove.
svn path=/trunk/mono/; revision=131414
Raja R Harinath [Thu, 9 Apr 2009 18:25:49 +0000 (18:25 -0000)]
Prepare to reduce memory usage of owner-less generic parameters (1/n)
* metadata/class-internals.h (MonoGenericParam): Carve out pklass, name, flags
and constraints fields into ...
(MonoGenericParamInfo): ... this.
(mono_generic_param_info, mono_generic_container_get_param_info): New accessors.
* metadata/{class.c, debug-helpers.c, icall.c}: Update to changes.
* metadata/{metadata.c, reflection.c, verify.c}: Likewise.
* dis/get.c: Use new MonoGenericParamInfo accessors.
svn path=/trunk/mono/; revision=131413
Zoltan Varga [Thu, 9 Apr 2009 18:05:32 +0000 (18:05 -0000)]
2009-04-09 Zoltan Varga <vargaz@gmail.com>
* genmdesc.pl: Applied patch by Martin Fuzzey (mfuzzey@parkeon.com). Sync
this with the native genmdesc.
svn path=/trunk/mono/; revision=131412
Jonathan Pryor [Thu, 9 Apr 2009 17:52:52 +0000 (17:52 -0000)]
* executable.make, library.make: Move the include for tests.make so
that DISTFILES can be properly set (and thus properly distribute the
*_test.dll.sources file). This allows unit tests to actually build
and run when building from the tarball.
svn path=/trunk/mcs/; revision=131409
Rusty Howell [Thu, 9 Apr 2009 16:49:59 +0000 (16:49 -0000)]
* Update --help output. Now shows default values
svn path=/trunk/mono/; revision=131406
Carlos Alberto Cortez [Thu, 9 Apr 2009 16:40:26 +0000 (16:40 -0000)]
2009-04-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* CheckedListbox.cs: When executing OnItemClick check that the index
is different to -1 before trying to retrieve an item using that value.
Fixes a ArgumentOutOfRangeException thrown when the horizontal
scrollbar was visible but not needed, and then a clicked was received
on its area.
svn path=/trunk/mcs/; revision=131404
Sebastien Pouliot [Thu, 9 Apr 2009 15:52:58 +0000 (15:52 -0000)]
In .:
2009-04-09 Sebastien Pouliot <sebastien@ximian.com>
* System.Net.dll.sources: Remove some unneeded files for the
build. Add the SL2 specific enums, instead of using the existing
ones from System.dll. Include Socket_2_1.cs (from System) and use
the AssemblyInfo.cs for this assembly
In System.Net:
2009-04-09 Sebastien Pouliot <sebastien@ximian.com>
* DnsEndPoint_2_1.cs: Fix header.
* HttpStatusCode_2_1.cs: New. SL2 (short) version of the enum
* HttpWebRequest_2_1.cs: Add missing members
* WebExceptionStatus_2_1.cs: New. SL2 (short) version of the enum
* WebHeaderCollection_2_1.cs: Implement S.C.IEnumerable
svn path=/trunk/mcs/; revision=131400
Zoltan Varga [Thu, 9 Apr 2009 15:42:20 +0000 (15:42 -0000)]
2009-04-09 Zoltan Varga <vargaz@gmail.com>
* debug-helpers.c (dis_one): Fix decoding of strings in dynamic images.
svn path=/trunk/mono/; revision=131399
Sebastien Pouliot [Thu, 9 Apr 2009 15:35:21 +0000 (15:35 -0000)]
2009-04-09 Sebastien Pouliot <sebastien@ximian.com>
* AssemblyInfo.cs: Adjust attributes for 2.1
svn path=/trunk/mcs/; revision=131398
Zoltan Varga [Thu, 9 Apr 2009 15:31:54 +0000 (15:31 -0000)]
2009-04-09 Zoltan Varga <vargaz@gmail.com>
* marshal.c (get_runtime_invoke_type): Share enums with their base types.
svn path=/trunk/mono/; revision=131397
Sebastien Pouliot [Thu, 9 Apr 2009 15:22:34 +0000 (15:22 -0000)]
Remove classes that are not in the final SL2 release. Add some SL2 short-versions of FX enums.
svn path=/trunk/mcs/; revision=131394
Sebastien Pouliot [Thu, 9 Apr 2009 15:06:42 +0000 (15:06 -0000)]
In System.Net.Sockets:
2009-04-09 Sebastien Pouliot <sebastien@ximian.com>
* Socket.cs: Split socket class into two files (this one and the
new Socket_2_1.cs). This let us remove (some) existing #if in the
sources and avoid (a lot) of new ones for Moonlight.
* Socket_2_1.cs: Just enough of socket for NET_2_1. This helps
the tuner not to bring a lot of extra stuff (some visible)
into Moonlight.
* SocketAsyncEventArgs.cs: Ifdef out some cases for NET_2_1 so
Moonlight can use it's own (smaller) SocketAsyncOperation enum
In .:
2009-04-09 Sebastien Pouliot <sebastien@ximian.com>
* System.dll.sources: Add System.Net.Sockets/Socket_2_1.cs
svn path=/trunk/mcs/; revision=131392
Zoltan Varga [Thu, 9 Apr 2009 13:45:43 +0000 (13:45 -0000)]
2009-04-09 Zoltan Varga <vargaz@gmail.com>
* marshal.c (get_runtime_invoke_type): Share pointers with ints and
booleans with sbytes.
svn path=/trunk/mono/; revision=131386
Gonzalo Paniagua Javier [Thu, 9 Apr 2009 05:22:27 +0000 (05:22 -0000)]
2009-04-09 Gonzalo Paniagua Javier <gonzalo@novell.com>
* ecma-provider.cs: remove 'using'.
* provider.cs: if there's a directory with the base name, read the
files from there instead of from the .zip file.
svn path=/trunk/mcs/; revision=131376
Rodrigo Kumpera [Thu, 9 Apr 2009 00:45:20 +0000 (00:45 -0000)]
2009-04-08 Rodrigo Kumpera <rkumpera@novell.com>
* valid_nested_access_with_multi_array_instance.cs:
* valid_nested_access_with_array_instance.cs: Regression tests for
#493068.
svn path=/trunk/mono/; revision=131373
Rodrigo Kumpera [Thu, 9 Apr 2009 00:45:04 +0000 (00:45 -0000)]
2009-04-08 Rodrigo Kumpera <rkumpera@novell.com>
* class.c (can_access_instantiation): Verify accesibility of element types
for arrays and pointers.
* class.c (can_access_type): Return true if the target class is VAR or MVAR.
* class.c (mono_method_can_access_method_full): Fix typos in the documentation.
Fixes #493068.
svn path=/trunk/mono/; revision=131372
Rodrigo Kumpera [Thu, 9 Apr 2009 00:44:49 +0000 (00:44 -0000)]
2009-04-08 Rodrigo Kumpera <rkumpera@novell.com>
* verify.c (do_invoke_method): Improve error messages.
svn path=/trunk/mono/; revision=131371
Jonathan Pryor [Thu, 9 Apr 2009 00:03:36 +0000 (00:03 -0000)]
* Mono.Documentation/monodocer.cs: Use a single IAssemblyResolver
shared amongst all AssemblyDefinitions to resolve assembly/type
references with Cecil. Otherwise, if we have deeply nested
directories with cross-directory assembly dependencies, then Cecil
won't find the necessary assemblies (e.g. b/bin/Debug/b.dll has a
type which inherits from a/bin/Debug/a.dll -- here, we'll have two
separate AssemblyDefinitions, and when b.dll's AssemblyDefinition
tries to resolve types from a.dll, it fails).
See: http://lists.ximian.com/pipermail/mono-devel-list/2009-April/031646.html
svn path=/trunk/mcs/; revision=131370
Jonathan Pryor [Wed, 8 Apr 2009 20:31:14 +0000 (20:31 -0000)]
* AssemblyInfo.cs: Building against the local AssemblyInfo.cs broke
sqlmetal, as it couldn't find an IProcessor implementation (as the
local AssemblyInfo.cs was missing a [assembly: DbLinq] attribute).
Fix so that sqlmetal works again.
* Makefile: Actually enable NUnit tests.
svn path=/trunk/mcs/; revision=131358
Bill Holmes [Wed, 8 Apr 2009 20:12:23 +0000 (20:12 -0000)]
2009-04-08 Bill Holmes <billholmes54@gmail.com>
* verify.c: Fixing the MSVC build.
* aot-runtime.c: Fixing the MSVC build.
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=131356
Bill Holmes [Wed, 8 Apr 2009 20:08:40 +0000 (20:08 -0000)]
2009-04-08 Bill Holmes <billholmes54@gmail.com>
* libmono.vcproj : Adding mini/mini-gc to the project.
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=131355
Jonathan Pryor [Wed, 8 Apr 2009 20:07:26 +0000 (20:07 -0000)]
* **/* (svn:ignore): Ignore generated files and directories.
* src/**/*: Flush; syncs to DbLinq r1043.
svn path=/trunk/mcs/; revision=131354
Andrés G. Aragoneses [Wed, 8 Apr 2009 19:42:32 +0000 (19:42 -0000)]
* tuner/Mono.Tuner.csproj:
* linker/Mono.Linker.csproj: Update.
svn path=/trunk/mcs/; revision=131352
Andrés G. Aragoneses [Wed, 8 Apr 2009 19:36:25 +0000 (19:36 -0000)]
* tuner/Mono.Tuner.csproj:
* linker/Mono.Linker.csproj: Update.
svn path=/trunk/mcs/; revision=131346
Carlos Alberto Cortez [Wed, 8 Apr 2009 18:35:01 +0000 (18:35 -0000)]
2009-04-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* MaskedTextBox.cs: If Insert is pressed, change the internal
overwrite mode for our default value.
Fixes some bits of #477395.
svn path=/trunk/mcs/; revision=131344
Sebastien Pouliot [Wed, 8 Apr 2009 17:42:08 +0000 (17:42 -0000)]
2009-04-08 Sebastien Pouliot <sebastien@ximian.com>
* security-core-clr.c: Simplify get_reflection_caller not to call
mono_method_get_last_managed (another stack walk) and adjust the
callers to handle a (should not happen) NULL return value.
svn path=/trunk/mono/; revision=131339
Zoltan Varga [Wed, 8 Apr 2009 14:53:08 +0000 (14:53 -0000)]
2009-04-08 Zoltan Varga <vargaz@gmail.com>
* mini-llvm.c (mono_llvm_emit_method): Pass i1/i2 arguments as i4 since
JITted code depends on it.
svn path=/trunk/mono/; revision=131328
Raja R Harinath [Wed, 8 Apr 2009 11:32:16 +0000 (11:32 -0000)]
Add accessors to some MonoGenericParam fields
* dis/get.c: Use new MonoGenericParam accessors.
* metadata/class-internals.h (mono_generic_param_owner): New accessor.
(mono_generic_param_num): Likewise.
(mono_type_get_generic_param_owner): New helper.
(mono_type_get_generic_param_num): New helper.
* metadata/{class.c, icall.c, metadata.c, reflection.c, verify.c}: Use them.
* mini/aot-compiler.c: Use new MonoGenericParam accessors.
svn path=/trunk/mono/; revision=131315
Marek Habersack [Wed, 8 Apr 2009 11:32:08 +0000 (11:32 -0000)]
2009-04-08 Marek Habersack <mhabersack@novell.com>
* ScriptComponentDescriptor.cs: properties/events/references must
be serialized in alphabetical order. This matches what .NET
does. Some 3rd party controls depend upon this fact.
svn path=/trunk/mcs/; revision=131314
Raja R Harinath [Wed, 8 Apr 2009 05:33:06 +0000 (05:33 -0000)]
Reduce memory usage and improve correctness wrt MonoGenericParam
* aot-runtime.c (decode_klass_ref): Simplify generic parameter
handing. Avoid allocating MonoGenericParams, but use the ones in
the container itself.
svn path=/trunk/mono/; revision=131295
Raja R Harinath [Wed, 8 Apr 2009 05:32:45 +0000 (05:32 -0000)]
Add a wrapper for MonoGenericContainer.type_params field
* dis/get.c: Use MonoGenericContainer accessor to get the contained
MonoGenericParam.
* metadata/class-internals.h (mono_generic_container_get_param): New wrapper.
* metadata/{class.c, icall.c, metadata.c, verify.c}: Use it.
svn path=/trunk/mono/; revision=131294
Atsushi Eno [Wed, 8 Apr 2009 04:13:56 +0000 (04:13 -0000)]
2009-04-08 Atsushi Enomoto <atsushi@ximian.com>
* CodeWriter.cs : move into namespace.
svn path=/trunk/mcs/; revision=131285
Atsushi Eno [Wed, 8 Apr 2009 03:45:57 +0000 (03:45 -0000)]
2009-04-08 Atsushi Enomoto <atsushi@ximian.com>
* IdentityElement.cs, NetPeerTcpBindingElement.cs: implemented
OnApplyConfiguration().
svn path=/trunk/mcs/; revision=131282
Atsushi Eno [Wed, 8 Apr 2009 03:45:22 +0000 (03:45 -0000)]
2009-04-08 Atsushi Enomoto <atsushi@ximian.com>
* NetTcpBindingTest.cs : fix wrong value expectation.
svn path=/trunk/mcs/; revision=131281
Atsushi Eno [Wed, 8 Apr 2009 03:44:14 +0000 (03:44 -0000)]
2009-04-08 Atsushi Enomoto <atsushi@ximian.com>
* NetPeerTcpBinding.cs : ListenIPAddress is IPAddress here too.
svn path=/trunk/mcs/; revision=131280
Atsushi Eno [Wed, 8 Apr 2009 03:43:02 +0000 (03:43 -0000)]
2009-04-08 Atsushi Enomoto <atsushi@ximian.com>
* PeerTransportBindingElement.cs : ListenIPAddress is IPAddress.
svn path=/trunk/mcs/; revision=131279
Atsushi Eno [Wed, 8 Apr 2009 03:40:15 +0000 (03:40 -0000)]
2009-04-08 Atsushi Enomoto <atsushi@ximian.com>
* PeerTransportSecuritySettings.cs : new.
* PeerSecuritySettings.cs : Transport was missing.
* System.ServiceModel.dll.sources:
added PeerTransportSecuritySettings.cs.
* Makefile: use -r:System.Core in non-2.1 build too.
svn path=/trunk/mcs/; revision=131278
Raja R Harinath [Wed, 8 Apr 2009 03:03:17 +0000 (03:03 -0000)]
Revert r131263 which caused regressions
svn path=/trunk/mono/; revision=131276
Raja R Harinath [Wed, 8 Apr 2009 01:50:09 +0000 (01:50 -0000)]
Fix gtest-252.cs
* verify.c (mono_type_is_valid_type_in_context): Rewrite to use
the standard case/loop. In particular, don't complain about
references to generic type definitions.
svn path=/trunk/mono/; revision=131270
Raja R Harinath [Wed, 8 Apr 2009 00:24:14 +0000 (00:24 -0000)]
update known issues
svn path=/trunk/mcs/; revision=131268
Miguel de Icaza [Tue, 7 Apr 2009 23:54:59 +0000 (23:54 -0000)]
2009-04-07 Miguel de Icaza <miguel@novell.com>
* tasklets.c: Return exceptions in the out argument.
svn path=/trunk/mono/; revision=131267
Miguel de Icaza [Tue, 7 Apr 2009 23:43:19 +0000 (23:43 -0000)]
2009-04-07 Miguel de Icaza <miguel@novell.com>
* Mono.Tasklets/Mono.Tasklets/Continuation.cs: Implement
IDisposable.
svn path=/trunk/mcs/; revision=131266
Zoltan Varga [Tue, 7 Apr 2009 22:52:38 +0000 (22:52 -0000)]
2009-04-08 Zoltan Varga <vargaz@gmail.com>
* mini-llvm.c (mono_llvm_emit_method): Fix alignment in the LOCALLOC_IMM
opcode. Use pointer types in more places instead of casting them to
integers.
* mini-llvm-cpp.cpp (mono_llvm_create_ee): Create a pass manager to run
optimizations.
(mono_llvm_optimize_method): New helper function to optimize a method.
* method-to-ir.c (mono_emit_widen_call_res): Extract the call result
widening code so it could be called from more places.
(mono_method_to_ir): Call mono_emit_widne_call_res () in several more
code paths in the call opcodes.
svn path=/trunk/mono/; revision=131265
Rodrigo Kumpera [Tue, 7 Apr 2009 22:30:00 +0000 (22:30 -0000)]
2009-04-07 Rodrigo Kumpera <rkumpera@novell.com>
* loader.c (method_from_memberref): If ít's a memberref to a typespec inflate
the signature and search the inflated type.
We can't blindly search the generic type definition or expect that the signature
will be inflated as both options can happen. The only solution is to search the
inflated type against the inflated signature.
Fixes #492778.
svn path=/trunk/mono/; revision=131263
Miguel de Icaza [Tue, 7 Apr 2009 22:13:52 +0000 (22:13 -0000)]
Add to the build
svn path=/trunk/mcs/; revision=131262
Zoltan Varga [Tue, 7 Apr 2009 21:49:54 +0000 (21:49 -0000)]
2009-04-07 Zoltan Varga <vargaz@gmail.com>
* debug-helpers.c (dis_one): Decode string arguments.
svn path=/trunk/mono/; revision=131261
Zoltan Varga [Tue, 7 Apr 2009 20:00:13 +0000 (20:00 -0000)]
2009-04-07 Zoltan Varga <vargaz@gmail.com>
* mono-gdb.py (ObjectPrinter.__init__): Update to latest archer api.
svn path=/trunk/mono/; revision=131255
Ankit Jain [Tue, 7 Apr 2009 19:04:23 +0000 (19:04 -0000)]
Fix bug #491828.
* ToolTask.cs (LogEventsFromTextOutput): Log even in case of
unrecognized errors.
svn path=/trunk/mcs/; revision=131250
Ankit Jain [Tue, 7 Apr 2009 18:34:18 +0000 (18:34 -0000)]
Fix bug #487155.
* StringHelper.cs: Handle octal values in strings.
Patch from Stephen Gennard (stephen@gennard.net)
svn path=/trunk/mcs/; revision=131249
Paolo Molaro [Tue, 7 Apr 2009 15:59:02 +0000 (15:59 -0000)]
Mon Apr 6 14:19:54 CEST 2009 Paolo Molaro <lupus@ximian.com>
* exceptions-amd64.c, mini-amd64.h: amd64 support code for continuations.
svn path=/trunk/mono/; revision=131239
Rodrigo Kumpera [Tue, 7 Apr 2009 15:00:14 +0000 (15:00 -0000)]
2009-04-07 Rodrigo Kumpera <rkumpera@novell.com>
* pedump.c (dump_verify_info): Dump type name correctly.
svn path=/trunk/mono/; revision=131235
Rodrigo Kumpera [Tue, 7 Apr 2009 14:35:47 +0000 (14:35 -0000)]
2009-04-07 Rodrigo Kumpera <rkumpera@novell.com>
* valid_eh_block_with_no_instructions_after.il: Regression test
for #492494.
svn path=/trunk/mono/; revision=131234
Rodrigo Kumpera [Tue, 7 Apr 2009 14:35:36 +0000 (14:35 -0000)]
2009-04-07 Rodrigo Kumpera <rkumpera@novell.com>
* verify.c (mono_method_verify): Don't init code slots for exception boundaries if they
are larger than code size.
This can happen in valid code if the try/catch block is not followed by any instruction
and do a backward branch on the leave instruction.
Fixes #492494.
svn path=/trunk/mono/; revision=131233