Jb Evain [Wed, 9 Dec 2009 19:26:51 +0000 (19:26 -0000)]
2009-12-09 Jb Evain <jbevain@novell.com>
* ILGeneratorTest.cs: add a test for Emit(OpCode,LocalBuilder)
when the opcode is not related to locals.
svn path=/trunk/mcs/; revision=147939
Jb Evain [Wed, 9 Dec 2009 19:22:33 +0000 (19:22 -0000)]
2009-12-09 Jb Evain <jbevain@novell.com>
* StringInfo.cs: default constructor falls back to an empty string info.
svn path=/trunk/mcs/; revision=147936
Jb Evain [Wed, 9 Dec 2009 19:22:03 +0000 (19:22 -0000)]
2009-12-09 Jb Evain <jbevain@novell.com>
* StringInfoTest.cs: test the default constructor.
svn path=/trunk/mcs/; revision=147935
Jb Evain [Wed, 9 Dec 2009 19:21:25 +0000 (19:21 -0000)]
2009-12-09 Jb Evain <jbevain@novell.com>
* ThreadPool.cs (QueueUserWorkItem): properly throw
an ANE instead of triggering a NRE when being passed a null callback.
svn path=/trunk/mcs/; revision=147934
Jb Evain [Wed, 9 Dec 2009 19:20:42 +0000 (19:20 -0000)]
2009-12-09 Jb Evain <jbevain@novell.com>
* ThreadTest.cs: add a test for a null callback passed to
ThreadPool.QueueUserWorkItem.
svn path=/trunk/mcs/; revision=147933
Jb Evain [Wed, 9 Dec 2009 19:19:59 +0000 (19:19 -0000)]
2009-12-09 Jb Evain <jbevain@novell.com>
* StringComparer.cs (GetHashCode): properly throw
an ANE instead of an NRE.
svn path=/trunk/mcs/; revision=147932
Jb Evain [Wed, 9 Dec 2009 19:19:13 +0000 (19:19 -0000)]
2009-12-09 Jb Evain <jbevain@novell.com>
* StringComparerTest.cs: add test for null passed to a ordinal
comparer GetHashCode.
svn path=/trunk/mcs/; revision=147931
Zoltan Varga [Wed, 9 Dec 2009 15:04:08 +0000 (15:04 -0000)]
2009-12-09 Zoltan Varga <vargaz@gmail.com>
* debugger-agent.c (start_runtime_invoke): Fix a crash if this is called
on the debugger thread.
svn path=/trunk/mono/; revision=147912
Rodrigo Kumpera [Wed, 9 Dec 2009 13:33:09 +0000 (13:33 -0000)]
2009-12-09 Rodrigo Kumpera <rkumpera@novell.com>
* MethodBaseTest.cs: Remove all NET_2_0 directives. Add test
for GetCurrentMethod and generics.
svn path=/trunk/mcs/; revision=147911
Rodrigo Kumpera [Wed, 9 Dec 2009 13:25:04 +0000 (13:25 -0000)]
2009-12-09 Rodrigo Kumpera <rkumpera@novell.com>
* icall.c (ves_icall_GetCurrentMethod): Drop all generic arguments
from a method before returning it. This is the expected behavior.
svn path=/trunk/mono/; revision=147910
Marek Safar [Wed, 9 Dec 2009 11:59:02 +0000 (11:59 -0000)]
2009-12-09 Marek Safar <marek.safar@gmail.com>
* CSharpBinder.cs: Actually use merged restrictions.
svn path=/trunk/mcs/; revision=147908
Miguel de Icaza [Wed, 9 Dec 2009 06:52:49 +0000 (06:52 -0000)]
2009-12-09 Miguel de Icaza <miguel@novell.com>
* Enum.cs: Add new .NET 4.0 API.
svn path=/trunk/mcs/; revision=147901
Marek Habersack [Tue, 8 Dec 2009 22:33:32 +0000 (22:33 -0000)]
2009-12-08 Marek Habersack <mhabersack@novell.com>
* TemplateControlCompiler.cs: GetConverterForMember looks up
member type converters using type description providers in
addition to custom attributes.
Result of GenerateInstance isn't cast to the target type if the
type isn't public.
2009-12-08 Marek Habersack <mhabersack@novell.com>
* TypeDescriptor.cs: AddProvider overloads must refresh the
instance and type when called.
If GetProvider (object) fails to look up provider for the passed
instance, it attempts to look up provider for the instance's
type.
GetProvider (Type) looks for providers using all the parent types
of the passed type if no provider for it is found.
WrappedTypeDescriptionProvider.GetTypeDescriptor chains up to the
wrapped type, if present.
* TypeDescriptionProvider.cs: GetTypeDescriptor properly returns
the value obtained from parent in GetTypeDescriptor.
2009-12-08 Marek Habersack <mhabersack@novell.com>
* Type.cs: added overloads for the == and != operators (4.0).
svn path=/trunk/mcs/; revision=147889
Zoltan Varga [Tue, 8 Dec 2009 21:13:04 +0000 (21:13 -0000)]
2009-12-08 Zoltan Varga <vargaz@gmail.com>
* mini-llvm.c (mono_llvm_emit_method): Add more SIMD opcodes.
svn path=/trunk/mono/; revision=147886
Geoff Norton [Tue, 8 Dec 2009 20:57:39 +0000 (20:57 -0000)]
2009-12-08 Geoff Norton <gnorton@novell.com>
* debugger-agent.c: Refactor the mono_runtime_invoke guarding against
stepping out into native code. There were issues with nested invokes
like .cctors.
svn path=/trunk/mono/; revision=147885
Marek Safar [Tue, 8 Dec 2009 20:41:44 +0000 (20:41 -0000)]
2009-12-08 Marek Safar <marek.safar@gmail.com>
* Makefile: Replace dmcs reference with Mono.CSharp.
svn path=/trunk/mcs/; revision=147882
Marek Safar [Tue, 8 Dec 2009 17:20:32 +0000 (17:20 -0000)]
2009-12-08 Marek Safar <marek.safar@gmail.com>
* AssemblyInfo.cs: InternalsVisibleTo Microsoft.CSharp.
svn path=/trunk/mcs/; revision=147869
Jonathan Pryor [Tue, 8 Dec 2009 17:19:50 +0000 (17:19 -0000)]
* class/System.Data.Linq/src/**/*,
class/System.Data.Linq/examples/**/*: Sync with DbLinq r1293. This
adds SchemaLoader support for Microsoft SQL Server, allowing sqlmetal
to generate entity stubs against SQL Server databases.
* class/System.Data.Linq/System.Data.Linq.dll.sources: Add files to the
build.
* tools/sqlmetal/sqlmetal.exe.config: Add provider entry for SQL Server.
* tools/sqlmetal/sqlmetal.exe.sources: Add additional files.
svn path=/trunk/mcs/; revision=147868
Zoltan Varga [Tue, 8 Dec 2009 15:28:07 +0000 (15:28 -0000)]
2009-12-08 Zoltan Varga <vargaz@gmail.com>
* mini.c (mono_print_method_from_ip): Fix the lookup of trampolines.
* mini-codegen.c (mono_local_regalloc): Allow non-call opcodes with cloc:c.
* cpu-<ARCH>.md: Make call_handler clob:c.
* mini.c: Reenable SSA for methods with clauses.
svn path=/trunk/mono/; revision=147860
Rodrigo Kumpera [Tue, 8 Dec 2009 14:35:00 +0000 (14:35 -0000)]
2009-12-08 Rodrigo Kumpera <rkumpera@novell.com>
* typemanager.cs (MakeGenericMethod): Fix stupid mistake.
svn path=/trunk/mcs/; revision=147857
Rodrigo Kumpera [Tue, 8 Dec 2009 14:34:29 +0000 (14:34 -0000)]
2009-12-08 Rodrigo Kumpera <rkumpera@novell.com>
* MethodInfoTest.cs: Add some tests for MS compatible behavior of
MakeGenericMethod.
svn path=/trunk/mcs/; revision=147856
Zoltan Varga [Tue, 8 Dec 2009 14:22:28 +0000 (14:22 -0000)]
2009-12-08 Zoltan Varga <vargaz@gmail.com>
* mini.c (mini_method_compile): Disable SSA for now for methods with clauses,
as it causes failures on x86.
svn path=/trunk/mono/; revision=147855
Sebastien Pouliot [Tue, 8 Dec 2009 14:10:38 +0000 (14:10 -0000)]
2009-12-08 Sebastien Pouliot <sebastien@ximian.com>
* driver.c: Fail gracefully with --compile-all if mono_method_signature
returns NULL (e.g. a bad assembly).
svn path=/trunk/mono/; revision=147853
Rodrigo Kumpera [Tue, 8 Dec 2009 14:07:22 +0000 (14:07 -0000)]
2009-12-08 Rodrigo Kumpera <rkumpera@novell.com>
* MonoMethod.cs (MakeGenericMethod): If any of the arguments is
a non system type, inflate to a MethodOnTypeBuilderInst.
2009-12-08 Rodrigo Kumpera <rkumpera@novell.com>
* MethodOnTypeBuilderInst.cs: Add new constructor that takes a MethodInfo
as base method. Change how compiler context is calculated to take the
instantiation vector into account.
svn path=/trunk/mcs/; revision=147852
Rodrigo Kumpera [Tue, 8 Dec 2009 14:07:00 +0000 (14:07 -0000)]
2009-12-08 Rodrigo Kumpera <rkumpera@novell.com>
* typemanager.cs: Add MakeGenericMethod that checks if the method
is really the generic method definition.
ecore.cs (MethodGroupExpr:IsApplicable): Use new TypeManager function
to inflate generic methods.
svn path=/trunk/mcs/; revision=147851
Rodrigo Kumpera [Tue, 8 Dec 2009 14:06:38 +0000 (14:06 -0000)]
2009-12-08 Rodrigo Kumpera <rkumpera@novell.com>
* ParameterInfo.cs: Add constructor that takes an array of ParameterInfo
objects.
2009-12-08 Rodrigo Kumpera <rkumpera@novell.com>
* MethodOnTypeBuilderInst.cs: Change base_method type from MethodBuilder to
MethodInfo.
svn path=/trunk/mcs/; revision=147850
Rodrigo Kumpera [Tue, 8 Dec 2009 14:06:16 +0000 (14:06 -0000)]
2009-12-08 Rodrigo Kumpera <rkumpera@novell.com>
* Type.cs: Add virtual property IsCompilerContext to cleanup
compiler context resolution across SRE.
2009-12-08 Rodrigo Kumpera <rkumpera@novell.com>
* MonoGenericClass.cs: Implement IsCompilerContext property and replace
all checks to use it.
2009-12-08 Rodrigo Kumpera <rkumpera@novell.com>
* DerivedTypes.cs: Implement IsCompilerContext property and replace
all checks to use it.
* EnumBuilder.cs: Ditto.
* GenericTypeParameterBuilder.cs: Ditto.
* TypeBuilder.cs: Ditto.
* FieldOnTypeBuilderInst.cs: Replace ad-hoc check for compiler context
with proper call to generic instance type.
* MethodOnTypeBuilderInst.cs: Ditto.
* ConstructorOnTypeBuilderInst.cs: Ditto.
svn path=/trunk/mcs/; revision=147849
Rodrigo Kumpera [Tue, 8 Dec 2009 14:04:37 +0000 (14:04 -0000)]
2009-12-08 Rodrigo Kumpera <rkumpera@novell.com>
* reflection.c (inflate_method): Handle the case of a regular system type.
svn path=/trunk/mono/; revision=147848
Mark Probst [Tue, 8 Dec 2009 13:23:48 +0000 (13:23 -0000)]
2009-12-08 Mark Probst <mark.probst@gmail.com>
* sgen-gc.c, sgen-pinning-stats.c, sgen-gray.c: More statistics
gathering code.
* mempool.c, mempool-internals.h: New function
mono_mempool_get_bytes_allocated().
* Makefile.am: sgen-pinning-stats.c added.
svn path=/trunk/mono/; revision=147847
Marek Safar [Tue, 8 Dec 2009 13:01:18 +0000 (13:01 -0000)]
New test.
svn path=/trunk/mcs/; revision=147845
Marek Safar [Tue, 8 Dec 2009 12:58:33 +0000 (12:58 -0000)]
2009-12-08 Marek Safar <marek.safar@gmail.com>
A fix for bug #561149
anonymous.cs: Use actual type parameters when checking for generic
method host.
svn path=/trunk/mcs/; revision=147844
Marek Safar [Tue, 8 Dec 2009 12:31:36 +0000 (12:31 -0000)]
2009-12-08 Marek Safar <marek.safar@gmail.com>
A fix for bug #561369
expression.cs (DoNumericPromotion): Fixed typo.
svn path=/trunk/mcs/; revision=147841
Marek Safar [Tue, 8 Dec 2009 12:23:58 +0000 (12:23 -0000)]
2009-12-08 Marek Safar <marek.safar@gmail.com>
*.cs: Moving to generics world.
cs-parser.jay: Removed current_array_type.
svn path=/trunk/mcs/; revision=147840
Chris Toshok [Tue, 8 Dec 2009 08:05:31 +0000 (08:05 -0000)]
2009-12-08 Chris Toshok <toshok@ximian.com>
* JsonSerializationReader.cs (DeserializeGenericCollection): in
the 2.1 case we still need to convert the List<> to an array.
svn path=/trunk/mcs/; revision=147835
Mark Probst [Tue, 8 Dec 2009 07:00:00 +0000 (07:00 -0000)]
2009-12-08 Mark Probst <mark.probst@gmail.com>
* sgen-gc.c (create_allocator): Only use the fast path if the
object size is within the small object size limit.
svn path=/trunk/mono/; revision=147832
Carlos Alberto Cortez [Tue, 8 Dec 2009 05:08:05 +0000 (05:08 -0000)]
2009-12-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* Ping.cs: Try to detect the path to the bin command, since different
Unix systems store it in different places.
Fixes #519272.
svn path=/trunk/mcs/; revision=147831
Chris Toshok [Tue, 8 Dec 2009 04:56:29 +0000 (04:56 -0000)]
in System.ServiceModel.Web/System.Runtime.Serialization.Json:
2009-12-07 Chris Toshok <toshok@ximian.com>
* JsonReaderWriterFactory.cs (CreateJsonReader): pass null for the
encoding parameter instead of calling Detect. The jsonreader's
PushbackReader will autodetect.
(Detect): remove. a BufferedStream created from an unseekable
stream is itself unseekable, which makes it just as useless. This
breaks netflix's isostore file parsing.
* JsonReader.cs (PushbackReader): add a ctor which doesn't take an
encoding, for the autodetecting reader case. for this ctor, pass
true to StreamReader's ctor for detectEncodingFromByteOrderMarks.
svn path=/trunk/mcs/; revision=147829
Geoff Norton [Mon, 7 Dec 2009 23:18:50 +0000 (23:18 -0000)]
2009-12-07 Geoff Norton <gnorton@novell.com>
* debugger-agent.c: Darwin can colesce signals, so we need to handle
the interrupt_count slightly differently. Native threads were never
marked as resumed.
svn path=/trunk/mono/; revision=147818
Mark Probst [Mon, 7 Dec 2009 22:45:15 +0000 (22:45 -0000)]
2009-12-07 Mark Probst <mark.probst@gmail.com>
* sgen-gc.c: Make sure section->data is aligned to 8 bytes by
possibly adding padding to sizeof (GCMemSection).
svn path=/trunk/mono/; revision=147811
Mark Probst [Mon, 7 Dec 2009 22:03:54 +0000 (22:03 -0000)]
2009-12-07 Mark Probst <mark.probst@gmail.com>
* sgen-gc.c (mono_gc_wbarrier_nostore): Skip the remset if the
reference is not in the nursery.
svn path=/trunk/mono/; revision=147810
Zoltan Varga [Mon, 7 Dec 2009 21:09:23 +0000 (21:09 -0000)]
Fix the build.
svn path=/trunk/mono/; revision=147803
Zoltan Varga [Mon, 7 Dec 2009 21:07:08 +0000 (21:07 -0000)]
2009-12-07 Zoltan Varga <vargaz@gmail.com>
* mini.c (mini_method_compile): Do the disable_llvm checks early
and avoid the LLVM compile pass if the checks fail.
svn path=/trunk/mono/; revision=147802
Zoltan Varga [Mon, 7 Dec 2009 20:59:03 +0000 (20:59 -0000)]
2009-12-07 Zoltan Varga <vargaz@gmail.com>
* mini.c ssa.c abcremoval.c: Enable SSA for methods with exception clauses.
svn path=/trunk/mono/; revision=147801
Rodrigo Kumpera [Mon, 7 Dec 2009 18:53:13 +0000 (18:53 -0000)]
2009-12-07 Rodrigo Kumpera <rkumpera@novell.com>
* class.c (mono_class_from_typeref): Bounds check idx against the
assemblyref table.
svn path=/trunk/mono/; revision=147797
Marek Safar [Mon, 7 Dec 2009 17:44:45 +0000 (17:44 -0000)]
2009-12-07 Marek Safar <marek.safar@gmail.com>
*.cs: Moving to generics world.
svn path=/trunk/mcs/; revision=147787
Atsushi Eno [Mon, 7 Dec 2009 15:50:08 +0000 (15:50 -0000)]
2009-12-07 Atsushi Enomoto <atsushi@ximian.com>
* ChannelDispatcher.cs : fix regression; ServiceBehaviorAttribute
could be set explicitly null.
svn path=/trunk/mcs/; revision=147782
Atsushi Eno [Mon, 7 Dec 2009 15:40:13 +0000 (15:40 -0000)]
2009-12-07 Atsushi Enomoto <atsushi@ximian.com>
* ChannelDispatcher.cs : handle AddressFilterMode (.Any only yet).
* OperationInvokerHandler.cs : fix wrong IAsyncResult use.
svn path=/trunk/mcs/; revision=147781
Mark Probst [Mon, 7 Dec 2009 14:47:22 +0000 (14:47 -0000)]
2009-12-07 Mark Probst <mark.probst@gmail.com>
* sgen-gc.c, sgen-pinning.c: When pinning, make only one pass
through the potential roots, then sort the results and find the
pinned objects from there.
* Makefile.am: sgen-pinning.c added.
svn path=/trunk/mono/; revision=147779
Marek Safar [Mon, 7 Dec 2009 14:18:46 +0000 (14:18 -0000)]
2009-12-07 Marek Safar <marek.safar@gmail.com>
* Makefile: Add System.Core to basic.
svn path=/trunk/mcs/; revision=147776
Marek Safar [Mon, 7 Dec 2009 14:17:04 +0000 (14:17 -0000)]
Make ready for bootstrap.
svn path=/trunk/mcs/; revision=147775
Atsushi Eno [Mon, 7 Dec 2009 14:02:59 +0000 (14:02 -0000)]
2009-12-07 Atsushi Enomoto <atsushi@ximian.com>
* ServiceHostBase.cs : in AddBaseAddress(), use base_addresses
instead of Description. It could be called in InitializeDescription.
* InstanceBehavior.cs : allow nonpublic instance.
* DefaultOperationInvoker.cs : do use IsSynchronous correctly.
svn path=/trunk/mcs/; revision=147774
Chris Toshok [Mon, 7 Dec 2009 07:39:17 +0000 (07:39 -0000)]
in class/corlib/System.Collections.Generic/:
2009-12-06 Chris Toshok <toshok@ximian.com>
* KeyValuePair.cs: we need setters for Key and Value so they can
be set via reflection from
System.ServiceModel.System.Runtime.Serialization.Json.TypeMap.cs.
in class/System.ServiceModel.Web/System.Runtime.Serialization.Json/:
2009-12-06 Chris Toshok <toshok@ximian.com>
* JsonSerializationReader.cs (DeserializeGenericCollection): this
is jb's (iirc) patch, actually. Types subclassing from
ICollection<T> need to be supported, and since it's an interface
the implementation might be explicit. So instead of groveling
around in the actual type, we need to dispatch through the
interface's method.
* TypeMap.cs (CreateDefaultTypeMap): we need to include non-public
properties, since KeyValuePair items must be able to write to Key
and Value properties.
* JsonReader.cs (ReadContent): for builtin values (null, true,
false), use TryReadString instead of individual ReadChar's, since
they aren't reversible if the string didn't match. In the default
case, if we're LameSilverlightLiseralParser, we need to push back
the current character onto the stream -- this is because for
netflix's AppConfig.json we were parsing "frameRatePolicy" as
"rameRatePolicy" (the 'f' was triggering the "false" parsing).
(class PushBackReader): add this class to unify all the pushing
back of characters we need to do. 1 character (JsonReader's old
"saved_char") isn't enough given that you could have a property
named, e.g., "falsifiable", and we'd need 4 characters worth of
pushback to recognize that correctly.
svn path=/trunk/mcs/; revision=147766
Mark Probst [Mon, 7 Dec 2009 02:55:39 +0000 (02:55 -0000)]
2009-12-07 Mark Probst <mark.probst@gmail.com>
* sgen-gc.c: Record generic stores in specialized remset buffers.
svn path=/trunk/mono/; revision=147764
Zoltan Varga [Mon, 7 Dec 2009 01:57:45 +0000 (01:57 -0000)]
2009-12-07 Zoltan Varga <vargaz@gmail.com>
* mini-llvm.c: Put our methods/globals into the 'llvm.used' array, so the
LLVM optimizations don't try to remove them.
* aot-compiler.c (emit_llvm_file): Save the result of opt into a
different file so the original remains.
svn path=/trunk/mono/; revision=147763
Zoltan Varga [Sun, 6 Dec 2009 21:20:58 +0000 (21:20 -0000)]
2009-12-06 Zoltan Varga <vargaz@gmail.com>
* mini-llvm.c mini.c: Fix alignment issues with SIMD vars.
svn path=/trunk/mono/; revision=147760
Zoltan Varga [Sun, 6 Dec 2009 19:30:21 +0000 (19:30 -0000)]
2009-12-06 Zoltan Varga <vargaz@gmail.com>
* mini-llvm.c: Add basic SIMD support.
svn path=/trunk/mono/; revision=147759
Zoltan Varga [Sun, 6 Dec 2009 04:59:26 +0000 (04:59 -0000)]
2009-12-06 Zoltan Varga <vargaz@gmail.com>
* aot-runtime.c (decode_arm_exidx): Handle most descriptors created by gas.
svn path=/trunk/mono/; revision=147758
Mark Probst [Sun, 6 Dec 2009 03:45:13 +0000 (03:45 -0000)]
2009-12-06 Mark Probst <mark.probst@gmail.com>
* sgen-gc.c: Make pinned chunks the same size as major heap
sections, and align them as well, so that we can check whether an
object is in a pinned chunk or a major section in constant time.
svn path=/trunk/mono/; revision=147757
Geoff Norton [Sun, 6 Dec 2009 03:40:14 +0000 (03:40 -0000)]
new defines for eglib
svn path=/trunk/mono/; revision=147756
Mark Probst [Sun, 6 Dec 2009 03:13:08 +0000 (03:13 -0000)]
2009-12-06 Mark Probst <mark.probst@gmail.com>
* sgen-gc.c (build_nursery_fragments): Don't leak fragments.
svn path=/trunk/mono/; revision=147755
Mark Probst [Sun, 6 Dec 2009 02:52:21 +0000 (02:52 -0000)]
2009-12-06 Mark Probst <mark.probst@gmail.com>
* sgen-gc.c: Make all major heap sections the same size (currently
128k) and allocate them on aligned addresses. Small heap sections
give us better granularity with pinned objects - we can free up
much more memory.
svn path=/trunk/mono/; revision=147754
Mark Probst [Sun, 6 Dec 2009 02:44:06 +0000 (02:44 -0000)]
2009-12-06 Mark Probst <mark.probst@gmail.com>
* string-icalls.c (ves_icall_System_String_GetLOSLimit): Debug
output removed.
svn path=/trunk/mono/; revision=147753
Miguel de Icaza [Sun, 6 Dec 2009 01:37:05 +0000 (01:37 -0000)]
Update
svn path=/trunk/mono/; revision=147752
Zoltan Varga [Sun, 6 Dec 2009 00:32:22 +0000 (00:32 -0000)]
2009-12-06 Zoltan Varga <vargaz@gmail.com>
* aot-runtime.c (decode_arm_exidx): Refactor this into two functions, add
support for non-inline unwind descriptors.
svn path=/trunk/mono/; revision=147751
Zoltan Varga [Sat, 5 Dec 2009 20:03:21 +0000 (20:03 -0000)]
2009-12-05 Zoltan Varga <vargaz@gmail.com>
* aot-runtime.c (decode_arm_exidx): New function to initialize a MonoJitInfo
based on the contents of the ARM .exidx section. Not yet used since llvm doesn't
yet generate this info.
svn path=/trunk/mono/; revision=147748
Zoltan Varga [Sat, 5 Dec 2009 19:55:18 +0000 (19:55 -0000)]
2009-12-05 Zoltan Varga <vargaz@gmail.com>
* mini-llvm.c: Fix the conversion of call results if they are unsigned.
svn path=/trunk/mono/; revision=147747
Zoltan Varga [Sat, 5 Dec 2009 18:11:38 +0000 (18:11 -0000)]
2009-12-05 Zoltan Varga <vargaz@gmail.com>
* dtest.cs dtest-app.cs: Add a test for intptrs.
svn path=/trunk/mono/; revision=147745
Zoltan Varga [Sat, 5 Dec 2009 18:11:32 +0000 (18:11 -0000)]
2009-12-05 Zoltan Varga <vargaz@gmail.com>
* debugger-agent.c (buffer_add_value): Treat I/U as a valuetype, so the
client can distinguish between intptrs and longs.
svn path=/trunk/mono/; revision=147744
Zoltan Varga [Sat, 5 Dec 2009 17:32:59 +0000 (17:32 -0000)]
2009-12-05 Zoltan Varga <vargaz@gmail.com>
Applied patch from Laurent Etiemble (laurent.etiemble@gmail.com).
* mono/metadata/assembly.c: When opening an assembly image, pass the real
names in addition to the runtime generated one.
* mono/metadata/image.h: Add a function to take the real name of the assembly
image.
* mono/metadata/image.c: If a real name has been passed to load an assembly,
use it instead of the runtime generated one.
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=147740
Zoltan Varga [Sat, 5 Dec 2009 06:33:08 +0000 (06:33 -0000)]
2009-12-05 Zoltan Varga <vargaz@gmail.com>
* marshal.c (emit_marshal_vtype): Do the klass == date_time_class checks
before the other checks to prevent problems if the DateTime class is blittable.
Hopefully fixes #559600.
svn path=/trunk/mono/; revision=147737
Zoltan Varga [Sat, 5 Dec 2009 05:56:48 +0000 (05:56 -0000)]
2009-12-05 Zoltan Varga <vargaz@gmail.com>
* aot-compiler.c (emit_trampoline): Emit the trampoline info into the global
blob.
* aot-runtime.c (load_function): Update after the change above.
* mini.h: Bump AOT file format version.
svn path=/trunk/mono/; revision=147736
Geoff Norton [Sat, 5 Dec 2009 04:08:44 +0000 (04:08 -0000)]
2009-12-04 Geoff Norton <gnorton@novell.com>
* debugger-agent.c: When doing a func-eval invoke on a suspended runtime,
we need to track the original suspend count so the thread properly
wakes up in resume_thread.
svn path=/trunk/mono/; revision=147735
Mark Probst [Sat, 5 Dec 2009 03:25:18 +0000 (03:25 -0000)]
2009-12-05 Mark Probst <mark.probst@gmail.com>
* String.cs: A new LOS_limit variable which gives the maximum
string length that's not put in the LOS.
* StringBuilder.cs: Copy the string also if it's in the LOS and
chopping it would bring its size below the LOS limit.
* Environment.cs: Bump corlib version.
svn path=/trunk/mcs/; revision=147732
Mark Probst [Sat, 5 Dec 2009 03:25:08 +0000 (03:25 -0000)]
2009-12-05 Mark Probst <mark.probst@gmail.com>
* string-icalls.c, string-icalls.h, icall-def.h: New icall that
returns the largest string length that will not be put into the
LOS.
* sgen-gc.c, gc-internal.h: New function that returns the largest
object size that will not be put into the LOS.
* appdomain.c: Bump corlib version.
svn path=/trunk/mono/; revision=147731
Lluis Sanchez [Sat, 5 Dec 2009 00:57:00 +0000 (00:57 -0000)]
2009-12-05 Lluis Sanchez <lluis@novell.com>
* StructMirror.cs: Fix field indexer for structs with static fields.
* VirtualMachineManager.cs: Added an option to LaunchOptions which
allows providing a custom method for launching the process. This
allows launching mono in a wrapper process.
svn path=/trunk/mcs/; revision=147729
Sebastien Pouliot [Sat, 5 Dec 2009 00:54:05 +0000 (00:54 -0000)]
2009-12-04 Sebastien Pouliot <sebastien@ximian.com>
* System.Net.dll.sources: Remove (almost) everything. This
assembly in 3.5+ does not share anything with what SL2/3
provide (the later being a part of System.dll)
svn path=/trunk/mcs/; revision=147727
Zoltan Varga [Sat, 5 Dec 2009 00:07:36 +0000 (00:07 -0000)]
2009-12-05 Zoltan Varga <vargaz@gmail.com>
* method-to-ir.c (mono_method_to_ir): Disallow the delegate optimization
if the delegate class is dynamic.
svn path=/trunk/mono/; revision=147726
Zoltan Varga [Fri, 4 Dec 2009 23:55:12 +0000 (23:55 -0000)]
Revert the last change for now as it breaks the build.
svn path=/trunk/mono/; revision=147725
Zoltan Varga [Fri, 4 Dec 2009 22:57:07 +0000 (22:57 -0000)]
2009-12-05 Zoltan Varga <vargaz@gmail.com>
* method-to-ir.c (handle_delegate_ctor): Allow the method_code optimization
in gshared code too using the new rgctx info type
MONO_RGCTX_INFO_METHOD_DELEGATE_CODE.
svn path=/trunk/mono/; revision=147722
Zoltan Varga [Fri, 4 Dec 2009 22:57:01 +0000 (22:57 -0000)]
2009-12-05 Zoltan Varga <vargaz@gmail.com>
* class-internals.h: Add MONO_RGCTX_INFO_METHOD_DELEGATE_CODE.
* generic-sharing.c: Handle MONO_RGCTX_INFO_METHOD_DELEGATE_CODE.
svn path=/trunk/mono/; revision=147721
Zoltan Varga [Fri, 4 Dec 2009 22:56:54 +0000 (22:56 -0000)]
2009-12-04 Zoltan Varga <vargaz@gmail.com>
* method-to-ir.c (handle_delegate_ctor): Add support for using this from gshared
code.
* generics.cs: Add a test.
svn path=/trunk/mono/; revision=147720
Zoltan Varga [Fri, 4 Dec 2009 22:56:46 +0000 (22:56 -0000)]
2009-12-04 Zoltan Varga <vargaz@gmail.com>
* method-to-ir.c (emit_get_rgctx_method): Make this work even if context_used
is 0. Simplify a lot of code using this.
svn path=/trunk/mono/; revision=147719
Sebastien Pouliot [Fri, 4 Dec 2009 22:05:10 +0000 (22:05 -0000)]
2009-12-04 Sebastien Pouliot <sebastien@ximian.com>
* CodeModule.cs: Silverlight does not allow AssemblyBuilderAccess.
RunAndSave so we reduce it to AssemblyBuilderAccess.Run
[Foreport r144715]
svn path=/trunk/mcs/; revision=147717
Sebastien Pouliot [Fri, 4 Dec 2009 21:41:05 +0000 (21:41 -0000)]
fix make-dist - but this file seems wrong (not related to the non-ML System.Net.dll assembly)
svn path=/trunk/mcs/; revision=147713
Zoltan Varga [Fri, 4 Dec 2009 20:49:24 +0000 (20:49 -0000)]
2009-12-04 Zoltan Varga <vargaz@gmail.com>
* mini-trampolines.c (mono_delegate_trampoline): Call
mono_create_static_rgctx_trampoline () before saving the final address in
delegate->method_code, to avoid calling it each time a delegate is first called.
* method-to-ir.c (mono_method_to_ir): Allow fast delegate creation for methods
which need static rgctx trampolines.
svn path=/trunk/mono/; revision=147706
Sebastien Pouliot [Fri, 4 Dec 2009 20:48:13 +0000 (20:48 -0000)]
In .:
2009-12-04 Sebastien Pouliot <sebastien@ximian.com>
* net_2_1_raw_System.Net.dll.sources: Remove HttpStatusCode_2_1.cs
In System.Net:
2009-12-04 Sebastien Pouliot <sebastien@ximian.com>
* HttpStatusCode_2_1.cs: Remove. SL3 provides all status code
since they are used for the client stack
* WebClient_2_1.cs: Add Credentials property and change
ResponseHeaders property to public
* WebRequest_2_1.cs: Add Credentials property
svn path=/trunk/mcs/; revision=147704
Sebastien Pouliot [Fri, 4 Dec 2009 20:16:55 +0000 (20:16 -0000)]
move DnsEndPoint to ease 4.0
svn path=/trunk/mcs/; revision=147700
Sebastien Pouliot [Fri, 4 Dec 2009 16:47:51 +0000 (16:47 -0000)]
2009-12-04 Sebastien Pouliot <sebastien@ximian.com>
* HttpWebRequest_2_1.cs: Add CookieCollection, need to be
implemented in the client stack
* HttpWebResponse_2_1.cs: CookieContainer is virtual. Add FIXME
to move (a real) implementation into the client stack
* WebRequest_2_1.cs: Add Create(string) overload (SL3)
svn path=/trunk/mcs/; revision=147670
Rodrigo Kumpera [Fri, 4 Dec 2009 16:14:42 +0000 (16:14 -0000)]
2009-12-04 Rodrigo Kumpera <rkumpera@novell.com>
* MethodBuilder.cs (MakeGenericMethod): Don't rely on the runtime to
inflate a MethodBuilder. Create directly an instance of MethodOnTypeBuilderInst.
* MethodOnTypeBuilderInst.cs (MakeGenericMethod): Cleanup this method and support
inflating already inflated methods under compiler context.
svn path=/trunk/mcs/; revision=147668
Rodrigo Kumpera [Fri, 4 Dec 2009 16:14:24 +0000 (16:14 -0000)]
2009-12-04 Rodrigo Kumpera <rkumpera@novell.com>
* MethodOnTypeBuilderInst.cs: Change instantiation field type to System.Type.
* MethodOnTypeBuilderInst.cs (MetadataToken): Explicitly throw if not under
compiler context.
svn path=/trunk/mcs/; revision=147667
Rodrigo Kumpera [Fri, 4 Dec 2009 16:14:06 +0000 (16:14 -0000)]
2009-12-04 Rodrigo Kumpera <rkumpera@novell.com>
* MethodOnTypeBuilderInst.cs: Rename mb to base_method to better reflect
it's meaning. Introduce IsCompilerContext method and apply it's usage.
svn path=/trunk/mcs/; revision=147666
Rodrigo Kumpera [Fri, 4 Dec 2009 16:13:48 +0000 (16:13 -0000)]
2009-12-04 Rodrigo Kumpera <rkumpera@novell.com>
* MonoGenericClass.cs (InflateType): Add a type argument parameter and
make this function static. Now it can inflate types using the context
of any type.
svn path=/trunk/mcs/; revision=147665
Rodrigo Kumpera [Fri, 4 Dec 2009 16:13:33 +0000 (16:13 -0000)]
2009-12-04 Rodrigo Kumpera <rkumpera@novell.com>
TypeTest.cs: Remove NET_2_0.
svn path=/trunk/mcs/; revision=147664
Rodrigo Kumpera [Fri, 4 Dec 2009 16:03:15 +0000 (16:03 -0000)]
2009-12-04 Rodrigo Kumpera <rkumpera@novell.com>
* reflection.c (inflate_method): Fix signature.
* object-internals.h (MonoReflectionMethodOnTypeBuilderInst): Reflect change
in managed code.
svn path=/trunk/mono/; revision=147663
Rodrigo Kumpera [Fri, 4 Dec 2009 16:03:04 +0000 (16:03 -0000)]
2009-12-04 Rodrigo Kumpera <rkumpera@novell.com>
* reflection.c (inflate_method): Make this method work with TypeBuilder as well.
svn path=/trunk/mono/; revision=147662
Marek Safar [Fri, 4 Dec 2009 14:41:07 +0000 (14:41 -0000)]
Updated.
svn path=/trunk/mcs/; revision=147660
Marek Safar [Fri, 4 Dec 2009 14:38:06 +0000 (14:38 -0000)]
2009-12-04 Marek Safar <marek.safar@gmail.com>
*.cs: Moving to generics world (day 2).
svn path=/trunk/mcs/; revision=147659
Atsushi Eno [Fri, 4 Dec 2009 12:58:35 +0000 (12:58 -0000)]
2009-12-04 Atsushi Enomoto <atsushi@ximian.com>
* ReplyChannelBase.cs : added listener property.
* SecurityChannelListener.cs : quick async impl, as ServiceHost has
been updated to prefer async by default, a while ago.
svn path=/trunk/mcs/; revision=147658
Atsushi Eno [Fri, 4 Dec 2009 09:51:53 +0000 (09:51 -0000)]
2009-12-04 Atsushi Enomoto <atsushi@ximian.com>
* HttpTransportBindingElement.cs : finished all GetProperty() values.
* HttpTransportBindingElementTest.cs : added GetProperty() tests.
svn path=/trunk/mcs/; revision=147646
Atsushi Eno [Fri, 4 Dec 2009 09:10:40 +0000 (09:10 -0000)]
2009-12-04 Atsushi Enomoto <atsushi@ximian.com>
* HttpRequestChannel.cs : disabled carelessly added
"UseDefaultCredentials = false" line. It blocked basic auth.
svn path=/trunk/mcs/; revision=147645