mono.git
14 years ago2009-09-22 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Tue, 22 Sep 2009 10:30:07 +0000 (10:30 -0000)]
2009-09-22 Gonzalo Paniagua Javier <gonzalo@novell.com>

* threadpool.c: actually use the minimum number of 'completion ports'
(for us is just a potential worker thread).

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

14 years ago2009-09-22 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Tue, 22 Sep 2009 10:05:03 +0000 (10:05 -0000)]
2009-09-22 Gonzalo Paniagua Javier <gonzalo@novell.com>

* threadpool.c: remove ares_htable. It does not make sense any more
since the same objects are now stored in GC-tracked arrays while they are
in the queue.

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

14 years ago2009-09-22 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Tue, 22 Sep 2009 10:00:28 +0000 (10:00 -0000)]
2009-09-22 Gonzalo Paniagua Javier <gonzalo@novell.com>

* threadpool.c: increase the minimum length of the queues to 128.
Remove warning.

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

14 years agoNew tests.
Marek Safar [Tue, 22 Sep 2009 09:50:21 +0000 (09:50 -0000)]
New tests.

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

14 years ago2009-09-22 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 22 Sep 2009 09:50:04 +0000 (09:50 -0000)]
2009-09-22  Marek Safar  <marek.safar@gmail.com>

* expression.cs, ecore.cs: Fixed array index constant conversion.

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

14 years agoNew test.
Marek Safar [Mon, 21 Sep 2009 21:57:16 +0000 (21:57 -0000)]
New test.

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

14 years ago2009-09-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 21 Sep 2009 20:45:07 +0000 (20:45 -0000)]
2009-09-21  Zoltan Varga  <vargaz@gmail.com>

* exceptions-arm.c (mono_arm_throw_exception): Set ctx->ebp to fp instead of sp
so catching exceptions thrown in the same method works. Fixes exception17.exe.

* tramp-arm.c (mono_arch_create_trampoline_code_full): Store NULL into lmf->method
for non-jit trampolines.

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

14 years ago2009-09-21 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 21 Sep 2009 19:00:15 +0000 (19:00 -0000)]
2009-09-21  Sebastien Pouliot  <sebastien@ximian.com>

* net_2_1_raw_System.dll.sources: Remove System.Net.Mime since
System.Runtime.Serialization does not need them anymore

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

14 years agoIn System.Xml:
Sebastien Pouliot [Mon, 21 Sep 2009 18:57:37 +0000 (18:57 -0000)]
In System.Xml:
2009-09-21  Sebastien Pouliot  <sebastien@ximian.com>

* XmlDictionaryWriter.cs: Remove usage of XmlMtomDictionaryWriter
for NET_2_1

In .:
2009-09-21  Sebastien Pouliot  <sebastien@ximian.com>

* net_2_1_raw_System.Runtime.Serialization.dll.sources: Remove
System.Xml/XmlMtomDictionaryWriter.cs

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

14 years ago2009-09-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 21 Sep 2009 16:04:18 +0000 (16:04 -0000)]
2009-09-21  Zoltan Varga  <vargaz@gmail.com>

* runtime-invoke.cs: Add a test for invoking string ctors. Remove tests wihich
are auto-generated now by gen-runtime-invoke.cs.

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

14 years ago2009-09-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 21 Sep 2009 16:04:11 +0000 (16:04 -0000)]
2009-09-21  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mono_jit_runtime_invoke): Allow string ctors with dyn runtime invoke.

* aot-compiler.c (add_wrappers): Ditto.

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

14 years ago2009-09-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 21 Sep 2009 16:04:02 +0000 (16:04 -0000)]
2009-09-21  Zoltan Varga  <vargaz@gmail.com>

* marshal.c (mono_marshal_get_string_ctor_signature): New internal function to
return the modified signature used by string ctors.

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

14 years ago2009-09-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 21 Sep 2009 15:44:14 +0000 (15:44 -0000)]
2009-09-21  Zoltan Varga  <vargaz@gmail.com>

* mini-arm.c: Implement support for passing vtypes and floats, and increase
the size of the param area used by dyn_call to 6 which covers the majority of
methods.

* mini.c aot-compiler.c: Allow dyn_call for string methods except ctors.

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

14 years agoFix the build.
Zoltan Varga [Mon, 21 Sep 2009 15:22:44 +0000 (15:22 -0000)]
Fix the build.

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

14 years ago2009-09-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 21 Sep 2009 15:22:35 +0000 (15:22 -0000)]
2009-09-21  Zoltan Varga  <vargaz@gmail.com>

