mono.git
16 years agoNew test + update.
Marek Safar [Fri, 7 Mar 2008 11:29:01 +0000 (11:29 -0000)]
New test + update.

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

16 years ago2008-03-07 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 7 Mar 2008 11:28:36 +0000 (11:28 -0000)]
2008-03-07  Marek Safar  <marek.safar@gmail.com>

* generic.cs, typemanager.cs, parameter.cs, rootcontext.cs, ecore.cs,
class.cs, delegate.cs, iterators.cs, const.cs, constant.cs, driver.cs,
expression.cs, attribute.cs, codegen.cs, statement.cs: TypeManager optional
predefined types clean up, delayed predefined types members initialization
(work related to #364674).

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

16 years ago2008-03-07 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 7 Mar 2008 10:07:25 +0000 (10:07 -0000)]
2008-03-07  Zoltan Varga  <vargaz@gmail.com>

* mini.c jit-icalls.h jit-icalls.c: Generalize the exception creation
optimization to ctors taking 0 or 2 arguments too.

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

16 years ago2008-03-07 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 7 Mar 2008 09:34:35 +0000 (09:34 -0000)]
2008-03-07  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mono_method_to_ir): Optimalize the size of the exception throwing code
a bit.

* jit-icalls.h (mono_create_corlib_exception): New JIT icall.

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

16 years ago2008-03-07 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 7 Mar 2008 09:32:56 +0000 (09:32 -0000)]
2008-03-07  Zoltan Varga  <vargaz@gmail.com>

* exception.h exception.c (mono_exception_from_token_two_strings): New helper
function.

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

16 years ago2008-03-07 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 7 Mar 2008 09:07:08 +0000 (09:07 -0000)]
2008-03-07  Zoltan Varga  <vargaz@gmail.com>

* mini-amd64.c (mono_arch_emit_prolog): Improve the first_bb optimization a bit.

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

16 years ago2008-03-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Fri, 7 Mar 2008 06:11:20 +0000 (06:11 -0000)]
2008-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListBoxTest.cs: New tests for 2.0 selection methods
in the different selection modes. Also, in GetSelectedTest (),
be sure that we set the right selection mode (test cleaness).

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

16 years ago2008-03-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Fri, 7 Mar 2008 06:10:53 +0000 (06:10 -0000)]
2008-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListBox.cs: Rewrote/refactored most of selection code. We require
the following things in selection: a) keep selection sorted (both
indices and items), b) SelectedIndices automatically detect the
selection mode, c) SelectedIndex should be the first selected item
index, d) Need to Focus/adjust scroll bar when selecting a new item,
not only for SelectedIndex, which is specially important in Multi*
selection modes. To achieve this we are moving the selection core to
SelectedIndexCollection and make depend all selection modifications on
it.
Fixes #366438.

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

16 years ago2008-03-06 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 6 Mar 2008 21:25:18 +0000 (21:25 -0000)]
2008-03-06  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mono_method_to_ir): Apply one of the ldstr optimizations in the
non-aot case as well.

* cpu-amd64.md: Reduce the max size of some frequently used opcodes.

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

16 years ago2008-03-06 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 6 Mar 2008 21:19:32 +0000 (21:19 -0000)]
2008-03-06  Jonathan Pobst  <monkey@jpobst.com>

* ToolStrip.cs: Enable implicit mnemonics for drop down
menu strips.  [Fixes part of bug #367692]

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

16 years agoconstify
Jb Evain [Thu, 6 Mar 2008 20:15:51 +0000 (20:15 -0000)]
constify

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

16 years ago2008-03-06 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Thu, 6 Mar 2008 19:50:51 +0000 (19:50 -0000)]
2008-03-06  Ivan N. Zlatev  <contact@i-nz.net>

* CodeDomSerializerBase.cs: Fix deserialization of
CodeFieldReference to handle static fields. This fixes enum
references.

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

16 years ago2008-03-06 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Thu, 6 Mar 2008 19:45:36 +0000 (19:45 -0000)]
2008-03-06  Ivan N. Zlatev  <contact@i-nz.net>

* ImageFormatConverter.cs:
 - String comparison should use the InvariantCulture.
 - ConvertTo string should return the name for known image formats.
 [Fixes bug #366570]

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

16 years ago2008-03-06 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 6 Mar 2008 19:38:10 +0000 (19:38 -0000)]
2008-03-06  Jonathan Pobst  <monkey@jpobst.com>

