mono.git
16 years ago2008-04-07 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 7 Apr 2008 15:58:19 +0000 (15:58 -0000)]
2008-04-07  Marek Safar  <marek.safar@gmail.com>

A fix for bug #377485
* assign.cs, expression.cs, decl.cs, class.cs, ecore.cs, namespace.cs:
Propagate location for extension method groups. Report conversion failure at
right place.

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

16 years ago2008-04-07 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 7 Apr 2008 15:50:54 +0000 (15:50 -0000)]
2008-04-07 Rodrigo Kumpera <rkumpera@novell.com>

* make_unary_test.sh: Clear the stack before ret.

* make_test.sh: Added tests for ckfinite.

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

16 years agoAnother update
Marek Safar [Mon, 7 Apr 2008 15:07:17 +0000 (15:07 -0000)]
Another update

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

16 years agoPut back EmptyConstantCast.
Marek Safar [Mon, 7 Apr 2008 14:59:53 +0000 (14:59 -0000)]
Put back EmptyConstantCast.

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

16 years ago2008-04-07 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 7 Apr 2008 14:51:11 +0000 (14:51 -0000)]
2008-04-07 Marek Safar <marek.safar@gmail.com>

* Makefile: Enabled IL regressions check for gmcs profile.

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

16 years agoUpdated after Hari's changes.
Marek Safar [Mon, 7 Apr 2008 14:49:53 +0000 (14:49 -0000)]
Updated after Hari's changes.

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

16 years agoNew tests.
Marek Safar [Mon, 7 Apr 2008 14:49:08 +0000 (14:49 -0000)]
New tests.

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

16 years ago2008-04-07 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 7 Apr 2008 14:43:21 +0000 (14:43 -0000)]
2008-04-07  Marek Safar  <marek.safar@gmail.com>

* anonymous.cs, expression.cs, ecore.cs, typemanager.cs: Implemented
ListInit and Field expressions.

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

16 years agoFix comment about avoiding creating proxies.
Raja R Harinath [Mon, 7 Apr 2008 14:34:47 +0000 (14:34 -0000)]
Fix comment about avoiding creating proxies.

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

16 years ago2008-04-07 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 7 Apr 2008 11:36:25 +0000 (11:36 -0000)]
2008-04-07  Marek Safar  <marek.safar@gmail.com>

* compiler-tester.cs: Don't report IL reduction as regression.

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

16 years ago2008-04-07 Dick Porter <dick@ximian.com>
Dick Porter [Mon, 7 Apr 2008 11:12:10 +0000 (11:12 -0000)]
2008-04-07  Dick Porter  <dick@ximian.com>

* Thread.cs: Fix throwing of exceptions when manipulating
ApartmentState.  Fixes part of bug 324338.

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

16 years ago2008-04-07 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Mon, 7 Apr 2008 01:25:00 +0000 (01:25 -0000)]
2008-04-07  Ivan N. Zlatev  <contact@i-nz.net>

* ReflectionPropertyDescriptor.cs: ReadOnlyAttribute has a Default,
so there is no need for a null reference check. Fixes the attr_ro unused
value warning during compilation.

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

16 years ago * BindingSourceTest.cs: Enable some old not working tests.
Carlos Alberto Cortez [Sun, 6 Apr 2008 23:31:32 +0000 (23:31 -0000)]
* BindingSourceTest.cs: Enable some old not working tests.

2008-04-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>

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

16 years ago2008-04-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Sun, 6 Apr 2008 23:20:48 +0000 (23:20 -0000)]
2008-04-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* DataBindingTests.cs: Enable some CurrencyManager tests.

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

16 years ago* WebBrowserBase.cs: Added missing attributes and fixed attributes.
Gert Driesen [Sun, 6 Apr 2008 19:17:24 +0000 (19:17 -0000)]
* WebBrowserBase.cs: Added missing attributes and fixed attributes.
Fixed line endings.
* WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
line endings.
* MaskedTextBox.cs: Added missing attribute. Code formatting.
* PageSetupDialog.cs: Added missing attribute. Code formatting.
* HtmlWindowCollection.cs: Code formatting. Fixed line endings.
* ImeMode.cs: Added missing field.
* HtmlWindow.cs: Code formatting. Fixed line endings.
* HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
warnings.
* HtmlHistory.cs: Code formatting. Fixed line endings.
* HtmlDocument.cs: Code formatting. Fixed line endings.
* ToolStripPanel.cs: Added missing IList implementation.
* HtmlElementCollection.cs: Code formatting. Fixed line endings.

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

