mono.git
15 years agomove to from olive to mcs
Jb Evain [Wed, 20 Aug 2008 21:24:37 +0000 (21:24 -0000)]
move to from olive to mcs

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

15 years agomove to from olive to mcs
Jb Evain [Wed, 20 Aug 2008 21:24:07 +0000 (21:24 -0000)]
move to from olive to mcs

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

15 years agomove to from olive to mcs
Jb Evain [Wed, 20 Aug 2008 21:23:41 +0000 (21:23 -0000)]
move to from olive to mcs

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

15 years agomove to from olive to mcs
Jb Evain [Wed, 20 Aug 2008 21:22:38 +0000 (21:22 -0000)]
move to from olive to mcs

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

15 years ago2008-08-20 Bill Holmes <billholmes54@gmail.com>
Bill Holmes [Wed, 20 Aug 2008 21:22:07 +0000 (21:22 -0000)]
2008-08-20  Bill Holmes  <billholmes54@gmail.com>

* console-io.c : Fixing builds for platforms that do not have <termios.h>.

Code is contributed under MIT/X11 license.

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

15 years ago * X11Dnd.cs: Don't fire pseudo motion DragOver events if we haven't
Carlos Alberto Cortez [Wed, 20 Aug 2008 21:09:49 +0000 (21:09 -0000)]
* X11Dnd.cs: Don't fire pseudo motion DragOver events if we haven't
had any mouse motion since the call to StartDrag, to match the dnd
behaviour of .net.
Fixes part of #381876.

2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>

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

15 years ago2008-08-20 Mike Voorhees <vernish13@gmail.com>
Miguel de Icaza [Wed, 20 Aug 2008 20:22:52 +0000 (20:22 -0000)]
2008-08-20  Mike Voorhees <vernish13@gmail.com>

* Patch from Mike Voorhees to fix various problems with
g_utf8_validate compared to the glib implementation and unit tests
to ensure that there are no regressions.

From a mailing list post to mono-devel-list on August 19th, 2008

[Mono-dev] utf8 related patches. Please review.

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

15 years ago2008-08-20 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 20 Aug 2008 20:18:43 +0000 (20:18 -0000)]
2008-08-20  Sebastien Pouliot  <sebastien@ximian.com>

* MoonIsolatedStorageFile.cs: More fixes to match unit tests.

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

15 years agodelete this relic
Jb Evain [Wed, 20 Aug 2008 19:45:08 +0000 (19:45 -0000)]
delete this relic

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

15 years ago2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Wed, 20 Aug 2008 19:07:27 +0000 (19:07 -0000)]
2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* XplatUIX11.cs: Only do the children control bounds check for EnterNotify
if mode is NotifyUngrab, and let it flow if mode is NotifyNormal.
Also, if we are actually moving into a different window after
grabbing, generate a LeaveNotify event for the previous window, since
we need to fire the leave events until the grab ends, not when
actually moving outside of the control.

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

15 years agoupdate with new test failure for smcs
Raja R Harinath [Wed, 20 Aug 2008 17:02:02 +0000 (17:02 -0000)]
update with new test failure for smcs

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

15 years agoNew test.
Marek Safar [Wed, 20 Aug 2008 16:56:23 +0000 (16:56 -0000)]
New test.

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

15 years ago2008-08-20 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 20 Aug 2008 16:56:06 +0000 (16:56 -0000)]
2008-08-20  Marek Safar  <marek.safar@gmail.com>

A fix for bug #362740
* cs-tokenizer.cs: Handle UTF-16 surrogates.

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

15 years ago2008-08-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 20 Aug 2008 16:15:04 +0000 (16:15 -0000)]
2008-08-20  Zoltan Varga  <vargaz@gmail.com>

* mini.h (MONO_AOT_FILE_VERSION): Bump aot file format version.

* aot-runtime.c aot-compiler.c patch-info.h mini.c: Get rid of
MONO_PATCH_INFO_WRAPPER, encode/decode wrapper methods like the others in
encode/decode_method_ref ().

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

15 years agomake static
Jb Evain [Wed, 20 Aug 2008 15:48:28 +0000 (15:48 -0000)]
make static

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

15 years ago2008-08-20 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 20 Aug 2008 15:40:21 +0000 (15:40 -0000)]
2008-08-20  Sebastien Pouliot  <sebastien@ximian.com>