* gen-runtime-invoke.cs: New test generator for runtime invoke tests.

* Makefile.am (test-runtime-invoke): New test target.

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

14 years ago * man/mdoc-export-html.1: Document --with-profile, --with-version.
Jonathan Pryor [Mon, 21 Sep 2009 14:31:43 +0000 (14:31 -0000)]
* man/mdoc-export-html.1: Document --with-profile, --with-version.

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

14 years ago2009-09-21 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 21 Sep 2009 12:27:48 +0000 (12:27 -0000)]
2009-09-21  Rodrigo Kumpera  <rkumpera@novell.com>

* array_load_exception.il: Test for broken arrays.

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

14 years ago2009-09-21 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Mon, 21 Sep 2009 11:56:34 +0000 (11:56 -0000)]
2009-09-21 Gonzalo Paniagua Javier <gonzalo@novell.com>

* Console.cs: mark methods/properties that only work on windows.
Fixes bug #540593.

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

14 years agoIn System.Threading:
Sebastien Pouliot [Mon, 21 Sep 2009 11:54:24 +0000 (11:54 -0000)]
In System.Threading:
2009-09-21  Sebastien Pouliot  <sebastien@ximian.com>

* Thread.cs: Remove CurrentPrincipal property for NET_2_1
* ExecutionContext.cs: Remove Run method for NET_2_1

In System.Security:
2009-09-21  Sebastien Pouliot  <sebastien@ximian.com>

* SecurityContext.cs: Don't use WindowsIdentity under NET_2_1

In System:
2009-09-21  Sebastien Pouliot  <sebastien@ximian.com>

* AppDomain.cs: Remove use of IPrincipal, Evidence and
PermissionSet types for NET_2_1

In .:
2009-09-21  Sebastien Pouliot  <sebastien@ximian.com>

* net_2_1_bootstrap_corlib.dll.sources, net_2_1_raw_corlib.dll.sources:
Remove most of System.Security.Policy and System.Security.Principal
and more of System.Security.Permissions from NET_2_1 build

In System.Security.Policy:
2009-09-21  Sebastien Pouliot  <sebastien@ximian.com>

* PolicyLevel_2_1.cs: Remove use of PolicyStatement

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

14 years ago2009-09-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 21 Sep 2009 11:53:00 +0000 (11:53 -0000)]
2009-09-21  Zoltan Varga  <vargaz@gmail.com>

* runtime-invoke.cs: Add more tests.

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

14 years ago2009-09-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 21 Sep 2009 11:52:02 +0000 (11:52 -0000)]
2009-09-21  Zoltan Varga  <vargaz@gmail.com>

* mini-arm.c: Implement support for passing/receiving
longs and receiving floats in the dyn_call code.

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

14 years ago2009-09-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Mon, 21 Sep 2009 11:42:04 +0000 (11:42 -0000)]
2009-09-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* RichTextBox.cs: For SelectedRtf, after inserting the stream, adjust
the position of the caret by adding the needed chars represented by the new line chars,
according to the system, using rich *or* hard new lines as needed. Also do a
check to be sure we don't move the cursor position beyond the limits
of our text. This should avoid problems with text being pasted,
regarding the position of the caret.

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

14 years ago* SerialPortStream.cs: Throw exception when errors occur in Close()
Leszek 'skolima' Ciesielski [Mon, 21 Sep 2009 08:20:59 +0000 (08:20 -0000)]
* SerialPortStream.cs: Throw exception when errors occur in Close()

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

14 years ago* serial.c: return -1 from close() on error
Leszek 'skolima' Ciesielski [Mon, 21 Sep 2009 08:19:09 +0000 (08:19 -0000)]
* serial.c: return -1 from close() on error

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

14 years ago2009-09-20 Daniel Morgan <monodanmorg@yahoo.com>
Daniel Morgan [Mon, 21 Sep 2009 03:18:37 +0000 (03:18 -0000)]
2009-09-20  Daniel Morgan  <monodanmorg@yahoo.com>

* OracleConnection.cs: implement GetSchema methods

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

14 years agoIn System:
Sebastien Pouliot [Mon, 21 Sep 2009 00:43:47 +0000 (00:43 -0000)]
In System:
2009-09-20  Sebastien Pouliot  <sebastien@ximian.com>

* Activator.cs: Remove COM related method for NET_2_1
* AppDomain.cs: Remove extra methods and properties for NET_2_1
* AppDomainSetup.cs: Remove some properties for NET_2_1