16 years agoIn Test/System.Net:
Geoff Norton [Sun, 6 Apr 2008 15:02:40 +0000 (15:02 -0000)]
In Test/System.Net:
2008-04-06  Geoff Norton  <gnorton@novell.com>

* HttpListener2Test.cs:
* HttpListenerRequestTest.cs: HttpListener Basic authenticationt test
from Maciej Paszta <paszczi@go2.pl>

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

16 years agoIn System.Net:
Geoff Norton [Sun, 6 Apr 2008 15:00:31 +0000 (15:00 -0000)]
In System.Net:
2008-04-06  <gnorton@novell.com>

* ListenerAsyncContext.cs: Fix Basic authentication support.  Patch from
Maciej Paszta <paszczi@go2.pl>

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

16 years ago* BindingContext.cs: Changed argument names to fix corcompare errors.
Gert Driesen [Sun, 6 Apr 2008 09:44:07 +0000 (09:44 -0000)]
* BindingContext.cs: Changed argument names to fix corcompare errors.
* DataGridView.cs: Removed extra explicit interface implementation
of IDropTarget. Code formatting.
* FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
* ComboBox.cs: Changed argument names to fix corcompare errors.
* DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
errors.
* GridColumnStylesCollection.cs: Changed argument names to fix
corcompare errors. Removed extra tabs.
* GridTableStylesCollection.cs: Changed argument names to fix corcompare
errors.
* Control.cs: Changed argument names to fix corcompare errors. Code
formatting. Removed extra explicit IList implementation.
* TextBox.cs: Changed argument names to fix corcompare errors. Code
formatting. Use string.Empty instead of "".
* GridItemCollection.cs: Changed argument names to fix corcompare
errors. Code formatting.
* DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
corcompare errors. Code formatting.
* ImageList.cs: Changed argument names to fix corcompare errors.
* ToolStripItem.cs: Changed argument names to fix corcompare errors.
* DataGridViewRowCollection.cs: Changed argument names to fix
corcompare errors. Code formatting.
* TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
* DataGridViewSelectedCellCollection.cs: Changed argument names to
fix corcompare errors. Code formatting.
* DataGridViewComboBoxCell.cs: Changed argument names to fix
corcompare errors. Code formatting.
* LinkLabel.cs: Changed argument names to fix corcompare errors.
* TreeNode.cs: Changed argument names to fix corcompare errors. Code
formatting.
* PropertyGrid.cs: Changed argument names to fix corcompare errors.
Code formatting.
* BindingSource.cs: Changed argument names to fix corcompare errors.
Removed extra explicit interface implementations.
* DataGridViewSelectedRowCollection.cs: Changed argument names to
fix corcompare errors. Code formatting.
* ToolStripItemCollection.cs: Removed extra explicit interface
implementation of IList.ReadOnly.
* DataGridViewColumnCollection.cs: Changed argument names to fix
corcompare errors. Code formatting.
* DataGridViewRow.cs: Rename converter to match MS. Code formatting.
* ListView.cs:  Changed argument names to fix corcompare errors.
* DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
errors.
* DataGridBoolColumn.cs: Changed argument names to fix corcompare
errors.
* ListBindingHelper.cs: Changed argument names to fix corcompare
errors.
* DataGridViewSelectedColumnCollection.cs: Changed argument names to
fix corcompare errors. Code formatting.
* ToolStripPanel.cs: Removed extra explicit implementation of
IDropTarget interface.
* ListBox.cs: Changed argument names to fix corcompare errors. Code
formatting. Removed extra tabs and spaces.
* DataGridViewCellCollection.cs: Changed argument names to fix
corcompare errors.
* Help.cs: Changed argument names to fix corcompare errors. Code
formatting.
* TabControl.cs: Changed argument names to fix corcompare errors.
* DataGridColumnStyle.cs: Changed argument names to fix corcompare
errors.
* TableLayoutSettings.cs: Changed argument names to fix corcompare
errors.

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

16 years agoFixed commit date.
Gert Driesen [Sun, 6 Apr 2008 08:45:14 +0000 (08:45 -0000)]
Fixed commit date.

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

16 years ago* PropertiesTab.cs: Modified argument name to fix corcompare error.
Gert Driesen [Sun, 6 Apr 2008 08:44:51 +0000 (08:44 -0000)]
* PropertiesTab.cs: Modified argument name to fix corcompare error.

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

16 years agoModified argument name to fix corcompare error.
Gert Driesen [Sun, 6 Apr 2008 08:43:40 +0000 (08:43 -0000)]
Modified argument name to fix corcompare error.

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