* MoonIsolatedStorageFile.cs: Fix API to match SL2 beta2. Start
implementing new feature (while writing unit tests).
* MoonIsolatedStorageFileStream.cs: Add new async methods [Begin|
End][Read|Write] present in b2. Fix endless recursion in WriteByte.

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

15 years agoUpdate
Miguel de Icaza [Wed, 20 Aug 2008 15:39:13 +0000 (15:39 -0000)]
Update

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

15 years ago2008-08-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 20 Aug 2008 15:35:20 +0000 (15:35 -0000)]
2008-08-20  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (encode_patch): Handle STATIC_RGCTX_INVOKE wrappers.

* aot-runtime.c (decode_patch): Ditto.

* mini.c (mono_resolve_patch_target): Handle RGCTX_FETCH sub-patches of type
MONO_PATCH_INFO_METHOD.

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

15 years agoUpdate man page
Miguel de Icaza [Wed, 20 Aug 2008 15:29:09 +0000 (15:29 -0000)]
Update man page

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

15 years agoMissing MonoTODO
Marek Safar [Wed, 20 Aug 2008 14:55:50 +0000 (14:55 -0000)]
Missing MonoTODO

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

15 years agoNew test.
Marek Safar [Wed, 20 Aug 2008 14:48:16 +0000 (14:48 -0000)]
New test.

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

15 years agoNew test + update
Marek Safar [Wed, 20 Aug 2008 14:45:36 +0000 (14:45 -0000)]
New test + update

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

15 years ago2008-08-20 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 20 Aug 2008 14:44:13 +0000 (14:44 -0000)]
2008-08-20  Marek Safar  <marek.safar@gmail.com>

* generic.cs, support.cs, typemanager.cs, lambda.cs, parameter.cs,
pending.cs, ecore.cs, linq.cs, class.cs, decl.cs, delegate.cs,
flowanalysis.cs, iterators.cs, cs-parser.jay, convert.cs, anonymous.cs,
expression.cs, attribute.cs, statement.cs, doc.cs: Refactored parameters
handling to use just one type of infrastructure and deal with generics
more effectivelly.

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

15 years ago2008-08-20 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Wed, 20 Aug 2008 14:06:58 +0000 (14:06 -0000)]
2008-08-20  Marek Habersack  <mhabersack@novell.com>

* HttpResponseHeader.cs: encode header values if
httpRuntime.enableHeaderChecking is true (default). Fixes bug
#418620
2008-08-20  Marek Habersack  <mhabersack@novell.com>

* HttpRuntimeConfig.cs: implemented the undocumented (but
supported in .NET 1.1) option EnableHeaderChecking to support fix
for bug #416620

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

15 years agoOptimization of the bug #418620 fix, by Juraj Skripsky <juraj@hotfeet.ch>, thanks!
Marek Habersack [Wed, 20 Aug 2008 12:46:13 +0000 (12:46 -0000)]
Optimization of the bug #418620 fix, by Juraj Skripsky <juraj@hotfeet.ch>, thanks!

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

15 years ago2008-08-20 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Wed, 20 Aug 2008 11:50:54 +0000 (11:50 -0000)]
2008-08-20  Marek Habersack  <mhabersack@novell.com>

* HttpResponseHeader.cs: encode header values in the 2.0 profile
if httpRuntime.enableHeaderChecking is true (default). Fixes bug
#418620

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

15 years ago * mono-profiler-logging.c: Added directives block, and used it to
Massimiliano Mantione [Wed, 20 Aug 2008 09:51:11 +0000 (09:51 -0000)]
* mono-profiler-logging.c: Added directives block, and used it to
state that "allocation attribution" done using the stack tracking (so
that allocation callers are directly written in the log file).

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

15 years agoAdded stack tracking (even if still unused).
Massimiliano Mantione [Wed, 20 Aug 2008 09:45:47 +0000 (09:45 -0000)]
Added stack tracking (even if still unused).

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

15 years ago2008-08-20 Daniel Morgan <monodanmorg@yahoo.com>
Daniel Morgan [Wed, 20 Aug 2008 05:59:33 +0000 (05:59 -0000)]
2008-08-20  Daniel Morgan <monodanmorg@yahoo.com>

* System.Data.OracleClient/OracleConnection.cs: allow
the use of a connection string which allows a
TNS network description that is parentheses delimited
like the following which has the hostname, port, and
service name without requiring use of a TNSNAMES.ORA
file.

User ID=SCOTT;Password=TIGER;Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.101)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=TESTDB)))

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

