mono.git
16 years ago2007-03-10 Bill Holmes <billholmes54@gmail.com>
Bill Holmes [Mon, 10 Mar 2008 17:38:01 +0000 (17:38 -0000)]
2007-03-10  Bill Holmes  <billholmes54@gmail.com>

* generic-sharing.c:  Including glib.h for the MSVC builds to define
  "inline" to "__inline" before including mono-membar.h.

* mono-perfcounters.c:  Adding HAVE_SYS_TIME_H check for MSVC builds.
  Rename "Unknown" to "CatTypeUnknown" to avoid name collisions for
  MSVC builds.

* mono.sln: Fixing configuration list to build the correct targets for the
  specified configuration.

* runburg.bat, runmdesc.bat:  Changing the PATH environment variable assignment
  to the correct location.

* libmono.vcproj:  Adding missing files.

Contributed under MIT/X11 license.

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

16 years ago2008-03-10 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 10 Mar 2008 15:56:09 +0000 (15:56 -0000)]
2008-03-10 Rodrigo Kumpera  <rkumpera@novell.com>

* verify.c (do_invoke_method): Remove return type validation.

* verify.c (do_ret): Do return type validation at return site instead of
call site.

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

16 years ago2008-03-10 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 10 Mar 2008 15:48:53 +0000 (15:48 -0000)]
2008-03-10 Rodrigo Kumpera <rkumpera@novell.com>

* make_invalid_ret_type.sh: Added. Generate return site tests
for invalid return types.

* make_tests.sh: Add tests using make_invalid_ret_type.sh.

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

16 years agoimprove tests
Jb Evain [Mon, 10 Mar 2008 15:12:15 +0000 (15:12 -0000)]
improve tests

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

16 years agorevert simplification
Jb Evain [Mon, 10 Mar 2008 15:11:49 +0000 (15:11 -0000)]
revert simplification

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

16 years agosimplify
Jb Evain [Mon, 10 Mar 2008 14:59:36 +0000 (14:59 -0000)]
simplify

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

16 years ago2008-03-10 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 10 Mar 2008 14:14:55 +0000 (14:14 -0000)]
2008-03-10 Rodrigo Kumpera  <rkumpera@novell.com>

* verify.c (do_invoke_method): Mark callvirt to static methods unverifiable.

* verify.c: Some todos cleaned and improved a few error messages.

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

16 years ago2008-03-10 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 10 Mar 2008 14:09:01 +0000 (14:09 -0000)]
2008-03-10 Rodrigo Kumpera <rkumpera@novell.com>

* unverifiable_callvirt_static_method.il: Added. Test for callvirt and
static methods.

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

16 years agotest for compiled TypeAs
Jb Evain [Mon, 10 Mar 2008 13:04:49 +0000 (13:04 -0000)]
test for compiled TypeAs

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

16 years ago2008-03-10 Jb Evain <jbevain@novell.com>
Jb Evain [Mon, 10 Mar 2008 13:04:13 +0000 (13:04 -0000)]
2008-03-10  Jb Evain  <jbevain@novell.com>

* TypeBinaryExpression.cs, Expression.cs: refactor an EmitIsInst.
* UnaryExpression.cs: implement TypeAs using the EmitIsInst.

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

16 years agotest for compiled TypeIs
Jb Evain [Mon, 10 Mar 2008 12:05:28 +0000 (12:05 -0000)]
test for compiled TypeIs

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

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

* TypeBinaryExpression.cs (Emit): implement.

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

16 years agoMon Mar 10 11:59:34 CET 2008 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 10 Mar 2008 10:11:11 +0000 (10:11 -0000)]
Mon Mar 10 11:59:34 CET 2008 Paolo Molaro <lupus@ximian.com>

* mini.c: some fixes for the AOT compiler.

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

16 years ago2008-03-10 Stephane Delcroix <sdelcroix@novell.com>
Stephane Delcroix [Mon, 10 Mar 2008 09:23:00 +0000 (09:23 -0000)]
2008-03-10  Stephane Delcroix  <sdelcroix@novell.com>

* Uri.cs: port the changes I did in System.Uri in r97844.

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