In .:
Remove more types (e.g. AccessControl, Soap) from NET_2_1

2009-09-20  Sebastien Pouliot  <sebastien@ximian.com>

* net_2_1_bootstrap_corlib.dll.sources, net_2_1_raw_corlib.dll.sources:

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

14 years ago2009-09-20 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 21 Sep 2009 00:43:37 +0000 (00:43 -0000)]
2009-09-20  Sebastien Pouliot  <sebastien@ximian.com>

* compiler-tester.cs: Define out some parts for NET_2_1 since
they are not part of Silverlight 2 public API

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

14 years ago2009-09-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 20 Sep 2009 23:16:08 +0000 (23:16 -0000)]
2009-09-21  Zoltan Varga  <vargaz@gmail.com>

* mini-amd64.c: Implement support for receiving vtypes in registers in
the dyn_call code.

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

14 years ago2009-09-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 20 Sep 2009 23:01:21 +0000 (23:01 -0000)]
2009-09-21  Zoltan Varga  <vargaz@gmail.com>

* mini.c mini-amd64.c: Implement partial support for passing vtypes in
the dyn_call code.

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

14 years ago2009-09-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 20 Sep 2009 23:01:15 +0000 (23:01 -0000)]
2009-09-21  Zoltan Varga  <vargaz@gmail.com>

* runtime-invoke.cs: Add tests for passing/receiving generic instances of
vtypes.

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

14 years ago2009-09-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 20 Sep 2009 21:46:01 +0000 (21:46 -0000)]
2009-09-20  Zoltan Varga  <vargaz@gmail.com>

* mini-arm.c (get_call_info): Return more precise information in
ArgInfo->regtype.
(dyn_call_supported): Use the information in CallInfo.

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

14 years ago2009-09-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 20 Sep 2009 20:03:42 +0000 (20:03 -0000)]
2009-09-20  Zoltan Varga  <vargaz@gmail.com>

* mini-arm.c: Enable support for returning vtypes in the dyn_call code.

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

14 years ago2009-09-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 20 Sep 2009 19:09:02 +0000 (19:09 -0000)]
2009-09-20  Zoltan Varga  <vargaz@gmail.com>

* mini.c mini-amd64.c: Enable support for returning vtypes in the dyn_call
code.

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

14 years ago2009-09-20 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Sun, 20 Sep 2009 18:08:04 +0000 (18:08 -0000)]
2009-09-20  Miguel de Icaza  <miguel@novell.com>

* expression.cs: Do not crash when MemberLookup returns something
that is not a MemberExpr here.   Report error 582 instead.

Fixes #499988.

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

14 years ago2009-09-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 20 Sep 2009 17:11:04 +0000 (17:11 -0000)]
2009-09-20  Zoltan Varga  <vargaz@gmail.com>

* mini-arm.c: Update after the dyn_call api changes.

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

14 years ago2009-09-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 20 Sep 2009 16:49:18 +0000 (16:49 -0000)]
2009-09-20  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mini_create_jit_domain_info): Register a destructor function
for the runtime_invoke_hash.

* mini-amd64.c (mono_arch_get_dyn_call_args): Rename this to
'mono_arch_dyn_call_start'. Pass the pointer to the return value buffer to
this function.
(mono_arch_get_dyn_call_ret): Rename this to 'mono_arch_dyn_call_finish'.
(dyn_call_supported): Simplify this by using get_call_info ().
(mono_arch_dyn_call_free): New destructor function.

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

14 years ago2009-09-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 20 Sep 2009 16:49:11 +0000 (16:49 -0000)]
2009-09-20  Zoltan Varga  <vargaz@gmail.com>

* generics.cs: Remove a printf.

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

14 years ago2009-09-20 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sun, 20 Sep 2009 16:43:43 +0000 (16:43 -0000)]
2009-09-20  Sebastien Pouliot  <sebastien@ximian.com>

* AppDomain.cs, Environment.cs: Remove imperative CAS file IO
permission checks under NET_2_1

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

14 years ago2009-09-20 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sun, 20 Sep 2009 16:38:40 +0000 (16:38 -0000)]
2009-09-20  Sebastien Pouliot  <sebastien@ximian.com>

* EventWaitHandle.cs: Remove AccessControl usage for NET_2_1
* Mutex.cs: Remove some ctors and AccessControl usage for NET_2_1
* NativeEventCalls.cs: Remove AccessControl usage for NET_2_1

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