15 years ago2008-08-12 Gert Driesen <drieseng@users.sourceforge.net>
Miguel de Icaza [Wed, 20 Aug 2008 05:06:13 +0000 (05:06 -0000)]
2008-08-12  Gert Driesen  <drieseng@users.sourceforge.net>

* corlib.dll.sources: Removed ReflectionSerializationHolder.cs.

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

15 years ago2008-08-20 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Wed, 20 Aug 2008 05:05:47 +0000 (05:05 -0000)]
2008-08-20  Miguel de Icaza  <miguel@novell.com>

* console-io.c (sigcont_handler): We need to restore the entire
termios state, not only the original settings, as things like echo
can be controlled after this (Booish exposes this issue with its
own ReadLine implementation).

Additionally, we need to set the terminal back into keypad_xmit
mode.

(ves_icall_System_ConsoleDriver_TtySetup): Take the keypad xmit
string as a paramter as well.   Otherwise we get different
keyboard sequences.

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

15 years ago2008-08-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 20 Aug 2008 05:00:35 +0000 (05:00 -0000)]
2008-08-20  Zoltan Varga  <vargaz@gmail.com>

* aot-runtime.c (decode_exception_debug_info): Decode the contents of
MonoGenericJitInfo.

* aot-compiler.c (emit_exception_debug_info): Emit the contents of
MonoGenericJitInfo.

* method-to-ir.c (emit_imt_argument): Fix AOT+gshared support.

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

15 years ago2008-08-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 20 Aug 2008 01:40:46 +0000 (01:40 -0000)]
2008-08-20  Zoltan Varga  <vargaz@gmail.com>

* pinvoke2.cs libtest.c: Add test for out marshalling of delegates.
Fix warnings.

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

15 years ago2008-08-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 20 Aug 2008 01:38:38 +0000 (01:38 -0000)]
2008-08-20  Zoltan Varga  <vargaz@gmail.com>

* marshal.c (emit_marshal_object): Avoid managed-to-native marshalling of
delegates with byref out parameter passing. Fixes #351520.

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

15 years ago2008-08-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 20 Aug 2008 00:42:32 +0000 (00:42 -0000)]
2008-08-20  Zoltan Varga  <vargaz@gmail.com>

* mini-amd64.c (add_valuetype): Use a dummy gsctx if we didn't receive
one from the caller.

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

15 years ago2008-08-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 20 Aug 2008 00:40:21 +0000 (00:40 -0000)]
2008-08-20  Zoltan Varga  <vargaz@gmail.com>

* aot-runtime.c (decode_generic_inst): New function to decode and
return a interned generic inst.
(decode_klass_ref): Use it.
(decode_method_ref): Ditto.

* aot-compiler.c (emit_exception_debug_info): Save
jinfo->has_generic_jit_info too.

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

15 years ago2008-08-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 20 Aug 2008 00:35:34 +0000 (00:35 -0000)]
2008-08-20  Zoltan Varga  <vargaz@gmail.com>

* debug-helpers.c (mono_context_get_desc): New helper function to stringify
a generic context.
(mono_type_get_desc): Add the type arguments for GENERICINST.
(mono_method_full_name): Stringify the class name using mono_type_full_name
so it picks up generic arguments.

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

15 years ago * XplatUIX11.cs: The check inside EnterNotify case to fire MouseEnter
Carlos Alberto Cortez [Tue, 19 Aug 2008 22:53:32 +0000 (22:53 -0000)]
* XplatUIX11.cs: The check inside EnterNotify case to fire MouseEnter
events only for client windows was wrong - we need to compare the
client window against the window receiving the EnterNotify event, not
against zero (since client window is never Zero, btw).
This prevents having unnecessary handling of EnterNotify events for
non-client windows when a gran begins.

2008-08-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>

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

15 years ago2008-08-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 19 Aug 2008 22:32:24 +0000 (22:32 -0000)]
2008-08-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* XplatUIX11.cs: Handling X ButtonPress events, we must *not* generate
MouseMove/MotionNotify events at all (which should only happen after
MouseUp/ButtonRelease, as .Net does).
This avoids firing an extra and unnecessary MouseMove event just after
every MouseDown event.

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

15 years ago2008-08-20 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 19 Aug 2008 22:25:51 +0000 (22:25 -0000)]
2008-08-20  Marek Habersack  <mhabersack@novell.com>

* Membership.cs: implemented the HashAlgorithmType property. Fixes
bug #418458

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

