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
Atsushi Eno [Thu, 23 Jul 2009 06:31:30 +0000 (06:31 -0000)]
2009-07-23 Atsushi Enomoto <atsushi@ximian.com>
* TcpReplyChannel.cs, TcpRequestChannel.cs: it somehow adds/expects
ReplyTo and MessageId (though it is session-less), and it expects
EndRecord at weird stage, inconsistent with [MC-NMF]...
Now .NET service accepts one mono client request.
svn path=/trunk/mcs/; revision=138499
Atsushi Eno [Thu, 23 Jul 2009 05:38:17 +0000 (05:38 -0000)]
2009-07-23 Atsushi Enomoto <atsushi@ximian.com>
* TcpReplyChannel.cs, TcpRequestChannel.cs, TcpBinaryFrameManager.cs:
Send and receive unsized message terminator at once.
Send EndRecord mutually. Got one .net client request working.
svn path=/trunk/mcs/; revision=138498
Atsushi Eno [Thu, 23 Jul 2009 05:05:21 +0000 (05:05 -0000)]
2009-07-23 Atsushi Enomoto <atsushi@ximian.com>
* BinaryMessageEncoder.cs : revert the previous dictionary change.
They are indeed used for non-in-band-dictionary messages.
svn path=/trunk/mcs/; revision=138496
Gonzalo Paniagua Javier [Thu, 23 Jul 2009 05:01:23 +0000 (05:01 -0000)]
2009-07-23 Gonzalo Paniagua Javier <gonzalo@novell.com>
* WebConfigurationManager.cs: avoid possible infinite loop when the
path starts with ~ and 1 file check.
svn path=/trunk/mcs/; revision=138495
Gonzalo Paniagua Javier [Thu, 23 Jul 2009 04:22:15 +0000 (04:22 -0000)]
2009-07-23 Gonzalo Paniagua Javier <gonzalo@novell.com>
* LogicalMethodInfo.cs: add CacheDuration property.
* WebServiceHandlerFactory.cs: use CacheDuration.
Fixes bug #524460.
svn path=/trunk/mcs/; revision=138492
Atsushi Eno [Thu, 23 Jul 2009 03:02:29 +0000 (03:02 -0000)]
2009-07-23 Atsushi Enomoto <atsushi@ximian.com>
* TcpDuplexSessionChannel.cs, TcpBinaryFrameManager.cs:
split out binary frame manager class into separate file.
* System.ServiceModel.dll.sources:
split out binary frame manager class into separate file.
svn path=/trunk/mcs/; revision=138489
Gonzalo Paniagua Javier [Thu, 23 Jul 2009 02:57:41 +0000 (02:57 -0000)]
2009-07-22 Gonzalo Paniagua Javier <gonzalo@novell.com>
* WebHeaderCollectionTest.cs: test for allowed characters in headers.
svn path=/trunk/mcs/; revision=138487
Gonzalo Paniagua Javier [Thu, 23 Jul 2009 02:57:21 +0000 (02:57 -0000)]
2009-07-22 Gonzalo Paniagua Javier <gonzalo@novell.com>
* WebHeaderCollection.cs: check the validity of the characters in the
header names.
svn path=/trunk/mcs/; revision=138485
Rodrigo Kumpera [Thu, 23 Jul 2009 02:22:31 +0000 (02:22 -0000)]
2009-07-22 Rodrigo Kumpera <rkumpera@novell.com>
* MethodOnTypeBuilderInst.cs: Implement ToString to help debugging.
* TypeBuilder.cs: Make the properties field internal.
* PropertyOnTypeBuilderInst.cs: New type implementing a property of an
inflated TypeBuilder.
2009-07-22 Rodrigo Kumpera <rkumpera@novell.com>
* MonoGenericClass.cs: Kill GetProperties_internal and implement it
all in terms of managed code.
svn path=/trunk/mcs/; revision=138482
Geoff Norton [Thu, 23 Jul 2009 01:28:20 +0000 (01:28 -0000)]
2009-07-22 Geoff Norton <gnorton@novell.com>
* mini-exceptions.c: Fix build on ia64.
svn path=/trunk/mono/; revision=138479
Geoff Norton [Thu, 23 Jul 2009 01:28:16 +0000 (01:28 -0000)]
2009-07-20 Geoff Norton <gnorton@novell.com>
* mini-x86.h: Fix the x86 version guards to use Apple's
properly defined macros.
svn path=/trunk/mono/; revision=138478
Geoff Norton [Thu, 23 Jul 2009 01:28:12 +0000 (01:28 -0000)]
2009-07-20 Geoff Norton <gnorton@novell.com>
* darwin_stop_world.c: Fix the x86 version guards to use Apple's
properly defined macros.
svn path=/trunk/mono/; revision=138477
Marek Habersack [Wed, 22 Jul 2009 23:46:36 +0000 (23:46 -0000)]
Unbreak the build
svn path=/trunk/mcs/; revision=138476
Marek Habersack [Wed, 22 Jul 2009 23:41:32 +0000 (23:41 -0000)]
2009-07-23 Marek Habersack <mhabersack@novell.com>
* Makefile (TEST_RESOURCE_FILES): added
Test/mainsoft/NunitWebResources/FullTagsInText.aspx
Test/mainsoft/NunitWebResources/TagsExpressionsAndCommentsInText.aspx
2009-07-23 Marek Habersack <mhabersack@novell.com>
* AspGenerator.cs: TextParsed takes a different approach to
post-processing text blocks now. It applies, in order, client-side
comment, tag and expression regular expressions to the text
and splits it into blocks of different types. Then the blocks are
processed accordingly.
svn path=/trunk/mcs/; revision=138474
Gonzalo Paniagua Javier [Wed, 22 Jul 2009 23:29:10 +0000 (23:29 -0000)]
Implement the 2.0 IsRestricted and add tests
svn path=/trunk/mcs/; revision=138472
Ankit Jain [Wed, 22 Jul 2009 23:28:36 +0000 (23:28 -0000)]
Fix bug #511370.
* Project.cs (ExtensionsPath): New.
(InitializeProperties): Set "MSBuildExtensionsPath" property.
svn path=/trunk/mcs/; revision=138471
Ankit Jain [Wed, 22 Jul 2009 23:28:12 +0000 (23:28 -0000)]
* Makefile: Create a lib/mono/xbuild directory for xbuild
extensions.
svn path=/trunk/mcs/; revision=138470
Gonzalo Paniagua Javier [Wed, 22 Jul 2009 21:52:26 +0000 (21:52 -0000)]
2.0
svn path=/trunk/mcs/; revision=138462
Ankit Jain [Wed, 22 Jul 2009 21:51:58 +0000 (21:51 -0000)]
Implement AssignProjectConfiguration task.
In class/Microsoft.Build.Tasks:
* Microsoft.Build.Tasks_test.dll.sources: Added
AssignProjectConfigurationTest.cs .
* Microsoft.Build.Tasks.dll.sources: Added
In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
* AssignProjectConfiguration.cs (Execute): Implement.
In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:
* AssignProjectConfigurationTest.cs: New.
In tools/xbuild:
* xbuild/Microsoft.Common.targets (AssignProjectConfigurations): New.
(ResolveProjectReferences): Add dependency on AssignProjectConfigurations
target. Also, set the config and platform properties for the msbuild task
being invoked.
* xbuild/Microsoft.Common.tasks: Add AssignProjectConfiguration .
In tools/xbuild/tests:
* standalone/Project01: Change config mappings a bit to mix them up,
like Debug->Release etc. Update .proj file and final-outputs.txt.
svn path=/trunk/mcs/; revision=138461
Gonzalo Paniagua Javier [Wed, 22 Jul 2009 19:58:51 +0000 (19:58 -0000)]
2009-07-22 Gonzalo Paniagua Javier <gonzalo@novell.com>
* WebConnectionStream.cs: when sending a 0-length POST, ignore further
writes instead of throwing.
Fixes bug #524049.
svn path=/trunk/mcs/; revision=138447
Veerapuram Varadhan [Wed, 22 Jul 2009 18:52:56 +0000 (18:52 -0000)]
2009-07-23 Veerapuram Varadhan <vvaradhan@novell.com>
* XmlSchemaDataImporter.cs: Added null checks.
svn path=/trunk/mcs/; revision=138444
Veerapuram Varadhan [Wed, 22 Jul 2009 18:27:00 +0000 (18:27 -0000)]
2009-07-22 Veerapuram Varadhan <vvaradhan@novell.com>
* XmlSchemaDataImporter.cs:
CustomDataClassGenerator.cs: Silence off CWLs.
svn path=/trunk/mcs/; revision=138439
Veerapuram Varadhan [Wed, 22 Jul 2009 18:26:17 +0000 (18:26 -0000)]
* Implementation of System.Data.Design.TypedDataSetGenerator::Generate methods that generate TableAdapter code
svn path=/trunk/mcs/; revision=138437
Veerapuram Varadhan [Wed, 22 Jul 2009 18:25:42 +0000 (18:25 -0000)]
* Use System.Data.Design version of TypedDataSetGenerator instead of from System.Data
svn path=/trunk/mcs/; revision=138436
Veerapuram Varadhan [Wed, 22 Jul 2009 18:24:58 +0000 (18:24 -0000)]
* Implemented generation of code for TableAdapters
svn path=/trunk/mcs/; revision=138435
Veerapuram Varadhan [Wed, 22 Jul 2009 18:24:13 +0000 (18:24 -0000)]
* Utility changes to convert between DbType/SqlDbType/System.Type
svn path=/trunk/mcs/; revision=138434
Veerapuram Varadhan [Wed, 22 Jul 2009 18:23:24 +0000 (18:23 -0000)]
* Handle <TableAdapter ...> tags in XSD
svn path=/trunk/mcs/; revision=138433
Marek Safar [Wed, 22 Jul 2009 14:26:28 +0000 (14:26 -0000)]
New test.
svn path=/trunk/mcs/; revision=138411
Marek Safar [Wed, 22 Jul 2009 14:25:53 +0000 (14:25 -0000)]
2009-07-22 Marek Safar <marek.safar@gmail.com>
A fix for bug #523899
* generics.cs: Exact type inference with other bound types.
svn path=/trunk/mcs/; revision=138410
Jb Evain [Wed, 22 Jul 2009 14:20:44 +0000 (14:20 -0000)]
2009-07-22 Jb Evain <jbevain@novell.com>
* monotouch_System.dll.sources: bring Process in.
svn path=/trunk/mcs/; revision=138409
Jb Evain [Wed, 22 Jul 2009 14:20:27 +0000 (14:20 -0000)]
2009-07-22 Jb Evain <jbevain@novell.com>
* ExpandableObjectConverter.cs: no method to override for a NET_2_1 profile.
svn path=/trunk/mcs/; revision=138408
Jb Evain [Wed, 22 Jul 2009 14:19:51 +0000 (14:19 -0000)]
2009-07-22 Jb Evain <jbevain@novell.com>
* ProcessStartInfo.cs: force no-verb on MONOTOUCH.
svn path=/trunk/mcs/; revision=138407
Mark Probst [Wed, 22 Jul 2009 14:07:21 +0000 (14:07 -0000)]
2009-07-22 Mark Probst <mark.probst@gmail.com>
* sgen-gc.c: Align array bounds calculation to mono_array_size_t
so that big arrays are handled correctly. Always use
safe_object_get_size() to calculate array object sizes, which
takes bounds into account.
svn path=/trunk/mono/; revision=138406
Mark Probst [Wed, 22 Jul 2009 12:46:40 +0000 (12:46 -0000)]
2009-07-22 Mark Probst <mark.probst@gmail.com>
* sgen-gc.c (mono_gc_wbarrier_value_copy): Make sure the class's
GC descriptor is computed before we use it.
svn path=/trunk/mono/; revision=138398
Mark Probst [Wed, 22 Jul 2009 12:37:53 +0000 (12:37 -0000)]
2009-07-22 Mark Probst <mark.probst@gmail.com>
* icall.c (ves_icall_System_Array_SetGenericValueImpl): Use a
write barrier if necessary.
svn path=/trunk/mono/; revision=138397
Atsushi Eno [Wed, 22 Jul 2009 12:33:56 +0000 (12:33 -0000)]
2009-07-22 Atsushi Enomoto <atsushi@ximian.com>
* XmlNamespaceManager.cs : Adding prefix "xml" seems to be allowed
as long as the URI is correct. Fixed bug #514015.
* XmlNamespaceManagerTests.cs : add test for bug #514015.
svn path=/trunk/mcs/; revision=138396
Mark Probst [Wed, 22 Jul 2009 12:22:33 +0000 (12:22 -0000)]
2009-07-22 Mark Probst <mark.probst@gmail.com>
* icall-def.h, icall.c, thread-types.h: New separate icall for
VolatileWrite(object&,object) that uses a write barrier.
* console-unix.c, file-io.c, icall.c, threads.c: Use write
barriers in icalls which write to "ref" or "out" arguments.
2009-07-22 Mark Probst <mark.probst@gmail.com>
* mini-exceptions.c (ves_icall_get_frame_info): Use write
barriers.
svn path=/trunk/mono/; revision=138395
Atsushi Eno [Wed, 22 Jul 2009 12:10:53 +0000 (12:10 -0000)]
2009-07-22 Atsushi Enomoto <atsushi@ximian.com>
* XmlDictionaryReader.cs : ReadValueAsBase64(byte[],int,int) is only
in SL2.
svn path=/trunk/mcs/; revision=138387
Atsushi Eno [Wed, 22 Jul 2009 12:08:21 +0000 (12:08 -0000)]
2009-07-22 Atsushi Enomoto <atsushi@ximian.com>
* SerializationMap.cs : for empty element, do not try to consume
children. Fixed bug #524086.
For enum, it is always error when the enum is not flags, and
is always default value for flags.
* XmlObjectSerializerTest.cs :
Add test for bug #524086 by Rolf Bjarne Kvinge.
Add enum flags test, which should not raise an error.
svn path=/trunk/mcs/; revision=138386
Raja R Harinath [Wed, 22 Jul 2009 11:10:49 +0000 (11:10 -0000)]
Don't complain when the same type is implemented by the
output assembly as well as multiple referenced assemblies
* namespace.cs (RootNamespace.LookupTypeReflection): Add
'must_be_unique' flag.
(GlobalRootNamespace): Update to changes.
(Namespace.LookupType): Pass 'must_be_unique' only when we don't
already have a type in hand.
svn path=/trunk/mcs/; revision=138385
Atsushi Eno [Wed, 22 Jul 2009 11:05:00 +0000 (11:05 -0000)]
2009-07-22 Atsushi Enomoto <atsushi@ximian.com>
* XPathNavigator.cs : name test did not handle String.Empty cases
for name and ns (i.e. no filter). Fixed bug #515136.
* XPathNavigatorTests.cs : added test for bug #515136.
svn path=/trunk/mcs/; revision=138384
Marek Safar [Wed, 22 Jul 2009 10:45:34 +0000 (10:45 -0000)]
New test & update.
svn path=/trunk/mcs/; revision=138381
Marek Safar [Wed, 22 Jul 2009 10:45:12 +0000 (10:45 -0000)]
2009-07-22 Marek Safar <marek.safar@gmail.com>
* expression.cs: More verifier instrumentation.
* statement.cs: Do proper throw expression conversion.
svn path=/trunk/mcs/; revision=138380
Marek Safar [Wed, 22 Jul 2009 09:43:58 +0000 (09:43 -0000)]
2009-07-22 Marek Safar <marek.safar@gmail.com>
A fix for bug #522789
* expression.cs: Mutate invocation return type.
svn path=/trunk/mcs/; revision=138375
Ankit Jain [Wed, 22 Jul 2009 08:39:12 +0000 (08:39 -0000)]
* xbuild/Microsoft.VisualBasic.targets (Vbc.References): Remove
"@(ChildProjectReferences)" as it gets resolved earlier
and is part of @(ResolvedFiles).
svn path=/trunk/mcs/; revision=138370
Atsushi Eno [Wed, 22 Jul 2009 08:38:04 +0000 (08:38 -0000)]
2009-07-22 Atsushi Enomoto <atsushi@ximian.com>
* XmlInputStream.cs : cosmetic exception type change. Patch by
Hib Eris. Fixed bug #523971.
* XmlTextReaderTests.cs : added test for bug #523971 by Hib Eris.
svn path=/trunk/mcs/; revision=138369
Atsushi Eno [Wed, 22 Jul 2009 08:21:30 +0000 (08:21 -0000)]
2009-07-22 Atsushi Enomoto <atsushi@ximian.com>
* XmlFormatterDeserializer.cs : when reading empty primitive value,
make sure to consume the reader. Fixed bug #524083.
* XmlObjectSerializerTest.cs : add test for bug #524083, by
Rolf Bjarne Kvinge.
svn path=/trunk/mcs/; revision=138367
Atsushi Eno [Wed, 22 Jul 2009 07:47:33 +0000 (07:47 -0000)]
2009-07-22 Atsushi Enomoto <atsushi@ximian.com>
* SerializationMap.cs : call MoveToContent() before examining
the reader node type.
* XmlObjectSerializerTest.cs : now we can make xml indented as
originally done in #524088.
svn path=/trunk/mcs/; revision=138364
Atsushi Eno [Wed, 22 Jul 2009 07:22:25 +0000 (07:22 -0000)]
2009-07-22 Atsushi Enomoto <atsushi@ximian.com>
* KnownTypeCollection.cs : Find KnownTypeAttributes in base types
too. Patch by Rolf Bjarne Kvinge. Fixed bug #524088.
* XmlObjectSerializerTest.cs : added test for bug #524088 by
Rolf Bjarne Kvinge (a bit modified).
svn path=/trunk/mcs/; revision=138360
Atsushi Eno [Wed, 22 Jul 2009 06:23:35 +0000 (06:23 -0000)]
2009-07-21 Atsushi Enomoto <atsushi@ximian.com>
* XNodeReader.cs : do not possibly return null as the Prefix value.
Fixed bug #524084.
* XNodeReaderTest.cs : test Prefix on default namespace.
svn path=/trunk/mcs/; revision=138356
Atsushi Eno [Wed, 22 Jul 2009 06:13:07 +0000 (06:13 -0000)]
2009-07-21 Atsushi Enomoto <atsushi@ximian.com>
* XNodeReader.cs : a couple of properties did not return correct
value for EOF state.
* XNodeReaderTest.cs : test member behaviors at EOF state.
svn path=/trunk/mcs/; revision=138354
Atsushi Eno [Wed, 22 Jul 2009 06:02:13 +0000 (06:02 -0000)]
2009-07-21 Atsushi Enomoto <atsushi@ximian.com>
* XNodeReader.cs : do not return element's IsEmpty on attributes.
* XNodeReaderTest.cs : on attributes IsEmptyElement is false.
svn path=/trunk/mcs/; revision=138352
Marek Habersack [Tue, 21 Jul 2009 22:42:27 +0000 (22:42 -0000)]
Fix the build
svn path=/trunk/mcs/; revision=138339
Ankit Jain [Tue, 21 Jul 2009 20:20:26 +0000 (20:20 -0000)]
Fix bug #517974.
In class/Microsoft.Build.Tasks:
* Makefile: Add System.Core .
In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
Fix bug #517974.
* ResolvedReference.cs (AssemblyName): New.
(IsPrimary): New. Primary (eg. specified in the project file) or
dependent reference.
(FoundInSearchPathAsString): New.
* AssemblyResolver.cs (GetResolvedReference): Add a 'assembly name'
param for the new field in ResolvedReference.
(AssemblyNamesCompatible): Fix the check for public key token.
Track api changes.
* ResolveAssemblyReference.cs: Keep track of resolved assemblies,
prevent duplicate references and other files.
Process dependencies after resolving all the primary references.
Search for dependencies in parent assembly's dir first and then
the specified search paths.
Detect assembly version conflicts and try to resolve.
Improve logged messages.
(PrimaryReference): New.
(ResolveAssemblyReferenceHelper.AddUniqueFile): New extension method.
In tools/xbuild:
* xbuild.Microsoft.CSharp.targets (Csc.References): Remove
"@(ChildProjectReferences)" as it gets resolved earlier
and is part of @(ResolvedFiles).
In tools/xbuild/tests:
* standalone/Project01: Add references to two "external" assemblies
with dependencies.
* standalone/Project01/Program.cs: Add references in code to the new
assemblies, to ensure that they are required for compilation.
svn path=/trunk/mcs/; revision=138329
Gert Driesen [Tue, 21 Jul 2009 19:12:18 +0000 (19:12 -0000)]
* Container.cs: Replaced for loop with for loop.
[Fixes bug #522474]
* ContainerTest.cs: Added test for bug #522474.
svn path=/trunk/mcs/; revision=138328