14 years agoNET_2_1 specific implementation of AppDomainManager
Sebastien Pouliot [Sun, 20 Sep 2009 16:25:54 +0000 (16:25 -0000)]
NET_2_1 specific implementation of AppDomainManager

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

14 years ago2009-09-20 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sun, 20 Sep 2009 16:05:55 +0000 (16:05 -0000)]
2009-09-20  Sebastien Pouliot  <sebastien@ximian.com>

* VersioningHelper.cs: Refactor AppDomain.Id for NET_2_1

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

14 years ago2009-09-20 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sun, 20 Sep 2009 16:00:22 +0000 (16:00 -0000)]
2009-09-20  Sebastien Pouliot  <sebastien@ximian.com>

* net_2_1_bootstrap_corlib.dll.sources, net_2_1_raw_corlib.dll.sources:
Remove more unneeded types from NET_2_1

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

14 years ago2009-09-20 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sun, 20 Sep 2009 15:59:10 +0000 (15:59 -0000)]
2009-09-20  Sebastien Pouliot  <sebastien@ximian.com>

* AssemblyInfo.cs: Remove ComCompatibleVersion and
AllowPartiallyTrustedCallers for NET_2_1

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

14 years ago2009-09-20 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sun, 20 Sep 2009 15:58:24 +0000 (15:58 -0000)]
2009-09-20  Sebastien Pouliot  <sebastien@ximian.com>

* MarshalAsAttribute.cs: Remove VarEnum field for NET_2_1

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

14 years ago2009-09-20 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sun, 20 Sep 2009 15:57:19 +0000 (15:57 -0000)]
2009-09-20  Sebastien Pouliot  <sebastien@ximian.com>

* AssemblyInfo.cs: Remove ComCompatibleVersion and
AllowPartiallyTrustedCallers for NET_2_1

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

14 years ago2009-09-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 20 Sep 2009 14:12:40 +0000 (14:12 -0000)]
2009-09-20  Zoltan Varga  <vargaz@gmail.com>

* method-to-ir.c (mono_method_to_ir): Allocate some param area for DYN_CALL.

* mini-arm.c: Add support for enum return values and passing a few arguments
on the stack.

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

14 years ago2009-09-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 20 Sep 2009 13:42:58 +0000 (13:42 -0000)]
2009-09-20  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mono_jit_runtime_invoke): Add support for enum return values to
dyn invoke.

* mini-amd64.c (mono_arch_get_dyn_call_ret): Ditto.

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

14 years ago2009-09-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 20 Sep 2009 13:05:34 +0000 (13:05 -0000)]
2009-09-20  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (add_wrappers): Add a few restrictions for the use of
the dynamic invoke wrappers.

* mini-arm.c: Implement OP_DYN_CALL for arm.

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

14 years ago2009-09-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 20 Sep 2009 12:23:04 +0000 (12:23 -0000)]
2009-09-20  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (add_wrappers): Avoid aot-ing runtime invoke wrappers
supported by the dynamic runtime invoke wrapper.

* aot-compiler.c aot-runtime.c: Add support for encoding the dynamic
runtime invoke wrapper.

* mini.c (mono_jit_runtime_invoke): Use the dynamic runtime invoke wrappers
if possible when running with full-aot.

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

14 years ago2009-09-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 20 Sep 2009 12:22:56 +0000 (12:22 -0000)]
2009-09-20  Zoltan Varga  <vargaz@gmail.com>

* marshal.c (mono_marshal_get_runtime_invoke_dynamic): New internal function
to return a runtime-invoke wrapper which uses DYN_CALL to call the wrapped
method, to be used by full-aot.

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

14 years ago2009-09-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 20 Sep 2009 12:22:49 +0000 (12:22 -0000)]
2009-09-20  Zoltan Varga  <vargaz@gmail.com>

* cil-opcodes.xml: Add mono_dyn_call opcode.

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

14 years ago2009-09-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 20 Sep 2009 12:22:43 +0000 (12:22 -0000)]
2009-09-20  Zoltan Varga  <vargaz@gmail.com>

* runtime-invoke.cs: Add more tests.

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

14 years ago2009-09-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 20 Sep 2009 12:22:35 +0000 (12:22 -0000)]
2009-09-20  Zoltan Varga  <vargaz@gmail.com>

* mini-ops.h: Add OP_DYN_CALL opcode.

* mini-amd64.c method-to-ir.c: Add infrastructure for making method calls
with dynamic arguments lists similar to libffi.

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