15 years ago2008-08-19 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 19 Aug 2008 21:54:57 +0000 (21:54 -0000)]
2008-08-19  Jonathan Pobst  <monkey@jpobst.com>

* LinkLabel.cs: Always clear any previous links when LinkArea
is set.  [Fixes bug #410709]

2008-08-19  Jonathan Pobst  <monkey@jpobst.com>

* LinkLabelTest.cs: Add test for bug #410709.

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

15 years ago2008-08-19 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 19 Aug 2008 21:22:51 +0000 (21:22 -0000)]
2008-08-19  Jonathan Pobst  <monkey@jpobst.com>

* ToolStripProfessionalRenderer.cs: Revert last change.
* ProfessionalColorTable.cs: For Classic, use SystemColors.Window
for ToolStripDropDownBackground.

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

15 years ago2008-08-19 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 19 Aug 2008 21:09:09 +0000 (21:09 -0000)]
2008-08-19  Jonathan Pobst  <monkey@jpobst.com>

* ToolStripProfessionalRenderer.cs: Use Window color for the
background of dropdowns to match .Net when the user is not
using the default white.  [Fixes bug #418108]

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

15 years agoTab
Miguel de Icaza [Tue, 19 Aug 2008 20:17:43 +0000 (20:17 -0000)]
Tab

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

15 years agoRemoved merge failure leftover.
Gert Driesen [Tue, 19 Aug 2008 20:02:48 +0000 (20:02 -0000)]
Removed merge failure leftover.

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

15 years ago* console-io.c: Removed debug output.
Gert Driesen [Tue, 19 Aug 2008 19:58:40 +0000 (19:58 -0000)]
* console-io.c: Removed debug output.

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

15 years ago2008-08-19 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 19 Aug 2008 19:47:39 +0000 (19:47 -0000)]
2008-08-19  Marek Habersack  <mhabersack@novell.com>

* JsonSerializer.cs: implemented a work-around for a bug in the
SerializedLazyDictionary which would fail to serialize a type if
any of its properties would throw an exception.

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

15 years ago2008-08-19 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 19 Aug 2008 19:13:07 +0000 (19:13 -0000)]
2008-08-19  Zoltan Varga  <vargaz@gmail.com>

* mini-ia64.c (mono_arch_output_basic_block): Add OP_FCONV_TO_I.

* iltests.il.in: Add a test for fconv_to_i.

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

15 years agoUpdate
Miguel de Icaza [Tue, 19 Aug 2008 18:38:23 +0000 (18:38 -0000)]
Update

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

15 years agoIn .:
Rodrigo Kumpera [Tue, 19 Aug 2008 16:56:30 +0000 (16:56 -0000)]
In .:
2008-08-19 Rodrigo Kumpera  <rkumpera@novell.com>

reflection.c (mono_reflection_create_runtime_class): Alloc
the nested classes linked list using the dynamic image mempool.
Fixes leak in corlib compilation.

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

15 years agosl2b2 update
Jb Evain [Tue, 19 Aug 2008 16:26:20 +0000 (16:26 -0000)]
sl2b2 update

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

15 years ago2008-08-19 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Tue, 19 Aug 2008 15:39:02 +0000 (15:39 -0000)]
2008-08-19  Miguel de Icaza  <miguel@novell.com>

* console-io.c: Fix incredibly annoying behavior on the console
after resuming execution after control-z.   This affected every
console application.

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

15 years ago2008-08-19 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 19 Aug 2008 14:23:37 +0000 (14:23 -0000)]
2008-08-19  Zoltan Varga  <vargaz@gmail.com>

* liveness.c: Disable the liveness2 pass for now to save space.

* regalloc2.c: Include mempool-internals.h to fix warnings.

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

15 years ago2008-08-19 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 19 Aug 2008 14:15:15 +0000 (14:15 -0000)]
2008-08-19  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (encode_method_ref): Encode the context of generic
instance methods.

* aot-runtime.c (decode_method_ref): Inflate generic methods using
the context saved in the aot file.

* mini.h (MONO_AOT_FILE_VERSION): Bump aot file format version.

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

15 years ago2008-08-19 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 19 Aug 2008 12:54:17 +0000 (12:54 -0000)]
2008-08-19  Marek Habersack  <mhabersack@novell.com>

* ThemeDirectoryBuildProvider.cs: theme directory dependencies
should use only virtual paths for CSS files. Fixes bug #397187

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

