Zoltan Varga [Sat, 25 Oct 2008 13:01:27 +0000 (13:01 -0000)]
2008-10-25 Zoltan Varga <vargaz@gmail.com>
* Reapply r116521 with (!mono_debug_using_mono_debugger ()) checks.
* class.c (mono_class_init): Remove unneccesary mono_class_setup_properties ()
call for generic instances.
(mono_class_setup_properties): Call setup_properties () before accessing
gklass->properties.
* class.c (mono_class_get_virtual_methods): New helper function to iterate
over the virtual methods of a class using metadata if possible, avoiding the
creation of MonoMethod's for non-virtual methods.
* class.c (mono_class_setup_vtable_general): Rewrite this to use
get_virtual_methods () to iterate over the virtual methods of classes.
svn path=/trunk/mono/; revision=117044
Jonathan Pryor [Sat, 25 Oct 2008 03:51:04 +0000 (03:51 -0000)]
Oops; remove debug console message.
svn path=/trunk/mcs/; revision=117023
Jonathan Pryor [Sat, 25 Oct 2008 03:49:57 +0000 (03:49 -0000)]
* Makefile: Fixup mdoc.exe dependencies so that it's rebuilt if the
resources or monodoc.dll change. Add tests for mdoc-validate.
* Mono.Documentation/assembler.cs, Mono.Documentation/mdoc.cs,
Mono.Documentation/monodocer.cs, Mono.Documentation/monodocs2html.cs,
Mono.Documentation/monodocs2slashdoc.cs,
Mono.Documentation/validate.cs:
- Major rearchitecture; instead of having the option parsing
centralized within mdoc.cs, keep option parsing within the relevant
files/types.
- Introduce the MDocCommand abstract class to serve as the base class
-- primarily done to introduce the new Message() and Error()
methods, in which Message() will only show the message if the
current message level is >= the message's level (thus minimizing
console spew); see ../monodoc for more details.
- Add `-v' ("verbose") top-level argument to allow setting/adding
levels, so that `mdoc -v -v assemble ...` will show *all*
assemble-associated messages (which can be quite voluminous).
- Remove compiler warnings, when able.
* Mono.Documentation/XhtmlWriter.cs: Remove warning about unused
variable.
* Resources/monodoc-ecma.xsd: Extend the XSD to support more
elements/attributes on various elements -- e.g. mdoc-update looks
for a //code/@src attribute, which wasn't defined in the XSD. Oops.
* Test/validate.check.monodocer.importslashdoc: Flush (due to above
XSD changes).
svn path=/trunk/mcs/; revision=117021
Jonathan Pryor [Sat, 25 Oct 2008 03:37:58 +0000 (03:37 -0000)]
* Monodoc/addins-provider.cs, Monodoc/ecma-provider.cs,
Monodoc/ecmaspec-provider.cs, Monodoc/error-provider.cs,
Monodoc/man-provider.cs, Monodoc/monohb-provider.cs,
Monodoc/provider.cs: Remove Console.WriteLine() spew; helps cleanup
`make` output in mcs/docs (from `mdoc assemble`, which indirectly
invokes most of the *-provider files). We solve this problem by
providing a TraceLevel-based message system, so that messages are
only generated if they are less than or equal to the requested
output level (thus skipping the more verbose "every file" messages
from ecma-provider.cs & error-provider.cs).
* provider.cs: Change Node.CompareTo() to use a "natural sorting"
algorithm -- this allows the C# Language Specification nodes to
continue being displayed in the correct order.
svn path=/trunk/mcs/; revision=117017
Martin Baulig [Sat, 25 Oct 2008 00:00:40 +0000 (00:00 -0000)]
2008-10-25 Martin Baulig <martin@ximian.com>
* debug-mini.c (write_variable): Use
`MONO_DEBUG_VAR_ADDRESS_MODE_DEAD' for dead variables.
svn path=/trunk/mono/; revision=117014
Rodrigo Kumpera [Fri, 24 Oct 2008 22:08:34 +0000 (22:08 -0000)]
2008-10-24 Rodrigo Kumpera <rkumpera@novell.com>
* Vector4i.cs:
* Vector4ui.cs:
* Vector8s.cs:
* Vector8us.cs: Add (Signed)PackWithSignedSaturation.
* Vector8s.cs: Remove the CLSCompliant(false) from a compliant method.
svn path=/trunk/mcs/; revision=117003
Rodrigo Kumpera [Fri, 24 Oct 2008 22:08:31 +0000 (22:08 -0000)]
2008-10-24 Rodrigo Kumpera <rkumpera@novell.com>
* Vector16b: Mark type as CLS compliant (remove attribute) and
mark the methods which are not.
svn path=/trunk/mcs/; revision=117002
Rodrigo Kumpera [Fri, 24 Oct 2008 22:08:30 +0000 (22:08 -0000)]
2008-10-24 Rodrigo Kumpera <rkumpera@novell.com>
* Vector4i.cs: New vector type.
svn path=/trunk/mcs/; revision=117001
Rodrigo Kumpera [Fri, 24 Oct 2008 22:08:28 +0000 (22:08 -0000)]
2008-10-24 Rodrigo Kumpera <rkumpera@novell.com>
* Vector4ui.cs: Add missing SSE 4.1 comments.
svn path=/trunk/mcs/; revision=117000
Rodrigo Kumpera [Fri, 24 Oct 2008 22:08:26 +0000 (22:08 -0000)]
2008-10-24 Rodrigo Kumpera <rkumpera@novell.com>
* Vector16sb.cs: Fix a warning.
* Vector4f.cs: Add some missing CLSCompliant attributes.
* Vector8s.cs: Add CompareGreaterThan and a missing
CLSCompliant attribute.
svn path=/trunk/mcs/; revision=116999
Carlos Alberto Cortez [Fri, 24 Oct 2008 22:05:06 +0000 (22:05 -0000)]
2008-10-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ComboBox.cs: Use the new CanNavigateAutoCompleteList property of the
textbox to know whether any navigation key will be handled or not. If
not, don't pass the message to the textbox, and use it here instead.
* TextBox.cs: Define a new CanNavigateAutoCompleteList property -which
is more precise- than the previous AutoCompleteMatches one.
This should the keyboard navigation in ComboBox when using auto
complete modes.
svn path=/trunk/mcs/; revision=116998
Rodrigo Kumpera [Fri, 24 Oct 2008 21:58:19 +0000 (21:58 -0000)]
2008-10-24 Rodrigo Kumpera <rkumpera@novell.com>
* cpu-x86.md: Add unsigned variants of packd and packw.
* mini-ops.h: Same.
* mini-x86.c: Emit the right instruction for packd and packw.
Add unsigned variants of packd and packw.
* simd-intrinsics.c: Packd and packw were used in place of their
unsigned variants. Change that.
Add intrinsics for (Signed)PackWithSignedSaturation.
* simd-methods.h: Add (Signed)PackWithSignedSaturation.
svn path=/trunk/mono/; revision=116996
Rodrigo Kumpera [Fri, 24 Oct 2008 21:58:17 +0000 (21:58 -0000)]
2008-10-24 Rodrigo Kumpera <rkumpera@novell.com>
* x86/x86-codegen.h: Add signed pack with saturation.
svn path=/trunk/mono/; revision=116995
Marek Habersack [Fri, 24 Oct 2008 20:06:54 +0000 (20:06 -0000)]
2008-10-24 Marek Habersack <mhabersack@novell.com>
* CheckBox.cs: register for event validation in Render ().
svn path=/trunk/mcs/; revision=116986
Marek Habersack [Fri, 24 Oct 2008 19:36:59 +0000 (19:36 -0000)]
2008-10-24 Marek Habersack <mhabersack@novell.com>
* TemplateControl.cs: pass content hash to
UserControlParser.GetCompiledType when compiling a control in
ParseControl.
* UserControlParser.cs: when compiling a control using a text
reader, append a unique suffix to the "file path" - that way
controls compiled from different input streams won't conflict with
each other in the compilation cache.
svn path=/trunk/mcs/; revision=116979
Rodrigo Kumpera [Fri, 24 Oct 2008 18:13:28 +0000 (18:13 -0000)]
2008-10-24 Rodrigo Kumpera <rkumpera@novell.com>
* class.c (mono_class_create_from_typedef): Added Vector4i.
svn path=/trunk/mono/; revision=116968
Rodrigo Kumpera [Fri, 24 Oct 2008 18:13:20 +0000 (18:13 -0000)]
2008-10-24 Rodrigo Kumpera <rkumpera@novell.com>
* simd-intrinsics.c (vector4i_intrinsics): New table of intrinsic type.
svn path=/trunk/mono/; revision=116967
Rodrigo Kumpera [Fri, 24 Oct 2008 18:13:14 +0000 (18:13 -0000)]
2008-10-24 Rodrigo Kumpera <rkumpera@novell.com>
* mini-ops.h: Remove dword packed add/sub with saturation ops.
* cpu-x86.md: Remove dword packed add/sub with saturation ops.
* simd-intrinsics.c (vector4ui_intrinsics): Remove methods without
sse instructions.
* simd-intrinsics.c (vector8s_intrinsics): Fix ordering.
svn path=/trunk/mono/; revision=116966
Jonathan Pobst [Fri, 24 Oct 2008 17:36:41 +0000 (17:36 -0000)]
2008-10-24 Jonathan Pobst <monkey@jpobst.com>
* ComboBox.cs: Fix item height calculation based off Font to match .Net.
[Fixes bug #436730]
svn path=/trunk/mcs/; revision=116965
Zoltan Varga [Fri, 24 Oct 2008 17:23:52 +0000 (17:23 -0000)]
2008-10-24 Zoltan Varga <vargaz@gmail.com>
* RxInterpreter.cs CILCompiler.cs gen-interp.cs: Fix the reading of short
values from the instruction stream.
svn path=/trunk/mcs/; revision=116964
Jonathan Pobst [Fri, 24 Oct 2008 16:03:47 +0000 (16:03 -0000)]
2008-10-24 Jonathan Pobst <monkey@jpobst.com>
* ToolStripDropDownItem.cs: Call OnClick instead of base.OnClick so
overridden methods will get called.
* ToolStripItem.cs: Raise Click before MouseUp.
* ToolStripSplitButton.cs: Fix up some bounding rectangles to take
the item's location into account.
[Fixes bug #437683]
svn path=/trunk/mcs/; revision=116961
Paolo Molaro [Fri, 24 Oct 2008 14:20:51 +0000 (14:20 -0000)]
compilation fix.
svn path=/trunk/mono/; revision=116948
Mark Probst [Fri, 24 Oct 2008 13:50:22 +0000 (13:50 -0000)]
2008-10-24 Mark Probst <mark.probst@gmail.com>
* marshal.c (mono_marshal_get_synchronized_wrapper): Emit
ldtoken+GetTypeFromHandle instead of i4+icall so that the JIT
special-casing applies to eliminate the call completely.
2008-10-24 Mark Probst <mark.probst@gmail.com>
* method-to-ir.c, mini.c: Special casing for the synchronized
wrapper for the ldtoken+GetTypeFromHandle case.
svn path=/trunk/mono/; revision=116944
Zoltan Varga [Fri, 24 Oct 2008 13:46:13 +0000 (13:46 -0000)]
2008-10-24 Zoltan Varga <vargaz@gmail.com>
* mini.c (mono_replace_ins): Move this to branch-opts.c.
svn path=/trunk/mono/; revision=116941
Zoltan Varga [Fri, 24 Oct 2008 13:43:41 +0000 (13:43 -0000)]
2008-10-24 Zoltan Varga <vargaz@gmail.com>
* mini.c (mono_replace_ins): Propagate has_array_access flag to the newly
created/split bblocks.
svn path=/trunk/mono/; revision=116940
Rodrigo Kumpera [Fri, 24 Oct 2008 13:37:08 +0000 (13:37 -0000)]
2008-10-24 Rodrigo Kumpera <rkumpera@novell.com>
* mini-ops.h: Add packed signed mul high.
* cpu-x86.md: Same.
* mini-x86.c (mono_arch_output_basic_block): Same.
* simd-methods.h: Add PackWithUnsignedSaturation and ShiftRightLogic.
* simd-intrinsics.c (vector8s_intrinsics): New table of intrinsic type.
svn path=/trunk/mono/; revision=116939
Rodrigo Kumpera [Fri, 24 Oct 2008 13:37:03 +0000 (13:37 -0000)]
2008-10-24 Rodrigo Kumpera <rkumpera@novell.com>
* basic-simd.cs: Tests for Vector16sb.
svn path=/trunk/mono/; revision=116938
Rodrigo Kumpera [Fri, 24 Oct 2008 13:36:54 +0000 (13:36 -0000)]
2008-10-24 Rodrigo Kumpera <rkumpera@novell.com>
* class.c (mono_class_create_from_typedef): Added Vector8s.
svn path=/trunk/mono/; revision=116937
Rodrigo Kumpera [Fri, 24 Oct 2008 13:36:53 +0000 (13:36 -0000)]
2008-10-24 Rodrigo Kumpera <rkumpera@novell.com>
* x86/x86-codegen.h: Add signed packed mul high.
svn path=/trunk/mono/; revision=116936
Jonathan Pryor [Fri, 24 Oct 2008 13:23:12 +0000 (13:23 -0000)]
* docs (svn:ignore): Ignore generated files.
* docs/lang-csharp.source: Added; combined .source file for the C#
language specification and error reference.
* docs/Makefile: Support lang-csharp.source, mono-file-formats.*, etc.
*.tree/*.zip should be rebuilt when Makefile is changed.
* docs/mono-file-formats.config, docs/mono-file-formats.source: Added;
moving file format documentation out from mono-tools.* so that it's
easier to find.
* docs/mono-tools.config: Move mdoc(5), mono-config(5) to
mono-file-formats.config.
* docs/mono-tools.source, docs/Mono.source, docs/netdocs.source,
docs/Novell.source, docs/nunit-docs.source: Add /monodoc/node
information so that the documentation is inserted into the correct
location.
* docs/monodoc.xml: Vastly simplify the default monodoc.xml as
structure can be/has been pushed out into the .source files. This
should help simplify the life of downstream packagers who wish to
add additional documentation to monodoc.
* docs/ecma334.source, docs/cs-errors.source: Remove (replaced with
lang-csharp.source).
* tools/monodoc/Monodoc/provider.cs:
- Fix Node.Sort() so that it doesn't NRE if nodes == null.
- Fix Node.CompareTo() so that it can sort Nodes that haven't been
loaded yet.
- Add "libraries" as an alias for "root", so that .source files can
refer to the parent "libraries" (which would allow us to change
the location of "libraries" in the future, should we want to).
- If a /monodoc/source/@path refers to a nonexistant node, then
insert the contents under Various instead of ignoring it.
- Sort the top-level nodes.
- Sort the `parent` node after inserting children under it. This
allows multiple different .source files to insert nodes under the
same parent node and still have the child nodes sorted as most
mortals would expect.
- Support a //node/@parent attribute, which allows for creating
nodes underneath the specified parent node. This allows multiple
different .source files to contribute to the tree and depend upon
each other. Thus, instead of having a single monodoc.xml file
that needs to know the entire tree in advance, the entire tree can
be spread across multiple .source files and filled at runtime.
svn path=/trunk/mcs/; revision=116935
Rodrigo Kumpera [Fri, 24 Oct 2008 12:58:55 +0000 (12:58 -0000)]
2008-10-24 Rodrigo Kumpera <rkumpera@novell.com>
* Vector8us.cs: Add some missing SSE 4.1 comments.
svn path=/trunk/mcs/; revision=116931
Rodrigo Kumpera [Fri, 24 Oct 2008 12:58:53 +0000 (12:58 -0000)]
2008-10-24 Rodrigo Kumpera <rkumpera@novell.com>
* Mono.Simd.dll.sources: Added Vector18s.cs.
2008-10-24 Rodrigo Kumpera <rkumpera@novell.com>
* Vector8s.cs: New vector type.
svn path=/trunk/mcs/; revision=116930
Zoltan Varga [Fri, 24 Oct 2008 12:21:55 +0000 (12:21 -0000)]
2008-10-24 Zoltan Varga <vargaz@gmail.com>
* RxOp.cs: Add some missing unicode opcodes.
* gen-interp.cs RxInterpreter.cs: Generate Bitmap/UnicodeBitmap opcodes too.
* CILCompiler.cs (EmitEvalMethodBody): Add an 'end_pc' argument to mark the
end of the bytecode range which needs to be compiled. Use it to avoid
compiling the same bytecode multiple times in various opcodes. Fix
RxOp.Jump implementation. Add implementation for unicode opcodes.
svn path=/trunk/mcs/; revision=116926
Zoltan Varga [Fri, 24 Oct 2008 08:54:09 +0000 (08:54 -0000)]
2008-10-24 Zoltan Varga <vargaz@gmail.com>
* inssel.brg (stmt): Fix OP_HARD_NOP rule.
svn path=/trunk/mono/; revision=116915
Neville Gao [Fri, 24 Oct 2008 07:27:28 +0000 (07:27 -0000)]
NumericUpDown enabled to support accessibility.
svn path=/trunk/mcs/; revision=116912
Gonzalo Paniagua Javier [Fri, 24 Oct 2008 01:02:49 +0000 (01:02 -0000)]
remove temporary/generated files
svn path=/trunk/mono/; revision=116902
Rodrigo Kumpera [Fri, 24 Oct 2008 00:36:18 +0000 (00:36 -0000)]
2008-10-23 Rodrigo Kumpera <rkumpera@novell.com>
* mini-ops.h: Add packed signed min, max and compare greater.
* cpu-x86.md: Same.
* mini-x86.c (mono_arch_output_basic_block): Same. Add packed add/sub with
saturation.
* simd-methods.h: Add CompareGreaterThan.
* simd-methods.h: Remove CompareEquals.
* simd-intrinsics.c: Add new TODO entry and some cosmetic changes.
* simd-intrinsics.c (vector16sb_intrinsics): New table of intrinsic type.
* simd-intrinsics.c (vector4f_intrinsics): Rename CompareEquals to
CompareEqual.
svn path=/trunk/mono/; revision=116899
Rodrigo Kumpera [Fri, 24 Oct 2008 00:36:12 +0000 (00:36 -0000)]
2008-10-23 Rodrigo Kumpera <rkumpera@novell.com>
* basic-simd.cs: Fix tests due to change in the API.
svn path=/trunk/mono/; revision=116898
Rodrigo Kumpera [Fri, 24 Oct 2008 00:35:57 +0000 (00:35 -0000)]
2008-10-23 Rodrigo Kumpera <rkumpera@novell.com>
* class.c (mono_class_create_from_typedef): Added Vector16sb.
svn path=/trunk/mono/; revision=116897
Rodrigo Kumpera [Fri, 24 Oct 2008 00:35:54 +0000 (00:35 -0000)]
2008-10-23 Rodrigo Kumpera <rkumpera@novell.com>
* x86/x86-codegen.h: Add signed packed max, min, add/sub with saturation
and compare greater.
svn path=/trunk/mono/; revision=116896
Rodrigo Kumpera [Fri, 24 Oct 2008 00:03:41 +0000 (00:03 -0000)]
2008-10-23 Rodrigo Kumpera <rkumpera@novell.com>
* Vector16b.cs: Remove methods without sse equivalent.
* Vector16b.cs (SumOfAbsoluteDifferences) Fix the signature.
svn path=/trunk/mcs/; revision=116894
Rodrigo Kumpera [Fri, 24 Oct 2008 00:03:39 +0000 (00:03 -0000)]
2008-10-23 Rodrigo Kumpera <rkumpera@novell.com>
* Vector16sb.cs: New vector type.
2008-10-23 Rodrigo Kumpera <rkumpera@novell.com>
* Mono.Simd.dll.sources: Added Vector16sb.cs.
svn path=/trunk/mcs/; revision=116893
Gonzalo Paniagua Javier [Thu, 23 Oct 2008 20:24:30 +0000 (20:24 -0000)]
2008-10-23 Gonzalo Paniagua Javier <gonzalo@novell.com>
* icall.c: get rid of annoying warning.
svn path=/trunk/mono/; revision=116878
Jonathan Pryor [Thu, 23 Oct 2008 20:16:25 +0000 (20:16 -0000)]
* Mono.Options/Options.cs: Options.cs: Use the underlying target type
in the error message, because "Could not convert string `' to type
Nullable`1..." is not nearly as helpful as "Could not convert
string `' to type Int32...".
* Test/Mono.Options/OptionSetTest.cs: Add a test for the underlying
target type within the exception message.
svn path=/trunk/mcs/; revision=116877
Gonzalo Paniagua Javier [Thu, 23 Oct 2008 19:41:51 +0000 (19:41 -0000)]
2008-10-23 Gonzalo Paniagua Javier <gonzalo@novell.com>
* threadpool.c: in 1.x, if you change the background status of the
threadpool thread, it's not reset.
Remove unnecessary calls to SetState.
svn path=/trunk/mono/; revision=116871
Gonzalo Paniagua Javier [Thu, 23 Oct 2008 19:11:33 +0000 (19:11 -0000)]
2008-10-23 Gonzalo Paniagua Javier <gonzalo@novell.com>
* HttpWebRequest.cs: don't call ProxyRequest twice.
* WebConnectionData.cs: remove unused fields.
* WebConnection.cs:
* WebConnectionStream.cs: when setting the input buffer, check to see
if the entire response is already there and free up the request slot.
Fixes bug #423156.
* ResponseStream.cs:
* HttpListenerResponse.cs: buffer the headers so that they are sent
together with the data on the first Write (if any). The fix above
didn't work with our HttpListener without this.
svn path=/trunk/mcs/; revision=116868
Carlos Alberto Cortez [Thu, 23 Oct 2008 19:05:58 +0000 (19:05 -0000)]
2008-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* TextBox.cs: Check that we actually have items no navigate, select
text when pressing enter, as well as handle direction keys only if
mode is different to Suggest or the suggest listbox is visible.
svn path=/trunk/mcs/; revision=116866
Marek Habersack [Thu, 23 Oct 2008 16:09:10 +0000 (16:09 -0000)]
2008-10-23 Marek Habersack <mhabersack@novell.com>
* TemplateControlParser.cs: added internal method
AddControlImports which adds namespaces named in the
pages/controls section of web.config
* MasterPageParser.cs: unconditionally add namespaces named in the
pages/controls section of web.config.
* PageParser.cs: add namespaces named in the pages/controls
section of web.config to the page whenever it uses a master page.
svn path=/trunk/mcs/; revision=116858
Atsushi Eno [Thu, 23 Oct 2008 11:03:04 +0000 (11:03 -0000)]
2008-10-23 Atsushi Enomoto <atsushi@ximian.com>
* UrlPattern.cs : fixed possible out-of-range case ("tableName/" in
DynamicData).
* RouteTest.cs :
add one more case that used to cause out-of-range error.
svn path=/trunk/mcs/; revision=116843
Atsushi Eno [Thu, 23 Oct 2008 10:38:27 +0000 (10:38 -0000)]
2008-10-23 Atsushi Enomoto <atsushi@ximian.com>
* data/config.xml : add sections for DynamicData feature.
svn path=/trunk/mcs/; revision=116840
Jonathan Pryor [Thu, 23 Oct 2008 04:14:56 +0000 (04:14 -0000)]
* Documentation/en/Mono.Options/OptionSet.xml: Document the support for
nullable types.
* Mono.Options/Option.cs: Add support for nullable types to Options.Parse<T>().
Namespace "harmonization" with NDesk.Options so that the same source
file can be used in each project.
* Test/Mono.Options/OptionContextTest.cs,
Test/Mono.Options/OptionSetTest.cs, Test/Mono.Options/OptionTest.cs,
Test/Mono.Options/Utils.cs:
Namespace "harmonization" with Mono.Options, so that we can use
identical source in each place, thus minimizing the maintenance
burden.
* Test/Mono.Options/OptionSetTest.cs: Add tests for nullable type
support.
svn path=/trunk/mcs/; revision=116837
Gonzalo Paniagua Javier [Thu, 23 Oct 2008 04:02:04 +0000 (04:02 -0000)]
add comment
svn path=/trunk/mcs/; revision=116836
Andreia Gaita [Thu, 23 Oct 2008 03:48:37 +0000 (03:48 -0000)]
* Mono.Mozilla/DOM/Node.cs,
* Mono.Mozilla/DOM/Window.cs: Fix yet more equality operators
2008-10-23 Andreia Gaita <shana@jitted.com>
svn path=/trunk/mcs/; revision=116834
Andreia Gaita [Thu, 23 Oct 2008 02:40:27 +0000 (02:40 -0000)]
* Mono.Mozilla/DOM/Document.cs,
Mono.Mozilla/DOM/Node.cs,
Mono.Mozilla/DOM/NodeList.cs,
Mono.Mozilla/DOM/Stylesheet.cs:
Use GetTypedNode to properly the right wrappers for nodes (fixes #428712)
2008-10-23 Andreia Gaita <shana@jitted.com>
svn path=/trunk/mcs/; revision=116830
Andreia Gaita [Thu, 23 Oct 2008 02:37:23 +0000 (02:37 -0000)]
* System.Windows.Forms/WebBrowser.cs: Use the new ContentStream
property to retrieve a stream encoded from the document content
* Mono.Mozilla/DOM/Element.cs,
Mono.Mozilla/DOM/DocumentEncoder.cs,
Mono.Mozilla/DOM/HTMLElement.cs,
Mono.Mozilla/DOM/Stream.cs,
Mono.Mozilla/WebBrowser.cs,
Mono.Mozilla/interfaces/nsIInputStream.cs,
Mono.WebBrowser.dll.sources,
Mono.WebBrowser/DOM/IElement.cs,
Mono.WebBrowser2K5.csproj:
Separated the DocumentEncoder service in a separate class so
it's easier to invoke, and added stream encoding (partial fix
for bug #377863)
* Mono.Mozilla/DOM/DOMObject.cs: Element wrapper creation now
goes through a common method that properly creates a wrapper
according to the node type (partial fix for #428712)
2008-10-23 Andreia Gaita <shana@jitted.com>
svn path=/trunk/mcs/; revision=116829
Andreia Gaita [Thu, 23 Oct 2008 02:19:05 +0000 (02:19 -0000)]
* HtmlDocument.cs,
HtmlElement.cs,
HtmlWindow.cs: Fix GetHashcode for null objects
2008-10-23 Andreia Gaita <shana@jitted.com>
svn path=/trunk/mcs/; revision=116827
Andreia Gaita [Thu, 23 Oct 2008 02:15:47 +0000 (02:15 -0000)]
* SWF.csproj, SWF2k5.csproj: Update project files
2008-10-23 Andreia Gaita <shana@jitted.com>
svn path=/trunk/mcs/; revision=116826
Andreia Gaita [Thu, 23 Oct 2008 02:11:32 +0000 (02:11 -0000)]
* Mono.Mozilla/DOM/Node.cs,
Mono.Mozilla/DOM/Window.cs: Fix overrides
2008-10-22 Andreia Gaita <shana@jitted.com>
svn path=/trunk/mcs/; revision=116825
Marek Habersack [Thu, 23 Oct 2008 00:13:01 +0000 (00:13 -0000)]
2008-10-23 Marek Habersack <mhabersack@novell.com>
* StateManagedCollection.cs: modified {Load,Save}ViewState to
properly store/recreate the collection of controls and to use a
more consistent structure for the state.
svn path=/trunk/mcs/; revision=116818
Jonathan Pryor [Wed, 22 Oct 2008 22:13:19 +0000 (22:13 -0000)]
* Makefile: Correct path names.
* Mono.Documentation/monodocer.cs: Better support nested types.
* Test/DocTest-v1.cs: Add 4 levels of nested types.
* Test/en.expected.importslashdoc/index.xml,
Test/en.expected.importslashdoc/Mono.DocTest/Widget.xml,
Test/en.expected.importslashdoc/Mono.DocTest/Widget+NestedClass+Double+Triple+Quadruple.xml,
Test/en.expected.importslashdoc/Mono.DocTest/Widget+NestedClass+Double+Triple.xml,
Test/en.expected.importslashdoc/Mono.DocTest/Widget+NestedClass+Double.xml,
Test/en.expected.since/index.xml,
Test/en.expected.since/Mono.DocTest/Widget.xml,
Test/en.expected.since/Mono.DocTest/Widget+NestedClass+Double+Triple+Quadruple.xml,
Test/en.expected.since/Mono.DocTest/Widget+NestedClass+Double+Triple.xml,
Test/en.expected.since/Mono.DocTest/Widget+NestedClass+Double.xml,
Test/en.expected/index.xml,
Test/en.expected/Mono.DocTest/Widget.xml,
Test/en.expected/Mono.DocTest/Widget+NestedClass+Double+Triple+Quadruple.xml,
Test/en.expected/Mono.DocTest/Widget+NestedClass+Double+Triple.xml,
Test/en.expected/Mono.DocTest/Widget+NestedClass+Double.xml,
Test/html.expected/index.html,
Test/html.expected/Mono.DocTest/index.html,
Test/html.expected/Mono.DocTest/Widget.html,
Test/html.expected/Mono.DocTest/Widget+NestedClass+Double+Triple+Quadruple.html,
Test/html.expected/Mono.DocTest/Widget+NestedClass+Double+Triple.html,
Test/html.expected/Mono.DocTest/Widget+NestedClass+Double.html,
Test/msxdoc-expected.importslashdoc.xml: Flush.
svn path=/trunk/mcs/; revision=116807
Gonzalo Paniagua Javier [Wed, 22 Oct 2008 21:33:51 +0000 (21:33 -0000)]
update
svn path=/trunk/mono/; revision=116804
Gonzalo Paniagua Javier [Wed, 22 Oct 2008 21:32:35 +0000 (21:32 -0000)]
forgot this in my previous commit
svn path=/trunk/mono/; revision=116803
Gonzalo Paniagua Javier [Wed, 22 Oct 2008 21:23:52 +0000 (21:23 -0000)]
2008-10-22 Gonzalo Paniagua Javier <gonzalo@novell.com>
* threadpool.c: asynchronously create a set of idle threads upon first
use of the threadpool. SetMinThreads will now start the appropriate
number of idle threads if they are not already running. The default is
1 threadpool thread per CPU. Increased the maximum number of threads
per CPU to 10.
svn path=/trunk/mono/; revision=116802
Martin Baulig [Wed, 22 Oct 2008 20:42:28 +0000 (20:42 -0000)]
2008-10-22 Martin Baulig <martin@ximian.com>
Revert r116521 from Zoltan, it breaks the debugger:
* class.c (mono_class_get_virtual_methods): New helper function to iterate
over the virtual methods of a class using metadata if possible, avoiding the
creation of MonoMethod's for non-virtual methods.
* class.c (mono_class_setup_vtable_general): Rewrite this to use
get_virtual_methods () to iterate over the virtual methods of classes.
svn path=/trunk/mono/; revision=116799
Jb Evain [Wed, 22 Oct 2008 20:12:05 +0000 (20:12 -0000)]
revert that as well
svn path=/trunk/mcs/; revision=116797
Zoltan Varga [Wed, 22 Oct 2008 19:44:24 +0000 (19:44 -0000)]
2008-10-22 Zoltan Varga <vargaz@gmail.com>
* scripts/Makefile.am: Add gacutil1 script.
svn path=/trunk/mono/; revision=116796
Zoltan Varga [Wed, 22 Oct 2008 19:42:38 +0000 (19:42 -0000)]
Revert the previous change.
svn path=/trunk/mcs/; revision=116795
Zoltan Varga [Wed, 22 Oct 2008 19:27:17 +0000 (19:27 -0000)]
2008-10-22 Zoltan Varga <vargaz@gmail.com>
* Makefile (PROGRAM): Always install into the appropriate profile
dir.
svn path=/trunk/mcs/; revision=116794
Zoltan Varga [Wed, 22 Oct 2008 19:25:30 +0000 (19:25 -0000)]
2008-10-22 Zoltan Varga <vargaz@gmail.com>
* Makefile (net_2_0_dirs): Add linker.
svn path=/trunk/mcs/; revision=116793
Gonzalo Paniagua Javier [Wed, 22 Oct 2008 19:24:54 +0000 (19:24 -0000)]
2008-10-22 Gonzalo Paniagua Javier <gonzalo@novell.com>
* threads.c: when creating a threadpool thread, set its state to
'background'.
* threadpool.c: reset the background state of a threadpool thread
after finishing each work item
Bug #437888 fixed.
svn path=/trunk/mono/; revision=116792
Zoltan Varga [Wed, 22 Oct 2008 18:16:45 +0000 (18:16 -0000)]
2008-10-22 Zoltan Varga <vargaz@gmail.com>
* class.c (mono_class_get_vtable_entry): Add an optimization for szarrays.
svn path=/trunk/mono/; revision=116778
Zoltan Varga [Wed, 22 Oct 2008 18:07:52 +0000 (18:07 -0000)]
2008-10-22 Zoltan Varga <vargaz@gmail.com>
* class.c (mono_class_setup_vtable_general): Add an optimized version for
generic instances which works by inflating the methods in the container
class's vtable.
svn path=/trunk/mono/; revision=116773
Zoltan Varga [Wed, 22 Oct 2008 17:44:31 +0000 (17:44 -0000)]
2008-10-22 Zoltan Varga <vargaz@gmail.com>
* class.c (mono_class_inflate_generic_type_with_mempool_no_copy): New
variant which doesn't make a copy if no inflation was done.
(mono_class_setup_fields): Use it.
* metadata.c (mono_metadata_get_shared_type): New helper function to
return a shared instance of a given MonoType.
* class.c (mono_class_inflate_generic_type_with_mempool): Avoid making
a copy of most non-generic types.
svn path=/trunk/mono/; revision=116771
Andreia Gaita [Wed, 22 Oct 2008 16:03:10 +0000 (16:03 -0000)]
* Managed.Windows.Forms/System.Windows.Forms/HtmlDocument.cs,
Managed.Windows.Forms/System.Windows.Forms/HtmlElement.cs,
Managed.Windows.Forms/System.Windows.Forms/HtmlWindow.cs,
Mono.WebBrowser/Mono.Mozilla/DOM/Document.cs,
Mono.WebBrowser/Mono.Mozilla/DOM/Element.cs,
Mono.WebBrowser/Mono.Mozilla/DOM/Node.cs,
Mono.WebBrowser/Mono.Mozilla/DOM/Window.cs,
Mono.WebBrowser/Mono.WebBrowser/DOM/IDocument.cs,
Mono.WebBrowser/Mono.WebBrowser/DOM/IElement.cs,
Mono.WebBrowser/Mono.WebBrowser/DOM/INode.cs,
Mono.WebBrowser/Mono.WebBrowser/DOM/IWindow.cs: Fix equality operators (fixes #428173)
2008-10-22 Andreia Gaita <shana@jitted.com>
svn path=/trunk/mcs/; revision=116757
Paolo Molaro [Wed, 22 Oct 2008 16:01:59 +0000 (16:01 -0000)]
Wed Oct 22 18:00:46 CEST 2008 Paolo Molaro <lupus@ximian.com>
* threadpool.c: remove one more GetSystemInfo () call.
svn path=/trunk/mono/; revision=116756
Paolo Molaro [Wed, 22 Oct 2008 15:51:45 +0000 (15:51 -0000)]
Wed Oct 22 17:45:48 CEST 2008 Paolo Molaro <lupus@ximian.com>
* mono-perfcounters.c, icall-def.h, environment.c, environment.h:
use the code in mono-proclib.h to get processor information.
svn path=/trunk/mono/; revision=116753
Paolo Molaro [Wed, 22 Oct 2008 15:44:24 +0000 (15:44 -0000)]
Wed Oct 22 17:43:03 CEST 2008 Paolo Molaro <lupus@ximian.com>
* mono-proclib.c, mono-proclib.h: added functions to get info
about the processors in the system.
svn path=/trunk/mono/; revision=116751
Marek Habersack [Wed, 22 Oct 2008 15:19:50 +0000 (15:19 -0000)]
Add bug reference
svn path=/trunk/mcs/; revision=116749
Marek Habersack [Wed, 22 Oct 2008 15:17:44 +0000 (15:17 -0000)]
2008-10-22 Marek Habersack <mhabersack@novell.com>
* HttpApplicationFactory.cs: use only the first matching method in
GetApplicationTypeEvents, since it will be the one coming from the
topmost type.
svn path=/trunk/mcs/; revision=116747
Paolo Molaro [Wed, 22 Oct 2008 14:47:37 +0000 (14:47 -0000)]
Wed Oct 22 16:45:20 CEST 2008 Paolo Molaro <lupus@ximian.com>
* mono-proclib.c, mono-mmap.c: basic support for OSX and
(untested) BSD systems.
svn path=/trunk/mono/; revision=116743
Gonzalo Paniagua Javier [Wed, 22 Oct 2008 03:12:27 +0000 (03:12 -0000)]
2008-10-22 Gonzalo Paniagua Javier <gonzalo@novell.com>
* appdomain.c: fixed the logic that determines whether assemblies in a
directory are "shadow-copied" or not. Bug #433483 fixed.
svn path=/trunk/mono/; revision=116725
Rodrigo Kumpera [Wed, 22 Oct 2008 01:22:21 +0000 (01:22 -0000)]
2008-10-21 Rodrigo Kumpera <rkumpera@novell.com>
* Vector16b.cs: Added Load/StoreAligned with pointer args.
* Vector4f.cs: Added Load/StoreAligned with pointer args.
* Vector4ui.cs: Added Load/StoreAligned with pointer args.
* Vector8us.cs: Added Load/StoreAligned with pointer args.
svn path=/trunk/mcs/; revision=116722
Rodrigo Kumpera [Wed, 22 Oct 2008 01:22:19 +0000 (01:22 -0000)]
2008-10-21 Rodrigo Kumpera <rkumpera@novell.com>
* Vector4f.cs: Renamed CompareEquals to CompareEqual.
svn path=/trunk/mcs/; revision=116721
Rodrigo Kumpera [Wed, 22 Oct 2008 01:21:41 +0000 (01:21 -0000)]
2008-10-21 Rodrigo Kumpera <rkumpera@novell.com>
* basic-simd.cs: Fix name change in Vector4f::CompareEqual.
* simd-intrinsics.c (simd_intrinsic_emit_store_aligned): Don't use
inst_offset as this has invalid values for LDADDR.
svn path=/trunk/mono/; revision=116720
Marek Habersack [Wed, 22 Oct 2008 00:49:55 +0000 (00:49 -0000)]
Cleanup
svn path=/trunk/mcs/; revision=116714
Marek Habersack [Wed, 22 Oct 2008 00:46:42 +0000 (00:46 -0000)]
2008-10-22 Marek Habersack <mhabersack@novell.com>
* JsonDeserializer.cs: object can contain more than one unquoted
keys.
2008-10-22 Marek Habersack <mhabersack@novell.com>
* JavaScriptSerializerTest.cs: added tests for deserialization of
objects with more than one unquoted key names.
svn path=/trunk/mcs/; revision=116713
Zoltan Varga [Tue, 21 Oct 2008 23:04:18 +0000 (23:04 -0000)]
2008-10-22 Zoltan Varga <vargaz@gmail.com>
* process.c (ves_icall_System_Diagnostics_Process_GetProcessData): Fix a
warning.
svn path=/trunk/mono/; revision=116694
Zoltan Varga [Tue, 21 Oct 2008 22:39:12 +0000 (22:39 -0000)]
Fix a bug in the previous change.
svn path=/trunk/mono/; revision=116689
Zoltan Varga [Tue, 21 Oct 2008 21:58:15 +0000 (21:58 -0000)]
2008-10-21 Zoltan Varga <vargaz@gmail.com>
* mini.c method-to-ir.c: Use mono_field_get_name () for accessing field->name.
svn path=/trunk/mono/; revision=116681
Zoltan Varga [Tue, 21 Oct 2008 21:56:13 +0000 (21:56 -0000)]
2008-10-21 Zoltan Varga <vargaz@gmail.com>
* marshal.c (runtime_invoke_signature_equal): Don't shared wrappers
returning a vtype.
* class.c debug-helpers.c object.c class-internals.h marshal.c icall.c
reflection.c: Use mono_field_get_name () for accessing a field's name.
svn path=/trunk/mono/; revision=116680
Rodrigo Kumpera [Tue, 21 Oct 2008 21:02:23 +0000 (21:02 -0000)]
2008-10-21 Rodrigo Kumpera <rkumpera@novell.com>
* basic-simd.cs: Test for SignedPackWithUnsignedSaturation.
* simd-intrinsics.c (vector4ui_intrinsics): Add SignedPackWithUnsignedSaturation.
svn path=/trunk/mono/; revision=116674
Rodrigo Kumpera [Tue, 21 Oct 2008 21:02:17 +0000 (21:02 -0000)]
2008-10-21 Rodrigo Kumpera <rkumpera@novell.com>
* basic-simd.cs: Test for SignedPackWithUnsignedSaturation.
svn path=/trunk/mono/; revision=116673
Jonathan Pobst [Tue, 21 Oct 2008 20:29:32 +0000 (20:29 -0000)]
2008-10-21 Jonathan Pobst <monkey@jpobst.com>
* XplatUIWin32.cs: Apply patch from John Mortlock that ensures
mouse_state gets set during WM_MOUSEMOVE and WM_NCMOUSEMOVE.
[Fixes bug #436772]
svn path=/trunk/mcs/; revision=116670
Rodrigo Kumpera [Tue, 21 Oct 2008 20:26:04 +0000 (20:26 -0000)]
2008-10-21 Rodrigo Kumpera <rkumpera@novell.com>
* Vector4ui.cs: Added SignedPackWithUnsignedSaturation.
svn path=/trunk/mcs/; revision=116669
Zoltan Varga [Tue, 21 Oct 2008 20:14:03 +0000 (20:14 -0000)]
2008-10-21 Zoltan Varga <vargaz@gmail.com>
* class-internals.h (MONO_CLASS_HAS_STATIC_METADATA): Move this here from
class.c
* class.c (mono_field_get_rva): Fix crash if this is called on a dynamic
field.
svn path=/trunk/mono/; revision=116668
Marek Habersack [Tue, 21 Oct 2008 20:11:08 +0000 (20:11 -0000)]
2008-10-21 Marek Habersack <mhabersack@novell.com>
* XmlDataSource.cs: DataFile may be an URL.
svn path=/trunk/mcs/; revision=116667
Jonathan Pobst [Tue, 21 Oct 2008 19:34:36 +0000 (19:34 -0000)]
2008-10-21 Jonathan Pobst <monkey@jpobst.com>
* ComboBox.cs: Fire SelectedIndexChanged when the user selects the
same item with the mouse as was already selected.
[Fixes bug #436789]
svn path=/trunk/mcs/; revision=116664
Marek Habersack [Tue, 21 Oct 2008 18:59:25 +0000 (18:59 -0000)]
Cosmetics - use string.Length to check for empty string
svn path=/trunk/mcs/; revision=116661
Marek Habersack [Tue, 21 Oct 2008 18:40:56 +0000 (18:40 -0000)]
Revert r116595 - the 3.5 assemblies mustn't be included in the system web.config - it breaks all 2.0 applications
svn path=/trunk/mono/; revision=116660
Zoltan Varga [Tue, 21 Oct 2008 18:14:10 +0000 (18:14 -0000)]
2008-10-21 Zoltan Varga <vargaz@gmail.com>
* loader.c (find_method_in_class): Reenable the metadata optimization by
not using it for generic instances.
svn path=/trunk/mono/; revision=116657