16 years ago2008-03-10 Stephane Delcroix <sdelcroix@novell.com>
Stephane Delcroix [Mon, 10 Mar 2008 09:08:42 +0000 (09:08 -0000)]
2008-03-10  Stephane Delcroix  <sdelcroix@novell.com>

* Uri.cs: Fix escaping on utf8 strings. bug 363320.

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

16 years ago2008-03-08 Jb Evain <jbevain@novell.com>
Jb Evain [Mon, 10 Mar 2008 08:15:36 +0000 (08:15 -0000)]
2008-03-08  Jb Evain  <jbevain@novell.com>

* Mono.Cecil.Binary/CopyImageVisitor.cs:
Copy the cliheaders flags over the new assembly.
Patch by Oleksiy Gapotchenko <alex.s.gap@gmail.com>

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

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

* FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
Details - This is needed after we added the bits to use any available
column also for List and SmallIcon view.

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

16 years ago2008-03-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Mon, 10 Mar 2008 01:26:02 +0000 (01:26 -0000)]
2008-03-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
at the proper place, not only when changing SelectedIndex and changing
the selection using keys/mouse, as .net does.

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

16 years ago2008-03-10 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Sun, 9 Mar 2008 23:56:14 +0000 (23:56 -0000)]
2008-03-10  Ivan N. Zlatev  <contact@i-nz.net>

        * TypeDescriptor.cs: GetAttributes should not ask the Type
        for the inherited attributes. Until recently it didn't
        make a difference if we did or not, because
        Type.GetCustomAttributes never returned inherited such.

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

16 years ago++ Test/mainsoft/ChangeLog (working copy)
Dean Brettle [Sun, 9 Mar 2008 22:55:22 +0000 (22:55 -0000)]
++ Test/mainsoft/ChangeLog (working copy)

* add new resources:
PageWithAdapter.aspx for PageTest and PageAdapterTest.
TestCapability.browser for AppBrowsersTest.

* NunitWebResources/adapters.browser,
NunitWebResources/AppBrowsersTest.browser: modified to support
testing reference nodes with captures, and adapters.