15 years ago2008-08-19 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 19 Aug 2008 10:55:22 +0000 (10:55 -0000)]
2008-08-19  Zoltan Varga  <vargaz@gmail.com>

* mini-x86.c (mono_arch_output_basic_block): Disable AOT for OP_JMP.

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

15 years ago2008-08-19 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 19 Aug 2008 10:34:46 +0000 (10:34 -0000)]
2008-08-19  Marek Habersack  <mhabersack@novell.com>

* UrlUtils.cs: fail gracefully if the path passed to GetSessionId
is null.

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

15 years ago2008-08-19 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 19 Aug 2008 07:46:18 +0000 (07:46 -0000)]
2008-08-19  Atsushi Enomoto  <atsushi@ximian.com>

* XplatUIWin32.cs : SetTimer() used to set wrong window handle and
  it caused timer registration twice. Fixed bug #418107.

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

15 years ago2008-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 19 Aug 2008 01:21:29 +0000 (01:21 -0000)]
2008-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>

[Correction: This is the actual change to X11Dnd issue, not the
previous one, which was actually a different issue.]

* X11Dnd.cs: Increase the interval for the Timer, to not fire our
pseudo motion HandleMouseOver method so aggresive. Also, don't call it
when the pointer is actually in motion, but only when the pointer
seems to stop (as .net does).
Fixes part of #381876.

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

15 years ago* Mono.Mozilla/Base.cs: Clean up list of webcontrol objects when
Andreia Gaita [Tue, 19 Aug 2008 01:08:07 +0000 (01:08 -0000)]
* Mono.Mozilla/Base.cs: Clean up list of webcontrol objects when
  shutting down, and switch the initialized flag when there are no
  more controls loaded. Lock initialization and shutdown.

2008-08-19  Andreia Gaita <avidigal@novell.com>

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

15 years ago* Fix inconsistent newlines. Add eol-style property.
Andreia Gaita [Tue, 19 Aug 2008 00:43:07 +0000 (00:43 -0000)]
* Fix inconsistent newlines. Add eol-style property.

2008-08-19  Andreia Gaita <avidigal@novell.com>

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

15 years ago2008-08-19 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 19 Aug 2008 00:31:04 +0000 (00:31 -0000)]
2008-08-19  Zoltan Varga  <vargaz@gmail.com>

* method-to-ir.c (mono_method_to_ir2): When using CEE_JMP, make arguments
volatile so they won't be optimized away.

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

15 years agoIn .:
Rodrigo Kumpera [Tue, 19 Aug 2008 00:28:34 +0000 (00:28 -0000)]
In .:
2008-08-19  Rodrigo Kumpera  <rkumpera@novell.com>

* ssa.c:
* ssa2.c:
* mini.c:
* regalloc2.c:
* dominators.c: Remove duplicated functions that now are in
mempool-internals.h.

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

15 years ago2008-08-19 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 19 Aug 2008 00:21:38 +0000 (00:21 -0000)]
2008-08-19  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c: Fix warnings.

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

15 years ago2008-08-19 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 19 Aug 2008 00:01:08 +0000 (00:01 -0000)]
2008-08-19  Zoltan Varga  <vargaz@gmail.com>

* aot-runtime.c (decode_klass_ref): Add support for VARs/MVARs.

* aot-compiler.c (encode_klass_ref): Encode is_method too for VARs/MVARs.

* method-to-ir.c (emit_get_rgctx_method): Use MONO_PATCH_INFO_METHODCONST
as the patch type.

* mini.c (mono_resolve_patch_target): Ditto.

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

15 years ago2008-08-19 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 19 Aug 2008 00:00:55 +0000 (00:00 -0000)]
2008-08-19  Zoltan Varga  <vargaz@gmail.com>

* aot-runtime.c (decode_klass_ref): Add support for VARs/MVARs.

* aot-compiler.c (encode_klass_ref): Encode is_method too for VARs/MVARs.

* method-to-ir.c (emit_get_rgctx_method): Use MONO_PATCH_INFO_METHODCONST
as the patch type.

* mini.c (mono_resolve_patch_target): Ditto.

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

15 years ago2008-08-19 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 18 Aug 2008 23:10:28 +0000 (23:10 -0000)]
2008-08-19  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (encode_patch): Add support for RGCTX_FETCH.
(encode_klass_ref): Add support for encoding VARs/MVARs.

* mini.c (mono_patch_info_dup_mp): Handle RGCTX_FETCH.

