Raja R Harinath [Tue, 8 Apr 2008 04:47:59 +0000 (04:47 -0000)]
Fix mono/tests/exception4.cs
* statement.cs (ExceptionStatement, TryCatch): Revert to using
ec.NeedReturnLabel () rather emitting a 'nop'.
svn path=/trunk/mcs/; revision=100089
Miguel de Icaza [Tue, 8 Apr 2008 04:18:49 +0000 (04:18 -0000)]
Add docs
svn path=/trunk/mono/; revision=100088
Raja R Harinath [Tue, 8 Apr 2008 03:49:46 +0000 (03:49 -0000)]
Improve some generated IL for try/catch/finally
* statement.cs (ExceptionStatement.SomeCodeFollows): A hook for a
simple heuristic.
(TryCatch.SomeCodeFollows): Likewise.
* flowanalysis.cs (FlowBranchingException): Call 'SomeCodeFollows'
for 'break', 'continue' and 'return' statements inside a try.
We're fairly sure that the generated IL stream will have more
instructions textually following the try.
(FlowBranchingTryCatch): Likewise.
svn path=/trunk/mcs/; revision=100087
Atsushi Eno [Tue, 8 Apr 2008 03:37:14 +0000 (03:37 -0000)]
2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
* X11Keyboard.cs : Check XGetIMValues() return value in
case it does not return input styles in some environment.
svn path=/trunk/mcs/; revision=100086
Raja R Harinath [Tue, 8 Apr 2008 03:23:02 +0000 (03:23 -0000)]
* statement.cs (Throw.Resolve): Move CS0156 and CS0724 testing ...
* flowanalysis.cs (FlowBranching.CheckRethrow): ... here and to its overrides.
svn path=/trunk/mcs/; revision=100085
Raja R Harinath [Tue, 8 Apr 2008 03:22:22 +0000 (03:22 -0000)]
Some cleanups
* statement.cs (CollectionForeach.DisposableWrapper): Make a true wrapper
-- forward everything to CollectionForeach.
(CollectionForeach.NonDisposableWrapper): New.
(CollectionForeach.EmitFinallyBody): Use 'endfinally' instruction instead
of a pop + branch to end.
svn path=/trunk/mcs/; revision=100084
Atsushi Eno [Tue, 8 Apr 2008 02:33:39 +0000 (02:33 -0000)]
2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
* X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
svn path=/trunk/mcs/; revision=100083
Zoltan Varga [Tue, 8 Apr 2008 01:06:14 +0000 (01:06 -0000)]
2008-04-08 Zoltan Varga <vargaz@gmail.com>
* aot-runtime.c (decode_patch_info): Always transform PATCH_INFO_WRAPPER to
PATCH_INFO_METHOD.
* mini.c (mono_resolve_patch_target): Fix a crash in the AOT case if method is
NULL.
svn path=/trunk/mono/; revision=100079
Rodrigo Kumpera [Tue, 8 Apr 2008 00:52:10 +0000 (00:52 -0000)]
2008-04-08 Rodrigo Kumpera <rkumpera@novell.com>
* Makefile.am: Added verify-internals.h, hopefully fix the build.
svn path=/trunk/mono/; revision=100078
Marek Habersack [Tue, 8 Apr 2008 00:51:19 +0000 (00:51 -0000)]
2008-04-08 Marek Habersack <mhabersack@novell.com>
* SqlConnection.cs: TCP port discovery via UDP port 1434 should
honor the timeout specified in the connection string (or the
default one). In some environments 100 microseconds might not be
enough to discover the port.
svn path=/trunk/mcs/; revision=100077
Zoltan Varga [Tue, 8 Apr 2008 00:49:14 +0000 (00:49 -0000)]
2008-04-08 Zoltan Varga <vargaz@gmail.com>
* verify-internals.h: Fix a warning.
svn path=/trunk/mono/; revision=100076
Marek Habersack [Mon, 7 Apr 2008 23:00:16 +0000 (23:00 -0000)]
2008-04-07 Marek Habersack <mhabersack@novell.com>
* VirtualPath.cs: added
2008-04-08 Marek Habersack <mhabersack@novell.com>
* System.Web.dll.sources: added System.Web/VirtualPath.cs
2008-04-08 Marek Habersack <mhabersack@novell.com>
* DefaultVirtualDirectory.cs: fixed the constructor - derive
virtual directory from the original path.
AddDirectories and AddFiles combine the virtual paths properly
now.
2008-04-08 Marek Habersack <mhabersack@novell.com>
* TemplateParser.cs: CodeFile/Src handling uses
HostingEnvironment.VirtualPathProvider to check for file
existence.
2008-04-08 Marek Habersack <mhabersack@novell.com>
* TemplateParser.cs: CodeFile/Src handling uses
HostingEnvironment.VirtualPathProvider to check for file
existence.
2008-04-08 Marek Habersack <mhabersack@novell.com>
* AppCodeCompiler.cs: VirtualPath used in PhysicalToVirtual.
* BuildManager.cs: switched to VirtualPath instead of a string
path in several methods.
Batch compilation is turned off if we have a custom
VirtualPathProvider which implements only the VirtualFile and
falls back to DefaultVirtualDirectory implementation for directory
access.
* GenericBuildProvider.cs: AddCodeFile accepts a virtual path.
* BuildProvider.cs: SetVirtualPath accepts a VirtualPath now.
* AssemblyBuilder.cs: constructors use the new VirtualPath class
now.
AddCodeFile can use the VirtualPathProvider if necessary now.
BuildAssembly overloads accept VirtualPath parameter instead of a
string path now.
* TemplateBuildProvider.cs: GetCodeBehindSource returns the
virtual path now.
svn path=/trunk/mcs/; revision=100063
Zoltan Varga [Mon, 7 Apr 2008 20:54:22 +0000 (20:54 -0000)]
2008-04-07 Zoltan Varga <vargaz@gmail.com>
* mini-exceptions.c (mono_handle_exception_internal): When --debug=casts is used,
use a more detailed exception message for InvalidCastException.
* mini.h (MonoJitTlsData): Add 'class_cast_from' and 'class_cast_to' fields.
* driver.c (mono_main): Add --debug=casts option to turn on better
InvalidCastException message details.
* mini.c (mini_get_debug_options): New helper function to return the address of
the debug_options variable.
* mini.c (mono_get_jit_tls_intrinsic): New helper function to create a load of
the jit_tls TLS variable.
* mini.c (mono_jit_tls): New TLS variable.
* inssel.brg: Save the details of a cast to a TLS variable when the --debug=casts
option is used.
svn path=/trunk/mono/; revision=100049
Rodrigo Kumpera [Mon, 7 Apr 2008 20:24:43 +0000 (20:24 -0000)]
2008-04-07 Rodrigo Kumpera <rkumpera@novell.com>
* mini.h: Removed verifer related stuff. This code was moved to verify.c
* mini.c: Removed verifer related stuff, code moved to verify.c.
* driver.c: Using code from verify.c instead of mini.c.
svn path=/trunk/mono/; revision=100047
Carlos Alberto Cortez [Mon, 7 Apr 2008 20:19:16 +0000 (20:19 -0000)]
2008-04-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* BindingContext.cs: Stub UpdateBinding method.
svn path=/trunk/mcs/; revision=100046
Rodrigo Kumpera [Mon, 7 Apr 2008 20:05:32 +0000 (20:05 -0000)]
2008-04-07 Rodrigo Kumpera <rkumpera@novell.com>
* verify-internals.h: New header with the verifier configuration
extracted from mini.c.
* verify.c: Implemented the new functions exported by verify-internals.h.
svn path=/trunk/mono/; revision=100045
Atsushi Eno [Mon, 7 Apr 2008 19:31:07 +0000 (19:31 -0000)]
2008-04-07 Atsushi Enomoto <atsushi@ximian.com>
* X11Structs.cs : added couple of structs for XIM support.
* X11Keyboard.cs :
Release XIM in case it failed to create XIC.
Use consts for XNblah string.
Add support for IM style customization and XIC creation
for preedit-position and preedit-callback.
Right now use MONO_WINFORMS_XIM_STYLE environment variable
(list of: over-the-spot | on-the-spot | root). Only root
mode works so far.
(redoing r99172 with fix.)
svn path=/trunk/mcs/; revision=100042
Jonathan Pobst [Mon, 7 Apr 2008 18:43:53 +0000 (18:43 -0000)]
2008-04-07 Jonathan Pobst <monkey@jpobst.com>
* TreeView.cs: Center the checkbox a little better.
svn path=/trunk/mcs/; revision=100041
Rodrigo Kumpera [Mon, 7 Apr 2008 17:40:05 +0000 (17:40 -0000)]
2008-04-07 Rodrigo Kumpera <rkumpera@novell.com>
* Code.cs: Removed Local::TypeSig() as it is not needed
for the previous patch.
svn path=/trunk/mcs/; revision=100039
Rodrigo Kumpera [Mon, 7 Apr 2008 17:37:24 +0000 (17:37 -0000)]
2008-04-07 Rodrigo Kumpera <rkumpera@novell.com>
* MethodDef.cs: Mono.CompilerServices API has changed in an incompatible way
since Erven's patch. Fixed it to follow the new one.
svn path=/trunk/mcs/; revision=100037
Jonathan Pobst [Mon, 7 Apr 2008 17:09:31 +0000 (17:09 -0000)]
2008-04-07 Jonathan Pobst <monkey@jpobst.com>
* ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
Apply very nice patch from Ernesto Carrea that simplifies our
scrollbar drawing. [From bug #376146]
svn path=/trunk/mcs/; revision=100036
Miguel de Icaza [Mon, 7 Apr 2008 16:29:17 +0000 (16:29 -0000)]
2008-04-07 Erven Rohou <erven.rohou@st.com>
* Code.cs: Add new method: GetLocalVars() for ilasm support for
emitting local variable names.
2008-04-07 Erven Rohou <erven.rohou@st.com>
* DebugInfo.cs, MethodDef.cs: Add support for emitting variable names
in mdb file.
svn path=/trunk/mcs/; revision=100031
Jonathan Pobst [Mon, 7 Apr 2008 16:27:16 +0000 (16:27 -0000)]
2008-04-07 Jonathan Pobst <monkey@jpobst.com>
* TreeView.cs: Correct the location of the root node checkbox when
ShowRootLines = false. Don't draw the root lines for the root node
when ShowRootLines = false. [Fixes bug #377535]
svn path=/trunk/mcs/; revision=100030
Andreia Gaita [Mon, 7 Apr 2008 16:07:34 +0000 (16:07 -0000)]
* Mono.Mozilla/Base.cs: Change the initialization logic so that
gluezilla_init is only called once for every app run (no matter how
many browser windows end up being created).
2008-04-07 Andreia Gaita <avidigal@novell.com>
svn path=/trunk/mcs/; revision=100029
Rodrigo Kumpera [Mon, 7 Apr 2008 16:07:12 +0000 (16:07 -0000)]
2008-04-07 Rodrigo Kumpera <rkumpera@novell.com>
* verify.c: Add proper verification of ckfinite.
svn path=/trunk/mono/; revision=100028
Marek Safar [Mon, 7 Apr 2008 15:58:33 +0000 (15:58 -0000)]
New test.
svn path=/trunk/mcs/; revision=100027
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
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
Marek Safar [Mon, 7 Apr 2008 15:07:17 +0000 (15:07 -0000)]
Another update
svn path=/trunk/mcs/; revision=100023
Marek Safar [Mon, 7 Apr 2008 14:59:53 +0000 (14:59 -0000)]
Put back EmptyConstantCast.
svn path=/trunk/mcs/; revision=100022
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
Marek Safar [Mon, 7 Apr 2008 14:49:53 +0000 (14:49 -0000)]
Updated after Hari's changes.
svn path=/trunk/mcs/; revision=100020
Marek Safar [Mon, 7 Apr 2008 14:49:08 +0000 (14:49 -0000)]
New tests.
svn path=/trunk/mcs/; revision=100019
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
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
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
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
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
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
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
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
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
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
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
Gert Driesen [Sun, 6 Apr 2008 08:45:14 +0000 (08:45 -0000)]
Fixed commit date.
svn path=/trunk/mcs/; revision=99948
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
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
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
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
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
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
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
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
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
Gert Driesen [Sat, 5 Apr 2008 19:19:19 +0000 (19:19 -0000)]
* Makefile: Removed TODO from DISTFILES.
svn path=/trunk/mcs/; revision=99927
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
Gert Driesen [Sat, 5 Apr 2008 19:16:04 +0000 (19:16 -0000)]
Set eol-style to native.
svn path=/trunk/mcs/; revision=99925
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Dick Porter [Fri, 4 Apr 2008 14:41:05 +0000 (14:41 -0000)]
Shut gcc up
svn path=/trunk/mono/; revision=99844
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
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
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
Raja R Harinath [Fri, 4 Apr 2008 10:55:40 +0000 (10:55 -0000)]
remove gcs0019-9.cs
svn path=/trunk/mcs/; revision=99834
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