corcompare - fix parameter names [stragglers].
Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
TabControl.cs.

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

16 years ago2008-03-06 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Thu, 6 Mar 2008 19:20:09 +0000 (19:20 -0000)]
2008-03-06  Ivan N. Zlatev  <contact@i-nz.net>

* Container.cs: On disposal unsite the component first before
disposing in order to prevent it from asking us to remove it
through the Site property.
[Fixes bugs #367653 and #367583]

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

16 years ago2008-03-06 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 6 Mar 2008 19:16:03 +0000 (19:16 -0000)]
2008-03-06  Zoltan Varga  <vargaz@gmail.com>

* aot-runtime.c (decode_patch_info): Update this after the ldfld/stfld wrapper
changes.

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

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

16 years ago2008-03-06 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 6 Mar 2008 18:47:18 +0000 (18:47 -0000)]
2008-03-06  Zoltan Varga  <vargaz@gmail.com>

* assembly.c (build_assembly_name): Fix a warning.

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

16 years agoUpdate to test store as well.
Paolo Molaro [Thu, 6 Mar 2008 18:16:57 +0000 (18:16 -0000)]
Update to test store as well.

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

16 years agoThu Mar 6 19:43:41 CET 2008 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 6 Mar 2008 18:09:14 +0000 (18:09 -0000)]
Thu Mar 6 19:43:41 CET 2008 Paolo Molaro <lupus@ximian.com>

* marshal.c: ldfld_remote and stfld_remote needs just one wrapper as
the called function takes an object type argument. Fixes storing or
valuetypes across remoting as well as reducing memory usage.
* image.c, metadata-internals.h: remove now unused ldfld_remote and
stfld_remote wrapper caches.

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

16 years ago2008-03-06 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 6 Mar 2008 17:33:09 +0000 (17:33 -0000)]
2008-03-06  Jonathan Pobst  <monkey@jpobst.com>

Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
was a mnemonic pressed as well as Alt.  Also, if nothing handles a
mnemonic, let the ToolStripManager have it even if it doesn't
have a matching mnemonic.
[Fixes bug #367499]

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

16 years ago2008-03-06 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 6 Mar 2008 17:19:58 +0000 (17:19 -0000)]
2008-03-06  Zoltan Varga  <vargaz@gmail.com>

* mini.h (G_MININT32): Fix the definition of this.

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

16 years ago2008-03-06 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 6 Mar 2008 16:52:38 +0000 (16:52 -0000)]
2008-03-06  Jonathan Pobst  <monkey@jpobst.com>

corcompare - fix warning about implicit implementation
* ToolStrip.cs: Add IToolStripData interface.
* IToolStripData.cs: Add.

2008-03-06  Jonathan Pobst  <monkey@jpobst.com>

* System.Windows.Forms.dll.sources: Added IToolStripData.cs.

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

16 years agoNew test.
Marek Safar [Thu, 6 Mar 2008 16:51:29 +0000 (16:51 -0000)]
New test.

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

16 years agoForgot a file.
Jonathan Pobst [Thu, 6 Mar 2008 16:45:29 +0000 (16:45 -0000)]
Forgot a file.

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

16 years ago2008-03-06 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 6 Mar 2008 16:34:30 +0000 (16:34 -0000)]
2008-03-06  Jonathan Pobst  <monkey@jpobst.com>

corcompare - fix warning about implicit implementation
* Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
* IBounds.cs: Add.

2008-03-06  Jonathan Pobst  <monkey@jpobst.com>

* System.Windows.Forms.dll.sources: Added IBounds.cs.

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

16 years ago2008-03-06 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 6 Mar 2008 16:18:31 +0000 (16:18 -0000)]
2008-03-06  Zoltan Varga  <vargaz@gmail.com>

* Assembly.cs: Define GetManifestModule () for net 2.0 bootstrap as well.

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

16 years agoFix the previous change.
Zoltan Varga [Thu, 6 Mar 2008 16:10:17 +0000 (16:10 -0000)]
Fix the previous change.

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

16 years ago2008-03-06 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 6 Mar 2008 16:02:52 +0000 (16:02 -0000)]
2008-03-06  Zoltan Varga  <vargaz@gmail.com>

* AssemblyBuilder.cs: Define GetManifestModule () for net 2.0 bootstrap too.

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