16 years agosome modifications to the project file.
Roei Erez [Sun, 6 Apr 2008 07:10:03 +0000 (07:10 -0000)]
some modifications to the project file.

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

16 years ago * ListBindingHelper.cs: When returning properties, only return those
Carlos Alberto Cortez [Sat, 5 Apr 2008 23:11:18 +0000 (23:11 -0000)]
* ListBindingHelper.cs: When returning properties, only return those
that are browsable. Also, don't do a linear search of the properties,
but use the indexer of the PropertyDescriptorCollection class.

2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>

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

16 years ago2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Sat, 5 Apr 2008 22:45:01 +0000 (22:45 -0000)]
2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* BindingSourceTest.cs: Add new tests for GetRelatedCurrencyManager
method.

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

16 years ago2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Sat, 5 Apr 2008 22:41:23 +0000 (22:41 -0000)]
2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
Dictionary containing the related (child) currency managers. Also,
when setting DataSource, add datasource to our List if it is not a list.

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

16 years agoSome cleanups
Raja R Harinath [Sat, 5 Apr 2008 20:41:24 +0000 (20:41 -0000)]
Some cleanups

* iterators.cs (Iterator.EmitMoveNext): Remove try/fault wrapper.
Since $PC is always -1 inside the body of MoveNext, the fault
handler is a no-op.
* flowanalysis.cs (FlowBranchingException.EmitFinally): Kill.
* statement.cs (ExceptionStatement.emit_finally): Likewise.
(ExceptionStatement.ResolveFinally): Drop 'branching' argument.

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

16 years agoThe denouement! Fix #324708
Raja R Harinath [Sat, 5 Apr 2008 20:14:00 +0000 (20:14 -0000)]
The denouement!  Fix #324708

* iterators.cs (Iterator.EmitMoveNext): Reset $PC to -1 on entry.
(Iterator.EmitYieldBreak): We no longer need to reset $PC.
* statement.cs (ExceptionStatement.DoEmit): Actually emit the
'finally' inside the finally clause.

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

16 years agoNow that we're sure no one jumps into the middle of a try/finally, let's
Raja R Harinath [Sat, 5 Apr 2008 19:33:20 +0000 (19:33 -0000)]
Now that we're sure no one jumps into the middle of a try/finally, let's
start emitting them in iterators

* statement.cs (ExceptionStatement.DoEmit): Emit try/finally block
inside an iterator.  Don't emit the body of the 'finally' inside
the finally clause yet.

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

16 years ago* Makefile: Removed TODO from DISTFILES.
Gert Driesen [Sat, 5 Apr 2008 19:19:19 +0000 (19:19 -0000)]
* Makefile: Removed TODO from DISTFILES.

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

16 years ago* TODO: Removed, as all items are obsolete.
Gert Driesen [Sat, 5 Apr 2008 19:17:53 +0000 (19:17 -0000)]
* TODO: Removed, as all items are obsolete.

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

16 years agoSet eol-style to native.
Gert Driesen [Sat, 5 Apr 2008 19:16:04 +0000 (19:16 -0000)]
Set eol-style to native.

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

16 years ago* cormissing.css: Properly indent parameters. Added support for
Gert Driesen [Sat, 5 Apr 2008 19:13:26 +0000 (19:13 -0000)]
* cormissing.css: Properly indent parameters. Added support for
collapse/expand of nested delegates, interfaces of delegates/enums
and event accessors.

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

16 years agoUse the ResumableStatement infrastructure for MoveNext ()
Raja R Harinath [Sat, 5 Apr 2008 18:50:25 +0000 (18:50 -0000)]
Use the ResumableStatement infrastructure for MoveNext ()

* iterators.cs (Iterator.EmitMoveNext_NoResumePoints): New.
(Iterator.EmitMoveNext): Use 'resume_points'.  Get rid of
'old_resume_points'.  Move dispatcher upfront.
(Iterator.MarkYield): Mark the 'resume_point' of a Yield.
* statement.cs (ExceptionStatement.DoEmit): Emit a dispatcher if
in an enumerator.  This encodes the main fix in this patch series
-- we can only jump into the first instruction of a try from the
outside, but we want to emit try/finally regions in iterators and
resume in the middle of them.

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

16 years ago* statement.cs (ExceptionStatement.ResolveFinally): Move setting
Raja R Harinath [Sat, 5 Apr 2008 18:49:09 +0000 (18:49 -0000)]
* statement.cs (ExceptionStatement.ResolveFinally): Move setting
of NeedReturnLabel here.

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

