Mark Probst [Tue, 18 Nov 2008 14:12:54 +0000 (14:12 -0000)]
2008-11-18 Mark Probst <mark.probst@gmail.com>
* include/private/gc_locks.h (test_and_set): The PPC64 case is
wrong, as it operates on 64 bit values, not on 32 bit ones as the
function requires. The PPC32 case is sufficient.
svn path=/trunk/mono/; revision=119156
Marek Safar [Tue, 18 Nov 2008 14:03:53 +0000 (14:03 -0000)]
New test.
svn path=/trunk/mcs/; revision=119154
Marek Safar [Tue, 18 Nov 2008 14:03:06 +0000 (14:03 -0000)]
2008-11-18 Marek Safar <marek.safar@gmail.com>
* generic.cs, iterators.cs, anonymous.cs, nullable.cs, ecore.cs,
expression.cs, namespace.cs, generic-mcs.cs, class.cs: Small cleanup
of ConstructedType expression, renamed to GenericTypeExpr.
svn path=/trunk/mcs/; revision=119153
Mark Probst [Tue, 18 Nov 2008 13:38:59 +0000 (13:38 -0000)]
2008-11-18 Mark Probst <mark.probst@gmail.com>
* mini-ppc64.c, mini-ppc64.h, cpu-ppc64.md: Updated with changes
in PPC code up to r119147.
svn path=/trunk/mono/; revision=119148
Mark Probst [Tue, 18 Nov 2008 11:33:26 +0000 (11:33 -0000)]
2008-11-18 Mark Probst <mark.probst@gmail.com>
* mini-ppc64.c, mini-ppc64.h, tramp-ppc64.c, exceptions-ppc64.c,
cpu-ppc64.md: Changes for PPC64.
Based on code submitted by andreas.faerber@web.de at
https://bugzilla.novell.com/show_bug.cgi?id=324134 under the
X11/MIT license.
svn path=/trunk/mono/; revision=119145
Mark Probst [Tue, 18 Nov 2008 11:22:25 +0000 (11:22 -0000)]
2008-11-18 Mark Probst <mark.probst@gmail.com>
* mini-ppc64.c, mini-ppc64.h, tramp-ppc64.c, exceptions-ppc64.c,
cpu-ppc64.md: Copied from the corresponding PPC files from
r118846.
svn path=/trunk/mono/; revision=119144
Zoltan Varga [Tue, 18 Nov 2008 11:20:36 +0000 (11:20 -0000)]
Hopefully fix the sparc build.
svn path=/trunk/mono/; revision=119143
Zoltan Varga [Tue, 18 Nov 2008 11:17:30 +0000 (11:17 -0000)]
2008-11-18 Zoltan Varga <vargaz@gmail.com>
* debug-helpers.c (mono_method_full_name): Stringify wrapper types even
if signature==FALSE.
svn path=/trunk/mono/; revision=119142
Mark Probst [Tue, 18 Nov 2008 10:25:11 +0000 (10:25 -0000)]
2008-11-18 Mark Probst <mark.probst@gmail.com>
* ppc/ppc-codegen.h: PPC64 code generation macros.
Based on code submitted by andreas.faerber@web.de at
https://bugzilla.novell.com/show_bug.cgi?id=324134 under the
X11/MIT license.
svn path=/trunk/mono/; revision=119141
Mark Probst [Tue, 18 Nov 2008 10:17:36 +0000 (10:17 -0000)]
2008-11-18 Mark Probst <mark.probst@gmail.com>
* ppc/ppc-codegen.h: A few fixes and additions.
Based on code submitted by andreas.faerber@web.de at
https://bugzilla.novell.com/show_bug.cgi?id=324134 under the
X11/MIT license.
svn path=/trunk/mono/; revision=119140
Gonzalo Paniagua Javier [Tue, 18 Nov 2008 07:16:13 +0000 (07:16 -0000)]
2008-11-18 Gonzalo Paniagua Javier <gonzalo@novell.com>
* ControlBuilder.cs: find the correct naming container even inside
user controls. A corner case of bug #445889.
svn path=/trunk/mcs/; revision=119130
Gonzalo Paniagua Javier [Tue, 18 Nov 2008 07:13:50 +0000 (07:13 -0000)]
revert. found a better fix
svn path=/trunk/mcs/; revision=119129
Gonzalo Paniagua Javier [Tue, 18 Nov 2008 06:33:06 +0000 (06:33 -0000)]
2008-11-18 Gonzalo Paniagua Javier <gonzalo@novell.com>
* TemplateControlCompiler.cs: a corner case of the previous bug.
svn path=/trunk/mcs/; revision=119128
Gonzalo Paniagua Javier [Tue, 18 Nov 2008 04:14:41 +0000 (04:14 -0000)]
2008-11-17 Gonzalo Paniagua Javier <gonzalo@novell.com>
* AspTokenizer.cs: if there's a newline between the opening server tag
and any other special character, treat the block as a code-render
block.
Bug #445889 fixed.
svn path=/trunk/mcs/; revision=119126
Marek Habersack [Tue, 18 Nov 2008 03:17:44 +0000 (03:17 -0000)]
2008-11-18 Marek Habersack <mhabersack@novell.com>
* System.Web.Extensions.dll.sources: added
./System.Web.UI.WebControls/ListViewTableCell.cs
2008-11-18 Marek Habersack <mhabersack@novell.com>
* ListView.cs: implemented grouping support. With this ListView is
feature complete.
Refactored grouped/non-grouped rendering common code into separate
methods.
FindPlaceholder now looks for the placeholder recursively.
Implemented forgotten UpdateItem method.
* ListViewTableCell.cs: added
svn path=/trunk/mcs/; revision=119125
Miguel de Icaza [Tue, 18 Nov 2008 01:05:32 +0000 (01:05 -0000)]
2008-11-17 Chris Howie <cdhowie@gmail.com>
* DataConverter.cs: Fix alignment for strings when the
natural-alignment parameter is used '!'.
Disables CLS errors when not compiling with the CLS flag.
Fixes #445867
svn path=/trunk/mcs/; revision=119122
Scott Thomas [Mon, 17 Nov 2008 22:48:43 +0000 (22:48 -0000)]
2008-11-18 Scott Peterson <lunchtimemama@novell.com>
These changes are made under the MIT/X11 license
* mini-ops.h: Added OP_ROUND.
* cpu-x86.md: Added round.
* mini-x86.c: Added support for intrinsicing Math.Round
(double).
* basic-math.cs: Added test_0_round to test rounding.
svn path=/trunk/mono/; revision=119105
Bill Holmes [Mon, 17 Nov 2008 22:12:52 +0000 (22:12 -0000)]
2008-11-17 Bill Holmes <billholmes54@gmail.com>
* aot-compiler.c : Fix the Winx64 build.
Contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=119094
Gonzalo Paniagua Javier [Mon, 17 Nov 2008 19:47:45 +0000 (19:47 -0000)]
2008-11-17 Gonzalo Paniagua Javier <gonzalo@novell.com>
* SmtpClient.cs: remove unused variable and obsolete comment.
svn path=/trunk/mcs/; revision=119084
Bill Holmes [Mon, 17 Nov 2008 19:01:42 +0000 (19:01 -0000)]
2008-11-17 Bill Holmes <billholmes54@gmail.com>
* marshal.h : Fix the cygwin build.
marshal.c:12442: undefined reference to `_IID_IMarshal'
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=119081
Rodrigo Kumpera [Mon, 17 Nov 2008 18:51:40 +0000 (18:51 -0000)]
2008-11-17 Rodrigo Kumpera <rkumpera@novell.com>
* FieldInfoTest.cs: Test FieldInfo::GetValue on a constant of an open
generic type.
svn path=/trunk/mcs/; revision=119077
Rodrigo Kumpera [Mon, 17 Nov 2008 18:51:04 +0000 (18:51 -0000)]
2008-11-17 Rodrigo Kumpera <rkumpera@novell.com>
* MonoField.cs (GetValue): Don't check for open generic types if the field
is a constant.
svn path=/trunk/mcs/; revision=119076
Andreia Gaita [Mon, 17 Nov 2008 18:15:09 +0000 (18:15 -0000)]
* Makefile: Remove uneeded win32-specific hack
2008-11-17 Andreia Gaita <avidigal@novell.com>
svn path=/trunk/mcs/; revision=119067
Jonathan Pobst [Mon, 17 Nov 2008 18:13:44 +0000 (18:13 -0000)]
2008-11-17 Jonathan Pobst <monkey@jpobst.com>
* DomainUpDown.cs: Remove string cache and reflection optimizations. They
aren't always correct, and fixing them for every case is not worth the
negligible benefit they provide.
[Fixes bug #445713]
svn path=/trunk/mcs/; revision=119066
Bill Holmes [Mon, 17 Nov 2008 17:52:48 +0000 (17:52 -0000)]
2008-11-17 Bill Holmes <billholmes54@gmail.com>
* marshal.h : cominterop_ccw_getfreethreadedmarshaler added to return the
free threaded marshaler when QueryInterface is called on a COM callable
wrapper requesting the IMarshal interface.
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=119064
Jonathan Pobst [Mon, 17 Nov 2008 17:06:24 +0000 (17:06 -0000)]
2008-11-17 Jonathan Pobst <monkey@jpobst.com>
* DataGridView.cs: We should never add actual cells to the RowTemplate.
Internally, use RowTemplateFull to give us a new row with cells.
* DataGridViewColumnCollection.cs: Clear Rows when we clear Columns.
* DataGridViewRowCollection.cs: Use RowTemplateFull.
2008-11-17 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewTest.cs: Add a test showing how RowTemplate works.
svn path=/trunk/mcs/; revision=119060
Rodrigo Kumpera [Mon, 17 Nov 2008 17:00:24 +0000 (17:00 -0000)]
2008-11-17 Rodrigo Kumpera <rkumpera@novell.com>
* mini-ops.h: Added OP_EXTRACT_R8/I8.
* cpu-x86.md: Added extract_r8.
* mini-x86.c (mono_arch_output_basic_block): Emmit OP_EXTRACT_R8.
* mini-x86.c: Added mono_arch_decompose_long_opts to break OP_EXTRACT_I8 into
a couple of OP_EXTRACT_I4.
* mini-x86.h: Define MONO_ARCH_HAVE_DECOMPOSE_LONG_OPTS if simd is enabled.
* simd-intrinsics.c: Implement getters for Vector2l/2ul/2d.
svn path=/trunk/mono/; revision=119058
Rodrigo Kumpera [Mon, 17 Nov 2008 17:00:22 +0000 (17:00 -0000)]
2008-11-17 Rodrigo Kumpera <rkumpera@novell.com>
* x86/x86-codegen.h: Add X86_SSE_MOVHPD_MEMBASE_REG constant
and x86_sse_alu_pd_membase_reg/x86_sse_alu_membase_reg macros.
svn path=/trunk/mono/; revision=119057
Marek Safar [Mon, 17 Nov 2008 15:52:16 +0000 (15:52 -0000)]
Flush
svn path=/trunk/mcs/; revision=119041
Marek Safar [Mon, 17 Nov 2008 15:39:31 +0000 (15:39 -0000)]
2008-11-17 Marek Safar <marek.safar@gmail.com>
A test for bug #445303
svn path=/trunk/mcs/; revision=119039
Marek Safar [Mon, 17 Nov 2008 15:38:57 +0000 (15:38 -0000)]
2008-11-17 Marek Safar <marek.safar@gmail.com>
A fix for bug #445303
* location.cs (IsConditionalDefined): Handle undefined global
defines.
svn path=/trunk/mcs/; revision=119038
Gonzalo Paniagua Javier [Mon, 17 Nov 2008 15:30:53 +0000 (15:30 -0000)]
2008-11-17 Gonzalo Paniagua Javier <gonzalo@novell.com>
* HttpListener2Test.cs: (CreateNS) set a default read/write timeout
of 5s.
svn path=/trunk/mcs/; revision=119033
Marek Safar [Mon, 17 Nov 2008 14:46:26 +0000 (14:46 -0000)]
2008-11-17 Marek Safar <marek.safar@gmail.com>
A test for bug #444678
svn path=/trunk/mcs/; revision=119029
Marek Safar [Mon, 17 Nov 2008 14:44:17 +0000 (14:44 -0000)]
2008-11-17 Marek Safar <marek.safar@gmail.com>
A fix for bug #444678
* expression.cs (TryReduceConstant): Always create new constant
instance.
svn path=/trunk/mcs/; revision=119027
Rodrigo Kumpera [Mon, 17 Nov 2008 14:15:59 +0000 (14:15 -0000)]
2008-11-17 Rodrigo Kumpera <rkumpera@novell.com>
* simd-intrinsics.c (vector2l_intrinsics): CompareGreaterThan requires sse 4.2
and not 4.1.
svn path=/trunk/mono/; revision=119024
Rodrigo Kumpera [Mon, 17 Nov 2008 14:16:03 +0000 (14:16 -0000)]
2008-11-17 Rodrigo Kumpera <rkumpera@novell.com>
* Vector2l.cs (CompareGreaterThan): This method requires sse 4.2
and 4.1.
svn path=/trunk/mcs/; revision=119023
Rodrigo Kumpera [Mon, 17 Nov 2008 14:16:02 +0000 (14:16 -0000)]
2008-11-17 Rodrigo Kumpera <rkumpera@novell.com>
* SimdRuntime.cs (MethodAccelerationMode): Add MethodInfo
overload.
svn path=/trunk/mcs/; revision=119022
Carlos Alberto Cortez [Mon, 17 Nov 2008 13:53:59 +0000 (13:53 -0000)]
2008-11-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* XplatUIX11.cs: Forms without borders should be able to change its
size - specially they should be able to be maximized, adding the
respective MotifFunctions.Resize bit when setting window properties as
well as *not* marking the Hwnd as size fixed.
Fixes #444347.
svn path=/trunk/mcs/; revision=119020
Marek Safar [Mon, 17 Nov 2008 13:18:40 +0000 (13:18 -0000)]
2008-11-17 Marek Safar <marek.safar@gmail.com>
A test for bug #444673
svn path=/trunk/mcs/; revision=119015
Marek Safar [Mon, 17 Nov 2008 13:18:20 +0000 (13:18 -0000)]
2008-11-17 Marek Safar <marek.safar@gmail.com>
A fix for bug #444673
* ecore.cs: Ignore open generic types when used as generic type
instance fields.
svn path=/trunk/mcs/; revision=119014
Zoltan Varga [Mon, 17 Nov 2008 13:14:49 +0000 (13:14 -0000)]
2008-11-17 Zoltan Varga <vargaz@gmail.com>
* method-to-ir.c (handle_delegate_ctor): Emit the address of the delegate
trampoline as an AOT const of the proper type instead of MONO_PATCH_INFO_ABS.
* mini.c (mono_codegen): Remove the handling of delegate trampolines, they
are not needed any more.
svn path=/trunk/mono/; revision=119013
Marek Safar [Mon, 17 Nov 2008 13:00:32 +0000 (13:00 -0000)]
New test.
svn path=/trunk/mcs/; revision=119012
Marek Safar [Mon, 17 Nov 2008 13:00:15 +0000 (13:00 -0000)]
2008-11-17 Marek Safar <marek.safar@gmail.com>
A fix for bug #445458
* expression.cs, cs-parser.jay: Don't crash when an expression
statement is null.
svn path=/trunk/mcs/; revision=119011
Zoltan Varga [Mon, 17 Nov 2008 12:48:44 +0000 (12:48 -0000)]
2008-11-17 Zoltan Varga <vargaz@gmail.com>
* mini.h: Remove the unused INS_LIST macros.
svn path=/trunk/mono/; revision=119010
Zoltan Varga [Mon, 17 Nov 2008 12:42:08 +0000 (12:42 -0000)]
2008-11-17 Zoltan Varga <vargaz@gmail.com>
* mini.c (mini_method_compile): Remove a disable globalra case which is no
longer needed.
svn path=/trunk/mono/; revision=119009
Raja R Harinath [Mon, 17 Nov 2008 12:30:45 +0000 (12:30 -0000)]
Avoid allocating empty arrays.
* Index.cs (empty): New empty array constant.
(Reset): Initialize '_array' to 'empty'.
(RebuildIndex): Don't allocate array if it will be empty.
(FindAllIndexes): Use 'empty' instead of 'new int [0]'.
svn path=/trunk/mcs/; revision=119008
Raja R Harinath [Mon, 17 Nov 2008 12:30:27 +0000 (12:30 -0000)]
Simplify using some invariants
* Index.cs: Remove use of Array and Size properties by taking
advantage of the invariant that _array is never null.
(EnsureArray): Remove.
(Array): Remove.
svn path=/trunk/mcs/; revision=119007
Raja R Harinath [Mon, 17 Nov 2008 12:30:09 +0000 (12:30 -0000)]
* RecordCache.cs: Reduce some extraneous nesting.
svn path=/trunk/mcs/; revision=119006
Raja R Harinath [Mon, 17 Nov 2008 12:29:51 +0000 (12:29 -0000)]
formatting fixes
svn path=/trunk/mcs/; revision=119005
Marek Safar [Mon, 17 Nov 2008 12:25:39 +0000 (12:25 -0000)]
2008-11-17 Marek Safar <marek.safar@gmail.com>
A test for bug #445464
svn path=/trunk/mcs/; revision=119004
Marek Safar [Mon, 17 Nov 2008 12:25:21 +0000 (12:25 -0000)]
2008-11-17 Marek Safar <marek.safar@gmail.com>
A fix for bug #445464
* expression.cs, cs-parser.jay: Fixed typeof of non-generic type
inside unbound type.
svn path=/trunk/mcs/; revision=119003
Zoltan Varga [Mon, 17 Nov 2008 12:05:36 +0000 (12:05 -0000)]
Hopefully fix the PPC build.
svn path=/trunk/mono/; revision=118996
Zoltan Varga [Mon, 17 Nov 2008 02:28:19 +0000 (02:28 -0000)]
2008-11-17 Zoltan Varga <vargaz@gmail.com>
* *.h *.c: Remove duplicate MonoInst emission macros, use the ones in
ir-emit.h.
svn path=/trunk/mono/; revision=118986
Raja R Harinath [Mon, 17 Nov 2008 02:16:51 +0000 (02:16 -0000)]
update known-issues-smcs
svn path=/trunk/mcs/; revision=118984
Zoltan Varga [Mon, 17 Nov 2008 02:15:07 +0000 (02:15 -0000)]
2008-11-17 Zoltan Varga <vargaz@gmail.com>
* regalloc.h *.c: Remove references to mono_regstate_next_int (), use
mono_alloc_ireg () instead.
svn path=/trunk/mono/; revision=118983
Zoltan Varga [Mon, 17 Nov 2008 01:07:28 +0000 (01:07 -0000)]
2008-11-17 Zoltan Varga <vargaz@gmail.com>
* mini-<ARCH>.c: Include ir-emit.h. Remove duplicate MonoInst emission
macros.
svn path=/trunk/mono/; revision=118982
Zoltan Varga [Mon, 17 Nov 2008 01:03:39 +0000 (01:03 -0000)]
Fix ia64 build.
svn path=/trunk/mono/; revision=118981
Zoltan Varga [Mon, 17 Nov 2008 01:01:47 +0000 (01:01 -0000)]
2008-11-17 Zoltan Varga <vargaz@gmail.com>
* mini-amd64.c (emit_load_volatile_arguments): Removed, not needed
on amd64.
svn path=/trunk/mono/; revision=118980
Zoltan Varga [Mon, 17 Nov 2008 00:55:30 +0000 (00:55 -0000)]
2008-11-17 Zoltan Varga <vargaz@gmail.com>
* aot-runtime.c (load_aot_module): Disable AOT when running under
CAS.
svn path=/trunk/mono/; revision=118979
Zoltan Varga [Mon, 17 Nov 2008 00:33:58 +0000 (00:33 -0000)]
2008-11-17 Zoltan Varga <vargaz@gmail.com>
* mini-amd64.h: Change the monitor fastpath defines to check for
!PLATFORM_WIN32 so they work on *bsd too.
svn path=/trunk/mono/; revision=118977
Zoltan Varga [Mon, 17 Nov 2008 00:30:48 +0000 (00:30 -0000)]
2008-11-17 Zoltan Varga <vargaz@gmail.com>
* mini.h mini.c mini-hhpa.c: Remove more unused code.
svn path=/trunk/mono/; revision=118976
Zoltan Varga [Mon, 17 Nov 2008 00:22:57 +0000 (00:22 -0000)]
2008-11-17 Zoltan Varga <vargaz@gmail.com>
* mini-s390.c mini-s390x.c: Remove !cfg->new_ir code.
* mini.h (MonoCompile): Remove new_ir flag.
svn path=/trunk/mono/; revision=118975
Zoltan Varga [Mon, 17 Nov 2008 00:17:02 +0000 (00:17 -0000)]
2008-11-17 Zoltan Varga <vargaz@gmail.com>
* regalloc.h regalloc.c: Remove unused code.
svn path=/trunk/mono/; revision=118974
Zoltan Varga [Sun, 16 Nov 2008 23:58:09 +0000 (23:58 -0000)]
2008-11-17 Zoltan Varga <vargaz@gmail.com>
* cpu-*.md: Remove more unused opcodes.
svn path=/trunk/mono/; revision=118970
Zoltan Varga [Sun, 16 Nov 2008 23:55:10 +0000 (23:55 -0000)]
2008-11-17 Zoltan Varga <vargaz@gmail.com>
* simple-cee-ops.h simple-mini-ops.h: Removed.
svn path=/trunk/mono/; revision=118969
Zoltan Varga [Sun, 16 Nov 2008 23:54:42 +0000 (23:54 -0000)]
2008-11-17 Zoltan Varga <vargaz@gmail.com>
* simple-cee-ops.h simple-mini-ops.h: Removed.
* mini-ops.h *.c cpu-<ARCH>.md: Remove more unused opcodes.
svn path=/trunk/mono/; revision=118968
Zoltan Varga [Sun, 16 Nov 2008 23:30:53 +0000 (23:30 -0000)]
2008-11-17 Zoltan Varga <vargaz@gmail.com>
* aliasing.h: Removed.
* *.c: Remove references to aliasing.h and inssel.h.
* mini.c: Remove additional unused functions.
* mini-ops.h cpu-*.md: Remove unused opcodes.
svn path=/trunk/mono/; revision=118967
Zoltan Varga [Sun, 16 Nov 2008 22:53:12 +0000 (22:53 -0000)]
2008-11-16 Zoltan Varga <vargaz@gmail.com>
Remove the old JIT code.
* inssel*.brg: Removed.
* ssa.c abcremoval.c aliasing.c: Removed.
* ssa2.c: Renamed to ssa.c.
* abcremoval2.c: Renamed to abcremoval.c.
* *.c: Removed all !cfg->new_ir code.
* mini-<ARCH>.c: Removed mono_arch_call_opcode (),
mono_arch_emit_this_vret_args (), and mono_arch_get_inst_for_method ().
* mini.c: Removed the old mono_method_to_ir () and all the code used by it.
svn path=/trunk/mono/; revision=118965
Jonathan Pryor [Sun, 16 Nov 2008 19:35:46 +0000 (19:35 -0000)]
* Mono.Documentation/dump.cs: Rewrite to be a MDocCommand subclass.
* Mono.Documentation/mdoc.cs: Add dump-tree command which can be used
to dump the contents of assemble-generated .tree files.
* mdoc.exe.sources: Add Mono.Documentation/dump.cs to the build.
svn path=/trunk/mcs/; revision=118963
Sebastien Pouliot [Sun, 16 Nov 2008 18:35:56 +0000 (18:35 -0000)]
Mono.Cecil/TypeDefinition.cs (IsValueType): Inline the call to IsEnum and remove the double null check being done.
svn path=/trunk/mcs/; revision=118962
Zoltan Varga [Sun, 16 Nov 2008 11:20:38 +0000 (11:20 -0000)]
Fix the x86 build.
svn path=/trunk/mono/; revision=118957
Jonathan Pryor [Sun, 16 Nov 2008 02:14:36 +0000 (02:14 -0000)]
* Documentation/en/**: Flush; changes due to mdoc-update
Reflection->Cecil migration. Changes include:
- Alphabetical ordering of custom attributes (these used to be in
Reflection order, and Cecil uses a different ordering, so just
sort them now).
- Closer documentation mapping to source code (e.g. `class Foo :
ICollection<Bar>, IEnumerable<Bar>` now adds IEnumerable<Bar> as
an interface).
- Some method have been removed (presumably because the source was
altered since the last time `make doc-update` was run).
svn path=/trunk/mcs/; revision=118950
Jonathan Pryor [Sun, 16 Nov 2008 02:02:59 +0000 (02:02 -0000)]
* Mono.Documentation/monodocer.cs: Properties on interfaces shouldn't
have `abstract' on them.
* Test/DocTest-v1.cs: Add a property to an interface to check above.
* Test/en.expected.importslashdoc/Mono.DocTest/Widget+IMenuItem.xml,
Test/en.expected.since/Mono.DocTest/Widget+IMenuItem.xml,
Test/en.expected/Mono.DocTest/Widget+IMenuItem.xml,
Test/html.expected/Mono.DocTest/Widget+IMenuItem.html,
Test/msxdoc-expected.importslashdoc.xml: Flush.
svn path=/trunk/mcs/; revision=118949
Jonathan Pryor [Sun, 16 Nov 2008 01:43:24 +0000 (01:43 -0000)]
* Mono.Documentation/monodocer.cs: Fix regressions found from
`make doc-update` in corlib:
- Ensure that custom attributes are sorted (they weren't before,
resulting in spurious differences between Reflection & Cecil
output).
- CecilExtensions.GetMethod() should return null if the method can't
be found.
- DocUtils.IsDelegate() should ensure that the delegate type isn't
abstract (otherwise it dies on System.MulticastDelegate, which is
an abstract type lacking an "Invoke" method).
- Properly count generic argument counts for nested types (fixes IOE
from S.C.G.Dictionary`2.KeyCollection.Enumerator).
* Test/DocTest-v1.cs: Add doubly-nested class under a generic class to
simulate S.C.G.Dictionary`2.KeyCollection.Enumerator behavior.
* Test/en.expected.importslashdoc/index.xml,
Test/en.expected.importslashdoc/Mono.DocTest.Generic/GenericBase`1+NestedCollection+Enumerator.xml,
Test/en.expected.importslashdoc/Mono.DocTest.Generic/GenericBase`1+NestedCollection.xml,
Test/en.expected.since/index.xml,
Test/en.expected.since/Mono.DocTest.Generic/GenericBase`1+NestedCollection+Enumerator.xml,
Test/en.expected.since/Mono.DocTest.Generic/GenericBase`1+NestedCollection.xml,
Test/en.expected/index.xml,
Test/en.expected/Mono.DocTest.Generic/GenericBase`1+NestedCollection+Enumerator.xml,
Test/en.expected/Mono.DocTest.Generic/GenericBase`1+NestedCollection.xml,
Test/html.expected/index.html,
Test/html.expected/Mono.DocTest.Generic/GenericBase`1+NestedCollection+Enumerator.html,
Test/html.expected/Mono.DocTest.Generic/GenericBase`1+NestedCollection.html,
Test/html.expected/Mono.DocTest.Generic/index.html,
Test/msxdoc-expected.importslashdoc.xml: Flush (new types/changes
from DocTest-v1.cs changes).
svn path=/trunk/mcs/; revision=118948
Zoltan Varga [Sun, 16 Nov 2008 00:06:00 +0000 (00:06 -0000)]
2008-11-16 Zoltan Varga <vargaz@gmail.com>
* aot-compiler.c aot-runtime.c: Emit most of the non-table data in a structure
to simplify the code and cut back on the number of global symbols in the AOT
file.
svn path=/trunk/mono/; revision=118947
Zoltan Varga [Sat, 15 Nov 2008 23:24:23 +0000 (23:24 -0000)]
2008-11-16 Zoltan Varga <vargaz@gmail.com>
* aot-compiler.c aot-runtime.c: Get rid of the unused plt_jump_table.
svn path=/trunk/mono/; revision=118946
Zoltan Varga [Sat, 15 Nov 2008 22:54:49 +0000 (22:54 -0000)]
2008-11-15 Zoltan Varga <vargaz@gmail.com>
* aot-runtime.c aot-compiler.c: Unify the plt_jump_table/plt_info tables
with the got/got_info tables.
* mini.h: Bump AOT file format version.
svn path=/trunk/mono/; revision=118945
Zoltan Varga [Sat, 15 Nov 2008 20:36:23 +0000 (20:36 -0000)]
2008-11-15 Zoltan Varga <vargaz@gmail.com>
* unwind.h: New file, contains definitions for stack unwinding.
* mini.c (mono_emit_unwind_op): New helper function to append an unwind op
to cfg->unwind_ops.
* aot-compiler.c: Generalize the emitting of unwind information to use the
information in cfg->unwind_ops.
* mini-amd64.c (mono_arch_emit_prolog): Emit unwind info.
svn path=/trunk/mono/; revision=118943
Zoltan Varga [Sat, 15 Nov 2008 20:36:11 +0000 (20:36 -0000)]
2008-11-15 Zoltan Varga <vargaz@gmail.com>
* unwind.h: New file, contains definitions for stack unwinding.
* mini.c (mono_emit_unwind_op): New helper function to append an unwind op
to cfg->unwind_ops.
* aot-compiler.c: Generalize the emitting of unwind information to use the
information in cfg->unwind_ops.
* mini-amd64.c (mono_arch_emit_prolog): Emit unwind info.
svn path=/trunk/mono/; revision=118942
Zoltan Varga [Sat, 15 Nov 2008 20:35:59 +0000 (20:35 -0000)]
2008-11-15 Zoltan Varga <vargaz@gmail.com>
* unwind.h: New file, contains definitions for stack unwinding.
* mini.c (mono_emit_unwind_op): New helper function to append an unwind op
to cfg->unwind_ops.
* aot-compiler.c: Generalize the emitting of unwind information to use the
information in cfg->unwind_ops.
* mini-amd64.c (mono_arch_emit_prolog): Emit unwind info.
svn path=/trunk/mono/; revision=118941
Kornél Pál [Sat, 15 Nov 2008 18:53:24 +0000 (18:53 -0000)]
Convert.cs: Removed useless check from ToChar (ushort).
svn path=/trunk/mcs/; revision=118940
Gonzalo Paniagua Javier [Sat, 15 Nov 2008 18:12:19 +0000 (18:12 -0000)]
2008-11-15 Gonzalo Paniagua Javier <gonzalo@novell.com>
* ConfigurationManager.cs: the config file name is arbitrary.
(Standalone test t46)
svn path=/trunk/mcs/; revision=118939
Gonzalo Paniagua Javier [Sat, 15 Nov 2008 18:03:36 +0000 (18:03 -0000)]
typo
svn path=/trunk/mcs/; revision=118938
Zoltan Varga [Sat, 15 Nov 2008 17:19:49 +0000 (17:19 -0000)]
Remove a debug printf.
svn path=/trunk/mono/; revision=118937
Zoltan Varga [Sat, 15 Nov 2008 17:19:08 +0000 (17:19 -0000)]
2008-11-15 Zoltan Varga <vargaz@gmail.com>
* aot-compiler.c: Emit dwarf unwind information so gdb can unwind through
AOT method frames. Enable writing symbols for methods by default.
svn path=/trunk/mono/; revision=118936
Paolo Molaro [Sat, 15 Nov 2008 14:03:15 +0000 (14:03 -0000)]
Build fix.
svn path=/trunk/mono/; revision=118928
Gert Driesen [Sat, 15 Nov 2008 13:41:35 +0000 (13:41 -0000)]
* SettingPropertyValue.cs: Do not return null for zero-length String
value.
svn path=/trunk/mcs/; revision=118927
Andreas Färber [Sat, 15 Nov 2008 10:59:47 +0000 (10:59 -0000)]
2008-11-15 Andreas Faerber <andreas.faerber@web.de>
* ppc/test.c: Add support for Mac OS X.
This commit is licensed under the MIT X11 license.
svn path=/trunk/mono/; revision=118924
Marek Habersack [Sat, 15 Nov 2008 04:00:05 +0000 (04:00 -0000)]
2008-11-15 Marek Habersack <mhabersack@novell.com>
* System.Web.Extensions.dll.sources: added
System.Web.UI.WebControls/DataPagerCommandEventArgs.cs
2008-11-15 Marek Habersack <mhabersack@novell.com>
* ListViewInsertEventArgs.cs: implemented the Values property.
* ListView.cs: CreateChildControls uses the Items collection to
store the created items.
InsertNewItem triggers page validation if necessary.
Part of InsertNewItem code refactored to DoInsert.
Implemented handling of the Insert and Select commands.
* TemplatePagerField.cs: implemented all the code.
* DataPager.cs: CreatePagerFields now adds the new pager field
control before creating data pagers in it and before binding to
data. This avoids situation in which the field is parentless.
FindPageableItemContainer now properly finds the container if it's
placed directly in the Page.
{Load,Save}ViewState don't use a Pair anymore, object array is
used for compatibility with MS.NET
* NumericPagerField.cs, NextPreviousPagerField.cs,
DataPagerFieldCommandEventArgs.cs: minor refactoring
* ListViewSelectEventArgs.cs: implemented all the code.
* ListViewInsertedEventArgs.cs: Values allocates the dictionary on
demand now.
Initialize all the properties in constructor
* DataPagerCommandEventArgs.cs: added
* DataPagerField.cs: implemented IsTrackingViewState
* DataPagerFieldItem.cs: implements the INonBindingContainer
interface.
svn path=/trunk/mcs/; revision=118918
Marek Habersack [Sat, 15 Nov 2008 03:40:24 +0000 (03:40 -0000)]
2008-11-15 Marek Habersack <mhabersack@novell.com>
* ContentPlaceHolder.cs, Content.cs, FormViewPagerRow.cs,
ChangePassword.cs, DetailsViewPagerRow.cs: implements
INonBindingContainer interface.
* Wizard.cs: implement INonBindingContainer interface for several
private/internal classes.
2008-11-15 Marek Habersack <mhabersack@novell.com>
* INonBindingContainer.cs: added
* Control.cs: BindingContainer now checks if a control implements
INonBindingContainer interface in addition to the
BINDING_CONTAINER mask check.
* UserControl.cs: implements INonBindingContainer
* ControlBuilder.cs: use the new INonBindingContainer interface to
determine the binding container type in the BindingContainerType
property. If TemplateBuilder's ContainerType implements that
interface, the NamingContainer is queried for the binding
container type. If ContainerType is null, we return our own
ControlType (if we're TemplateBuilder)
2008-11-15 Marek Habersack <mhabersack@novell.com>
* System.Web.dll.sources: added System.Web.UI/INonBindingContainer.cs
svn path=/trunk/mcs/; revision=118917
Jonathan Pryor [Sat, 15 Nov 2008 00:00:02 +0000 (00:00 -0000)]
* Makefile: Use Mono.Cecil from class/lib/net_1_1, not net_2_0.
svn path=/trunk/mcs/; revision=118903
Jb Evain [Fri, 14 Nov 2008 23:41:59 +0000 (23:41 -0000)]
use a the proper profile where cecil is built
svn path=/trunk/mcs/; revision=118901
Rodrigo Kumpera [Fri, 14 Nov 2008 23:17:18 +0000 (23:17 -0000)]
2008-11-14 Rodrigo Kumpera <rkumpera@novell.com>
* simd-intrinsics.c (simd_intrinsic_emit_getter): Generalize this code
and make it work with vectors of element sizes 1, 2 and 4.
* simd-intrinsics.c: Enable getter for all vectors with element size
1, 2 or 4.
* simd-methods.h: Add the names of other getters.
* mini-ops.h: Added OP_EXTRACT_I2/U2/I1/U1.
* cpu-x86.md: Same.
* mini-x86.c: Same.
svn path=/trunk/mono/; revision=118899
Jonathan Pryor [Fri, 14 Nov 2008 21:24:54 +0000 (21:24 -0000)]
* Makefile: Don't build monodocer1.exe, and add Mono.Cecil.dll to the
list of assembly references for mdoc.exe.
* Mono.Documentation/monodocer.cs: Migrate from System.Reflection to
Mono.Cecil. This was done for two reasons:
1. mscorlib.dll: Reflection can load only one mscorlib.dll into an
AppDomain, which must be the same mscorlib.dll as the runtime
version. Thus, in order to run monodocer on mscorlib.dll v1.1,
monodocer must be a .NET 1.1 application, and to document
mscorlib.dll v2.0, monodocer must be a .net 2.0 app.
1.a I don't think it's feasable to drop support for
mscorlib.dll v1.1.
1.b This has been previously handled (so far) with conditional
compilation, but the conditional compilation is painful to
maintain, and prevents use of LINQ in ongoing development.
1.c .NET 4.0 will be coming out "soon" (within 2 years?), and it's
possible that mono will maintain the same limitation, thus
necessitating having *three* different monodocer programs to
document mscorlib.dll for v1.1, v2.0, and v4.0. Yech.
2. Future directions: It would be nice to parse method/property IL
bodies to determine which exceptions can be generated, thus
generating <exception cref="..."/> stubs. Even with empty stubs,
I belive this would be useful within e.g. MonoDevelop to know
which exceptions a method is able to generate.
This cannot be done (at present) with System.Reflection, and
would require Mono.Cecil.
Downsides: mdoc now depends upon Mono.Cecil, which is API-unstable.
This will likely also complicate execution under .NET, as Mono.Cecil
would need to be XCOPY deployed into mdoc.exe's directory.
* Test/DocTest-v1.cs: Add additional tests for Custom Attribute
generation.
* Test/en.expected.importslashdoc/Mono.DocTest.Generic/Func`2.xml,
Test/en.expected.importslashdoc/Mono.DocTest.Generic/MyList`2.xml,
Test/en.expected.importslashdoc/Mono.DocTest/DocAttribute.xml,
Test/en.expected.importslashdoc/Mono.DocTest/Widget+Direction.xml,
Test/en.expected.importslashdoc/Mono.DocTest/Widget.xml,
Test/en.expected.since/Mono.DocTest.Generic/Func`2.xml,
Test/en.expected.since/Mono.DocTest.Generic/MyList`2.xml,
Test/en.expected.since/Mono.DocTest/DocAttribute.xml,
Test/en.expected.since/Mono.DocTest/Widget+Direction.xml,
Test/en.expected.since/Mono.DocTest/Widget.xml,
Test/en.expected/Mono.DocTest.Generic/Func`2.xml,
Test/en.expected/Mono.DocTest.Generic/MyList`2.xml,
Test/en.expected/Mono.DocTest/DocAttribute.xml,
Test/en.expected/Mono.DocTest/Widget+Direction.xml,
Test/en.expected/Mono.DocTest/Widget.xml,
Test/html.expected/Mono.DocTest.Generic/Func`2.html,
Test/html.expected/Mono.DocTest.Generic/MyList`2.html,
Test/html.expected/Mono.DocTest/DocAttribute.html,
Test/html.expected/Mono.DocTest/Widget+Direction.html,
Test/html.expected/Mono.DocTest/Widget.html,
Test/msxdoc-expected.importslashdoc.xml: Flush -- updated output due
to new custom attributes, better implemented interface detection --
care of the Mono.Cecil migration -- etc.
svn path=/trunk/mcs/; revision=118892
Zoltan Varga [Fri, 14 Nov 2008 21:12:50 +0000 (21:12 -0000)]
Turn off AOT on the 2.0 profile as it causes hangs in System tests.
svn path=/trunk/mcs/; revision=118890
Zoltan Varga [Fri, 14 Nov 2008 19:07:19 +0000 (19:07 -0000)]
2008-11-14 Zoltan Varga <vargaz@gmail.com>
* domain-internals.h (MonoDomain): Update MONO_DOMAIN_LAST_GC_TRACKED.
svn path=/trunk/mono/; revision=118880
Zoltan Varga [Fri, 14 Nov 2008 18:54:47 +0000 (18:54 -0000)]
2008-11-14 Zoltan Varga <vargaz@gmail.com>
* reflection.c (mono_type_get_object): Special case the very common
void type.
* domain-internals.h (struct _MonoDomain): Add 'typeof_void' field to
hold typeof(void).
svn path=/trunk/mono/; revision=118879
Gonzalo Paniagua Javier [Fri, 14 Nov 2008 18:51:42 +0000 (18:51 -0000)]
2008-11-14 Gonzalo Paniagua Javier <gonzalo@novell.com>
* cache.cs:
* Regex.cs: honor CacheSize value.
svn path=/trunk/mcs/; revision=118878
Jb Evain [Fri, 14 Nov 2008 17:05:50 +0000 (17:05 -0000)]
2008-11-14 Jb Evain <jbevain@novell.com>
* driver.cs: ignore empty -nowarn argument such as
the one in -nowarn:12,13,,.
svn path=/trunk/mcs/; revision=118873
Andreas Färber [Fri, 14 Nov 2008 16:27:37 +0000 (16:27 -0000)]
2008-11-14 Andreas Faerber <andreas.faerber@web.de>
* Makefile.am (ENABLE_DTRACE): Re-add dtrace -h flag.
Fixes #445074.
This commit is licensed under the MIT X11 license.
svn path=/trunk/mono/; revision=118867