* aot-runtime.c (decode_patch_info): Rename to 'decode_patch'. Split out
the handling of the got entries into a separate 'decode_got_entry' function.
Add support for RGCTX_FETCH.

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

15 years ago2008-08-19 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 18 Aug 2008 23:04:02 +0000 (23:04 -0000)]
2008-08-19  Zoltan Varga  <vargaz@gmail.com>

* tramp-amd64.c mini-amd64.h: Change the VTABLE_REG to RDI since RAX is
clobbered by the trampoline code.

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

15 years ago2008-08-19 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 18 Aug 2008 22:03:54 +0000 (22:03 -0000)]
2008-08-19  Zoltan Varga  <vargaz@gmail.com>

* tramp-amd64.c mini-amd64.h: Change the VTABLE_REG to RAX since that is
not clobbered by the indirect calling code.

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

15 years agoIn .:
Rodrigo Kumpera [Mon, 18 Aug 2008 20:59:54 +0000 (20:59 -0000)]
In .:
2008-08-18 Rodrigo Kumpera  <rkumpera@novell.com>

* mempool-internals.h: Header for mono private mempool functions. The first
two function are for allocating glib linked lists using pools.

* mempool.c: Added g_list_prepend_mempool and g_slist_prepend_mempool.

* Makefile.am: Added mempool-internals.h.

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

15 years ago2008-08-18 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 18 Aug 2008 20:45:46 +0000 (20:45 -0000)]
2008-08-18  Zoltan Varga  <vargaz@gmail.com>

* mini-x86.c (mono_arch_patch_code): Handle RGCTX_FETCH/GENERIC_CLASS_INIT
to fix the build.

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

15 years ago2008-08-18 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Mon, 18 Aug 2008 20:29:38 +0000 (20:29 -0000)]
2008-08-18  Jonathan Pobst  <monkey@jpobst.com>

* ListBox.cs: Fix CopyTo implementation.
[Fixes bug #409169]

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

15 years agoIn .:
Rodrigo Kumpera [Mon, 18 Aug 2008 20:16:26 +0000 (20:16 -0000)]
In .:
2008-08-18  Rodrigo Kumpera  <rkumpera@novell.com>

* method-to-ir.c (mono_emit_method_call_full): Alloc the constructor
signature using the compilation mempool otherwise we would leak it.

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

15 years ago2008-08-18 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Mon, 18 Aug 2008 20:15:14 +0000 (20:15 -0000)]
2008-08-18  Jonathan Pobst  <monkey@jpobst.com>

* ListBox.cs: Fix CopyTo implementation.
[Fixes bug #409169]

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

15 years ago2008-08-18 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 18 Aug 2008 19:59:41 +0000 (19:59 -0000)]
2008-08-18  Zoltan Varga  <vargaz@gmail.com>

* method-to-ir.c (mono_method_to_ir2): Emit the generic class inits using
mono_emit_abs_call ().

* patch-info.h: Add GENERIC_CLASS_INIT.

* mini.c (mono_resolve_patch_target): Handle GENERIC_CLASS_INIT.

* mini-amd64.c (emit_call_body): Treat abs calls which have a patch info
as their target as a near call.

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

15 years ago2008-08-18 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Mon, 18 Aug 2008 19:49:08 +0000 (19:49 -0000)]
2008-08-18  Marek Habersack  <mhabersack@novell.com>

* TemplateControlCompiler.cs: process expression when they are
used used in values of attributes without associated
properties. Fixes bug #417883

* ResourceExpressionBuilder.cs: added two overloads of
CreateGetLocalResourceObject to encompass cases when the generated
expression is not assigned to a property but rather used as a
parameter to the SetAttribute method. Fixes bug #417883

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

15 years ago2008-08-18 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 18 Aug 2008 19:13:20 +0000 (19:13 -0000)]
2008-08-18  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mono_codegen): Handle patches stored in cfg->abs_patches in the
ABS handling code.
(mono_resolve_patch_target): Add support for MONO_PATCH_INFO_RGCTX_FETCH.

* method-to-ir.c (mono_emit_abs_call): New helper function which emits a
call to a runtime function described by a patch.

* method-to-ir.c: Emit rgctx entry fetches and class init trampolines using
mono_emit_abs_call, this has the advantage that the ABS handling code in
mono_codegen () can handle them both, and can handle other stuff in the
future without additional code.

* mini.h (struct MonoJumpInfoRgctxEntry): New structure describing an rgctx
entry.
(MonoCompile): Add 'abs_patches' hashtable, which contains patches describing
abs addresses.

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