16 years agoIntroduce a common point for emitting try/finally to IL
Raja R Harinath [Sat, 5 Apr 2008 14:56:08 +0000 (14:56 -0000)]
Introduce a common point for emitting try/finally to IL

* statement.cs (ExceptionStatement.DoEmit): New.  Combines all the
features of the various subclasses, which are now driven by ...
(ExceptionStatement.EmitPreTryBody): ... this and ...
(ExceptionStatement.EmitTryBody): ... this and the original EmitFinallyBody.
(TryFinally, Lock, Using, UsingTemporary, DisposableWrapper):
Remove DoEmit and update to follow above protocol.

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

16 years agoA cute little optimization to the generated Dispose method
Raja R Harinath [Sat, 5 Apr 2008 14:55:38 +0000 (14:55 -0000)]
A cute little optimization to the generated Dispose method

* statement.cs (ExceptionStatement.EmitForDispose): If all labels
of the dispatcher are the same, skip emitting the 'switch'.
* iterator.cs (Iterator.EmitDispose): Update to changes.

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

16 years agoClean up handling of 'using' statement
Raja R Harinath [Sat, 5 Apr 2008 14:55:06 +0000 (14:55 -0000)]
Clean up handling of 'using' statement

* statement.cs (UsingTemporary): New.  Carved out of ...
(Using): ... this.  Simplify drastically.  Handle exactly one variable.
* cs-parser.jay (using_statement): Split.  Create UsingTemporary
or Using as appropriate.  If there are multiple variable declared,
create nested Using statements.
(resource_acquisition): Kill.

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

16 years ago2008-04-05 Jordi Mas i Hernandez <jordimash@gmail.com>
Jordi Mas i Hernandez [Sat, 5 Apr 2008 14:19:40 +0000 (14:19 -0000)]
2008-04-05 Jordi Mas i Hernandez <jordimash@gmail.com>

* ScaledFont.cs: Adds class to encapsulate scaled font API
* Mono.Cairo.dll.sources: Adds new class
* Context.cs: Access to Scaled Fonts
* NativeMethods.cs: Add some missing scale_font APIs and fixes

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

16 years ago2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Sat, 5 Apr 2008 14:16:56 +0000 (14:16 -0000)]
2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>

* PropertyGridTextBox.cs: Fix background color of the buttons.
* PropertyGridView.cs: Make the entry less jumpy.

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

16 years ago2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Sat, 5 Apr 2008 13:41:00 +0000 (13:41 -0000)]
2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>

* PropertyGrid.cs: Fix unused variable warnings.

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

16 years ago2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Sat, 5 Apr 2008 13:23:53 +0000 (13:23 -0000)]
2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>

* PropertyGridView.cs: Fix expansion via [+] misbehavior on
double-click. It expanded it once in the mouse down and then
again in the double-click handler.

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

16 years ago* statement.cs (ExceptionStatement.EmitForDispose): Use
Raja R Harinath [Sat, 5 Apr 2008 10:04:13 +0000 (10:04 -0000)]
* statement.cs (ExceptionStatement.EmitForDispose): Use
EmitFinallyBody, not EmitFinally.

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

16 years ago* flowanalysis.cs (FlowBranching.StealFinallyClauses): Remove.
Raja R Harinath [Sat, 5 Apr 2008 08:50:38 +0000 (08:50 -0000)]
* flowanalysis.cs (FlowBranching.StealFinallyClauses): Remove.
* iterator.cs: Update to changes.

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

16 years agoStart using the ResumableStatement infrastructure
Raja R Harinath [Sat, 5 Apr 2008 08:07:35 +0000 (08:07 -0000)]
Start using the ResumableStatement infrastructure

* statement.cs (ResumeableStatement.PrepareForDispose): New.
(ResumableStatement.EmitForDispose): New.
(ExceptionStatement): Override them.
* iterators.cs (Iterator.EmitDispose): Use PrepareForDispose and
EmitForDispose to create the body of the Dispose method.  Don't
use OldResumePoint.

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

16 years agoSome more refactoring to move resume-point collection into the Iterator
Raja R Harinath [Sat, 5 Apr 2008 08:07:08 +0000 (08:07 -0000)]
Some more refactoring to move resume-point collection into the Iterator