14 years agoIn .:
Sebastien Pouliot [Sat, 19 Sep 2009 23:29:17 +0000 (23:29 -0000)]
In .:
2009-09-19  Sebastien Pouliot  <sebastien@ximian.com>

* net_2_1_bootstrap_corlib.dll.sources, net_2_1_raw_corlib.dll.sources:
New. Moonlight specific build files to minimize size and build time.
Copied from corlib.dll.sources minus some 4.0 stuff and COM types.

In System.Runtime.InteropServices:
2009-09-19  Sebastien Pouliot  <sebastien@ximian.com>

* Marshal.cs: Avoid depending on COM stuff for NET_2_1

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

14 years ago * Mono.Documentation/monodocs2html.cs: Add --with-profile=PROFILE
Jonathan Pryor [Sat, 19 Sep 2009 19:30:39 +0000 (19:30 -0000)]
* Mono.Documentation/monodocs2html.cs: Add --with-profile=PROFILE
  option, which just provides a simple mapping between profile names
  like net_3_5 to the versions used in that profile.

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

14 years ago2009-09-19 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 19 Sep 2009 18:57:46 +0000 (18:57 -0000)]
2009-09-19  Zoltan Varga  <vargaz@gmail.com>

* method-to-ir.c: Fix the previous change on 64 bit platforms.

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

14 years ago2009-09-19 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 19 Sep 2009 18:48:20 +0000 (18:48 -0000)]
2009-09-19  Zoltan Varga  <vargaz@gmail.com>

* method-to-ir.c: Applied patch from Rodrigo Kumpera. Allow an i8 argument
to NEWARR.

* iltests.il.in: Add a new test.

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

14 years ago * Mono.Documentation/monodocs2html.cs: By request of Edd Dumbill, add
Jonathan Pryor [Sat, 19 Sep 2009 17:34:16 +0000 (17:34 -0000)]
* Mono.Documentation/monodocs2html.cs: By request of Edd Dumbill, add
  --with-version=VERSION option.  This will generate HTML
  documentation for ONLY those types/members which exist within
  VERSION.  This makes it easy to generate HTML that will show e.g.
  only MonoTouch docs (and not the full class library docs).
* Makefile: Add test for 'mdoc export-html --with-version=VERSION'.
  Somewhat brain-dead, as it only checks for added types (and not
  added members), but better than nothing...

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

14 years ago2009-09-18 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Sat, 19 Sep 2009 17:00:08 +0000 (17:00 -0000)]
2009-09-18  Atsushi Enomoto  <atsushi@ximian.com>

* WebHttpBehavior.cs : parameter Wrapped check in Validate() should
  not be done only for GET.

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

14 years ago2009-09-19 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sat, 19 Sep 2009 15:19:31 +0000 (15:19 -0000)]
2009-09-19  Sebastien Pouliot  <sebastien@ximian.com>

* TargetException.cs, TargetInvocationException.cs,
TargetParameterCountException.cs: Inherit from Exception for
NET_2_1 since ApplicationException does not exists

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

14 years ago2009-09-19 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Sat, 19 Sep 2009 05:03:02 +0000 (05:03 -0000)]
2009-09-19 Gonzalo Paniagua Javier <gonzalo@novell.com>

* SocketAsyncEventArgs.cs: fix check for non-null.
Fixes bug #516455.

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

14 years ago2009-09-19 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Sat, 19 Sep 2009 04:44:28 +0000 (04:44 -0000)]
2009-09-19 Gonzalo Paniagua Javier <gonzalo@novell.com>

* Ping.cs: if we receive a packet that is ignored, adjust the
timeout. Fixes bug #538013.

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

14 years ago2009-09-18 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Sat, 19 Sep 2009 04:37:12 +0000 (04:37 -0000)]
2009-09-18  Atsushi Enomoto  <atsushi@ximian.com>

* Normalization.cs : Handle blocked characters which are not
  immediately next to the primary composite character. This fixes
  some Arabic string sequence normalization.
* Makefile : fix test build.

* StringTest.cs : add more normalization tests.

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

14 years ago2009-09-18 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 18 Sep 2009 21:21:22 +0000 (21:21 -0000)]
2009-09-18  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (add_generic_instances): Add more instances of
GenericEqualityComparer.

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

14 years ago2009-09-18 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 18 Sep 2009 20:10:57 +0000 (20:10 -0000)]
2009-09-18  Rodrigo Kumpera  <rkumpera@novell.com>

* mini.c: Add asserts for mono_class_vtable calls that are not meant to fail.

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