15 years ago2008-08-18 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 18 Aug 2008 18:00:19 +0000 (18:00 -0000)]
2008-08-18  Zoltan Varga  <vargaz@gmail.com>

* mini.h: Add missing bblock related prototypes.

* mini.h (MonoCompile): Remove unused reverse_inst_list and
reverse_inst_list_len fields.

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

15 years ago2008-08-19 Geoff Norton <gnorton@novell.com>
Geoff Norton [Mon, 18 Aug 2008 17:52:10 +0000 (17:52 -0000)]
2008-08-19  Geoff Norton  <gnorton@novell.com>

        * WebClient_2_1.cs: Keep a reference to the tick callback until its completed.

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

15 years ago2008-08-18 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 18 Aug 2008 17:29:15 +0000 (17:29 -0000)]
2008-08-18  Sebastien Pouliot  <sebastien@ximian.com>

* X509Certificate[20].cs: Silverlight 2.0 does not implement either
IDeserializationCallback or ISerializable interfaces for this type.

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

15 years ago2008-08-18 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 18 Aug 2008 15:51:48 +0000 (15:51 -0000)]
2008-08-18  Zoltan Varga  <vargaz@gmail.com>

* mini.c: Refactor this file a bit by moving branch optimizations to
branch-opts.c.

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

15 years ago2008-08-18 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Mon, 18 Aug 2008 15:11:50 +0000 (15:11 -0000)]
2008-08-18  Jonathan Pobst  <monkey@jpobst.com>

* ThemeWin32Classic.cs: Use ClientRectangle instead of Bounds when
drawing a ComboBox's background.  Fixes bad disabled rendering when
the control is not at 0,0.
[Fixes bug #416063]

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

15 years ago2008-08-18 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 18 Aug 2008 14:30:48 +0000 (14:30 -0000)]
2008-08-18  Zoltan Varga  <vargaz@gmail.com>

* method-to-ir.c: Merge generic sharing changes missed earlier.

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

15 years ago2008-08-18 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Mon, 18 Aug 2008 14:27:46 +0000 (14:27 -0000)]
2008-08-18  Marek Habersack  <mhabersack@novell.com>

* Unit.cs: rewrote the unit parser in a slightly slower, but more
correct, way. Fixes bug #417502

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

15 years ago2008-08-18 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 18 Aug 2008 13:13:32 +0000 (13:13 -0000)]
2008-08-18  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (is_shared_got_patch): Add MONO_PATCH_INFO_METHODCONST.

* aot-runtime.c (decode_patch_info): Refactor the code dealing with the
shared patches. Process METHODCONST as a shared patch.

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

15 years ago2008-08-18 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Mon, 18 Aug 2008 10:21:44 +0000 (10:21 -0000)]
2008-08-18  Marek Habersack  <mhabersack@novell.com>

* Numeric.cs: Max/Min operations do not convert string
IConvertibles to double - they perform a simple string compare
instead.

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

15 years ago2008-08-18 Geoff Norton <gnorton@novell.com>
Geoff Norton [Mon, 18 Aug 2008 03:12:39 +0000 (03:12 -0000)]
2008-08-18  Geoff Norton  <gnorton@novell.com>

        * WebRequest_2_1.cs: Set a delegate callback for BrowserHttpWebRequest
        to update progress.
        * WebClient_2_1.cs: Refactor the OnDownloadedChanged method, as its already
        emitting on the right thread.  Clean up the OnOpenReadCompleted method.
        Set a delegate callback for BrowserHttpWebRequest to updated Progress.

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

15 years ago2008-08-18 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 18 Aug 2008 02:13:52 +0000 (02:13 -0000)]
2008-08-18  Zoltan Varga  <vargaz@gmail.com>

* liveness.c (mono_analyze_liveness): Disable the liveness2 code for now
as it crashes on the 2.0 mscorlib.

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

15 years ago2008-08-18 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 18 Aug 2008 00:06:54 +0000 (00:06 -0000)]
2008-08-18  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c: Use is_plt_patch () in a few additional places.
(is_shared_got_patch): Add MONO_PATCH_INFO_METHODCONST, which is generated
by IMT.

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

15 years ago2008-08-18 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 17 Aug 2008 23:07:29 +0000 (23:07 -0000)]
2008-08-18  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c: Reorganize the got handling code to be a bit more
understandable.

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