16 years ago2008-03-06 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 6 Mar 2008 16:00:44 +0000 (16:00 -0000)]
2008-03-06  Marek Safar  <marek.safar@gmail.com>

* MonoCustomAttrs (GetCustomAttributes): Type cannot be null with
typeof (MonoCustomAttrs) hack.

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

16 years ago2008-03-06 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 6 Mar 2008 15:31:00 +0000 (15:31 -0000)]
2008-03-06  Zoltan Varga  <vargaz@gmail.com>

* DynamicMethod.cs: Create a dynamic assembly to hold the anon hosted methods.

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

16 years ago2008-03-06 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 6 Mar 2008 15:20:07 +0000 (15:20 -0000)]
2008-03-06  Marek Safar  <marek.safar@gmail.com>

* MonoCustomAttrs (GetCustomAttributes): Type cannot be null.

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

16 years ago2008-03-06 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 6 Mar 2008 15:13:50 +0000 (15:13 -0000)]
2008-03-06  Zoltan Varga  <vargaz@gmail.com>

* DynamicMethodTest.cs: Add a test for anon-hosted dynamic methods.

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

16 years ago2008-03-06 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 6 Mar 2008 15:13:17 +0000 (15:13 -0000)]
2008-03-06  Zoltan Varga  <vargaz@gmail.com>

* DynamicMethod.cs: Add net 3.5 ctor overloads.

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

16 years agofix build
Jb Evain [Thu, 6 Mar 2008 14:58:29 +0000 (14:58 -0000)]
fix build

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

16 years ago2008-03-06 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 6 Mar 2008 14:32:36 +0000 (14:32 -0000)]
2008-03-06  Zoltan Varga  <vargaz@gmail.com>

* ModuleBuilderTest.cs: Add a test for #367668.

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

16 years ago2008-03-06 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 6 Mar 2008 14:28:55 +0000 (14:28 -0000)]
2008-03-06  Zoltan Varga  <vargaz@gmail.com>

* ModuleBuilder.cs (RegisterToken): New icall.

* MethodBuilder.cs (ctor): Call ModuleBuilder.RegisterToken (), so the token gets
added to the internal hash table. Fixes #367668.

* ConstructorBuilder.cs: Ditto.

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

16 years ago2008-03-06 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 6 Mar 2008 14:27:44 +0000 (14:27 -0000)]
2008-03-06  Zoltan Varga  <vargaz@gmail.com>

* icall.c (mono_lookup_internal_call): Update the exception message when an icall
is not found.

* reflection.c (mono_image_register_token): New helper function to save
a token->object mapping.

* icall.c (ves_icall_ModuleBuilder_RegisterToken): New icall to access it from
managed code.

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

16 years ago2008-03-06 Jb Evain <jbevain@novell.com>
Jb Evain [Thu, 6 Mar 2008 14:02:21 +0000 (14:02 -0000)]
2008-03-06  Jb Evain  <jbevain@novell.com>

* EmitContext.cs: the DebugContext delegate the CreateDelegate
to a DynamicContext to avoid visibility issues in debug mode.

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

16 years agomake delegate and method private
Jb Evain [Thu, 6 Mar 2008 13:55:36 +0000 (13:55 -0000)]
make delegate and method private

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

16 years ago2008-03-06 Jb Evain <jbevain@novell.com>
Jb Evain [Thu, 6 Mar 2008 13:54:40 +0000 (13:54 -0000)]
2008-03-06  Jb Evain  <jbevain@novell.com>

* EmitContext.cs: Lambda methods bypass JIT visibility checks.

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

16 years agotest compilation of invoke
Jb Evain [Thu, 6 Mar 2008 13:30:40 +0000 (13:30 -0000)]
test compilation of invoke

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

16 years ago2008-03-06 Jb Evain <jbevain@novell.com>
Jb Evain [Thu, 6 Mar 2008 13:30:15 +0000 (13:30 -0000)]
2008-03-06  Jb Evain  <jbevain@novell.com>

* MethodCallExpression.cs, Expression.cs: refactor method calling
into a more sophisticated EmitCall in Expression.
* InvocationExpression.cs (Emit): implement using the previous EmitCall.

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

16 years ago2008-03-06 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 6 Mar 2008 12:24:28 +0000 (12:24 -0000)]
2008-03-06  Zoltan Varga  <vargaz@gmail.com>

* TypeTest.cs (PublicKeyToken): Add a test for #367670.

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