* iterator.cs (Iterator.AddResumePoint): Move here from ...
* statement.cs (Toplevel.AddResumePoint): ... here.
(Toplevel.MoveNextStatement.Resolve): Create FlowBranchingIterator.
* flowanalysis.cs (FlowBranchingIterator): New.
* codegen.cs (EmitContext): Update to changes.

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

16 years ago* mono-api-diff.cs: Output type for extra classes, to allow it to
Gert Driesen [Sat, 5 Apr 2008 07:31:37 +0000 (07:31 -0000)]
* mono-api-diff.cs: Output type for extra classes, to allow it to
show up on class status pages.

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

16 years ago* cormissing.css: Allow nested enums and parameters to be collapsed.
Gert Driesen [Sat, 5 Apr 2008 07:19:13 +0000 (07:19 -0000)]
* cormissing.css: Allow nested enums and parameters to be collapsed.

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

16 years ago2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Fri, 4 Apr 2008 22:52:17 +0000 (22:52 -0000)]
2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>

* GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner,
TypeConverter and UITypeEditors.

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

16 years ago2008-04-05 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 4 Apr 2008 22:17:19 +0000 (22:17 -0000)]
2008-04-05  Zoltan Varga  <vargaz@gmail.com>

* mini.c (check_for_method_verify): Remove the mscorlib comment since it is no
longer valid.

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

16 years ago2008-04-04 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 4 Apr 2008 21:59:42 +0000 (21:59 -0000)]
2008-04-04  Rodrigo Kumpera  <rkumpera@novell.com>

* mini.c (check_for_method_verify): Enabling verification of
corlib if mono_verify_all is set. Bugs in the verifier preventing that
have been fixed.

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

16 years ago2008-04-04 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 4 Apr 2008 21:47:31 +0000 (21:47 -0000)]
2008-04-04 Rodrigo Kumpera  <rkumpera@novell.com>

* verify.c (do_conversion): Improved error message to something
more meanfull.

* verify.c (check_is_valid_type_for_field_ops): Fix to work
with primitive types.

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

16 years agoMinor cleanups
Raja R Harinath [Fri, 4 Apr 2008 20:18:30 +0000 (20:18 -0000)]
Minor cleanups

* iterators.cs (Iterator.OldResumePoint): Rename from ResumePoint.
(Iterator.old_resume_points): Rename from 'resume_points'.
(Iterator.MoveNextStatement): Remove unused class.

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

16 years agoNew infrastructure for try/finally in iterators (still unused)
Raja R Harinath [Fri, 4 Apr 2008 20:18:03 +0000 (20:18 -0000)]
New infrastructure for try/finally in iterators (still unused)

* flowanalysis.cs (FlowBranching.AddResumePoint): New.
(FlowBranchingToplevel.AddResumePoint): Hook into
ToplevelBlock.AddResumePoint.
(FlowBranchingTryCatch): Move CS01626 and CS01631 checks here.
(FlowBranchingException): Hook into ExceptionBlock.AddResumePoint.
* statement.cs (ToplevelBlock.AddResumePoint): New.  Collect
resume points and assign program-counter values.
(ExceptionBlock.AddResumePoint): Collect resume points for
de-muxer at the top of try block.
* iterators.cs (Yield.CheckContext): Simplify.
(Yield.Resolve): Use FlowBranching.AddResumePoint.

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

16 years agoSome more refactoring
Raja R Harinath [Fri, 4 Apr 2008 20:17:36 +0000 (20:17 -0000)]
Some more refactoring

* flowanalysis.cs (FlowBranching.AddReturnOrigin): Change Location
argument to an ExitStatement.
(FlowBranchingException): Refactor saved origins code.
* statement.cs (ExitStatement): Update to cahges.
* iterator.cs (YieldBreak): Likewise.

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

16 years agoSome simple refactoring
Raja R Harinath [Fri, 4 Apr 2008 20:17:10 +0000 (20:17 -0000)]
Some simple refactoring

* statement.cs (ResumableStatement): New.  Common base class for
YieldReturn and ExceptionStatement.
(ExitStatement): New.  Common base class for Return and YieldBreak.
(Return): Update to changes.
* iterator.cs (YieldBreak): Likewise.
* lambda.cs (ContextualReturn): Likewise.

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

16 years ago2008-04-04 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 4 Apr 2008 19:02:56 +0000 (19:02 -0000)]
2008-04-04 Rodrigo Kumpera  <rkumpera@novell.com>

* verify.c: Added tail prefix checking. Marked icall
as unverifible.

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

16 years ago2008-04-04 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 4 Apr 2008 19:01:42 +0000 (19:01 -0000)]
2008-04-04 Rodrigo Kumpera <rkumpera@novell.com>