14 years ago2009-09-17 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 18 Sep 2009 20:10:44 +0000 (20:10 -0000)]
2009-09-17  Rodrigo Kumpera  <rkumpera@novell.com>

* method-to-ir.c: Handle failures from mono_class_vtable. Added some
comments on some functions that now can fail.

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

14 years ago2009-09-17 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 18 Sep 2009 20:10:33 +0000 (20:10 -0000)]
2009-09-17  Rodrigo Kumpera  <rkumpera@novell.com>

Since the runtime supports lazy initialization of a type's vtable and this can cause a type
to fail, we need to ensure that the vtable is properly initialized at spots were the type must
be known to be good.

* class.c (mono_class_init): Fail array types if their element type fails initialization
as well.

* object.c (mono_class_create_runtime_vtable): Fail array types if their element type fails
initialization, additionally we request the element_type vtable to be initialized as well.

This is fine and should not increase the working set in any meaningful way since it's reasonable
to assume that most code will create an array and eventually populate it, which will require the
type's vtable to be initialized.

* loader.c (field_from_memberref): Add a comment for a possibly useless mono_class_init call.

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

14 years ago2009-09-15 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 18 Sep 2009 20:10:23 +0000 (20:10 -0000)]
2009-09-15  Rodrigo Kumpera  <rkumpera@novell.com>

* class.c (verify_class_overrides): Remove useless argument.

* class.c (mono_class_setup_vtable_general): Move the overrides check to happen
before interface enumeration as this is no longer required.

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

14 years ago2009-09-18 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 18 Sep 2009 19:14:29 +0000 (19:14 -0000)]
2009-09-18  Sebastien Pouliot  <sebastien@ximian.com>

* AssemblyBuilder.cs, ConstructorBuilder.cs, MethodBuilder.cs,
TypeBuilder.cs: Don't process PermissionSet under NET_2_1

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

14 years ago2009-09-18 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 18 Sep 2009 19:00:24 +0000 (19:00 -0000)]
2009-09-18 Rodrigo Kumpera  <rkumpera@novell.com>