16 years ago2008-03-06 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 6 Mar 2008 12:21:22 +0000 (12:21 -0000)]
2008-03-06  Zoltan Varga  <vargaz@gmail.com>

* reflection.c (_mono_reflection_parse_type): Distinguish between vectors and
one dimension arrays. Fixes #367670.
(mono_reflection_get_type_internal): Ditto.

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

16 years agorefactor
Jb Evain [Thu, 6 Mar 2008 12:02:43 +0000 (12:02 -0000)]
refactor

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

16 years agoadd tests
Jb Evain [Thu, 6 Mar 2008 12:01:52 +0000 (12:01 -0000)]
add tests

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

16 years ago2008-03-06 Jb Evain <jbevain@novell.com>
Jb Evain [Thu, 6 Mar 2008 12:01:24 +0000 (12:01 -0000)]
2008-03-06  Jb Evain  <jbevain@novell.com>

* Expression.cs: add a EmitCall helper.
* MemberExpression.cs: implement property access.

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

16 years ago2008-03-06 Jb Evain <jbevain@novell.com>
Jb Evain [Thu, 6 Mar 2008 11:46:27 +0000 (11:46 -0000)]
2008-03-06  Jb Evain  <jbevain@novell.com>

* MethodCallExpression.cs, Expression.cs: refactor a EmitLoad in Expression.
* MemberExpression.cs: use EmitLoad to load the instance field if needed.

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

16 years agothis went in accidentally
Jb Evain [Thu, 6 Mar 2008 08:48:18 +0000 (08:48 -0000)]
this went in accidentally

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

16 years ago2008-03-06 Jb Evain <jbevain@novell.com>
Jb Evain [Thu, 6 Mar 2008 08:44:33 +0000 (08:44 -0000)]
2008-03-06  Jb Evain  <jbevain@novell.com>

* ILGeneratorTest.cs: add test for #367663, checking
that EmitCalli deals with null return types.

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

16 years ago2008-03-06 Jb Evain <jbevain@novell.com>
Jb Evain [Thu, 6 Mar 2008 08:43:13 +0000 (08:43 -0000)]
2008-03-06  Jb Evain  <jbevain@novell.com>

        * SignatureHelper.cs (GetMethodSigHelper): if returnType
        is null, use typeof (void) instead. Fixes #367663.

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

16 years agoUpdated.
Marek Safar [Thu, 6 Mar 2008 08:25:30 +0000 (08:25 -0000)]
Updated.

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

16 years agowe pass this guy
Jb Evain [Wed, 5 Mar 2008 22:32:32 +0000 (22:32 -0000)]
we pass this guy

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

16 years ago2008-03-06 Jb Evain <jbevain@novell.com>
Jb Evain [Wed, 5 Mar 2008 22:31:43 +0000 (22:31 -0000)]
2008-03-06  Jb Evain  <jbevain@novell.com>

* BinaryExpression.cs, Expression.cs: move EmitStored from
BinaryExpression to Expression.
* MethodCallExpression.cs: allow method calls on structs.

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

16 years ago2008-03-05 Jb Evain <jbevain@novell.com>
Jb Evain [Wed, 5 Mar 2008 22:12:34 +0000 (22:12 -0000)]
2008-03-05  Jb Evain  <jbevain@novell.com>

* ExpressionTest_Call.cs: we pass the Call with type arguments tests.

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

16 years ago2008-03-05 Jb Evain <jbevain@novell.com>
Jb Evain [Wed, 5 Mar 2008 22:09:43 +0000 (22:09 -0000)]
2008-03-05  Jb Evain  <jbevain@novell.com>

* Expression.cs: Fix the Call method which takes an array
of type arguments.

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

16 years agoUpdated.
Marek Safar [Wed, 5 Mar 2008 22:08:22 +0000 (22:08 -0000)]
Updated.

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

16 years ago2008-03-05 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 5 Mar 2008 22:07:46 +0000 (22:07 -0000)]
2008-03-05  Marek Safar  <marek.safar@gmail.com>

* typemanager.cs (IsFriendAssembly): InternalsVisibleTo is not mandatory.

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