* make_tail_call_test.sh: New test generator for
tail prefix.

* make_test.sh: Added tests using the new generator.

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

16 years ago2008-04-04 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 4 Apr 2008 18:32:59 +0000 (18:32 -0000)]
2008-04-04 Rodrigo Kumpera  <rkumpera@novell.com>

* verify.c: Fix the detection of branches to the middle
of an instruction.

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

16 years ago2008-04-04 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 4 Apr 2008 18:32:15 +0000 (18:32 -0000)]
2008-04-04 Rodrigo Kumpera <rkumpera@novell.com>

* invalid_branch_middle_of_instruction.il: Recent
work on prefixes broke the verification for branching
in the middle of an instruction.

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

16 years ago* Mono.Mozilla/DOM/Element.cs,
Andreia Gaita [Fri, 4 Apr 2008 18:27:32 +0000 (18:27 -0000)]
* Mono.Mozilla/DOM/Element.cs,
* Mono.Mozilla/DOM/HTMLElement.cs,
* Mono.WebBrowser/DOM/IElement.cs: Implement ClientWidth, ClientHeight,
ScrollWidth, ScrollHeight, ScrollLeft, ScrollTop, OffsetHeight,
OffsetWidth, OffsetLeft, OffsetTop, OffsetParent, Disabled.

2008-04-04  Andreia Gaita <avidigal@novell.com>

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

16 years ago* Mono.Mozilla/DOM/Document.cs: Differentiate between html and non-html
Andreia Gaita [Fri, 4 Apr 2008 18:22:05 +0000 (18:22 -0000)]
* Mono.Mozilla/DOM/Document.cs: Differentiate between html and non-html
elements when creating the wrapper object for the active element, as
certain properties are only implemented in html elements.

2008-04-04  Andreia Gaita <avidigal@novell.com>

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

16 years ago* Mono.Mozilla/AsciiString.cs, Mono.Mozilla/UniString.cs: Fix for string
Andreia Gaita [Fri, 4 Apr 2008 18:19:11 +0000 (18:19 -0000)]
* Mono.Mozilla/AsciiString.cs, Mono.Mozilla/UniString.cs: Fix for string
getter cache, always mark the string as dirty when fetching the handle.

2008-04-04  Andreia Gaita <avidigal@novell.com>

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

16 years ago2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Fri, 4 Apr 2008 18:08:03 +0000 (18:08 -0000)]
2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>

* Control.cs: Visibility should be set synchronously,
so we must also redraw once it is and not rely on layouting or
other code to repaint.
[Fixes bug #339898]

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

16 years ago2008-04-04 Dick Porter <dick@ximian.com>
Dick Porter [Fri, 4 Apr 2008 17:18:47 +0000 (17:18 -0000)]
2008-04-04  Dick Porter  <dick@ximian.com>

* File.cs: Pretty up the file share exception with the path name.

2008-04-04  Dick Porter  <dick@ximian.com>

* FileTest.cs: Test moving a file when the access mode disallows
it.  Test from Eric Albright <albright@wesay.org>, see bug 377049.

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

16 years ago2008-04-04 Dick Porter <dick@ximian.com>
Dick Porter [Fri, 4 Apr 2008 17:17:32 +0000 (17:17 -0000)]
2008-04-04  Dick Porter  <dick@ximian.com>

* io.c (MoveFile): Check file shares before moving a file.  Fixes
bug 377049.

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

16 years ago2008-04-04 Dick Porter <dick@ximian.com>
Dick Porter [Fri, 4 Apr 2008 16:24:23 +0000 (16:24 -0000)]
2008-04-04  Dick Porter  <dick@ximian.com>

* error.c (errno_to_WSA): handle ENODEV.  Fixes the reopened part
of bug 324035.

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

16 years ago2008-04-04 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 4 Apr 2008 15:42:28 +0000 (15:42 -0000)]
2008-04-04  Zoltan Varga  <vargaz@gmail.com>

* exceptions-amd64.c (throw_exception): Unify the win32/non-win32 cases, save
caller saved registers as well.

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

16 years ago2008-04-04 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Fri, 4 Apr 2008 14:48:39 +0000 (14:48 -0000)]
2008-04-04  Jonathan Pobst  <monkey@jpobst.com>

* DataGridViewCell.cs: Respect DataGridView.GridColor.

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

16 years agoShut gcc up
Dick Porter [Fri, 4 Apr 2008 14:41:05 +0000 (14:41 -0000)]
Shut gcc up

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