* Documentation/en/*: Updates to the API. Add some explanation
for more methods. Fix the code sample for runtime detection.

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

14 years ago2009-09-18 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 18 Sep 2009 19:00:02 +0000 (19:00 -0000)]
2009-09-18 Rodrigo Kumpera  <rkumpera@novell.com>

* SimdRuntime.cs: Raise an exception if the method been queried
for acceleration is not found. Methods taking an array now are
variadic.

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

14 years ago2009-09-18 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 18 Sep 2009 18:18:08 +0000 (18:18 -0000)]
2009-09-18  Sebastien Pouliot  <sebastien@ximian.com>

* EnvironmentPermissionAttribute.cs, FileIOPermissionAttribute.cs,
HostProtectionAttribute.cs, ReflectionPermissionAttribute.cs,
SecurityPermissionAttribute.cs, StrongNamePermissionAttribute.cs:
Return a null IPermission for NET_2_1
* PermissionSetAttribute.cs: Return null when paring from XML for
NET_2_1

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

14 years ago2009-09-17 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 18 Sep 2009 17:09:37 +0000 (17:09 -0000)]
2009-09-17  Atsushi Enomoto  <atsushi@ximian.com>

* normalization-tables.h : regenerated.

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

14 years ago2009-09-17 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 18 Sep 2009 17:07:51 +0000 (17:07 -0000)]
2009-09-17  Atsushi Enomoto  <atsushi@ximian.com>

* Normalization.cs : some renaming for disambiguation.
* NormalizationTableUtil.cs : fix some wrong ranges in
  mapIdxToComposite. This fixes some Arabic normalization (and more).
* normalization-notes.txt : added some notes on the implementation.

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

14 years ago2009-09-18 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 18 Sep 2009 15:57:32 +0000 (15:57 -0000)]
2009-09-18  Sebastien Pouliot  <sebastien@ximian.com>

* Directory.cs: Avoid imperative CAS checks and remove
AccessControl types for NET_2_1
* DirectoryInfo.cs: Remove AccessControl types for NET_2_1
* File.cs: Remove AccessControl types for NET_2_1
* FileInfo.cs: Remove AccessControl types for NET_2_1
* FileStream.cs: Remove AccessControl types for NET_2_1
* Path.cs: Avoid imperative CAS checks for NET_2_1

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

14 years ago2009-09-18 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 18 Sep 2009 15:35:58 +0000 (15:35 -0000)]
2009-09-18  Sebastien Pouliot  <sebastien@ximian.com>

* ActivationServices.cs: Avoid depending on COM stuff for NET_2_1

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

14 years ago2009-09-18 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 18 Sep 2009 15:34:41 +0000 (15:34 -0000)]
2009-09-18  Sebastien Pouliot  <sebastien@ximian.com>

* RemotingServices.cs: Avoid depending on COM stuff for NET_2_1

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

14 years ago2009-09-18 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 18 Sep 2009 15:15:01 +0000 (15:15 -0000)]
2009-09-18  Sebastien Pouliot  <sebastien@ximian.com>

* StackFrame.cs: Avoid imperative CAS checks for NET_2_1

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

14 years ago2009-09-18 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 18 Sep 2009 15:12:53 +0000 (15:12 -0000)]
2009-09-18  Sebastien Pouliot  <sebastien@ximian.com>

* PKCS1.cs: Fix compiler warning for NET_2_1

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

14 years ago2009-09-18 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 18 Sep 2009 15:06:33 +0000 (15:06 -0000)]
2009-09-18  Sebastien Pouliot  <sebastien@ximian.com>

* RNGCryptoServiceProvider.cs: Remove unneeded SSC from NET_2_1

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

14 years ago2009-09-18 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 18 Sep 2009 14:58:28 +0000 (14:58 -0000)]
2009-09-18  Sebastien Pouliot  <sebastien@ximian.com>

* Assembly.cs, Module.cs: Avoid imperative CAS checks for NET_2_1

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

14 years agoNew test.
Marek Safar [Fri, 18 Sep 2009 09:15:52 +0000 (09:15 -0000)]
New test.

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

14 years ago2009-09-18 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 18 Sep 2009 09:15:34 +0000 (09:15 -0000)]
2009-09-18  Marek Safar  <marek.safar@gmail.com>

* decl.cs, class.cs: Check protected property accessors.

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

14 years agoNew tests.
Marek Safar [Fri, 18 Sep 2009 08:46:02 +0000 (08:46 -0000)]
New tests.

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

14 years ago2009-09-18 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 18 Sep 2009 08:45:42 +0000 (08:45 -0000)]
2009-09-18  Marek Safar <marek.safar@gmail.com>

* CSharpBinaryOperationBinder.cs, CSharpBinder.cs: Implemented
binary AddAssign operator.

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

14 years ago2009-09-18 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 18 Sep 2009 08:45:11 +0000 (08:45 -0000)]
2009-09-18  Marek Safar  <marek.safar@gmail.com>

* dynamic.cs, assign.cs: Dynamic compound assignment.

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

14 years ago2009-09-18 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Fri, 18 Sep 2009 00:24:11 +0000 (00:24 -0000)]
2009-09-18  Marek Habersack  <mhabersack@novell.com>

* MetaTable.cs: implemented Init - calls Init on all the columns
present in this instance.

* MetaModel.cs: constructor initializes FieldTemplateFactory after
it is instantiated.
RegisterContextCore first registers the context type, then creates
tables and finally calls Init on all the tables.

* MetaColumn.cs: added internal Init method - called by MetaModel
after context is registered and all tables are created and
registered.

* MetaChildrenColumn.cs: implemented ChildTable,
ColumnInOtherTable, GetChildrenListPath, GetChildrenPath and added
an internal Init method override. MonoTODO attributes stay until I
write tests for the class.

* FieldTemplateUserControl.cs: implemented ChildrenColumn,
ChildrenPath, Column, ForeignKeyColumn, ForeignKeyPath,
MetadataAttributes, Mode, Row, Table, SetHost

* FieldTemplateFactory.cs: GetFieldTemplateVirtualPath fixes

* DynamicControl.cs: implemented ApplyFormatInEditMode,
ConvertEmptyStringToNull, DataField, DataFormatString, HtmlEncode,
FormattingOptions, NullDisplayText, UIHint, OnInit, Render.

2009-09-18  Marek Habersack  <mhabersack@novell.com>

* TestsBasePage.cs: added an event ItemDataBinding, invoked
whenever an item is data bound.

2009-09-18  Marek Habersack  <mhabersack@novell.com>

* Makefile (TEST_RESOURCE_FILES): added
Test/WebPages/ListView_DynamicControl_10.aspx,
Test/WebPages/ListView_DynamicControl_10.aspx.cs

2009-09-18  Marek Habersack  <mhabersack@novell.com>

* DynamicControlTest.cs: FieldTemplate_1 - fixed fake edit
postback for Mono.

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

14 years agoAdd Info.plist to EXTRA_DIST
Andrew Jorgensen [Thu, 17 Sep 2009 22:56:35 +0000 (22:56 -0000)]
Add Info.plist to EXTRA_DIST

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

14 years ago2009-09-17 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 17 Sep 2009 18:47:23 +0000 (18:47 -0000)]
2009-09-17  Marek Safar  <marek.safar@gmail.com>

* expression.cs: Fixed compound assignment explicit conversion.

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

14 years ago2009-09-17 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 17 Sep 2009 18:21:17 +0000 (18:21 -0000)]
2009-09-17  Sebastien Pouliot  <sebastien@ximian.com>

* coreclr-security.cs: Add test cases for arrays (one dimension,
multidimentional and jagged) creation.

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

14 years ago2009-09-17 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 17 Sep 2009 18:21:09 +0000 (18:21 -0000)]
2009-09-17  Atsushi Enomoto  <atsushi@ximian.com>

* Makefile: move core WCF assemblies before Sys.Web.Extensions,
  which will depend on them.

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

14 years ago2009-09-17 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 17 Sep 2009 18:13:49 +0000 (18:13 -0000)]
2009-09-17  Atsushi Enomoto  <atsushi@ximian.com>

* WebScriptEnablingBehavior.cs : basic implementation. Create custom
  ChannelDispatchers for "/js" and "/jsdebug" like we do for
  /wsdl (ServiceMetadataExtension). And they return Javascript
  generated from ProxyGenerator in Sys.Web.Extensions.

* WebMessageEncoder.cs : handle /js and /jsdebug specially, as raw
  javascript stream.

* Makefile : add -r:System.Web.Extensions.dll.

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

14 years ago2009-09-17 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 17 Sep 2009 18:09:09 +0000 (18:09 -0000)]
2009-09-17  Atsushi Enomoto  <atsushi@ximian.com>

* WebScriptServiceHostFactory.cs : do tasks in previous change only
  if it is done under ASP.NET environment.

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

14 years ago2009-09-17 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 17 Sep 2009 17:59:37 +0000 (17:59 -0000)]
2009-09-17  Atsushi Enomoto  <atsushi@ximian.com>

* ServiceMetadataExtension.cs : when its url is requested without
  any parameters, it simply returns the WSDL, not the help page.

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

14 years ago2009-09-17 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 17 Sep 2009 17:58:15 +0000 (17:58 -0000)]
2009-09-17  Atsushi Enomoto  <atsushi@ximian.com>

* ChannelDispatcher.cs, EndpointDispatcher.cs :
  when an EndpointDispatcher is added to ChannelDispatcher, its
  ChannelDispatcher property is automatically filled. To do this,
  create a derived collection type for Endpoints (that's what .NET
  does). Remove extra InitializeEndpoint() argument.

* DuplexClientRuntimeChannel.cs : reflecting EndpointDispatcher change.

* ChannelDispatcherTest.cs : add a test to make sure that
  EndpointDispatcher.ChannelDispatcher property is filled by Add().

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

14 years ago2009-09-17 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 17 Sep 2009 17:54:37 +0000 (17:54 -0000)]
2009-09-17  Atsushi Enomoto  <atsushi@ximian.com>

* ServiceHostBase.cs : OnOpened() should not hide events that are
  invoked at the base class.

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

14 years ago2009-09-17 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 17 Sep 2009 17:53:35 +0000 (17:53 -0000)]
2009-09-17  Atsushi Enomoto  <atsushi@ximian.com>

* OperationInvokerHandler.cs : make error message a bit verbose.

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

14 years ago2009-09-17 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 17 Sep 2009 14:44:26 +0000 (14:44 -0000)]
2009-09-17  Atsushi Enomoto  <atsushi@ximian.com>

* UriTemplateTable.cs : do not raise an error when MatchSingle() did
  not result in any match. Match methods should reject empty table.

* UriTemplateTableTest.cs : new test file.

* System.ServiceModel.Web_test.dll.sources :
  added UriTemplateTableTest.cs.

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

14 years agoNew tests.
Marek Safar [Thu, 17 Sep 2009 13:02:06 +0000 (13:02 -0000)]
New tests.

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

14 years ago2009-09-17 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 17 Sep 2009 13:01:47 +0000 (13:01 -0000)]
2009-09-17  Marek Safar  <marek.safar@gmail.com>

* expression.cs, ecore.cs: Cannot infer variables from method group.

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