16 years ago* Mono.Mozilla/WebBrowser.cs: Fix access to the navigation object (give it a chance...
Andreia Gaita [Wed, 5 Mar 2008 22:05:00 +0000 (22:05 -0000)]
* Mono.Mozilla/WebBrowser.cs: Fix access to the navigation object (give it a chance to initialize)
* Mono.Mozilla/AsciiString.cs,
  Mono.Mozilla/UniString.cs,
  Mono.Mozilla/Callback.cs: hide from the exposed api
* fix svn:eol-style property

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

16 years ago2008-03-05 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 5 Mar 2008 19:58:30 +0000 (19:58 -0000)]
2008-03-05  Jonathan Pobst  <monkey@jpobst.com>

corcompare - fix parameter names [N-Z].
LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
PropertyManager.cs, RichTextBox.cs,
ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
ToolStripContentPanel.cs, ToolStripDropDown.cs,
ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
ToolStripPanel.cs, ToolStripSeparator.cs,
TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
UICuesEventHandler.cs, UpDownBase.cs.

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

16 years agotests
Jb Evain [Wed, 5 Mar 2008 19:50:33 +0000 (19:50 -0000)]
tests

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

16 years agono need for this guy
Jb Evain [Wed, 5 Mar 2008 19:33:15 +0000 (19:33 -0000)]
no need for this guy

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

16 years ago Fix sed command so that 'scripts_defaults' scripts work.
Wade Berrier [Wed, 5 Mar 2008 19:29:26 +0000 (19:29 -0000)]
   Fix sed command so that 'scripts_defaults' scripts work.
       Add some files to the cleanup list.

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

16 years agoWed Mar 5 19:39:01 CET 2008 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Wed, 5 Mar 2008 17:54:01 +0000 (17:54 -0000)]
Wed Mar 5 19:39:01 CET 2008 Paolo Molaro <lupus@ximian.com>

* Type.cs: optimize GetTypeCode () for the common case
(fixes bug #367354).

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

16 years ago2008-03-05 Wade Berrier <wberrier@novell.com>
Wade Berrier [Wed, 5 Mar 2008 17:11:30 +0000 (17:11 -0000)]
2008-03-05  Wade Berrier  <wberrier@novell.com>

       * scripts/Makefile.am: fix typo so that 'scripts_defaults'
scripts get installed.

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

16 years ago2008-03-05 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 5 Mar 2008 17:09:18 +0000 (17:09 -0000)]
2008-03-05  Jonathan Pobst  <monkey@jpobst.com>

corcompare - fix parameter names [G-M].
GridColumnStylesCollection.cs, GridItemCollection.cs,
GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.

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

16 years ago2008-03-05 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 5 Mar 2008 16:01:15 +0000 (16:01 -0000)]
2008-03-05  Jonathan Pobst  <monkey@jpobst.com>

corcompare - fix parameter names [A-F].
Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.

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

16 years agorefactoring
Jb Evain [Wed, 5 Mar 2008 15:00:11 +0000 (15:00 -0000)]
refactoring

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

16 years ago2008-03-05 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 5 Mar 2008 14:50:10 +0000 (14:50 -0000)]
2008-03-05  Jonathan Pobst  <monkey@jpobst.com>

* TableLayout.cs: Guard against an exception when a control's colspan
or rowspan is greater than the number of columns or rows.
[Fixes bug #367249]

2008-03-05  Jonathan Pobst  <monkey@jpobst.com>

* TableLayoutTest.cs: Add test for bug #367249.

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

16 years agorefactorings
Jb Evain [Wed, 5 Mar 2008 13:24:23 +0000 (13:24 -0000)]
refactorings

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

16 years agorefactorings
Jb Evain [Wed, 5 Mar 2008 13:11:39 +0000 (13:11 -0000)]
refactorings

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

16 years agotests for lift/liftToNull
Jb Evain [Wed, 5 Mar 2008 12:40:56 +0000 (12:40 -0000)]
tests for lift/liftToNull

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

16 years ago2008-03-05 Jb Evain <jbevain@novell.com>
Jb Evain [Wed, 5 Mar 2008 12:40:03 +0000 (12:40 -0000)]
2008-03-05  Jb Evain  <jbevain@novell.com>

* Expression.cs: fix for a good chunk of lifted/liftToNull tests.

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

16 years ago2008-03-05 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 5 Mar 2008 11:18:43 +0000 (11:18 -0000)]
2008-03-05  Zoltan Varga  <vargaz@gmail.com>

* mini.h: Define G_MININT32/G_MAXINT32 if using an older glib version.

* cfold.c: Remove definition of G_MININT32 which is now in mini.h.

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