16 years ago2008-04-04 Dick Porter <dick@ximian.com>
Dick Porter [Fri, 4 Apr 2008 14:20:59 +0000 (14:20 -0000)]
2008-04-04  Dick Porter  <dick@ximian.com>

* processes.c (GetModuleInformation):
* versioninfo.h:
* versioninfo.c: 64bit fixes

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

16 years ago2008-04-04 Bill Holmes <billholmes54@gmail.com>
Bill Holmes [Fri, 4 Apr 2008 13:56:07 +0000 (13:56 -0000)]
2008-04-04  Bill Holmes  <billholmes54@gmail.com>

* runburg.bat, runmdesc.bat:  Reverting back to r97888.  The PATH was correct before.

Contributed under MIT/X11 license.

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

16 years agoFix #377028
Raja R Harinath [Fri, 4 Apr 2008 10:55:58 +0000 (10:55 -0000)]
Fix #377028

* ecore.cs (Expression.ResolveAsTypeStep): If '!silent' attempt to
emit a meaningful error message.

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

16 years agoremove gcs0019-9.cs
Raja R Harinath [Fri, 4 Apr 2008 10:55:40 +0000 (10:55 -0000)]
remove gcs0019-9.cs

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

16 years ago2008-04-04 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 4 Apr 2008 10:26:38 +0000 (10:26 -0000)]
2008-04-04  Zoltan Varga  <vargaz@gmail.com>

* exceptions-amd64.c (mono_arch_get_restore_context): Restore most caller
saved registers as well.

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

16 years agoFix #324765, #319508
Raja R Harinath [Fri, 4 Apr 2008 08:19:51 +0000 (08:19 -0000)]
Fix #324765, #319508

* flowanalysis.cs (VariableInfo.IsEverAssigned): New.
(VariableInfo.SetAssigned): Set it.
* statement.cs (Block.UsageWarning): Use 'IsEverAssigned' to
determine if CS0219 or CS0168 is appropriate.  Don't use
flow-analysis information.
(Block.Resolve): Use ec.EndFlowBranching, not ec.DoEndFlowBranching.
* codegen.cs (EmitContext.DoEndFlowBranching): Kill.  Inline into ...
(EmitContext.EndFlowBranching): ... this.

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

16 years agoadd gtest-380.cs
Raja R Harinath [Fri, 4 Apr 2008 08:19:33 +0000 (08:19 -0000)]
add gtest-380.cs

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

16 years agoFix nunit failures
Raja R Harinath [Fri, 4 Apr 2008 08:19:11 +0000 (08:19 -0000)]
Fix nunit failures

* String.cs (EndsWith) [CultureInfo variant]: Handle null 'culture'.
(StartsWith, EndsWith, IndexOf, LastIndexOf) [StringComparison variant]:
Throw exception on invalid StringComparison.

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

16 years ago2008-04-03 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 3 Apr 2008 23:04:24 +0000 (23:04 -0000)]
2008-04-03  Jonathan Pobst  <monkey@jpobst.com>

* Control.cs: Invalidate when the alpha channel is less than 255,
not only when control is transparent.

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

16 years ago2008-04-03 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 3 Apr 2008 22:44:42 +0000 (22:44 -0000)]
2008-04-03  Jonathan Pobst  <monkey@jpobst.com>

* DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
Implement some painting convenience methods that threw NIEX.

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

16 years ago2008-04-03 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 3 Apr 2008 21:11:56 +0000 (21:11 -0000)]
2008-04-03 Rodrigo Kumpera  <rkumpera@novell.com>

* verify.c: Implemented verification of volatile. and
unaligned. prefix. Check if a type is valid after retrieving it.

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

16 years ago2008-04-03 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 3 Apr 2008 21:04:29 +0000 (21:04 -0000)]
2008-04-03  Jonathan Pobst  <monkey@jpobst.com>

* DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
* DataGridViewLinkCell.cs: Implement.

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

* DataGridViewLinkCellTest.cs: Add.

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

* System.Windows.Forms_test.dll.sources: Add DataGridViewLinkCellTest.cs.

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

16 years ago2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Thu, 3 Apr 2008 18:34:54 +0000 (18:34 -0000)]
2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>

* CollectionEditor.cs:
  - Handle removing multiple items at once.
  - Select the previous item after removal of other(s).

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

16 years ago2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Thu, 3 Apr 2008 17:38:52 +0000 (17:38 -0000)]
2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>