15 years ago2008-08-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 17 Aug 2008 21:52:42 +0000 (21:52 -0000)]
2008-08-17  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c: Make the patch_to_plt_offset hash table use
mono_patch_info_equals/hash, and use it to massively simplify
get_plt_index ().

* mini.c (mono_patch_info_hash): Simplify this and add support for
more patch types.

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

15 years ago2008-08-17 Geoff Norton <gnorton@novell.com>
Geoff Norton [Sun, 17 Aug 2008 21:45:54 +0000 (21:45 -0000)]
2008-08-17  Geoff Norton  <gnorton@novell.com>

        * WebRequest_2_1.cs: We support relative URI's now.

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

15 years ago2008-08-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 17 Aug 2008 21:23:31 +0000 (21:23 -0000)]
2008-08-17  Zoltan Varga  <vargaz@gmail.com>

* patch-info.h: Rename RGCTX_LAZY_FETCH_TRAMPOLINE to just RGCTX_FETCH.

* mini.c aot-compiler.c aot-runtime.c: Revert the LAZY_FETCH_TRAMPOLINE
handling code, since an offset is not enough to identify a trampoline.

* method-to-ir.c: Remove some g_assert (!cfg->compile_aot) lines.

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

15 years agoFix the build.
Zoltan Varga [Sun, 17 Aug 2008 19:43:41 +0000 (19:43 -0000)]
Fix the build.

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

15 years ago2008-08-17 Mark Probst <mark.probst@gmail.com>
Mark Probst [Sun, 17 Aug 2008 11:59:05 +0000 (11:59 -0000)]
2008-08-17  Mark Probst  <mark.probst@gmail.com>

* mini.c (mono_op_imm_to_op): Add case for OP_IMUL_IMM.

* method-to-ir.c (mono_method_to_ir2): Decompose OP_CKFINITE.

* mini-ops.h: Argument and result types for OVF_CARRY ops.

* decompose.c: PPC decompositions for various ops.

* cpu-ppc.md, inssel-ppc.brg, mini-ppc.c: PPC changes for Linear IL.

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

15 years ago2008-08-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 17 Aug 2008 00:11:25 +0000 (00:11 -0000)]
2008-08-17  Zoltan Varga  <vargaz@gmail.com>

* tramp-amd64.c (mono_arch_create_rgctx_lazy_fetch_trampoline): Make this
call the generic trampoline code using a call, instead of a jump, to
remove some special casing from the generic trampoline code.

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

15 years ago2008-08-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 16 Aug 2008 23:45:02 +0000 (23:45 -0000)]
2008-08-17  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mono_resolve_patch_target): Handle LAZY_FETCH_TRAMPOLINE.
(mono_codegen): Ditto.

* aot-compiler.c aot-runtime.c: Ditto.

* patch-info.h: Add MONO_PATCH_INFO_RGCTX_LAZY_FETCH_TRAMPOLINE.

* mini-trampolines.c (mono_find_rgctx_lazy_fetch_trampoline_by_addr): New
helper function to find the offset corresponding to a lazy fetch trampoline.

* mini.h (MonoCompile): Add 'orig_method' field to hold the original method
when doing generic sharing.

* aot-compiler.c: Use cfg->orig_method instead of cfg->method in a lot of
places.

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

15 years ago2008-08-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 16 Aug 2008 22:49:49 +0000 (22:49 -0000)]
2008-08-17  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mono_create_rgctx_lazy_fetch_trampoline): Move this to
mini-trampolines.c to be with the other trampoline creation functions.

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

15 years ago2008-08-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 16 Aug 2008 22:34:50 +0000 (22:34 -0000)]
2008-08-17  Zoltan Varga  <vargaz@gmail.com>

* method-to-ir.c (mono_emit_method_call): Remove the 'signature' argument
as it is equal to method->signature in most cases, add a
mono_emit_method_call_full variant which takes a signature and an imt
argument as well.

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

15 years ago2008-08-16 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 16 Aug 2008 20:12:55 +0000 (20:12 -0000)]
2008-08-16  Zoltan Varga  <vargaz@gmail.com>

* jit-icalls.c (mono_helper_compile_generic_method): Don't pass the context
to this function, since it could be computed easily from the method
argument.
(mono_helper_compile_generic_method_wo_context): Removed, not needed any
more.

* method-to-ir.c mini.c: Remove references to
compile_generic_method_wo_context.

* method-to-ir.c (mono_method_to_ir2): Enable AOT for virtual
generic method calls.

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