16 years ago2008-03-05 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 5 Mar 2008 10:34:57 +0000 (10:34 -0000)]
2008-03-05  Marek Safar  <marek.safar@gmail.com>

* typemanager.cs, parameter.cs, rootcontext.cs, ecore.cs, class.cs, decl.cs,
delegate.cs, convert.cs, driver.cs, attribute.cs, codegen.cs: TypeManager
predefined types clean up (work related to #364674).

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

16 years ago2008-03-04 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 4 Mar 2008 23:09:46 +0000 (23:09 -0000)]
2008-03-04  Jonathan Pobst  <monkey@jpobst.com>

* ResXResourceWriter.cs: Implement or stub the remaining 2.0 bits
to this.

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

16 years ago2008-03-04 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 4 Mar 2008 21:34:58 +0000 (21:34 -0000)]
2008-03-04  Marek Safar  <marek.safar@gmail.com>

* Makefile: Added System.Data.Linq

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

16 years ago* dis-cil.c (disassemble_cil): For catch clause, emit stringified class
Ankit Jain [Tue, 4 Mar 2008 19:47:14 +0000 (19:47 -0000)]
* dis-cil.c (disassemble_cil): For catch clause, emit stringified class
with prefix.

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

16 years ago* ILParser.jay (custom_type): Allow any method name.
Ankit Jain [Tue, 4 Mar 2008 19:47:09 +0000 (19:47 -0000)]
* ILParser.jay (custom_type): Allow any method name.

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

16 years agoFix bug #367024.
Ankit Jain [Tue, 4 Mar 2008 19:47:03 +0000 (19:47 -0000)]
Fix bug #367024.
* ILParser.jay (seh_clause): catch can take generic class refs also.

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

16 years ago2008-03-04 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 4 Mar 2008 17:47:31 +0000 (17:47 -0000)]
2008-03-04  Zoltan Varga  <vargaz@gmail.com>

* mini-amd64.c (mono_arch_compute_omit_fp): Don't disable fp elimination for
methods returning vtypes in registers.
(mono_arch_allocate_vars): Ditto.

* mini-amd64.c (mono_arch_get_this_arg_reg): New arch specific helper function.

* tramp-amd64.c (mono_arch_get_unbox_trampoline): Use mono_arch_get_this_arg_reg ().

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

16 years agoCheckin file missed earlier.
Zoltan Varga [Tue, 4 Mar 2008 17:46:17 +0000 (17:46 -0000)]
Checkin file missed earlier.

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

16 years ago2008-03-04 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 4 Mar 2008 17:37:25 +0000 (17:37 -0000)]
2008-03-04  Zoltan Varga  <vargaz@gmail.com>

* generics.cs: Add a test from the linear IR branch.

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

16 years ago2008-03-04 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 4 Mar 2008 17:36:25 +0000 (17:36 -0000)]
2008-03-04  Zoltan Varga  <vargaz@gmail.com>

* mini-amd64.c (emit_load_volatile_arguments): Handle vtypes passed in regs too.

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

16 years agoTest for bug #366445.
Paolo Molaro [Tue, 4 Mar 2008 17:21:56 +0000 (17:21 -0000)]
Test for bug #366445.

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

16 years agoTue Mar 4 19:04:02 CET 2008 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 4 Mar 2008 17:17:52 +0000 (17:17 -0000)]
Tue Mar 4 19:04:02 CET 2008 Paolo Molaro <lupus@ximian.com>

* marshal.c: mono_load_remote_field_new() always returns object.
so use the proper signature (fixes bug #366445).

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

16 years ago2008-03-04 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 4 Mar 2008 17:02:02 +0000 (17:02 -0000)]
2008-03-04  Zoltan Varga  <vargaz@gmail.com>

* mini.c (inline_method): Cache failed inline attempts.

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

16 years agomerge r97323
Igor Zelmanovich [Tue, 4 Mar 2008 17:01:53 +0000 (17:01 -0000)]
merge r97323

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

16 years ago2008-03-04 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 4 Mar 2008 17:00:40 +0000 (17:00 -0000)]
2008-03-04  Zoltan Varga  <vargaz@gmail.com>

* class-internals.h (MonoMethod): Remove unused uses_this flag,
add an 'inline_failure' flag instead.

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