* GridEntry.cs: Report the conversion exception error description.
[Fixes bug #375792]

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

16 years ago2008-04-03 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 3 Apr 2008 16:52:08 +0000 (16:52 -0000)]
2008-04-03  Jonathan Pobst  <monkey@jpobst.com>

* TimerTest.cs: Disable a finicky test that occasionally fails.

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

16 years ago2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Thu, 3 Apr 2008 16:50:15 +0000 (16:50 -0000)]
2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>

* PropertyGridView.cs: Do not scroll to item on resize.
[Fixes bug #375789]

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

16 years ago2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Thu, 3 Apr 2008 16:39:18 +0000 (16:39 -0000)]
2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>

* CollectionEditor.cs: The display name of an object in the
list is not static. It can dynamically change when the object
get's modified.
[Fixes bug #375786]

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

16 years ago2008-04-03 Juraj Skripsky <js@hotfeet.ch>
Juraj Skripsky [Thu, 3 Apr 2008 15:27:00 +0000 (15:27 -0000)]
2008-04-03  Juraj Skripsky  <js@hotfeet.ch>

* Attachment.cs (InitName): Use Path.GetFileName instead of Substring hack.
Fixes bug #366947.

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

16 years ago2008-04-03 Dick Porter <dick@ximian.com>
Dick Porter [Thu, 3 Apr 2008 15:26:53 +0000 (15:26 -0000)]
2008-04-03  Dick Porter  <dick@ximian.com>

* DirectoryTest.cs: Enable tests now that bug 346123 is fixed.

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

16 years ago2008-04-03 Dick Porter <dick@ximian.com>
Dick Porter [Thu, 3 Apr 2008 15:25:38 +0000 (15:25 -0000)]
2008-04-03  Dick Porter  <dick@ximian.com>

* io-portability.c (_wapi_basename, _wapi_dirname): Only turn \
into / when MONO_IOMAP is in effect.  Fixes bug 346123.

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

16 years agoNew test.
Marek Safar [Thu, 3 Apr 2008 14:49:06 +0000 (14:49 -0000)]
New test.

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

16 years ago2008-04-03 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 3 Apr 2008 14:48:56 +0000 (14:48 -0000)]
2008-04-03  Marek Safar  <marek.safar@gmail.com>

* class.cs, typemanager.cs: Emit volatile field with IsVolatile modifier.

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

16 years agoTARGET_JVM: Add msbuild project files & test scripts.
Sasha Kogan [Thu, 3 Apr 2008 14:28:08 +0000 (14:28 -0000)]
TARGET_JVM: Add msbuild project files & test scripts.

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

16 years agoFix minor IL regression
Raja R Harinath [Thu, 3 Apr 2008 14:22:26 +0000 (14:22 -0000)]
Fix minor IL regression

* statement.cs (TryCatch..ctor): Add 'inside_try_finally' argument.
(TryCatch.DoEmit): Use it to avoid creating another ExceptionBlock.
* cs-parser.jay (try_statement): Update to changes.

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

16 years ago2008-04-03 Dick Porter <dick@ximian.com>
Dick Porter [Thu, 3 Apr 2008 13:22:47 +0000 (13:22 -0000)]
2008-04-03  Dick Porter  <dick@ximian.com>

* timefuncs.c (GetTickCount): Use mono_msec_ticks(), see bug
347476.

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

16 years agoNew test.
Marek Safar [Thu, 3 Apr 2008 10:42:56 +0000 (10:42 -0000)]
New test.

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

16 years ago2008-04-03 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 3 Apr 2008 10:42:43 +0000 (10:42 -0000)]
2008-04-03  Marek Safar  <marek.safar@gmail.com>

A fix for bug #376508
* convert.cs, expression.cs: Fixed difference between ImplicitConversion and
ImplicitConversionExists.

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

16 years agoMore tests.
Marek Safar [Thu, 3 Apr 2008 10:06:18 +0000 (10:06 -0000)]
More tests.

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

16 years agoNew test.
Marek Safar [Thu, 3 Apr 2008 10:05:31 +0000 (10:05 -0000)]
New test.

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

16 years ago2008-04-03 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 3 Apr 2008 10:05:05 +0000 (10:05 -0000)]
2008-04-03  Marek Safar  <marek.safar@gmail.com>

* expression.cs (Binary): Added remaining binary operators to expression
tree builder.

* nullable.cs: Optimize shift with null argument.

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

16 years agoMD reformating issues
Marek Safar [Thu, 3 Apr 2008 10:01:13 +0000 (10:01 -0000)]
MD reformating issues

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