Carlos Alberto Cortez [Tue, 28 Jul 2009 13:48:25 +0000 (13:48 -0000)]
2009-07-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* Application.cs: Make FilterMessage internal for 1.1. Fixes the 1.1 build.
svn path=/trunk/mcs/; revision=138834
Marek Safar [Tue, 28 Jul 2009 13:32:27 +0000 (13:32 -0000)]
Updated.
svn path=/trunk/mcs/; revision=138833
Marek Safar [Tue, 28 Jul 2009 13:32:11 +0000 (13:32 -0000)]
2009-07-28 Marek Safar <marek.safar@gmail.com>
* typemanager.cs, expression.cs, ecore.cs, delegate.cs: Use correct
version of GetFieldHandle for fields of generic types.
svn path=/trunk/mcs/; revision=138832
Carlos Alberto Cortez [Tue, 28 Jul 2009 12:24:04 +0000 (12:24 -0000)]
* XplatUIX11.cs:
* XplatUIWin32.cs: We need to filter the messages using
Application.FilterMessage for our DoEvents implementations. Observe
that I don't like the idea of XplatUI call the upper level Application
class, but at this point is easier and simpler to do this call - based
on the fact it's only one simple call.
Fixes #516735.
2009-07-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
svn path=/trunk/mcs/; revision=138826
Marek Safar [Tue, 28 Jul 2009 12:03:40 +0000 (12:03 -0000)]
Fixes build.
svn path=/trunk/mcs/; revision=138825
Carlos Alberto Cortez [Tue, 28 Jul 2009 12:02:09 +0000 (12:02 -0000)]
2009-07-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* TreeNodeCollection.cs: When removing the selected node, set the
SelectedNode value of TreeView to null if there aren't more nodes left -
this is better than to clear the selected node in Clear, since we need
to handle the situation in the Remove methods as well.
Fixes #525002.
svn path=/trunk/mcs/; revision=138824
Jb Evain [Tue, 28 Jul 2009 08:14:49 +0000 (08:14 -0000)]
fix the build
svn path=/trunk/mcs/; revision=138794
Jb Evain [Tue, 28 Jul 2009 07:59:05 +0000 (07:59 -0000)]
2009-07-28 Jb Evain <jbevain@novell.com>
* Mono.Cecil/AssemblyStripper.cs: Make all methods share
the same body.
svn path=/trunk/mcs/; revision=138791
Miguel de Icaza [Tue, 28 Jul 2009 05:06:31 +0000 (05:06 -0000)]
2009-07-28 Miguel de Icaza <miguel@novell.com>
* UTF8Encoding.cs: Small optimization, reuse the static
EncoderFallback and DecoderFallback instead of creating new ones.
svn path=/trunk/mcs/; revision=138787
Miguel de Icaza [Tue, 28 Jul 2009 05:04:08 +0000 (05:04 -0000)]
2009-07-28 Miguel de Icaza <miguel@novell.com>
* UTF8Encoding.cs: Use Equals to compare the objects as the
fallback objects do not overload operator ==. The comparison
was previously failing.
svn path=/trunk/mcs/; revision=138786
Gonzalo Paniagua Javier [Tue, 28 Jul 2009 04:55:07 +0000 (04:55 -0000)]
2009-07-28 Gonzalo Paniagua Javier <gonzalo@novell.com>
* HttpApplicationFactory.cs: allow subclasses of EventHandler for
event handlers in global.asax.
Fixes bug #525743.
svn path=/trunk/mcs/; revision=138784
Atsushi Eno [Tue, 28 Jul 2009 03:21:20 +0000 (03:21 -0000)]
2009-07-28 Atsushi Enomoto <atsushi@ximian.com>
* OutgoingWebRequestContext.cs : implement.
* WebMessageFormatter.cs : apply OutgoingRequest if available.
svn path=/trunk/mcs/; revision=138782
Rodrigo Kumpera [Tue, 28 Jul 2009 02:00:05 +0000 (02:00 -0000)]
2009-07-27 Rodrigo Kumpera <rkumpera@novell.com>
* Assembly.cs (GetType): Throw if name is empty.
2009-07-27 Rodrigo Kumpera <rkumpera@novell.com>
* AssemblyTest.cs: Add test for empty string passed to
Assembly::GetType.
svn path=/trunk/mcs/; revision=138780
Rodrigo Kumpera [Mon, 27 Jul 2009 23:10:13 +0000 (23:10 -0000)]
2009-07-27 Rodrigo Kumpera <rkumpera@novell.com>
OpCode.cs: HashCode is meant to be calculated based on Name.
OpCodeNames.cs: Fix some names.
OpCodes.cs: Fix Stelem, Constrained and Readonly specs.
svn path=/trunk/mcs/; revision=138776
Rodrigo Kumpera [Mon, 27 Jul 2009 21:43:13 +0000 (21:43 -0000)]
2009-07-27 Rodrigo Kumpera <rkumpera@novell.com>
* EventInfo (RemoveEventHandler): Throw InvalidOperationException if the
event remove method is not visible.
2009-07-27 Rodrigo Kumpera <rkumpera@novell.com>
* EventInfoTest.cs: Add test for private event and
RemoveEventHandler.
svn path=/trunk/mcs/; revision=138773
Rodrigo Kumpera [Mon, 27 Jul 2009 21:42:50 +0000 (21:42 -0000)]
2009-07-27 Rodrigo Kumpera <rkumpera@novell.com>
* EventInfo (AddEventHandler): Throw TargetException if target is not cast
compatible.
* EventInfo (AddEventHandler): Throw InvalidOperationException if the
event add method is not visible.
* EventInfo (AddEventHandler): Throw TargetException if source is null
and the event is not static.
2009-07-27 Rodrigo Kumpera <rkumpera@novell.com>
* EventInfoTest.cs: Add test for cast incompatible type.
* EventInfoTest.cs: Add test for private event.
* EventInfoTest.cs: Add test for null target for non static
event.
svn path=/trunk/mcs/; revision=138772
Marek Safar [Mon, 27 Jul 2009 17:32:39 +0000 (17:32 -0000)]
2009-07-27 Marek Safar <marek.safar@gmail.com>
* typemanager.cs, argument.cs, convert.cs, assign.cs, expression.cs,
ecore.cs: Add TypeManager.IsDynamicType,
PredefinedAttributes.Dynamic.
svn path=/trunk/mcs/; revision=138753
Marek Safar [Mon, 27 Jul 2009 17:00:20 +0000 (17:00 -0000)]
2009-07-27 Marek Safar <marek.safar@gmail.com>
* typemanager.cs, argument.cs, convert.cs, assign.cs, expression.cs,
ecore.cs: Add TypeManager.IsDynamicType.
svn path=/trunk/mcs/; revision=138749
Marek Safar [Mon, 27 Jul 2009 16:30:53 +0000 (16:30 -0000)]
New test.
svn path=/trunk/mcs/; revision=138748
Marek Safar [Mon, 27 Jul 2009 16:30:00 +0000 (16:30 -0000)]
2009-07-27 Marek Safar <marek.safar@gmail.com>
A fix for bug #415375
* expression.cs: Fixed object and reference type parameter
comparison.
svn path=/trunk/mcs/; revision=138747
Marek Safar [Mon, 27 Jul 2009 15:53:51 +0000 (15:53 -0000)]
2009-07-27 Marek Safar <marek.safar@gmail.com>
A fix for bug #415375
* expression.cs: Fixed object and reference type parameter
comparison.
svn path=/trunk/mcs/; revision=138740
Gonzalo Paniagua Javier [Mon, 27 Jul 2009 15:35:42 +0000 (15:35 -0000)]
2009-07-27 Gonzalo Paniagua Javier <gonzalo@novell.com>
* ArrayTest.cs: new LastIndexOf test for 0-length arrays.
svn path=/trunk/mcs/; revision=138735
Gonzalo Paniagua Javier [Mon, 27 Jul 2009 15:35:30 +0000 (15:35 -0000)]
2009-07-27 Gonzalo Paniagua Javier <gonzalo@novell.com>
* Array.cs: empty arrays just return -1 in LastIndexOf().
svn path=/trunk/mcs/; revision=138733
Marek Safar [Mon, 27 Jul 2009 15:14:36 +0000 (15:14 -0000)]
New test.
svn path=/trunk/mcs/; revision=138732
Marek Safar [Mon, 27 Jul 2009 15:14:17 +0000 (15:14 -0000)]
2009-07-27 Marek Safar <marek.safar@gmail.com>
A fix for bug #525342
* class.cs: Attach partial method attributes to method
implementation.
svn path=/trunk/mcs/; revision=138731
Miguel de Icaza [Mon, 27 Jul 2009 14:55:16 +0000 (14:55 -0000)]
2009-07-27 Miguel de Icaza <miguel@novell.com>
* Value types implementing IConvertible.ToType now throw an
ArgumentNullException if they are passed a null as the
"targetType" argument.
This code can not be put directly in the Convert.ToType method, as
this method is used by Convert.ToType (object o, TypeCode tc)
which uses null as a target to throw a different kind of error
(InvalidCastException).
Fixes a few more bugs in the Silverlight BCL test suite.
Additionally, the parameter type has been renamed.
svn path=/trunk/mcs/; revision=138730
Mark Probst [Mon, 27 Jul 2009 11:28:11 +0000 (11:28 -0000)]
2009-07-27 Mark Probst <mark.probst@gmail.com>
* icall-def.h, thread-types.h, threads.c: New separate icalls for
Interlocked.(Compare)Exchange with object arguments, which invoke
write barriers.
2009-07-27 Mark Probst <mark.probst@gmail.com>
* method-to-ir.c: Invoke write barriers for the
Interlocked.(Compare)Exchange JIT intrinsics.
svn path=/trunk/mono/; revision=138722
Miguel de Icaza [Mon, 27 Jul 2009 00:09:11 +0000 (00:09 -0000)]
2009-07-26 Miguel de Icaza <miguel@novell.com>
* Type.cs: (GetMember) call directly the worker method, instead of
calling through an intermediary.
(GetMember, full): throw if the name is null.
svn path=/trunk/mcs/; revision=138710
Miguel de Icaza [Sun, 26 Jul 2009 23:48:12 +0000 (23:48 -0000)]
2009-07-26 Miguel de Icaza <miguel@novell.com>
* ILGenerator.cs: Fix the exception thrown when LocalBuilders are
mixed between ILGenerators.
svn path=/trunk/mcs/; revision=138709
Miguel de Icaza [Sun, 26 Jul 2009 23:31:12 +0000 (23:31 -0000)]
2009-07-26 Miguel de Icaza <miguel@novell.com>
* icall.c (ves_icall_Type_GetNestedType): Throw an exception when
passed invalid arguments. Fixes another crasher in the
Silverlight test suite.
svn path=/trunk/mono/; revision=138708
Miguel de Icaza [Sun, 26 Jul 2009 22:44:29 +0000 (22:44 -0000)]
Add new test
svn path=/trunk/mcs/; revision=138707
Miguel de Icaza [Sun, 26 Jul 2009 22:42:18 +0000 (22:42 -0000)]
2009-07-26 Miguel de Icaza <miguel@novell.com>
* class.c (mono_class_array_element_size): Return 0 for the size
of the class; This fixes the crasher exposed by :
typeof (void).MakeArrayType ();
svn path=/trunk/mono/; revision=138706
Miguel de Icaza [Sun, 26 Jul 2009 22:39:47 +0000 (22:39 -0000)]
Revert
svn path=/trunk/mcs/; revision=138705
Miguel de Icaza [Sun, 26 Jul 2009 22:38:04 +0000 (22:38 -0000)]
Wrong fix; Revert
svn path=/trunk/mcs/; revision=138704
Miguel de Icaza [Sun, 26 Jul 2009 22:25:39 +0000 (22:25 -0000)]
2009-06-10 Gert Driesen <drieseng@users.sourceforge.net>
* corlib_test.dll.sources: Added test for InternalVisibleToAttribute.
svn path=/trunk/mcs/; revision=138703
Miguel de Icaza [Sun, 26 Jul 2009 22:16:24 +0000 (22:16 -0000)]
2009-07-26 Miguel de Icaza <miguel@novell.com>
* icall.c (ves_icall_MonoType_GetEvent): Do not dereference method
if there is no method to dereference. Put all the code that
depends on this inside the if (method) block.
This fixes the crasher exposed by Microsoft's Silvelright CLR test
suite ./Reflection/Emit/TypeBuilder/TypeBuilderGetEvent.exe
With this change, we pass the test.
svn path=/trunk/mono/; revision=138702
Miguel de Icaza [Sun, 26 Jul 2009 20:56:22 +0000 (20:56 -0000)]
2009-07-26 Miguel de Icaza <miguel@novell.com>
* reflection.c (mono_reflection_sighelper_get_signature_local):
Only dereference the assembly if it has been set. Fixes a
crasher exposed by #525328
svn path=/trunk/mono/; revision=138701
Miguel de Icaza [Sun, 26 Jul 2009 20:35:28 +0000 (20:35 -0000)]
Small fix for trace
svn path=/trunk/mono/; revision=138700
Gert Driesen [Sun, 26 Jul 2009 19:53:09 +0000 (19:53 -0000)]
* SqlParameter.cs: Improved support for SqlValue and SqlTypes.
* SqlParameterTest.cs: Added/improved tests for SqlValue, and
SqlTypes. Improved tests for char and char [] type inferrence.
svn path=/trunk/mcs/; revision=138699
Raja R Harinath [Sun, 26 Jul 2009 18:46:17 +0000 (18:46 -0000)]
Make AOT compilation explicit
* platforms/darwin.make (PLATFORM_AOT_SUFFIX): New.
* platforms/linux.make (PLATFORM_AOT_SUFFIX): New.
* library.make ($(build_lib)): Don't try to AOT compile the
library in its possibly temporary location.
(DO_AOT): Remove. Move to ...
($(the_lib)$(PLATFORM_AOT_SUFFIX)): ... here, new rule to
explicitly run the AOT compilation.
(all-local) [ENABLE_AOT]: Build the AOT compiled library as appropriate.
svn path=/trunk/mcs/; revision=138696
Miguel de Icaza [Sun, 26 Jul 2009 17:44:33 +0000 (17:44 -0000)]
2009-07-26 Miguel de Icaza <miguel@novell.com>
* Calendar.cs: Do not add internal abstract methods to the
Calendar class, it prevents derived classes from existing.
svn path=/trunk/mcs/; revision=138695
Raja R Harinath [Sun, 26 Jul 2009 17:39:40 +0000 (17:39 -0000)]
Fix sed expression to only print if substitution happened
svn path=/trunk/mono/; revision=138694
Gonzalo Paniagua Javier [Sun, 26 Jul 2009 17:08:10 +0000 (17:08 -0000)]
2009-07-26 Gonzalo Paniagua Javier <gonzalo@novell.com>
* StringBuilder.cs: don't throw on null values in ctor(string, int).
Unify another ctor into the main one to account for MaxCapacity.
svn path=/trunk/mcs/; revision=138692
Raja R Harinath [Sun, 26 Jul 2009 16:56:02 +0000 (16:56 -0000)]
Fix parallel-build issues with LIBRARY_USE_INTERMEDIATE_FILE
* library.make (build_lib): Define to a profile dependent
temporary location for LIBRARY_USE_INTERMEDIATE_FILE.
(DO_AOT): New. Extracted from ...
($(build_lib)): ... here. Simplify. Extract code handling
LIBRARY_USE_INTERMEDIATE_FILE into ...
($(the_lib)) [LIBRARY_USE_INTERMEDIATE_FILE]: ... here, a new rule
that takes care of copying the library from its temporary location
to the final location.
svn path=/trunk/mcs/; revision=138691
Raja R Harinath [Sun, 26 Jul 2009 16:55:30 +0000 (16:55 -0000)]
* Makefile ($(build_lib)): Make CYCLIC_DEP_FILES depend on this.
svn path=/trunk/mcs/; revision=138690
Gonzalo Paniagua Javier [Sun, 26 Jul 2009 16:27:07 +0000 (16:27 -0000)]
2009-07-26 Gonzalo Paniagua Javier <gonzalo@novell.com>
* StringBuilderTest.cs: new overflow tests.
svn path=/trunk/mcs/; revision=138688
Gonzalo Paniagua Javier [Sun, 26 Jul 2009 16:26:55 +0000 (16:26 -0000)]
2009-07-26 Gonzalo Paniagua Javier <gonzalo@novell.com>
* StringBuilder.cs: small fixes dealing with _maxCapacity.
svn path=/trunk/mcs/; revision=138686
Miguel de Icaza [Sun, 26 Jul 2009 16:05:47 +0000 (16:05 -0000)]
2009-07-22 Jb Evain <jbevain@novell.com>
* monotouch_System.dll.sources: bring Process in.
svn path=/trunk/mcs/; revision=138685
Raja R Harinath [Sun, 26 Jul 2009 06:47:19 +0000 (06:47 -0000)]
* Makefile.am (version.h): Fix issues when built out of tree.
Remove some redundant 'grep's piped through 'sed's.
svn path=/trunk/mono/; revision=138684
Miguel de Icaza [Sun, 26 Jul 2009 02:01:44 +0000 (02:01 -0000)]
Typo fix
svn path=/trunk/mcs/; revision=138683
Miguel de Icaza [Sun, 26 Jul 2009 01:33:08 +0000 (01:33 -0000)]
Revert patch until Rodrigo comes back on Monday
svn path=/trunk/mcs/; revision=138681
Veerapuram Varadhan [Sat, 25 Jul 2009 19:10:42 +0000 (19:10 -0000)]
2009-07-24 Veerapuram Varadhan <vvaradhan@novell.com>
* DbCommandBuilder.cs (CreateDeleteCommand, CreateUpdateCommand): Add the
nullcheck-param into the respective command's parameter list. Fixes
build breaks. Individual provider's CommandBuilder classes from 2.0
profile onwards use the base version of methods to maintain these commands.
(Get*Command): Cleanup code duplication
* DbDataAdapter (Update): Use SourceColumnNullMapping property to handle
nullcheckparams. Fixes #522624. Patch by
Gert Driesen <drieseng@users.sourceforge.net>.
svn path=/trunk/mcs/; revision=138678
Miguel de Icaza [Sat, 25 Jul 2009 18:40:34 +0000 (18:40 -0000)]
Fix
svn path=/trunk/mono/; revision=138677
Gert Driesen [Sat, 25 Jul 2009 15:17:11 +0000 (15:17 -0000)]
* TdsConnectionPool.cs: Fixed typo in ResetConnectionPool.
svn path=/trunk/mcs/; revision=138674
Mark Probst [Sat, 25 Jul 2009 09:24:42 +0000 (09:24 -0000)]
2009-07-25 Mark Probst <mark.probst@gmail.com>
* sgen-gc.c, object.h, null-gc.c, boehm-gc.c, marshal.c: Really
don't perform the store in mono_gc_wbarrier_generic_nostore().
Remove the second argument (value), which is not needed.
svn path=/trunk/mono/; revision=138673
Michael Barker [Sat, 25 Jul 2009 05:34:40 +0000 (05:34 -0000)]
2009-07-20 Michael Barker <mike@middlesoft.co.uk>
* MessagingProviderLocator.cs: Changed System.Exceptions to
MonoMessagingExceptions.
svn path=/trunk/mcs/; revision=138672
Rodrigo Kumpera [Sat, 25 Jul 2009 00:24:41 +0000 (00:24 -0000)]
2009-07-24 Rodrigo Kumpera <rkumpera@novell.com>
* EventBuilder.cs: Make some fields internal.
* TypeBuilder.cs: Make events field internal.
Remove some MonoTODOs that are already done.
2009-07-24 Rodrigo Kumpera <rkumpera@novell.com>
* MonoGenericClass.cs (initialize): Remember the number
of events available at initialization time. This is required as
mcs expect this behavior under compiler context that new events
are not returned for an instance that was inflated before.
* MonoGenericClass.cs: Kill GetEvents_internal and implement it
in terms of managed code.
svn path=/trunk/mcs/; revision=138669
Rodrigo Kumpera [Sat, 25 Jul 2009 00:24:26 +0000 (00:24 -0000)]
2009-07-24 Rodrigo Kumpera <rkumpera@novell.com>
* MonoGenericClass.cs (GetParentType): Implement using managed code.
svn path=/trunk/mcs/; revision=138668
Rodrigo Kumpera [Sat, 25 Jul 2009 00:24:15 +0000 (00:24 -0000)]
2009-07-24 Rodrigo Kumpera <rkumpera@novell.com>
* MonoGenericClass.cs: Make all icalls private. Kill GetInterfaces_internal.
Add a workaround for a GetField under compiler context.
2009-07-24 Rodrigo Kumpera <rkumpera@novell.com>
* TypeBuilder.cs: Make the interfaces field internal.
svn path=/trunk/mcs/; revision=138667
Gonzalo Paniagua Javier [Fri, 24 Jul 2009 22:16:13 +0000 (22:16 -0000)]
revert 138474, causes bug# 525104
svn path=/trunk/mcs/; revision=138659
Jb Evain [Fri, 24 Jul 2009 20:52:51 +0000 (20:52 -0000)]
try to fix the build
svn path=/trunk/mono/; revision=138656
Carlos Alberto Cortez [Fri, 24 Jul 2009 17:48:18 +0000 (17:48 -0000)]
2009-07-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ToolStripItemCollectionTest.cs: New test for Find.
svn path=/trunk/mcs/; revision=138653
Carlos Alberto Cortez [Fri, 24 Jul 2009 17:47:05 +0000 (17:47 -0000)]
2009-07-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ToolStripItemCollection.cs: Find should do a case insensitive
search, and should throw an ArgumentNullException if the parameter is
an empty string.
svn path=/trunk/mcs/; revision=138652
Marek Safar [Fri, 24 Jul 2009 17:41:53 +0000 (17:41 -0000)]
New tests.
svn path=/trunk/mcs/; revision=138651
Marek Safar [Fri, 24 Jul 2009 17:41:26 +0000 (17:41 -0000)]
2009-07-24 Marek Safar <marek.safar@gmail.com>
* argument.cs, dynamic.cs, expression.cs, class.cs, attribute.cs:
Dynamic arguments.
svn path=/trunk/mcs/; revision=138650
Jb Evain [Fri, 24 Jul 2009 16:50:32 +0000 (16:50 -0000)]
2009-07-24 Jb Evain <jbevain@novell.com>
* scripts/Makefile.am: generate a dmcs script for the 4.0 compiler
when building the net_4_0 profile.
svn path=/trunk/mono/; revision=138646
Jb Evain [Fri, 24 Jul 2009 16:49:29 +0000 (16:49 -0000)]
2009-07-24 Jb Evain <jbevain@novell.com>
* configure.in
* runtime/Makefile.am
* data/Makefile.am: create a and populate a configuration folder
for the net_4_0 profile.
svn path=/trunk/mono/; revision=138645
Zoltan Varga [Fri, 24 Jul 2009 16:49:04 +0000 (16:49 -0000)]
2009-07-24 Zoltan Varga <vargaz@gmail.com>
* null-gc.c (mono_gc_wbarrier_generic_nostore): Define this to fix
the build.
* boehm-gc.c: Ditto.
svn path=/trunk/mono/; revision=138644
Jb Evain [Fri, 24 Jul 2009 16:47:12 +0000 (16:47 -0000)]
2009-07-24 Jb Evain <jbevain@novell.com>
* Initial import of the net_4_0 specific files.
svn path=/trunk/mono/; revision=138643
Rodrigo Kumpera [Fri, 24 Jul 2009 15:59:27 +0000 (15:59 -0000)]
2009-07-24 Rodrigo Kumpera <rkumpera@novell.com>
* FieldOnTypeBuilderInst.cs: Add a ToString() to help debugging.
Make fields internal.
* MethodOnTypeBuilderInst.cs: Build it under BOOTSTRAP_NET_2_0.
2009-07-24 Rodrigo Kumpera <rkumpera@novell.com>
* MonoGenericClass.cs (GetMethod): Use the new code always. Don't
accept MethodOnTypeBuilderInst under compiler context.
* MonoGenericClass.cs (GetField): Use the new code always.
* MonoGenericClass.cs: Make a bunch of methods raise NotSupportedException
when not under compiler context. Remove some dead code.
svn path=/trunk/mcs/; revision=138640
Paolo Molaro [Fri, 24 Jul 2009 15:31:39 +0000 (15:31 -0000)]
Fri Jul 24 17:28:37 CEST 2009 Steven Munroe <munroesj@us.ibm.com>
This patch is contributed under the terms of the MIT/X11 license
* mini-ppc.c (mono_arch_output_basic_block):
(OP_STOREI1_MEMBASE_REG): Handle 32-bit offsets combining addis
for bits 32-47 with signed load/store diplacements for bits
48-63. Use prefered base/offset order for indexed form.
(OP_STOREI2_MEMBASE_REG, OP_STORE_MEMBASE_REG): Same.
(OP_LOAD_MEMBASE, OP_LOADI4_MEMBASE, OP_LOADU4_MEMBASE,
OP_LOADI1_MEMBASE, OP_LOADU1_MEMBASE, OP_LOADU2_MEMBASE,
OP_LOADI2_MEMBASE): Same.
(OP_STORER8_MEMBASE_REG, OP_LOADR8_MEMBASE,
OP_STORER4_MEMBASE_REG, OP_LOADR4_MEMBASE): Same.
(OP_STOREI1_MEMINDEX): Use prefered base/offset order for
indexed form.
(OP_STOREI2_MEMINDEX, OP_STORE_MEMINDEX): Same.
(OP_LOAD_MEMINDEX, OP_LOADI4_MEMINDEX, OP_LOADU4_MEMINDEX,
OP_LOADU2_MEMINDEX, OP_LOADI2_MEMINDEX, OP_LOADU1_MEMINDEX,
OP_LOADI1_MEMINDEX): Same
(OP_LOADR4_MEMINDEX, OP_LOADR8_MEMINDEX, OP_STORER4_MEMINDEX,
OP_STORER8_MEMINDEX): Same
(OP_JMP): Use addis/addi sequence for int cfg->stack_usage
computations.
(mono_arch_emit_prolog): Handle 32-bit offsets combining addis
for bits 32-47 with signed load/store diplacements for bits
48-63. Use prefered base/offset order for indexed form.
svn path=/trunk/mono/; revision=138639
Marek Safar [Fri, 24 Jul 2009 15:24:19 +0000 (15:24 -0000)]
2009-07-24 Marek Safar <marek.safar@gmail.com>
* anonymous.cs (MutateField): Add imported types handling.
svn path=/trunk/mcs/; revision=138638
Marek Safar [Fri, 24 Jul 2009 15:21:36 +0000 (15:21 -0000)]
Push GetFieldFromHandle to BOOTSTRAP_NET_2_0
svn path=/trunk/mcs/; revision=138637
Paolo Molaro [Fri, 24 Jul 2009 15:01:54 +0000 (15:01 -0000)]
Fri Jul 24 16:57:12 CEST 2009 Steven Munroe <munroesj@us.ibm.com>
This patch is contributed under the terms of the MIT/X11 license
* mini-ppc.c: Define PPC_MOVE_FPR_GPR and PPC_ISA_64.
(mono_arch_get_vcall_slot): Fx pointer to int cast warning.
(mono_arch_decompose_opts): Make OP_ICONV_TO_R4 and
OP_ICONV_TO_R8 decompose conditional on !PPC_ISA_64.
(mono_arch_output_basic_block) [OP_JMP]: Use ppc_load32 for
cfg->stack_usage to avoid size warnings.
(mono_arch_output_basic_block) [__mono_ppc64__]: Replace
store/load sequence with mffgpr if PPC_MOVE_FPR_GPR is true.
(mono_arch_output_basic_block) [!__mono_ppc64__]: For
OP_ICONV_TO_R4 or OP_ICONV_TO_R8 and PPC_ISA_64 use fcfid
to convert.
(mono_arch_emit_prolog): Move mono_emit_unwind_op_def_cfa
after code varible is initialized.
Add g_assert ppc_is_imm16 for ainfo->offset. Handle
ainfo->size == 8 when ainfo->offset !ppc_is_imm16.
(mono_arch_emit_epilog):
Move Use ppc_load32 for cfg->stack_usage to avoid size
warnings.
svn path=/trunk/mono/; revision=138636
Paolo Molaro [Fri, 24 Jul 2009 15:00:25 +0000 (15:00 -0000)]
Fri Jul 24 16:54:13 CEST 2009 Steven Munroe <munroesj@us.ibm.com>
This patch is contributed under the terms of the MIT/X11 license
* arch/ppc/ppc-codegen.h (ppc_ha): Define high adjusted
conversion to support combining addis for bits 32-47 with
signed load/store diplacements for bits 48-63.
(ppc_fcfidx, ppc_fctidx, ppc_fctidzx): Share with PPC32.
These instructions are availble to 32-bit programs on 64-bit
hardware and 32-bit both starting with PowerISA V2.01.
[__mono_ppc64__]: Define ppc_mftgpr and ppc_mffgpr for Power6
native mode.
[!__mono_ppc64__]: Define ppc_is_imm32 as constant true for
ppc32.
svn path=/trunk/mono/; revision=138635
Mark Probst [Fri, 24 Jul 2009 14:47:23 +0000 (14:47 -0000)]
2009-07-24 Mark Probst <mark.probst@gmail.com>
* sgen-gc.c, marshal.c, object.h: Make the managed write barrier
not perform the store itself. Introduce
mono_gc_wbarrier_generic_nostore(), which is the same as
mono_gc_wbarrier_generic_store(), except it doesn't perform the
store.
2009-07-24 Mark Probst <mark.probst@gmail.com>
* method-to-ir.c: The write barrier doesn't do the store anymore,
so we have always to emit it. Also, emit the wbarrier after the
store.
svn path=/trunk/mono/; revision=138634
Mark Probst [Fri, 24 Jul 2009 14:34:51 +0000 (14:34 -0000)]
2009-07-24 Mark Probst <mark.probst@gmail.com>
* icall.c (ves_icall_System_Array_SetGenericValueImpl):
mono_gc_wbarrier_value_copy() doesn't perform the copy itself, so
we still need the memcpy().
svn path=/trunk/mono/; revision=138632
Zoltan Varga [Fri, 24 Jul 2009 14:09:17 +0000 (14:09 -0000)]
2009-07-24 Zoltan Varga <vargaz@gmail.com>
* mini-arm.c (mono_arch_get_delegate_invoke_impls): Add a trampoline
for argument count 3 too.
svn path=/trunk/mono/; revision=138631
Atsushi Eno [Fri, 24 Jul 2009 07:09:45 +0000 (07:09 -0000)]
2009-07-24 Atsushi Enomoto <atsushi@ximian.com>
* PeerChannelListener.cs : set source field. Remove unnecessary NIE.
* DuplexChannelBase.cs : comment out some extra fields (so far).
* PeerDuplexChannel.cs : pass valid EndpointAddress to PeerNodeImpl.
svn path=/trunk/mcs/; revision=138609
Atsushi Eno [Fri, 24 Jul 2009 05:36:10 +0000 (05:36 -0000)]
2009-07-24 Atsushi Enomoto <atsushi@ximian.com>
* ChannelFactory.cs: add some null checks.
* PeerCustomResolverBindingElement.cs : add some null checks.
svn path=/trunk/mcs/; revision=138604
Rodrigo Kumpera [Thu, 23 Jul 2009 21:05:01 +0000 (21:05 -0000)]
2009-07-23 Rodrigo Kumpera <rkumpera@novell.com>
* ConstructorBuilder.cs: Make parameters and pinfo fields internal.
* ConstructorOnTypeBuilderInst.cs: Build it under BOOTSTRAP_NET_2_0.
Properly implement GetParameters under compiler context.
* TypeBuilder.cs: Make ctors field internal.
2009-07-23 Rodrigo Kumpera <rkumpera@novell.com>
* MonoGenericClass.cs: Kill GetConstructors_internal and implement it
all in terms of managed code.
* MonoGenericClass.cs: Return instances of ConstructorOnTypeBuilderInst
under bootstrap profile.
svn path=/trunk/mcs/; revision=138591
Rodrigo Kumpera [Thu, 23 Jul 2009 21:04:50 +0000 (21:04 -0000)]
2009-07-23 Rodrigo Kumpera <rkumpera@novell.com>
* FieldOnTypeBuilderInst.cs: Implement MetadataToken and FieldToken
for compiler context.
* TypeBuilder.cs: Make FieldBuilder related fields internal.
2009-07-23 Rodrigo Kumpera <rkumpera@novell.com>
* MonoGenericClass.cs: Kill GetFields_internal and implement it
all in terms of managed code.
svn path=/trunk/mcs/; revision=138590
Rodrigo Kumpera [Thu, 23 Jul 2009 21:04:34 +0000 (21:04 -0000)]
2009-07-23 Rodrigo Kumpera <rkumpera@novell.com>
* PropertyOnTypeBuilderInst.cs: Use TypeBuilder::GetMethod instead of
MonoGenericClass::GetCorrespondingInflatedMethod. This is possible
since the returned methods of MonoGenericClass::GetMethods have been
unified with TypeBuilder::GetMethod.
* TypeBuilder.cs: Make property related fields internal.
2009-07-23 Rodrigo Kumpera <rkumpera@novell.com>
* MonoGenericClass.cs: Kill GetMethods_internal and implement it
all in terms of managed code.
svn path=/trunk/mcs/; revision=138589
Sebastien Pouliot [Thu, 23 Jul 2009 20:02:43 +0000 (20:02 -0000)]
2009-07-23 Sebastien Pouliot <sebastien@ximian.com>
* SerializationMap.cs : Ensure Dictionary is still deserialized
correctly (wrt previous change). Fix moonlight isolated storage
settings.
svn path=/trunk/mcs/; revision=138587
Gonzalo Paniagua Javier [Thu, 23 Jul 2009 17:45:31 +0000 (17:45 -0000)]
2009-07-23 Gonzalo Paniagua Javier <gonzalo@novell.com>
* BuildManager.cs: precompilation setup failed if the precompiled
virtual directory was / and it was deployed somewhere else.
svn path=/trunk/mcs/; revision=138576
Marek Safar [Thu, 23 Jul 2009 17:40:39 +0000 (17:40 -0000)]
2009-07-23 Marek Safar <marek.safar@gmail.com>
* expression.cs, delegate.cs: Moved arguments resolve into their
counterparts expressions. Removed argument resolve from
CollectionElementInitializer.
svn path=/trunk/mcs/; revision=138574
Ankit Jain [Thu, 23 Jul 2009 16:11:31 +0000 (16:11 -0000)]
* xbuild/Microsoft.Common.targets: Oops, forgot to remove some
debug stuff.
svn path=/trunk/mcs/; revision=138561
Marek Safar [Thu, 23 Jul 2009 15:50:07 +0000 (15:50 -0000)]
2009-07-23 Marek Safar <marek.safar@gmail.com>
* expression.cs, delegate.cs: Moved arguments resolve into their
counterparts expressions.
svn path=/trunk/mcs/; revision=138559
Zoltan Varga [Thu, 23 Jul 2009 14:39:25 +0000 (14:39 -0000)]
2009-07-23 Zoltan Varga <vargaz@gmail.com>
* load-exceptions.cs: Add a test for #524498.
svn path=/trunk/mono/; revision=138545
Zoltan Varga [Thu, 23 Jul 2009 14:39:18 +0000 (14:39 -0000)]
2009-07-23 Zoltan Varga <vargaz@gmail.com>
* mini.c (mono_jit_compile_method_with_opt): Add an 'ex' argument to let
the caller handle the exceptions.
(mono_jit_runtime_invoke): Handle exceptions thrown while compiling the
method. Fixes #524498.
svn path=/trunk/mono/; revision=138544
Sebastien Pouliot [Thu, 23 Jul 2009 12:38:49 +0000 (12:38 -0000)]
2009-07-23 Sebastien Pouliot <sebastien@ximian.com>
* XmlObjectSerializerTest.cs: Add test cases with a generic
dictionary (empty, broken with r138386, and with one element)
that both works on MS.NET and for which Moonlight depends on.
svn path=/trunk/mcs/; revision=138531
Gonzalo Paniagua Javier [Thu, 23 Jul 2009 11:53:26 +0000 (11:53 -0000)]
location,location,location. Fixes all the tests I broke last night
svn path=/trunk/mcs/; revision=138529
Marek Habersack [Thu, 23 Jul 2009 10:16:54 +0000 (10:16 -0000)]
2009-07-23 Marek Habersack <mhabersack@novell.com>
* AspGenerator.cs:
Check for duplicate control IDs at the end of parse. Fixes bug
#524358
2009-07-23 Marek Habersack <mhabersack@novell.com>
* ControlBuilder.cs: added an internal helper property
IsNamingContainer.
2009-07-23 Marek Habersack <mhabersack@novell.com>
* HttpException.cs: if an exception is processed which refers to
internal "files", don't show the internal name.
svn path=/trunk/mcs/; revision=138521
Marek Habersack [Thu, 23 Jul 2009 10:16:40 +0000 (10:16 -0000)]
Do not skip comments, just pluck expressions/tags from within them
svn path=/trunk/mcs/; revision=138520
Carlos Alberto Cortez [Thu, 23 Jul 2009 10:07:26 +0000 (10:07 -0000)]
2009-07-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* PropertyGrid.cs: Use click handlers for each ToolStripButton instead
of using a global handler for the ToolStrip. This way the buttons can
be recovered and can have its PerformClick method called properly.
Fixes #522454.
svn path=/trunk/mcs/; revision=138519
Marek Safar [Thu, 23 Jul 2009 09:28:39 +0000 (09:28 -0000)]
New test.
svn path=/trunk/mcs/; revision=138514
Marek Safar [Thu, 23 Jul 2009 09:27:56 +0000 (09:27 -0000)]
2009-07-23 Marek Safar <marek.safar@gmail.com>
A fix for bug #523683
* convert.cs, delegate.cs: Use common overload mechanism for method
group conversion check.
svn path=/trunk/mcs/; revision=138513
Veerapuram Varadhan [Thu, 23 Jul 2009 07:56:24 +0000 (07:56 -0000)]
2009-07-23 Veerapuram Varadhan <vvaradhan@novell.com>
* XmlSchemaDataImporter.cs (HandleDataSourceAnnotation): Don't rely
on the order of elements.
svn path=/trunk/mcs/; revision=138507
Veerapuram Varadhan [Thu, 23 Jul 2009 07:55:32 +0000 (07:55 -0000)]
2009-07-23 Veerapuram Varadhan <vvaradhan@novell.com>
* XmlSchemaDataImporter.cs: String.IsNullOrEmpty changes
svn path=/trunk/mcs/; revision=138506
Atsushi Eno [Thu, 23 Jul 2009 07:21:16 +0000 (07:21 -0000)]
2009-07-23 Atsushi Enomoto <atsushi@ximian.com>
* TcpChannelListener.cs, TcpReplyChannel.cs, TcpRequestChannel.cs:
Acquire TcpClient for each request/reply. Now it is fully
interoperable with .NET.
svn path=/trunk/mcs/; revision=138501