16 years ago2008-03-04 Mark Probst <mark.probst@gmail.com>
Mark Probst [Tue, 4 Mar 2008 16:56:35 +0000 (16:56 -0000)]
2008-03-04  Mark Probst  <mark.probst@gmail.com>

* domain-internals.h, domain.c: Replaced MonoGenericSharingContext
with a new structure, MonoGenericJitInfo, in the MonoJitInfo.  It
contains the location of "this", used for exception handling.

2008-03-04  Mark Probst  <mark.probst@gmail.com>

* mini.c: For shared methods of generic classes put the location
of "this" into the MonoGenericJitInfo.

* mini-x86.c, mini-amd64.c, mini.h: Added function for fetching a
register out of a MonoContext by register number.  Add the generic
sharing context as an argument to mono_arch_find_this_argument().

* mini-alpha.c, mini-arm.c, mini-hppa.c, mini-ia64.c, mini-mips.c,
mini-ppc.c, mini-s390.c, mini-s390x.c, mini-sparc.c: Added stub
for new arch function.

* mini-exception.c: Handle open exception clauses in shared
generic code.

* mini-trampolines.c: Supply additional argument to
mono_arch_find_this_argument().

2008-03-04  Mark Probst  <mark.probst@gmail.com>

* generics-sharing.2.c: Added test for open catch clauses in
shared generic code.

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

16 years ago2008-03-04 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 4 Mar 2008 15:22:28 +0000 (15:22 -0000)]
2008-03-04  Sebastien Pouliot  <sebastien@ximian.com>

* Graphics.cs: Fix CopyFromScreen for X11 when source or destination
coordinates are not 0. Fix bug #363881.

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

16 years ago2008-03-04 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 4 Mar 2008 14:51:15 +0000 (14:51 -0000)]
2008-03-04  Sebastien Pouliot  <sebastien@ximian.com>

* PaddingModeTest.cs: Add test case for #366623 ANSI padding bug.

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

16 years ago2008-03-04 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 4 Mar 2008 14:49:43 +0000 (14:49 -0000)]
2008-03-04  Sebastien Pouliot  <sebastien@ximian.com>

* SymmetricTransform.cs: Sync with corlib. Fix ANSIX923 padding check
(#366623)

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

16 years ago2008-03-04 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 4 Mar 2008 14:48:28 +0000 (14:48 -0000)]
2008-03-04  Sebastien Pouliot  <sebastien@ximian.com>

* SymmetricTransform.cs: Fix ANSIX923 padding check (#366623) to be
just like PKCS7 (but comparing to 0).

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

16 years agomerge r97304
Igor Zelmanovich [Tue, 4 Mar 2008 14:22:41 +0000 (14:22 -0000)]
merge r97304

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

16 years agocorlib_test.dll.sources: Add unit tests for ResourceSet
Sebastien Pouliot [Tue, 4 Mar 2008 13:48:46 +0000 (13:48 -0000)]
corlib_test.dll.sources: Add unit tests for ResourceSet

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

16 years ago2008-03-04 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 4 Mar 2008 13:47:20 +0000 (13:47 -0000)]
2008-03-04  Sebastien Pouliot  <sebastien@ximian.com>

* ResourceManagerTest.cs: Add test case for ResourceSetType which
shows that an internal type, not the basic ResourceSet, is being used
* ResourceSetTest.cs: New. Unit tests for ResourceSet

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

16 years agocorlib.dll.sources: Add internal System.Resources.RuntimeResourceSet to the build.
Sebastien Pouliot [Tue, 4 Mar 2008 13:45:01 +0000 (13:45 -0000)]
corlib.dll.sources: Add internal System.Resources.RuntimeResourceSet to the build.

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

16 years ago2008-03-04 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 4 Mar 2008 13:44:30 +0000 (13:44 -0000)]
2008-03-04  Sebastien Pouliot  <sebastien@ximian.com>

* ResourceManager.cs: Use RuntimeResourceSet, an internal type, just
like MS does (and tell us indirectly with a Type property).
* ResourceSet.cs: Fix a few problems found with new unit tests. Also
fix some exception parameters.
* RuntimeResourceSet.cs: New. Internal type used by ResourceManager.
ResouceSet cannot be used, as is, because it does not clone objects,
when possible, leading to problems when those objects are disposed.

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

16 years agomerge r97295
Igor Zelmanovich [Tue, 4 Mar 2008 13:34:01 +0000 (13:34 -0000)]
merge r97295

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