* NunitWeb/NunitWeb/WebTest.cs: ensure that, during AppDomain
unload, no new requests are sent to the app host and any
pending requests are completed before the the unload occurs.
Also added WebTest.AppUnloaded event that tests can use to wait
for the app to unload (e.g. after touching Global.asax), and
WebTest.CleanApp() which can be called to restart the app with
the a skeleton directory structure.  Tests which add files that
could effect other tests (e.g. App_Browsers/*.browser files) should
call WebTest.CleanApp() during TearDown to return the app to a
pristine environment.

++ Test/mainsoft/MainsoftWebTest/ChangeLog (working copy)

* HtmlAgilityPack/AssemblyInfo.cs: made assembly delay signed so that
tests can access System.Web internals now that System.Web is
InternalsVisibleTo this assembly.

++ Test/System.Web/ChangeLog (working copy)

* AppBrowsersTest.cs: added.  Includes tests for Control.Adapter,
Control.ResolveAdapter, Control.TagWriter, and
Control.CreateHtmlTextWriter, when using App_Browsers/*.browser files.
AppBrowsersTest is currently tagged [Ignore], pending a fix for
bug #351878.

* HttpRuntimeTest.cs: added. Includes test for
HttpRuntime.UnloadAppDomain().  Marked [Ignore], pending a fix for
bug #351878.

++ Test/System.Web.UI.Adapters/ChangeLog (revision 0)

* PageAdapterTest.cs: added tests for PageAdapter.

* ControlAdapterTest.cs (ConfigCapabilitiesNotCalled): added test to
ensure that HttpCapabilitiesBase.ConfigCapabilities() is not called
during normal page processing if no files are in App_Browsers.

* ControlAdapterTest.cs: added tests for ControlAdapter.
++ Test/System.Web.UI/ChangeLog (working copy)

* PageTest.cs: add tests for using a PageAdapter.

* ControlTest.cs: moved commented out ResolveAdapter_1 test to
../System.Web/AppBrowsersTest.cs.  Fixed typo in test name.
Added Customcontroladapter.Adapter property for use by AppBrowsersTest.

++ Test/System.Web.UI.WebControls.Adapters/ChangeLog (revision 0)

* MenuAdapterTest.cs: added

* WebControlAdapterTest.cs, HierarchicalDataBoundControlAdapterTest.cs,
DataBoundControlAdapterTest.cs, HideDisabledControlAdapterTest.cs: added
++ Test/System.Web.UI.WebControls/ChangeLog (working copy)

* MenuTest.cs (Menu_RenderStaticItems): added tests to check that
result was the same when using the base MenuAdapter as when using
no adapter.

* MenuTest.cs (Menu_RenderStaticItemsWithAdapter): added test
to ensure that MenuAdapter.RenderItem() is called.

* HierarchicalDataBoundControlTest.cs, WebControlTest.cs,
DataBoundControlTest.cs: added test for use of ControlAdapters
when present.

* WebControl.cs: added test for IsEnabled.

++ System.Web/ChangeLog (working copy)

* HttpApplicationFactory.cs: Added support for detecting
App_Browsers/*.browser files and using them to determine capabilities.
Also restart the app if the App_Browsers, App_Code, or App_GlobalResources
directories are created.

* BrowserCapabilities.cs (TagWriter): get value via internal virtual
GetTagWriter() method, which is overridden in nBrowser.Result.

* HttpRequest.cs (BrowserMightHaveSpecialWriter, BrowserMightHaveAdapters):
internal properties added to allow Page and Control methods to avoid
accessing Request.Browser to get browser-specific HtmlTextWriters or
ControlAdapters.  Those things only exist when there are App_Browsers
files.

++ System.Web.UI.Adapters/ChangeLog (working copy)

* ControlAdapter.cs: made control field internal so
derived internal classes can access it without using base.Control
which can involved several typecasts.

* PageAdapter.cs: implemented all members.

* ControlAdapter.cs: implemented all members.

* PageAdapter.cs, ControlAdapter.cs: add MonoTODO's.
++ System.Web.UI/ChangeLog (working copy)

* Page.cs (SavePageControlState, LoadPageControlState): save/load
adapter state in 2.0 profile.

* Page.cs (CreateHtmlTextWriter): call Browser.CreateHtmlTextWriter()
in 2.0 profile.

* Page.cs (RenderPage): call CreateHtmlTextWriter() to get the writer
in 2.0 profile.

* Page.cs (DeterminePostBackMode, InitOutputCache,
RenderClientScriptFormDeclaration, InternalProcessRequest,
PageStatePersister): added support for PageAdapters.

* Control.cs (Adapter, ResolveAdapter): implemented.  Adapter calls
ResolveAdapter and remembers result.  ResolveAdapter checks for adapters
of the Type hierarchy until it finds one.

* Control.cs (SaveViewStateRecursive, LoadViewStateRecursive): save/load
adapter state in 2.0 profile.

* HtmlTextWriter.cs (BeginRender, EndRender): added empty virtual methods
required by 2.0 profile.  These are called by corresponding methods of
System.Web.UI.Adapters.ControlAdapter.

* Page.cs, Control.cs: don't access Request.Browser if it couldn't have
any adapters/writers because there are no files in App_Browsers/.

++ Assembly/ChangeLog (working copy)

* AssemblyInfo.cs: made InternalsVisibleTo System.Web.test_net_2_0.dll
to support ControlAdapterTest.ConfigCapabilitiesNotCalled().

++ ChangeLog (working copy)

* System.Web_test.dll.sources: added
System.Web.UI.WebControls.Adapters/MenuAdapterTest.cs
System.Web.UI.WebControls.Adapters/WebControlAdapterTest.cs
System.Web.UI.WebControls.Adapters/HierarchicalDataBoundControlAdapterTest.cs
System.Web.UI.WebControls.Adapters/DataBoundControlAdapterTest.cs
System.Web.UI.WebControls.Adapters/HideDisabledControlAdapterTest.cs
System.Web.UI.Adapters/PageAdapterTest.cs
System.Web.UI.Adapters/ControlAdapterTest.cs

* Makefile (RESOURCE_FILES_2): added
System.Web.Configuration_2.0/RandomRoboBotKeywords.txt

* Makefile (TEST_RESOURCE_FILES): added
Test/mainsoft/NunitWebResources/PageWithAdapter.aspx

* System.Web.dll.sources: added
System.Web.Configuration_2.0/CapabilitiesBuild.cs
System.Web.Configuration_2.0/CapabilitiesChecksum.cs
System.Web.Configuration_2.0/CapabilitiesResult.cs
System.Web.Configuration_2.0/ICapabilitiesProcess.cs
System.Web.Configuration_2.0/nBrowser/Result.cs
System.Web.Configuration_2.0/nBrowser/NodeTypes.cs
System.Web.Configuration_2.0/nBrowser/Identification.cs
System.Web.Configuration_2.0/nBrowser/File.cs
System.Web.Configuration_2.0/nBrowser/Build.cs
System.Web.Configuration_2.0/nBrowser/Node.cs
System.Web.Configuration_2.0/nBrowser/Exception.cs

++ System.Web.UI.WebControls.Adapters/ChangeLog (working copy)

* WebControlAdapter.cs, HierarchicalDataBoundControlAdapter.cs,
DataBoundControlAdapter.cs: changed to use ControlAdapter.control
instead of using base.Control or using a new control field.

* MenuAdapter.cs: added internal constructor that takes a Menu
parameter.  The constructor is used when writing unit tests.

* MenuAdapter.cs (OnInit, OnPreRender, RenderBeginTag,
RenderContents, RenderEndTag): delegate to base instead of
Control.

* MenuAdapter.cs (LoadAdapterControlState, SaveAdapterControlState,
RaisePostBackEvent, RenderItem): implemented.

* WebControlAdapter.cs (RenderContents): changed to call
control.RenderContents() instead of control.Render().

* WebControlAdapter.cs, HierarchicalDataBoundControlAdapter.cs,
DataBoundControlAdapter.cs, HideDisabledControlAdapter.cs: added
internal constructor that takes a parameter of the corresponding
Control type.  The construct is used when writing unit tests.

++ System.Web.Configuration_2.0/ChangeLog (working copy)

* nBrowser/Result.cs, nBrowser/NodeTypes.cs, nBrowser/Identification.cs,
nBrowser/File.cs, nBrowser/Build.cs, nBrowser/Node.cs,
nBrowser/Exception.cs: added.  The code under nBrowser handles *.browser
files.  It is based on Owen "Ocean" Brady's code, with the following
changes and improvements.  Replaced Result.Adapter
property with AdapterTypeMap property which maps control Type to adapter
Type.  Added Result.MarkupTextWriter property.  Added overrides for
Result.GetAdapters and Result.GetTagWriter to return MarkupTextWriter
and AdapterTypeMap, resp.  Changed tree building algorithm to not
depend on nodes with id="Default" and to inject defaultBrowser nodes
as parents of regular nodes with the same ids.  Changed Node.cs to use
Item instead of Add when adding a capability or sample header, so that
values get replaced instead of appended.  Added support for reference
nodes (ie. nodes with refID="someID").

* CapabilitiesResult.cs: load RandomRoboBotKeywords.txt resource
using the correct name.

* RandomRoboBotKeywords.txt: added

* HttpCapabilitiesBase.cs (CreateHtmlWriter, Adapters): Added
support for *.browsers.  Adapters property calls internal virtual
GetAdapters() method which is overrided in nBrowser.Result
returned by nBrowser code.  CreateHtmlWriter uses type specified
by TagWriter property.

++ System.Web.UI.WebControls/ChangeLog (working copy)

* DetailsView.cs, ListControl.cs, DataBoundControl.cs,
FormView.cs, HierarchicalDataBoundControl.cs, WebControl.cs:
added support for using ControlAdapters when present.

* WebControl.cs: fixed implementation of IsEnabled to match
documentation.

* Menu.cs (RenderMenuBody): call Adapter.RenderItem() instead of
RenderMenuItem() if an adapter is present.  MenuAdapter.RenderItem()
calls back to new Menu.RenderItem() internal method which calls
RenderMenuItem() with the appropriate parameters.

++ System.Web.Configuration/ChangeLog (working copy)

* HttpCapabilitiesBase.cs: changed to use nBrowser for *.browser
support.  Also added internal GetConfigCapabilities_called
flag used by ControlAdapterTest.ConfigCapabilitiesNotCalled() to
test that GetConfigCapabilities() is not called during normal page
processing when there are no files in App_Browsers/.

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

16 years ago2008-03-09 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Sun, 9 Mar 2008 17:38:54 +0000 (17:38 -0000)]
2008-03-09  Marek Habersack  <mhabersack@novell.com>

* TemplateControlParser.cs: 2.0 allows controls with extensions
different than .ascx, as long as they derive from
System.Web.UI.UserControl and a build provider is available for
them.

* TemplateParser.cs: user controls must derive from
System.Web.UI.UserControl.

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

16 years ago2008-03-09 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Sun, 9 Mar 2008 05:45:39 +0000 (05:45 -0000)]
2008-03-09  Marek Habersack  <mhabersack@novell.com>

* HttpUtility.cs: HTML-decode the query string prior to parsing
it.

2008-03-09  Marek Habersack  <mhabersack@novell.com>

* SimpleWebHandlerParser.cs: if the input file doesn't contain the
correct directive string (tag name is empty for the <%@ %> tag),
use the default directive.

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

16 years agoRevert
Miguel de Icaza [Sun, 9 Mar 2008 03:02:25 +0000 (03:02 -0000)]
Revert

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

16 years agoUpdate the masterinfos to new APIs in 2.0; System.Xml.Core is still missing (No...
Miguel de Icaza [Sun, 9 Mar 2008 00:45:35 +0000 (00:45 -0000)]
Update the masterinfos to new APIs in 2.0;  System.Xml.Core is still missing (No SDK on this machine)

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

16 years ago2008-03-08 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 8 Mar 2008 19:18:24 +0000 (19:18 -0000)]
2008-03-08  Zoltan Varga  <vargaz@gmail.com>

* mono.1: Fix a typo.

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

16 years agoWordsmith
Miguel de Icaza [Sat, 8 Mar 2008 19:04:46 +0000 (19:04 -0000)]
Wordsmith

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

16 years agoadd test for compiled list binding
Jb Evain [Sat, 8 Mar 2008 16:56:23 +0000 (16:56 -0000)]
add test for compiled list binding

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

16 years ago2008-03-08 Jb Evain <jbevain@novell.com>
Jb Evain [Sat, 8 Mar 2008 16:56:04 +0000 (16:56 -0000)]
2008-03-08  Jb Evain  <jbevain@novell.com>

* MemberListBinding.cs (Emit): implement.
* MemberBinding.cs (EmitLoadMember): add helper.

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

16 years ago2008-03-08 Sebastien Pouliot <sebastien@ximian.com>
Jb Evain [Sat, 8 Mar 2008 15:52:43 +0000 (15:52 -0000)]
2008-03-08  Sebastien Pouliot  <sebastien@ximian.com>

* Mono.Cecil.Cil/CodeReader.cs:
Use one and only Hashtable for caching instructions offsets.
Save tons of precious memory.

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

16 years agocompiled MemberInit test
Jb Evain [Sat, 8 Mar 2008 14:56:55 +0000 (14:56 -0000)]
compiled MemberInit test

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

16 years ago2008-03-08 Jb Evain <jbevain@novell.com>
Jb Evain [Sat, 8 Mar 2008 14:56:35 +0000 (14:56 -0000)]
2008-03-08  Jb Evain  <jbevain@novell.com>

* MemberAssignment.cs (Emit): implement.

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

16 years agorefactor
Jb Evain [Sat, 8 Mar 2008 14:56:16 +0000 (14:56 -0000)]
refactor

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

16 years agorefactor
Jb Evain [Sat, 8 Mar 2008 14:13:58 +0000 (14:13 -0000)]
refactor

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

16 years agocompiled ListInit test
Jb Evain [Sat, 8 Mar 2008 14:09:11 +0000 (14:09 -0000)]
compiled ListInit test

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

16 years ago2008-03-08 Jb Evain <jbevain@novell.com>
Jb Evain [Sat, 8 Mar 2008 14:08:33 +0000 (14:08 -0000)]
2008-03-08  Jb Evain  <jbevain@novell.com>

* ElementInit.cs (Emit): implement.

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

16 years ago2008-03-08 Sebastien Pouliot <sebastien@ximian.com>
Jb Evain [Sat, 8 Mar 2008 12:55:22 +0000 (12:55 -0000)]
2008-03-08  Sebastien Pouliot  <sebastien@ximian.com>

* Mono.Cecil.Cil/OpCode.cs
* Mono.Cecil.Binary/RVA.cs
* Mono.Cecil.Binary/DataDirectory.cs:
Avoid boxing/unboxing when == or != operators are used.
Results in significant memory savings for Gendarme.

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

16 years ago2008-03-08 Jb Evain <jbevain@novell.com>
Jb Evain [Sat, 8 Mar 2008 12:48:04 +0000 (12:48 -0000)]
2008-03-08  Jb Evain  <jbevain@novell.com>

* Mono.Cecil/ReflectionReader.cs:
Protect from malformed RIDs.
* Mono.Cecil/AggressiveReflectionReader.cs:
Create the m_events and m_properties tables
even if they contains 0 elements.

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

16 years ago2008-03-08 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 8 Mar 2008 12:19:07 +0000 (12:19 -0000)]
2008-03-08  Zoltan Varga  <vargaz@gmail.com>

* class.c (mono_class_setup_mono_type): Improve the test for corlib.

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

16 years ago2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Sat, 8 Mar 2008 02:36:40 +0000 (02:36 -0000)]
2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ControlBindingsCollectionTest.cs: New test for 2.0
Default DataSourceUpdateMode property.

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

16 years ago * ControlBindingsCollection.cs: Implement last 2.0
Carlos Alberto Cortez [Sat, 8 Mar 2008 02:34:47 +0000 (02:34 -0000)]
* ControlBindingsCollection.cs: Implement last 2.0
DefaultDataSourceUpdateMode property. Also fix a wrong instruction
in the new 2.0 Add methods.

2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>

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

16 years ago2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Sat, 8 Mar 2008 00:30:39 +0000 (00:30 -0000)]
2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListBox.cs: When calling SelectedIndexCollection.Clear,
return if no items are previously selected - this is done to avoid
firing OnSelectedIndexChanged without need to do so. Also,
when creating handle ensure that the focused item is visible (as
.net does).

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

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

* class.c (mono_class_setup_mono_type): Handle types whose name clashes with
system types correctly.

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

16 years agodon't forget to load the result of the new expression
Jb Evain [Fri, 7 Mar 2008 18:32:18 +0000 (18:32 -0000)]
don't forget to load the result of the new expression

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

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

* cpu-amd64.md: Add clob:1 to some float opcodes.

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

16 years ago1 test got renamed
Marek Safar [Fri, 7 Mar 2008 16:28:24 +0000 (16:28 -0000)]
1 test got renamed

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

16 years agoMoved to .NET 2.0 profile
Marek Safar [Fri, 7 Mar 2008 14:32:58 +0000 (14:32 -0000)]
Moved to .NET 2.0 profile

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

16 years ago2008-03-07 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 7 Mar 2008 13:29:49 +0000 (13:29 -0000)]
2008-03-07  Rodrigo Kumpera  <rkumpera@novell.com>

* mono.1: Documented new --security options validil
and verifiable.

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

16 years ago2008-03-07 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 7 Mar 2008 13:28:06 +0000 (13:28 -0000)]
2008-03-07  Rodrigo Kumpera  <rkumpera@novell.com>

* mini.h: Added MiniVerifierMode enumeration.

* mini.c: Added mini_verifier_set_mode to control
the usage of the new verifier.

* mini.c (mono_method): Integrated the new verifier.

* driver.c: Extended --security option with validil and
verifiable options to activate the new verifier.

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

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

* expression.cs (TypeOfVoid): Fixed predefined method initialization.

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

16 years agorefactoring
Jb Evain [Fri, 7 Mar 2008 12:16:27 +0000 (12:16 -0000)]
refactoring

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

16 years agoemit stubs
Jb Evain [Fri, 7 Mar 2008 11:50:43 +0000 (11:50 -0000)]
emit stubs

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

16 years agoNew tests.
Marek Safar [Fri, 7 Mar 2008 11:32:13 +0000 (11:32 -0000)]
New tests.

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

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