Gert Driesen [Sun, 27 Jan 2008 19:05:48 +0000 (19:05 -0000)]
* ResXResourceReaderTest.cs: Added Mono-only ctor tests. Fixed
and improved UseResXDataNodes test. Improved GetMetadataEnumerator
test.
* WriterTest.cs: Added Mono-only ctor tests.
* ResXFileRefTest.cs: Conversion to MemoryStream is only supported on
2.0 profile.
* ResXDataNodeTest.cs: Fixed line endings.
svn path=/trunk/mcs/; revision=94074
Gert Driesen [Sun, 27 Jan 2008 19:05:30 +0000 (19:05 -0000)]
* ResXResourceReader.cs: Avoid unnecessary initialization of
useResXDataNodes field. Modified argument names to match MS. When
UseResXDataNodes is true, then never use the metadata hashtable.
* ResXFileRef.cs: Only support convert from fileref to MemoryStream
on 2.0 profile.
* ResXResourceWriter.cs: Modified argument names to match MS.
* ResXDataNode: Fixed line endings.
svn path=/trunk/mcs/; revision=94073
Jb Evain [Sun, 27 Jan 2008 18:16:19 +0000 (18:16 -0000)]
remove useless field
svn path=/trunk/mcs/; revision=94068
Jb Evain [Sun, 27 Jan 2008 18:15:42 +0000 (18:15 -0000)]
2008-01-27 Jb Evain <jbevain@novell.com>
* LambdaExpression.cs: fix the Type of the LambdaExpressions.
svn path=/trunk/mcs/; revision=94067
Jb Evain [Sun, 27 Jan 2008 18:15:01 +0000 (18:15 -0000)]
2008-01-27 Jb Evain <jbevain@novell.com>
* ExpressionTest_Lambda.cs: add tests to assert the type
of the LambdaExpressions.
svn path=/trunk/mcs/; revision=94066
Zoltan Varga [Sun, 27 Jan 2008 18:10:24 +0000 (18:10 -0000)]
2008-01-27 Zoltan Varga <vargaz@gmail.com>
* mini-exceptions.c (mono_handle_exception_internal): Remove the old style
altstack handling code.
svn path=/trunk/mono/; revision=94065
Jb Evain [Sun, 27 Jan 2008 17:57:00 +0000 (17:57 -0000)]
simplify
svn path=/trunk/mcs/; revision=94062
Jb Evain [Sun, 27 Jan 2008 17:50:56 +0000 (17:50 -0000)]
make fields private
svn path=/trunk/mcs/; revision=94060
Zoltan Varga [Sun, 27 Jan 2008 17:31:06 +0000 (17:31 -0000)]
2008-01-27 Zoltan Varga <vargaz@gmail.com>
* mini-s390.c (mono_arch_emit_exceptions): Really fix a warning.
svn path=/trunk/mono/; revision=94059
Zoltan Varga [Sun, 27 Jan 2008 17:28:08 +0000 (17:28 -0000)]
2008-01-27 Zoltan Varga <vargaz@gmail.com>
* mini-s390.c: Add support for generic sharing.
svn path=/trunk/mono/; revision=94058
Andreia Gaita [Sun, 27 Jan 2008 17:25:20 +0000 (17:25 -0000)]
* PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
detecting that the dropdown toolwindow is hidden. EndLoop outside the
while.
2008-01-27 Andreia Gaita <avidigal@novell.com>
svn path=/trunk/mcs/; revision=94057
Zoltan Varga [Sun, 27 Jan 2008 17:25:11 +0000 (17:25 -0000)]
2008-01-27 Zoltan Varga <vargaz@gmail.com>
* mini-exceptions.c (ves_icall_System_Security_SecurityFrame_GetSecurityFrame):
Fix CAS on s390.
(ves_icall_System_Security_SecurityFrame_GetSecurityStack): Ditto.
* mini-s390x.c (mono_arch_emit_exceptions): Fix a warning.
* mini-s390x.c: Add support for generic sharing.
svn path=/trunk/mono/; revision=94056
Gert Driesen [Sun, 27 Jan 2008 16:06:24 +0000 (16:06 -0000)]
* CSharpCodeGenerator.cs: Avoid ArgumentNullException when
CodeDelegateInvokeExpression.TargetObject is null.
* VBCodeGenerator.cs: In GenerateDelegateInvokeExpression, only emit
RaiseEvent statement on 2.0 profile if TargetObject is a
CodeEventReferenceExpression. Spaces to tabs and code formatting.
* CodeGenerator.cs: Fixed ArgumentException argument names. Indent
expression list.
* CodeGeneratorFromExpressionTest.cs: Copied some tests from VB, and
improved existing tests.
* CodeGeneratorFromExpressionTest.cs: Numbered tests. Fixed test for
DelegateInvokeExpression to pass on MS 2.0 and improved coverage.
svn path=/trunk/mcs/; revision=94055
Gert Driesen [Sun, 27 Jan 2008 15:20:02 +0000 (15:20 -0000)]
* IPAddress.cs (Parse): Changed argument name to match MS.
(TryParse): Changed argument name to match MS.
(ParseIPV4): Only treat zero-length or " " address as empty on 1.0
profile. On 2.0 profile, only ignore characters after blank if last
part is valid hex string.
* IPv6Address.cs: Removed extra spaces and tabs.
* IPAddressTest.cs: Remove use of deprecated Assertion. Improved
existing tests.
svn path=/trunk/mcs/; revision=94052
Zoltan Varga [Sun, 27 Jan 2008 13:49:02 +0000 (13:49 -0000)]
2008-01-27 Zoltan Varga <vargaz@gmail.com>
* mini-exceptions.c (ves_icall_System_Security_SecurityFrame_GetSecurityFrame):
Fix CAS on ia64.
(ves_icall_System_Security_SecurityFrame_GetSecurityStack): Ditto.
svn path=/trunk/mono/; revision=94047
Zoltan Varga [Sun, 27 Jan 2008 13:29:41 +0000 (13:29 -0000)]
2008-01-27 Zoltan Varga <vargaz@gmail.com>
* mini-s390x.c: Use is_imm16 instead of is_uimm16 when checking whenever s390_aghi
can be used since it takes a 16 bit signed immediate.
svn path=/trunk/mono/; revision=94046
Zoltan Varga [Sun, 27 Jan 2008 13:20:48 +0000 (13:20 -0000)]
2008-01-27 Zoltan Varga <vargaz@gmail.com>
* inssel-s390x.brg: Fix OP_SETRET.
* mini-s390x.c (mono_arch_output_basic_block): Fix OP_BREAK.
* mini-codegen.c (mono_opcode_to_cond): Fix a warning.
svn path=/trunk/mono/; revision=94045
Igor Zelmanovich [Sun, 27 Jan 2008 12:24:31 +0000 (12:24 -0000)]
added TARGET_JVM ifdefs
svn path=/trunk/mcs/; revision=94044
Igor Zelmanovich [Sun, 27 Jan 2008 10:01:02 +0000 (10:01 -0000)]
2008-01-27 Igor Zelmanovich <igorz@mainsoft.com>
* HttpResponse.cs: rise PreSendRequestHeaders befire headers_sent
initialization to allow set additional headers or status code at
PreSendRequestHeaders event handlers.
svn path=/trunk/mcs/; revision=94042
Olivier Dufour [Sun, 27 Jan 2008 08:26:00 +0000 (08:26 -0000)]
2008-01-27 Olivier Dufour <olivier.duff@gmail.com>
* Expression.cs, InvocationExpession.cs,
ListInitExpression.cs, MemberInitExpression.cs
NewExpression.cs : Add all missing
constructor in Expressions and remove the base one
svn path=/trunk/mcs/; revision=94036
Zoltan Varga [Sun, 27 Jan 2008 00:27:06 +0000 (00:27 -0000)]
2008-01-27 Zoltan Varga <vargaz@gmail.com>
* reflection.c (reflection_methodbuilder_to_mono_method): Allow DynamicMethods
which belong to an inflated class. Fixes #356531.
svn path=/trunk/mono/; revision=94035
Zoltan Varga [Sat, 26 Jan 2008 23:45:03 +0000 (23:45 -0000)]
Fix a typo.
svn path=/trunk/mono/; revision=94034
Zoltan Varga [Sat, 26 Jan 2008 23:44:22 +0000 (23:44 -0000)]
2008-01-27 Zoltan Varga <vargaz@gmail.com>
* mini-s390x.c cpu-s390x.md: Implement sext.i4 properly by sign extension.
svn path=/trunk/mono/; revision=94033
Zoltan Varga [Sat, 26 Jan 2008 22:45:20 +0000 (22:45 -0000)]
2008-01-27 Zoltan Varga <vargaz@gmail.com>
* mini.c (mono_create_delegate_trampoline): Don't use mono_create_ftpntr here.
* mini-trampolines.c (mono_delegate_trampoline): Use mono_get_addr_froM_ftnptr
in one place.
* mini-ia64.h mini-ia64.c: Add minimal support for the delegate trampoline
stuff.
svn path=/trunk/mono/; revision=94032
Gert Driesen [Sat, 26 Jan 2008 22:10:40 +0000 (22:10 -0000)]
* System.Windows.Forms.dll.sources: Moved PropertiesTab.cs from
System.Windows.Forms to System.Windows.Forms.PropertyGridInternal.
svn path=/trunk/mcs/; revision=94031
Zoltan Varga [Sat, 26 Jan 2008 22:06:52 +0000 (22:06 -0000)]
2008-01-27 Zoltan Varga <vargaz@gmail.com>
* mini.h inssel-x86.brg inssel-amd64.brg tramp-alpha.c tramp-ia64.c: Get rid
of the unused mono_arch_patch_delegate_trampoline stuff.
svn path=/trunk/mono/; revision=94030
Gert Driesen [Sat, 26 Jan 2008 22:03:52 +0000 (22:03 -0000)]
* PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
MS. Code formatting.
svn path=/trunk/mcs/; revision=94029
Zoltan Varga [Sat, 26 Jan 2008 21:55:39 +0000 (21:55 -0000)]
2008-01-26 Zoltan Varga <vargaz@gmail.com>
* basic-long.cs: Move the fp related tests to basic-float.cs.
svn path=/trunk/mono/; revision=94028
Zoltan Varga [Sat, 26 Jan 2008 21:47:09 +0000 (21:47 -0000)]
2008-01-26 Zoltan Varga <vargaz@gmail.com>
* basic-long.cs: Move the fp related tests to basic-float.cs.
* mini-ops.h (OP_OUTARG_FREG_R4): New opcode.
* mini-ia64.c inssel-ia64.brg: Implement proper R4 argument passing.
svn path=/trunk/mono/; revision=94027
Zoltan Varga [Sat, 26 Jan 2008 21:46:05 +0000 (21:46 -0000)]
2008-01-26 Zoltan Varga <vargaz@gmail.com>
* docs/mini-porting.txt: Add some info about the order the JIT regression
tests should be run.
svn path=/trunk/mono/; revision=94026
Zoltan Varga [Sat, 26 Jan 2008 21:27:20 +0000 (21:27 -0000)]
2008-01-26 Zoltan Varga <vargaz@gmail.com>
* basic-calls.cs: Add a test for proper float argument passing.
svn path=/trunk/mono/; revision=94025
Gert Driesen [Sat, 26 Jan 2008 21:22:54 +0000 (21:22 -0000)]
* System.Windows.Forms_test.dll.sources: Added ImageListStreamerTest.cs.
* ImageListStreamerTest.cs: Added binary (de)serialization tests.
svn path=/trunk/mcs/; revision=94024
Daniel Nauck [Sat, 26 Jan 2008 21:14:20 +0000 (21:14 -0000)]
2008-01-26 Daniel Nauck <dna@mono-project.de>
* HttpWebRequest.cs: fixed typo. Use the actual uri for correct
cookie header informations and not the originally one.
svn path=/trunk/mcs/; revision=94023
Carlos Alberto Cortez [Sat, 26 Jan 2008 20:38:44 +0000 (20:38 -0000)]
* BindingTest.cs: Add DataSourceNullTest test - for #324286.
2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
svn path=/trunk/mcs/; revision=94022
Carlos Alberto Cortez [Sat, 26 Jan 2008 20:36:25 +0000 (20:36 -0000)]
* Binding.cs: Don't avoid the Format event if the control
property type is object. Also, if the value retrieved by
the data source is null _and_ the control proeprty type
is object, return Convert.DBNull (match .Net).
Fixes part of #324286.
2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
svn path=/trunk/mcs/; revision=94021
Zoltan Varga [Sat, 26 Jan 2008 20:10:03 +0000 (20:10 -0000)]
2008-01-26 Zoltan Varga <vargaz@gmail.com>
* mini-ia64.h (mono_ia64_context_get_ip): Do not substract 1 from the ip
if the context corresponds to an exception received through a signal.
svn path=/trunk/mono/; revision=94020
Zoltan Varga [Sat, 26 Jan 2008 20:02:33 +0000 (20:02 -0000)]
2008-01-26 Zoltan Varga <vargaz@gmail.com>
* nonvirt.cs: Removed, moved to mini/exceptions.cs.
svn path=/trunk/mono/; revision=94018
Zoltan Varga [Sat, 26 Jan 2008 20:01:01 +0000 (20:01 -0000)]
2008-01-26 Zoltan Varga <vargaz@gmail.com>
* exceptions.cs: Add a test for nullref handling at the start of a try
clause.
svn path=/trunk/mono/; revision=94017
Gert Driesen [Sat, 26 Jan 2008 19:53:48 +0000 (19:53 -0000)]
* ResourceWriter.cs: On 2.0 profile, do not mistakenly identify an
enum as a predefined type. Fixes bug #325223.
* ResourceWriterTest.cs: Enabled test for writing enum value on 2.0
profile.
svn path=/trunk/mcs/; revision=94016
Zoltan Varga [Sat, 26 Jan 2008 19:45:37 +0000 (19:45 -0000)]
2008-01-26 Zoltan Varga <vargaz@gmail.com>
* mini-ia64.c (mono_arch_call_opcode): Fix ia64 argument passing.
svn path=/trunk/mono/; revision=94015
Daniel Nauck [Sat, 26 Jan 2008 19:14:27 +0000 (19:14 -0000)]
2008-01-26 Daniel Nauck <dna@mono-project.de>
* scripts/mono-service.in: fix compability with the dash shell,
it doesn't like the use of >& without a file descriptor
svn path=/trunk/mono/; revision=94014
Daniel Nauck [Sat, 26 Jan 2008 19:05:46 +0000 (19:05 -0000)]
2008-01-26 Daniel Nauck <dna@mono-project.de>
* Cookie.cs: set Version to '1' if Port is set,
don't include path and domain informations when version is 0,
match ToString () output with .NET 2.0,
fixes bug #316017
* CookieTest.cs: enabled ToString () test,
added Version property test
svn path=/trunk/mcs/; revision=94013
Zoltan Varga [Sat, 26 Jan 2008 18:28:17 +0000 (18:28 -0000)]
2008-01-26 Zoltan Varga <vargaz@gmail.com>
* jit-icalls.c (mono_break): New JIT icall.
* mini-<ARCH>.c: Use mono_break instead of mono_arch_break.
svn path=/trunk/mono/; revision=94006
Daniel Nauck [Sat, 26 Jan 2008 15:54:20 +0000 (15:54 -0000)]
2008-01-26 Daniel Nauck <dna@mono-project.de>
* CookieTest.cs: added tests for Cookie.ToString (), see bug #316017,
fixed line endings
svn path=/trunk/mcs/; revision=93993
Robert Jordan [Sat, 26 Jan 2008 14:02:42 +0000 (14:02 -0000)]
2008-01-26 Robert Jordan <robertj@gmx.net>
* file-io.c: Implement and use wrappers for GetFileAttribute|Ex ()
which resort to FindFirstFile when a certain error condition
(ERROR_SHARING_VIOLATION) occured. Fixes bug #325212.
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=93987
Robert Jordan [Sat, 26 Jan 2008 13:42:01 +0000 (13:42 -0000)]
In Test/System:
2008-01-23 Robert Jordan <robertj@gmx.net>
* UriTest3.cs: Add tests for bug #346432.
In System:
2008-01-23 Robert Jordan <robertj@gmx.net>
* Uri.cs (Parse): Handle uriString.Length == 1 as a valid relative URI.
Fixes #346432.
svn path=/trunk/mcs/; revision=93984
Atsushi Eno [Sat, 26 Jan 2008 10:01:07 +0000 (10:01 -0000)]
2008-01-26 Atsushi Enomoto <atsushi@ximian.com>
* XNodeReader.cs : fixed GetAttribute() that wrongly resulted in
returning "" instead of null. Fixed bug #335975.
* XNodeReaderTest.cs : test for bug #335975.
svn path=/trunk/mcs/; revision=93981
Carlos Alberto Cortez [Sat, 26 Jan 2008 08:11:42 +0000 (08:11 -0000)]
2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListControlTest.cs: Add SelectedValue2 test - for #324286.
svn path=/trunk/mcs/; revision=93979
Carlos Alberto Cortez [Sat, 26 Jan 2008 08:08:56 +0000 (08:08 -0000)]
2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListControl.cs: Since we are getting two BinginContextChanged events
for the same binding context instance (when the control is added to
form, and when the form is actually shown), take it into account only the
first time for a given binding context instance.
Fixes part of #324286.
svn path=/trunk/mcs/; revision=93978
Zoltan Varga [Sat, 26 Jan 2008 02:49:26 +0000 (02:49 -0000)]
2008-01-26 Zoltan Varga <vargaz@gmail.com>
* mini-arm.c (arm_patch): Add support for patching the blx calling sequence.
svn path=/trunk/mono/; revision=93972
Ivan Zlatev [Sat, 26 Jan 2008 02:00:52 +0000 (02:00 -0000)]
2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
* PropertryGridView.cs: Ops.
svn path=/trunk/mcs/; revision=93971
Ivan Zlatev [Sat, 26 Jan 2008 01:34:18 +0000 (01:34 -0000)]
2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
* PropertyGridView.cs: Close dropdown form if the owner form is
moved or minimized.
[Fixes bug #322446]
svn path=/trunk/mcs/; revision=93970
Ivan Zlatev [Fri, 25 Jan 2008 21:08:52 +0000 (21:08 -0000)]
2008-01-25 Ivan N. Zlatev <contact@i-nz.net>
* PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs,
RootGridEntry.cs, CategoryGridEntry.cs:
PropertyGrid rewrite.
- Rewrite all of the control logic in PropertyGrid.
- Rewrite all of the ComponentModel logic in GridEntry.
- Rewrite all UI work in PropertyGridView.
- Many bugfixes, etc.
svn path=/trunk/mcs/; revision=93961
Gert Driesen [Fri, 25 Jan 2008 20:41:57 +0000 (20:41 -0000)]
* ActivationTests.cs: Only stop server if it was actually created.
* RemotingServicesTest.cs: Always/only unregister channels if they were
actually created. More code formatting.
svn path=/trunk/mcs/; revision=93959
Gert Driesen [Fri, 25 Jan 2008 20:22:12 +0000 (20:22 -0000)]
* System.Runtime.Remoting_test.dll.sources: add TcpChannelTest.cs.
* RemotingServicesTest.cs: Do not hide exception that occur when
unregistering a channel. Code formatting and removed extra tabs.
* TcpChannelTest.cs: Added simple ctor test that covers bug #355905.
* System.Runtime.Remoting_test.dll.sources: add TcpChannelTest.cs.
svn path=/trunk/mcs/; revision=93956
Zoltan Varga [Fri, 25 Jan 2008 19:38:31 +0000 (19:38 -0000)]
2008-01-25 Zoltan Varga <vargaz@gmail.com>
* TcpChannel.cs (Init): Handle properties == null.
* TcpClientChannel.cs (.ctor): Ditto. Fixes #355905.
svn path=/trunk/mcs/; revision=93953
Zoltan Varga [Fri, 25 Jan 2008 19:07:10 +0000 (19:07 -0000)]
2008-01-25 Zoltan Varga <vargaz@gmail.com>
* cpu-*.md: Get rid of unused opcodes.
svn path=/trunk/mono/; revision=93950
Zoltan Varga [Fri, 25 Jan 2008 18:51:40 +0000 (18:51 -0000)]
2008-01-25 Zoltan Varga <vargaz@gmail.com>
* TypeBuilder.cs (GenerateDebugInfo): Emit debug info for nested types as well.
Fixes #356316.
svn path=/trunk/mcs/; revision=93944
Marek Safar [Fri, 25 Jan 2008 18:15:21 +0000 (18:15 -0000)]
2008-01-25 Marek Safar <marek.safar@gmail.com>
* report.cs: Correctly reset warnings count after probing.
svn path=/trunk/mcs/; revision=93937
Zoltan Varga [Fri, 25 Jan 2008 18:07:07 +0000 (18:07 -0000)]
2008-01-25 Zoltan Varga <vargaz@gmail.com>
* cpu-g4.md: Rename this to cpu-ppc.md for consistency with other archs.
svn path=/trunk/mono/; revision=93934
Martin Baulig [Fri, 25 Jan 2008 17:47:40 +0000 (17:47 -0000)]
2008-01-25 Martin Baulig <martin@ximian.com>
* namespace.cs
(NamespaceEntry.SymbolFileID): Make this work again after
MemberName.ToString() is gone.
svn path=/trunk/mcs/; revision=93930
Zoltan Varga [Fri, 25 Jan 2008 17:41:09 +0000 (17:41 -0000)]
2008-01-25 Zoltan Varga <vargaz@gmail.com>
* Makefile.am: Move mini-trampolines.c to $(common_sources) since it is now used
by all platforms.
* mini-<ARCH>.h mini.c: Get rid of the MONO_ARCH_HAVE_CREATE_SPECIFIC_TRAMPOLINE
define.
svn path=/trunk/mono/; revision=93929
Zoltan Varga [Fri, 25 Jan 2008 17:31:33 +0000 (17:31 -0000)]
2008-01-25 Zoltan Varga <vargaz@gmail.com>
* mini-s390x.h tramp-s390x.c Makefile.am: Rework the s390x trampoline code to use
the arch independent trampoline code in mini-trampolines.c.
svn path=/trunk/mono/; revision=93928
Marek Safar [Fri, 25 Jan 2008 17:22:19 +0000 (17:22 -0000)]
New tests.
svn path=/trunk/mcs/; revision=93927
Marek Safar [Fri, 25 Jan 2008 17:21:36 +0000 (17:21 -0000)]
2008-01-25 Marek Safar <marek.safar@gmail.com>
* expression.cs: Implemented Divide, Equal, ExclusiveOr, GreaterThanOrEqual
expressions.
svn path=/trunk/mcs/; revision=93926
Zoltan Varga [Fri, 25 Jan 2008 16:12:06 +0000 (16:12 -0000)]
2008-01-25 Zoltan Varga <vargaz@gmail.com>
* aot-runtime.c (mono_aot_init_vtable): Fix a warning.
svn path=/trunk/mono/; revision=93919
Zoltan Varga [Fri, 25 Jan 2008 16:08:57 +0000 (16:08 -0000)]
2008-01-25 Zoltan Varga <vargaz@gmail.com>
* mini.c (get_runtime_generic_context_ptr): Fix a warning.
svn path=/trunk/mono/; revision=93917
Rodrigo Kumpera [Fri, 25 Jan 2008 15:40:23 +0000 (15:40 -0000)]
2008-01-25 Rodrigo Kumpera <rkumpera@novell.com>
* MonoType.cs (InvokeMember): Fixed exceptions arguments for last comit.
svn path=/trunk/mcs/; revision=93910
Zoltan Varga [Fri, 25 Jan 2008 15:38:54 +0000 (15:38 -0000)]
2008-01-25 Zoltan Varga <vargaz@gmail.com>
* mini-s390.h: Remove an unused define.
svn path=/trunk/mono/; revision=93909
Jb Evain [Fri, 25 Jan 2008 15:23:00 +0000 (15:23 -0000)]
we pass Bind
svn path=/trunk/mcs/; revision=93908
Jb Evain [Fri, 25 Jan 2008 15:22:44 +0000 (15:22 -0000)]
2008-01-25 Jb Evain <jbevain@novell.com>
* Expression.cs, ExpressionPrinter.cs: implement Bind.
svn path=/trunk/mcs/; revision=93907
Jb Evain [Fri, 25 Jan 2008 15:22:23 +0000 (15:22 -0000)]
2008-01-25 Jb Evain <jbevain@novell.com>
* MemberMemberBinding.cs, MemberListBinding.cs,
MemberAssignment.cs, MemberBinding.cs:
add constructors.
svn path=/trunk/mcs/; revision=93906
Zoltan Varga [Fri, 25 Jan 2008 14:58:49 +0000 (14:58 -0000)]
2008-01-25 Zoltan Varga <vargaz@gmail.com>
* mini-s390.h tramp-s390.c Makefile.am: Rework the s390 trampoline code to use
the arch independent trampoline code in mini-trampolines.c.
svn path=/trunk/mono/; revision=93903
Jb Evain [Fri, 25 Jan 2008 14:39:14 +0000 (14:39 -0000)]
we pass PropertyOrField
svn path=/trunk/mcs/; revision=93902
Jb Evain [Fri, 25 Jan 2008 14:38:55 +0000 (14:38 -0000)]
2008-01-25 Jb Evain <jbevain@novell.com>
* Expression.cs: implement PropertyOrField.
svn path=/trunk/mcs/; revision=93901
Jb Evain [Fri, 25 Jan 2008 14:32:27 +0000 (14:32 -0000)]
update
svn path=/trunk/mcs/; revision=93900
Zoltan Varga [Fri, 25 Jan 2008 14:25:30 +0000 (14:25 -0000)]
2008-01-25 Zoltan Varga <vargaz@gmail.com>
* mini-arm.c (mono_arch_emit_prolog): Fix build.
svn path=/trunk/mono/; revision=93899
Jb Evain [Fri, 25 Jan 2008 14:21:32 +0000 (14:21 -0000)]
we pass ExclusiveOr tests
svn path=/trunk/mcs/; revision=93898
Marek Safar [Fri, 25 Jan 2008 11:37:44 +0000 (11:37 -0000)]
New test.
svn path=/trunk/mcs/; revision=93884
Marek Safar [Fri, 25 Jan 2008 11:37:10 +0000 (11:37 -0000)]
2008-01-25 Marek Safar <marek.safar@gmail.com>
* generic.cs: Use full implicit conversion for type inference fixing.
svn path=/trunk/mcs/; revision=93883
Marek Safar [Fri, 25 Jan 2008 10:00:05 +0000 (10:00 -0000)]
Fixed copy&paste
svn path=/trunk/mcs/; revision=93875
Atsushi Eno [Fri, 25 Jan 2008 03:47:12 +0000 (03:47 -0000)]
2008-01-25 Atsushi Enomoto <atsushi@ximian.com>
* XmlReader.cs : MoveToNextSibling() should check EOF (as Skip() does
not). Fixed bug #347768.
* XmlReaderCommonTests.cs : added test for bug #347768.
svn path=/trunk/mcs/; revision=93873
Andreia Gaita [Fri, 25 Jan 2008 00:15:50 +0000 (00:15 -0000)]
SWF2K5.csproj, SWF.csproj: synched
2008-01-24 Andreia Gaita <avidigal@novell.com>
svn path=/trunk/mcs/; revision=93867
Andreia Gaita [Fri, 25 Jan 2008 00:11:00 +0000 (00:11 -0000)]
2008-01-24 Andreia Gaita <avidigal@novell.com>
* xpidl2cs.pl: Add support for different marshalling depending
on whether a parameter is in or out. Add special case for
generic interface returns. Only output parent is it's not
the base parent. Output helper class to proxy objects.
* Makefile: added. regenerates interfaces
2008-01-24 Andreia Gaita <avidigal@novell.com>
svn path=/trunk/mcs/; revision=93866
Jonathan Pobst [Thu, 24 Jan 2008 22:56:31 +0000 (22:56 -0000)]
Try to make test not font size dependent.
svn path=/trunk/mcs/; revision=93856
Rodrigo Kumpera [Thu, 24 Jan 2008 22:16:22 +0000 (22:16 -0000)]
In System:
2008-01-24 Rodrigo Kumpera <rkumpera@novell.com>
* MonoType.cs (InvokeMember): Check for parameters without default value which
the supplied argument is Missing.Value. Fixes one of the issues of #348522.
In Test/System:
2008-01-24 Rodrigo Kumpera <rkumpera@novell.com>
* TypeTest.cs (InvokeMember_WithoutDefaultValue): Added test for bug #348522.
It call InvokeMember passing as method argument Missing.Value and a binder that
returns a method that doesn't have a default value for it's parameter.
svn path=/trunk/mcs/; revision=93850
Marek Habersack [Thu, 24 Jan 2008 21:55:44 +0000 (21:55 -0000)]
2008-01-24 Marek Habersack <mhabersack@novell.com>
* WebHandlerBuildProvider.cs: derive from the new
SimpleBuildProvider class.
* BuildManager.cs: full implementation of the batch compilation
for the 2.0 profile. The implementation is most probably different
to MS.NET's but the effects are the same (or nearly the same -
there are some minor differences). There are missing bits and
pieces, but minor ones - to be added later.
* SimpleBuildProvider.cs: new build provider abstract class
deriving from the GenericBuildProvider that implements common code
for building web handlers and web services.
* GenericBuildProvider.cs: new generic abstract class used to
implement base builder code for all the build provider types and
maximize code reuse.
* PageBuildProvider.cs: derive from the new TemplateBuildProvider
class and implement all the necessary abstract members.
Handle "fake" virtual paths, to properly support generating of the
WSDL helper code.
* BuildProvider.cs: SetVirtualPath now converts the passed path to
absolute URL.
Added internal virtual method GenerateCode, used by derived
classes.
SetCommonParameters no longer sets the referenced assemblies, this
is done in BuildManager now.
Added an internal virtual property CodeUnit which returns the
build provider's compilation unit.
* PageCompiler.cs: fix assignment of base types for asynchronous
pages, to match MS.NET.
For asynchronous pages, add the necessary methods generation.
* BaseCompiler.cs: default namespace is now set using a constant.
Renamed the Init method into ConstructType, to better reflect its
purpose and made the method internal - it is used by the build
providers.
Added several CreateProvider overloads for easier and more unified
compilation provider creation.
Added an internal MainClassType property to enable class type name
retrieval from other parts of the class hierarchy.
* ApplicationFileBuildProvider.cs: new build provider deriving
from the TemplateBuildProvider class to compile the global.asax
file.
* AspGenerator.cs: properly handle parsers which have no input
file path given, but use TextReader instead.
Dependencies are virtual paths now, convert them to physical ones
before creating cache dependency.
* CachingCompiler.cs: parser dependencies are virtual paths now,
convert them to physical ones before creating cache dependency.
* AssemblyBuilder.cs: full implementation of the documented
functionality as well as a lot of internal build code
added. Produces assemblies using the same style what MS.NET for
temporary and target file naming. Handles partial type squashing
if the same partial type is used by several code compile units
added to the same builder instance.
* MasterPageBuildProvider.cs: use the new TemplateBuildProvider
base class and add implementation of all the abstract methods
required by it.
* ThemeDirectoryBuildProvider.cs: new build provider to compile
theme directories. Replaces the old ThemeDirectoryCompiler class.
* UserControlBuildProvider.cs: use the new TemplateBuildProvider
base class and add implementation of all the abstract methods
required by it.
* TemplateBuildProvider.cs: new internal abstract class which
implements the common tasks for all the template control build
providers.
* WebServiceBuildProvider.cs: use the new SimpleBuildProvider base
type to implement building.
2008-01-24 Marek Habersack <mhabersack@novell.com>
* PageThemeFileParser.cs: the DefaultBaseType property removed.
* ApplicationFileParser.cs: added constructor which takes a
TextReader.
Removed the DefaultBaseType property.
Added the Reader property.
* MasterPage.cs: use BuildManager to create page instance.
* WebHandlerParser.cs: added a compatibility constructor.
* TemplateControl.cs: GetTypeFromControlPath uses
BuildManager.GetCompiledType for the 2.0+ profile.
* WebServiceParser.cs: added a compatibility internal
constructor.
* SimpleWebHandlerParser.cs: properly treat context and
physicalPath parameters to the constructor, especially for the
2.0+ profile where they are obsolete.
Dependencies are added using virtual paths.
* PageThemeParser.cs: DefaultBaseType property removed.
* Page.cs: Style sheets and themes are compiled using
BuildManager.
Previous page instance is compiled using BuildManager for the 2.0+
profile.
* MasterPageParser.cs: Use BuildManager to create instance and
compile types.
Dependencies are added using virtual paths.
* SimpleHandlerFactory.cs: Use
BuildManager.CreateInstanceFromVirtualPath for the 2.0+ profile.
* UserControlParser.cs: if the parser is created using a
TextReader, take the input file path from the virtual path.
Added a new internal constructor which takes both a TextReader and
an inputFile parameters.
Set base type to the default in the constructors.
Use virtual path when setting master page dependency.
DefaultBaseTypename doesn't use a literal string in the 2.0+
profile, it gets the base type from the application
configuration.
* TemplateControlParser.cs: Dependency on a control/page mentioned
in the Reference directive is registered using the virtual path.
TextReader property is an override now.
* TemplateParser.cs: RegisterCustomControl adds a dependency on
the virtual path, not the physical path. The custom control is
compiled using BuildManager.GetCompiledType for the 2.0+ profile.
RegisterNamespace does not add a dependency on the assembly.
LoadType does not add a dependency on the assembly.
Legacy Src attribute is handled properly now.
Dependency on code-behind (Src and CodeFile directive attributes)
is added using the code-behind file's virtual path.
GetAssemblyFromSource adds a dependency using the virtual path.
DefaultBaseType implemented here, using DefaultBaseTypeName which
is implemented in the descendant classes.
Added internal CodeBehindSource property, used by build
providers.
ClassName property works correctly if inputFile is missing
(e.g. when the parser has been created using a TextReader)
Added a virtual internal property TextReader to return the readed
which has been used to create the parser instance.
* PageHandlerFactory.cs: GetHandler uses
BuildManager.CreateInstanceFromVirtualPath for the 2.0+ profile.
* PageParser.cs: set the default base type in the constructors.
If the input file is not passed to a constructor, take the input
file path from the virtual path.
GetCompiledPageInstance uses BuildManager.CreateInstanceFromVirtualPath
for the 2.0+ profile.
MasterPage dependency is set using the virtual path of the master
page.
MasterPage is compiled into a type using BuildManager.GetCompiledType.
GetCompiledPageType uses BuildManager.GetCompiledType for the 2.0
profile.
DefaultBaseType override removed, it is implemented in the
TemplateParser class.
DefaultBaseTypename doesn't use a literal string in the 2.0+
profile, it gets the base type from the application
configuration.
2008-01-24 Marek Habersack <mhabersack@novell.com>
* HttpApplicationFactory.cs: use BuildManager.GetCompiledType to
build the application (global.asax) file.
svn path=/trunk/mcs/; revision=93848
Jonathan Pobst [Thu, 24 Jan 2008 21:47:46 +0000 (21:47 -0000)]
2008-01-24 Jonathan Pobst <monkey@jpobst.com>
* TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
when all contained controls are autosize or dock-fill. Also take into
account when the total percentage of column/row sizes is not 100%.
[Fixes bug #354672]
2008-01-24 Jonathan Pobst <monkey@jpobst.com>
* TableLayoutTest.cs: Add tests for bug #354672.
svn path=/trunk/mcs/; revision=93847
Zoltan Varga [Thu, 24 Jan 2008 20:40:33 +0000 (20:40 -0000)]
2008-01-24 Zoltan Varga <vargaz@gmail.com>
* mini-sparc.c (mono_arch_output_basic_block): Remove some unecessary code.
svn path=/trunk/mono/; revision=93836
Zoltan Varga [Thu, 24 Jan 2008 20:12:46 +0000 (20:12 -0000)]
2008-01-24 Zoltan Varga <vargaz@gmail.com>
* Makefile.am (SUBDIRS): Or if INTERP_SUPPORTED is true.
svn path=/trunk/mono/; revision=93834
Zoltan Varga [Thu, 24 Jan 2008 20:10:14 +0000 (20:10 -0000)]
2008-01-24 Zoltan Varga <vargaz@gmail.com>
* Makefile.am (SUBDIRS): Only set this on arm.
svn path=/trunk/mono/; revision=93833
Zoltan Varga [Thu, 24 Jan 2008 20:05:43 +0000 (20:05 -0000)]
2008-01-24 Zoltan Varga <vargaz@gmail.com>
* mini-s390.c (mono_arch_emit_prolog): Fix build.
* mini-s390x.c (mono_arch_emit_prolog): Fix build.
* mini-ppc.c (mono_arch_emit_prolog): Fix build.
* cpu-amd64.md: Use smaller sizes for int opcodes.
svn path=/trunk/mono/; revision=93832
Marek Safar [Thu, 24 Jan 2008 19:58:10 +0000 (19:58 -0000)]
More tests.
svn path=/trunk/mcs/; revision=93831
Marek Safar [Thu, 24 Jan 2008 19:57:00 +0000 (19:57 -0000)]
2008-01-24 Marek Safar <marek.safar@gmail.com>
* ecore.cs, expression.cs, generic.cs: Implemented Convert, ConvertChecked.
Fixed user operator conversions.
svn path=/trunk/mcs/; revision=93830
Andreia Gaita [Thu, 24 Jan 2008 18:06:18 +0000 (18:06 -0000)]
* HtmlDocument.cs:
- Save a reference to the IDocument in the instance and
use that one instead of going to WebHost.Document; the document that the
WebHost returns might not be the right one (in case of frames).
- Use the hashcode returned from the IDocument interface.
- Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie,
Domain (setter is not supported), Encoding, ForeColor, Forms, Images,
LinkColor, Url, VisitedColor, Window
* HtmlElement.cs:
- Implemented: CanHaveChildren, Children, Document, GetAttribute,
set_Attribute, NextSibling, Parent, TagName, AppendChild,
GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
SetAttribute, Equals, equality operators.
- Added stubs for: AttachEventHandler, DetachEventHandler, Focus,
InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView,
* HtmlElementCollection.cs: Change implementation to use a generic
collection. Implemented Enumerator and CopyTo
* HtmlHistory.cs: Add constructor, no implementation yet.
* HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode,
Equals, equality operators.
* HtmlWindowCollection.cs: Implemented.
* WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
has been deprecated).
* WebBrowserBase.cs: Use Completed event to track document loading
(Navigated has been deprecated)
2008-01-24 Andreia Gaita <avidigal@novell.com>
svn path=/trunk/mcs/; revision=93825
Andreia Gaita [Thu, 24 Jan 2008 18:01:23 +0000 (18:01 -0000)]
* Mono.Mozilla.dll.sources, Mono.Mozilla.2K5.csproj: Added files.
* Mono.Mozilla/interfaces/*.cs: Add yet more mozilla interfaces to
support getting windows, page encodings, dealing with focused elements.
Update GetProxyForObject signature.
* Mono.Mozilla/Base.cs: Remove unneeded navigation methods, Navigation
now goes through the Navigation object.
(GetProxyForObject): Use GetObjectForIUnknown instead of
GetTypedObjectForIUnknown, this one is not working properly. GetProxyForObject
now has two parameters, instead of three (no need to send the type). All the
interfaces have been regenerated and xpidl2cs changed for the new signature.
* Mono.WebBrowser/IWebBrowser.cs, Mono.Mozilla/WebBrowser.cs:
Implement Window getter. Add events and event watcher to track page loading.
* Mono.Mozilla/DOM/Attribute.cs, Mono.WebBrowser/DOM/IAttribute.cs:
Add GetHashCode
* Mono.WebBrowser/DOM/IDocument.cs, Mono.Mozilla/DOM/Document.cs:
Implemented: Active, ActiveLinkColor, Anchors, Applets, Background, BackColor,
Charset, Cookie, Domain, ForeColor, Forms, Images, LinkColor, Links,
VisitedLinkColor, GetElement, Equals, GetHashCode
* Mono.WebBrowser/DOM/IElement.cs, Mono.Mozilla/DOM/Element.cs:
Implemented: Children, TagName, AppendChild, Equals, GetElementsByTagName,
GetHashCode, SetAttribute.
Changed get_All to return all children recursively.
* Mono.WebBrowser/DOM/IElementCollection.cs: Fix header. Add GetHashCode.
* Mono.Mozilla/DOM/HTMLElementCollection.cs: Fix header. Change Load() so
it only includes html elements in the collection.
* Mono.WebBrowser/DOM/INavigation.cs, Mono.Mozilla/DOM/Navigation.cs:
Implement GetHashCode. Add CharsetChange option to the load flags so support
refreshing a page after an encoding change.
* Mono.WebBrowser/DOM/INode.cs, Mono.Mozilla/DOM/Node.cs:
Implement: InsertBefore, LastChild, Next, Owner, Parent, Previous, GetHashCode
* Mono.WebBrowser/DOM/INodeList.cs, Mono.Mozilla/DOM/NodeList.cs:
Fix header. Implement GetHashCode. Add support for creating empty
collections that get nodes added later, add support for removing nodes.
* Mono.WebBrowser/DOM/IWindow.cs, Mono.Mozilla/DOM/Window.cs:
Added. Represents a window (top level or frame) and wraps nsIDOMWindow.
* Mono.WebBrowser/DOM/IWindowCollection.cs,
Mono.Mozilla/DOM/WindowCollection.cs:
Added. Represents a collection of windows, wraps nsIDOMWindowCollection.
2008-01-24 Andreia Gaita <avidigal@novell.com>
svn path=/trunk/mcs/; revision=93823
Jb Evain [Thu, 24 Jan 2008 17:55:58 +0000 (17:55 -0000)]
we pass Field and Property
svn path=/trunk/mcs/; revision=93822
Jb Evain [Thu, 24 Jan 2008 17:55:41 +0000 (17:55 -0000)]
2008-01-24 Jb Evain <jbevain@novell.com>
* Expression.cs, MemberExpression.cs, ExpressionPrinter.cs:
implement Field and Property.
svn path=/trunk/mcs/; revision=93821
Zoltan Varga [Thu, 24 Jan 2008 16:48:32 +0000 (16:48 -0000)]
2008-01-24 Zoltan Varga <vargaz@gmail.com>
* *.c: Get rid of the NOT_IMPLEMENTED define which is now in mini.h.
svn path=/trunk/mono/; revision=93817
Zoltan Varga [Thu, 24 Jan 2008 16:39:16 +0000 (16:39 -0000)]
2008-01-24 Zoltan Varga <vargaz@gmail.com>
* *.cs: Add some tests from the linear-ir branch. Move structs tests to
objects.cs.
svn path=/trunk/mono/; revision=93816