mono.git
22 years ago added stack saving for most arguments
Radek Doulik [Tue, 19 Feb 2002 20:50:13 +0000 (20:50 -0000)]
added stack saving for most arguments

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

22 years agoUgh, I had the GPL here, its the LGPL
Miguel de Icaza [Tue, 19 Feb 2002 20:47:47 +0000 (20:47 -0000)]
Ugh, I had the GPL here, its the LGPL

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

22 years agofixed a typo.
Duncan Mak [Tue, 19 Feb 2002 20:23:57 +0000 (20:23 -0000)]
fixed a typo.

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

22 years ago2002-02-19 Duncan Mak <duncan@ximian.com>
Duncan Mak [Tue, 19 Feb 2002 20:19:39 +0000 (20:19 -0000)]
2002-02-19  Duncan Mak  <duncan@ximian.com>

* SurrogateSelector.cs: Implemented.

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

22 years ago2002-02-19 Radek Doulik <rodo@ximian.com>
Radek Doulik [Tue, 19 Feb 2002 19:49:10 +0000 (19:49 -0000)]
2002-02-19  Radek Doulik  <rodo@ximian.com>

* ppc/tramp.c (emit_save_parameters): don't start saving 64bit
values to
even registers

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

22 years ago2002-02-17 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Tue, 19 Feb 2002 17:14:03 +0000 (17:14 -0000)]
2002-02-17  Miguel de Icaza  <miguel@ximian.com>

* expression.cs (Indirection): New helper class.  Unary will
create Indirection classes to be able to implement the
IMemoryLocation interface on it.

2002-02-16  Miguel de Icaza  <miguel@ximian.com>

* cs-parser.jay (fixed_statement): reference the right statement.

* statement.cs (Fixed.Emit): Finish implementing the fixed
statement for the &x case.

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

22 years agoTue Feb 19 20:36:04 CET 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 19 Feb 2002 15:46:58 +0000 (15:46 -0000)]
Tue Feb 19 20:36:04 CET 2002 Paolo Molaro <lupus@ximian.com>

* Assembly.cs, Module.cs, MonoField.cs, MonoMethod.cs,
MonoProperty.cs, ParameterInfo.cs: Implemented custom attributes
related methods.

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

22 years agoTue Feb 19 20:34:35 CET 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 19 Feb 2002 15:46:31 +0000 (15:46 -0000)]
Tue Feb 19 20:34:35 CET 2002 Paolo Molaro <lupus@ximian.com>

* MonoCustomAttrs.cs: hooks to get the custom attributes from the
runtime.
* MonoType.cs: Implemented custom attributes methods.

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

22 years agoTue Feb 19 20:23:11 CET 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 19 Feb 2002 15:41:30 +0000 (15:41 -0000)]
Tue Feb 19 20:23:11 CET 2002 Paolo Molaro <lupus@ximian.com>

* icall.c: register the GetCustomAttributes method.
* object.c, object.h: add mono_string_new_len ().
* reflection.h, reflection.c: added mono_runtime_invoke(),
mono_install_runtime_invoke(). Added
mono_reflection_get_custom_attrs () to load custom attributes and
create the attribute objects.

Tue Feb 19 20:21:14 CET 2002 Paolo Molaro <lupus@ximian.com>

* interp.c: implement the runtime_invoke function.

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

22 years agoTue Feb 19 20:19:38 CET 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 19 Feb 2002 15:40:57 +0000 (15:40 -0000)]
Tue Feb 19 20:19:38 CET 2002 Paolo Molaro <lupus@ximian.com>

* x86/tramp.c: avoid pointer arthmetric (pointed out by Serge).

Tue Feb 19 20:20:15 CET 2002 Paolo Molaro <lupus@ximian.com>

* dump.c: the prolog is before each arg in the custom attribute blob.

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

22 years agoAdd link to Lupus hack
Miguel de Icaza [Tue, 19 Feb 2002 15:27:36 +0000 (15:27 -0000)]
Add link to Lupus hack

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

22 years ago:Update AnonCVS requirements
Miguel de Icaza [Tue, 19 Feb 2002 14:13:11 +0000 (14:13 -0000)]
:Update AnonCVS requirements

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

22 years ago * Array.cs (CopyTo): use GetLength() instead of GetUpperBound()
Dietmar Maurer [Tue, 19 Feb 2002 14:09:56 +0000 (14:09 -0000)]
  * Array.cs (CopyTo): use GetLength() instead of GetUpperBound()

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

22 years ago2002-02-19 Duncan Mak <duncan@ximian.com>
Duncan Mak [Tue, 19 Feb 2002 12:28:23 +0000 (12:28 -0000)]
2002-02-19  Duncan Mak  <duncan@ximian.com>

    * Convert.cs: Finished up the missing methods in Convert.
    Added a new private method ConvertFromBase.

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

22 years agoUpdated cvsignores
Dick Porter [Tue, 19 Feb 2002 12:19:20 +0000 (12:19 -0000)]
Updated cvsignores

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

22 years ago2002-02-19 Dick Porter <dick@ximian.com>
Dick Porter [Tue, 19 Feb 2002 12:17:06 +0000 (12:17 -0000)]
2002-02-19  Dick Porter  <dick@ximian.com>
* threads-dummy-types.c:
* threads-dummy-types.h:
* threads-dummy.c:
* threads-dummy.h:
* threads-pthread-types.c:
* threads-pthread-types.h:
* threads-pthread.c:
* threads-pthread.h:  Deleted obsolete files

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

22 years ago2002-02-20 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Tue, 19 Feb 2002 11:42:16 +0000 (11:42 -0000)]
2002-02-20  Nick Drochak  <ndrochak@gol.com>

* .cvsignore: Ignore files generated by CorCompare

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

22 years ago (arch_create_jit_trampoline): cache trampoline code
Dietmar Maurer [Tue, 19 Feb 2002 11:39:45 +0000 (11:39 -0000)]
(arch_create_jit_trampoline): cache trampoline code

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

22 years ago2002-02-20 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Tue, 19 Feb 2002 11:37:26 +0000 (11:37 -0000)]
2002-02-20  Nick Drochak  <ndrochak@gol.com>

* .cvsignore: Ignore the file generated by CorCompare

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

22 years ago2002-02-20 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Tue, 19 Feb 2002 11:31:39 +0000 (11:31 -0000)]
2002-02-20  Nick Drochak  <ndrochak@gol.com>

* ArrayList.cs: Add MonoTODO's where necessary. Fix bugs discovered
by Bucky's tests. Implement a couple of things that were left undone.

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

22 years ago2002-02-20 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Tue, 19 Feb 2002 11:30:54 +0000 (11:30 -0000)]
2002-02-20  Nick Drochak  <ndrochak@gol.com>

* Int64Test.cs: One array was giving us trouble.  Not sure why, but
it's related to the number of elements in an Array.  For short Arrays
the compiler doesn't use the PrivateImplmentationDetails struct,
but for longer ones it does.  That's when our corlib fails. I paired
down the array for now.

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

22 years ago2002-02-20 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Tue, 19 Feb 2002 11:25:39 +0000 (11:25 -0000)]
2002-02-20  Nick Drochak  <ndrochak@gol.com>

* ArrayListTest.cs: Add a small assert for a bug that I found and fixed
in ArrayList.  Make sure it doesn't come up again.

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

22 years ago2002-02-19 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Tue, 19 Feb 2002 10:03:37 +0000 (10:03 -0000)]
2002-02-19  Dietmar Maurer  <dietmar@ximian.com>

* emit-x86.c (arch_compile_method): add shared code to mono_root_domain

* class.c (mono_class_vtable): runtime init the class when we
allocate static class data.

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

22 years ago2002-02-19 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Tue, 19 Feb 2002 08:56:42 +0000 (08:56 -0000)]
2002-02-19  Dietmar Maurer  <dietmar@ximian.com>

* String.cs: impl. IConvertible interface

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

22 years ago * icall.c (ves_icall_System_Array_SetValue): check for null values.
Dietmar Maurer [Tue, 19 Feb 2002 08:33:42 +0000 (08:33 -0000)]
* icall.c (ves_icall_System_Array_SetValue): check for null values.

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

22 years agoTue Feb 19 12:24:15 CET 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 19 Feb 2002 07:33:10 +0000 (07:33 -0000)]
Tue Feb 19 12:24:15 CET 2002 Paolo Molaro <lupus@ximian.com>

* monograph.c: fix typo. Update for changes in mono_init ().

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

22 years agoMon Feb 18 14:37:17 CET 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 19 Feb 2002 06:36:01 +0000 (06:36 -0000)]
Mon Feb 18 14:37:17 CET 2002 Paolo Molaro <lupus@ximian.com>

* monograph.c: First commit: program to generate call graphs
or type hierarchies from CIL programs.

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

22 years ago (mono_init): set the domain name in a ms compatible way
Dietmar Maurer [Tue, 19 Feb 2002 06:20:24 +0000 (06:20 -0000)]
(mono_init): set the domain name in a ms compatible way

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

22 years ago2002-02-19 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Tue, 19 Feb 2002 06:01:21 +0000 (06:01 -0000)]
2002-02-19  Dietmar Maurer  <dietmar@ximian.com>

* appdomain.c (mono_domain_transfer_object): impl. hack for Arrays
and String - but we will need generic marshalling support in the
future.

* object.c (mono_string_new_utf16): bug fix: use char[] instead of
String[].

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

22 years ago2002-02-19 Duncan Mak <duncan@ximian.com>
Duncan Mak [Tue, 19 Feb 2002 04:03:21 +0000 (04:03 -0000)]
2002-02-19  Duncan Mak  <duncan@ximian.com>

    * SerializationInfoEnumerator.cs: oh, and simplified the Current
      property too.

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

22 years ago2002-02-19 Duncan Mak <duncan@ximian.com>
Duncan Mak [Tue, 19 Feb 2002 04:00:22 +0000 (04:00 -0000)]
2002-02-19  Duncan Mak  <duncan@ximian.com>

    * SerializationInfo.cs: Forgot to finish up GetEnumerator ().

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

22 years agoAdd to the Makefile
Miguel de Icaza [Tue, 19 Feb 2002 01:44:16 +0000 (01:44 -0000)]
Add to the Makefile

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

22 years ago2002-02-18 Duncan Mak <duncan@ximian.com>
Duncan Mak [Tue, 19 Feb 2002 00:32:09 +0000 (00:32 -0000)]
2002-02-18  Duncan Mak  <duncan@ximian.com>

        * SerializationInfo.cs: Converted Type.GetType calls to the faster
        typeof operator.

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

22 years ago2002-02-18 Duncan Mak <duncan@ximian.com>
Duncan Mak [Tue, 19 Feb 2002 00:30:42 +0000 (00:30 -0000)]
2002-02-18  Duncan Mak  <duncan@ximian.com>

        * serialize.cs: When appropriate, changed Type.GetType calls to
        the faster typeof operator.

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

22 years agoInitial Checkin of the DocTools: docconv, docgen, docstub and xsl/DTD
Adam Treat [Tue, 19 Feb 2002 00:05:25 +0000 (00:05 -0000)]
Initial Checkin of the DocTools: docconv, docgen, docstub and xsl/DTD

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

22 years ago2002-02-18 Radek Doulik <rodo@ximian.com>
Radek Doulik [Mon, 18 Feb 2002 22:57:38 +0000 (22:57 -0000)]
2002-02-18  Radek Doulik  <rodo@ximian.com>

* mono/tests/Makefile.am: added small test library for pinvoke
testing

* mono/tests/libtest.c (mono_test_many_int_arguments): new file,
new function to test pinvoke

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

22 years agoops
Radek Doulik [Mon, 18 Feb 2002 22:55:16 +0000 (22:55 -0000)]
ops

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

22 years agoadded pinvoked method with 10 int arguments
Radek Doulik [Mon, 18 Feb 2002 22:53:53 +0000 (22:53 -0000)]
added pinvoked method with 10 int arguments

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

22 years ago2002-02-18 Radek Doulik <rodo@ximian.com>
Radek Doulik [Mon, 18 Feb 2002 20:11:32 +0000 (20:11 -0000)]
2002-02-18  Radek Doulik  <rodo@ximian.com>

* mono/tests/Makefile.am: display # of passing tests too

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

22 years agoImplementation for Guid.Guid(string) (including test cases)
Duco Fijma [Mon, 18 Feb 2002 18:50:47 +0000 (18:50 -0000)]
Implementation for Guid.Guid(string) (including test cases)

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

22 years ago2002-02-18 Duncan Mak <duncan@ximian.com>
Duncan Mak [Mon, 18 Feb 2002 16:00:03 +0000 (16:00 -0000)]
2002-02-18  Duncan Mak  <duncan@ximian.com>

        * Convert.cs: Changed from using Type.GetType (string) to just
        typeof (). Probably will speed things up a bit?

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

22 years agoRemoved System.Exception from cmp and res builds. Was causing NUnit troubles.
Dan Lewis [Mon, 18 Feb 2002 15:49:36 +0000 (15:49 -0000)]
Removed System.Exception from cmp and res builds. Was causing NUnit troubles.

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

22 years agonew test
Dietmar Maurer [Mon, 18 Feb 2002 14:47:41 +0000 (14:47 -0000)]
new test

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

22 years ago*** empty log message ***
Dietmar Maurer [Mon, 18 Feb 2002 12:57:06 +0000 (12:57 -0000)]
*** empty log message ***

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

22 years ago2002-02-18 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Mon, 18 Feb 2002 12:52:32 +0000 (12:52 -0000)]
2002-02-18  Dietmar Maurer  <dietmar@ximian.com>

* jit.c (mono_analyze_stack): optimize LDSFLD/STSFLD for domain
specific code.
(mono_analyze_stack): use MB_TERM_LDELEMA to perform bound check

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

22 years ago2002-02-18 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Mon, 18 Feb 2002 12:18:59 +0000 (12:18 -0000)]
2002-02-18  Dietmar Maurer  <dietmar@ximian.com>

* x86.brg: do not encode exception objects into the instruction
stream, because they are domain dependend. Use
arch_get_throw_exception_by_name() instead;
* jit.c (mono_analyze_stack): imp. LDSTR for shared code

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

22 years ago2002-02-19 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Mon, 18 Feb 2002 11:58:10 +0000 (11:58 -0000)]
2002-02-19  Nick Drochak  <ndrochak@gol.com>

* corcompare.cs: Reorganized into collaberating classes to analyze
and generate reports.  Still needs to find the MonoTODO's, and
has a little more prototype code in there, but it's almost done.

* makefile: output XML file in the tools directory for now.

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

22 years agoMon Feb 18 15:50:59 CET 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 18 Feb 2002 11:03:30 +0000 (11:03 -0000)]
Mon Feb 18 15:50:59 CET 2002 Paolo Molaro <lupus@ximian.com>

* sockets.c: #undef DEBUG.

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

22 years agoMon Feb 18 15:49:20 CET 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 18 Feb 2002 11:03:16 +0000 (11:03 -0000)]
Mon Feb 18 15:49:20 CET 2002 Paolo Molaro <lupus@ximian.com>

* interp.c: fix alignment code. Make sure to init classes
in more cases. Command-line arguments are interned.

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

22 years agoMon Feb 18 15:51:40 CET 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 18 Feb 2002 11:02:59 +0000 (11:02 -0000)]
Mon Feb 18 15:51:40 CET 2002 Paolo Molaro <lupus@ximian.com>

* jit.c: intern command line arguments.

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

22 years agoMon Feb 18 15:52:20 CET 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 18 Feb 2002 11:02:37 +0000 (11:02 -0000)]
Mon Feb 18 15:52:20 CET 2002 Paolo Molaro <lupus@ximian.com>

* appdomain.c, object.c: fix intern pool implementation.
* class.c: fix alignment code.

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

22 years agoMon Feb 18 15:48:38 CET 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 18 Feb 2002 11:02:20 +0000 (11:02 -0000)]
Mon Feb 18 15:48:38 CET 2002 Paolo Molaro <lupus@ximian.com>

* get.c: include last param.

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

22 years agoMon Feb 18 14:28:10 CET 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 18 Feb 2002 09:37:09 +0000 (09:37 -0000)]
Mon Feb 18 14:28:10 CET 2002 Paolo Molaro <lupus@ximian.com>

* Makefile.am: fix compatibility problem with automake 1.4.

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

22 years agocommitted patch from Ajay
Dietmar Maurer [Mon, 18 Feb 2002 09:36:18 +0000 (09:36 -0000)]
committed patch from Ajay

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

22 years agodont compile methods more than once gives better performance ;-)
Dietmar Maurer [Mon, 18 Feb 2002 08:54:46 +0000 (08:54 -0000)]
dont compile methods more than once gives better performance ;-)

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

22 years ago2002-02-17 Duncan Mak <duncan@ximian.com>
Duncan Mak [Sun, 17 Feb 2002 22:26:54 +0000 (22:26 -0000)]
2002-02-17  Duncan Mak  <duncan@ximian.com>

        * TimeZone.cs: Applied the rest of Ajay's patch for
        IsDaylightSavingTime. Thanks a lot for the nice explanation of how
        it works!

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

22 years ago2002-02-17 Radek Doulik <rodo@ximian.com>
Radek Doulik [Sun, 17 Feb 2002 21:46:58 +0000 (21:46 -0000)]
2002-02-17  Radek Doulik  <rodo@ximian.com>

* mono/tests/Makefile.am (test): display # of failed tests

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

22 years agola la la, ChangeLog entries
Radek Doulik [Sun, 17 Feb 2002 21:10:29 +0000 (21:10 -0000)]
la la la, ChangeLog entries

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

22 years ago (mono_string_new_wrapper): new helper function, cut&pasted from
Radek Doulik [Sun, 17 Feb 2002 20:02:39 +0000 (20:02 -0000)]
(mono_string_new_wrapper): new helper function, cut&pasted from
x86, modified to check for NULL text to avoid branching in
generated code
(calculate_sizes): updated for string retval changes
(emit_call_and_store_retval): updated for string retval

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

22 years ago2002-02-17 Radek Doulik <rodo@ximian.com>
Radek Doulik [Sun, 17 Feb 2002 19:41:12 +0000 (19:41 -0000)]
2002-02-17  Radek Doulik  <rodo@ximian.com>

* ppc/tramp.c: fixed minimal stack size, fixed string parameters,
fix byte and half word parameters

* ppc/ppc-codegen.h (ppc_mr): added lhz, lbz, sth

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

22 years ago2002-02-18 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Sun, 17 Feb 2002 18:40:22 +0000 (18:40 -0000)]
2002-02-18  Nick Drochak  <ndrochak@gol.com>

* GuidTest.cs: Fix compile error.  Needed to cast the null in the call to
constructor to avoid ambiguity.

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

22 years agoCreated first test for System.Guid
Duco Fijma [Sun, 17 Feb 2002 12:10:54 +0000 (12:10 -0000)]
Created first test for System.Guid

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

22 years ago2002-02-17 Duncan Mak <duncan@ximian.com>
Duncan Mak [Sun, 17 Feb 2002 02:31:25 +0000 (02:31 -0000)]
2002-02-17  Duncan Mak  <duncan@ximian.com>

    * FileDialogPermissionAccess.cs: Add in namespace declaration, so
      that this one little unique enum wouldn't show up in the System
      namespace when we ildasm corlib.dll ;-) Oops, my bad.

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

22 years ago2002-02-17 Duncan Mak <duncan@ximian.com>
Duncan Mak [Sun, 17 Feb 2002 02:17:50 +0000 (02:17 -0000)]
2002-02-17  Duncan Mak  <duncan@ximian.com>

    * Convert.cs: Near-complete implementation of Convert.cs

      Added all the To* methods taking (object) and
      (object, IFormatProvider) as parameters.

      Added [CLSCompliant (false)] attributes to methods dealing with
      unsigned types.

      Added the missing section on converting to and from DateTime. Only
      6 missing methods, all marked with MonoTODOs. Will tackle them later.

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

22 years ago (ves_icall_System_Enum_ToObject): and likewise for s1 > s2
Radek Doulik [Sun, 17 Feb 2002 00:27:24 +0000 (00:27 -0000)]
(ves_icall_System_Enum_ToObject): and likewise for s1 > s2

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

22 years ago2002-02-16 Radek Doulik <rodo@ximian.com>
Radek Doulik [Sun, 17 Feb 2002 00:23:33 +0000 (00:23 -0000)]
2002-02-16  Radek Doulik  <rodo@ximian.com>

* icall.c (ves_icall_System_Enum_ToObject): in case of big endian
and s2 > s1, just copy lower bytes to be compatible with little
endian (i.e. 64bit value & 0xffffffff --> 32bit value)

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

22 years ago2002-02-16 Jeffrey Stedfast <fejj@ximian.com>
Jeffrey Stedfast [Sat, 16 Feb 2002 21:01:20 +0000 (21:01 -0000)]
2002-02-16  Jeffrey Stedfast  <fejj@ximian.com>

* wrapper.c (mono_wrapper_fstat): The MonoWrapperStat namespace is
mst_ now, so update this code. Also fix a copy/paste-o that
assigned st.st_ctime to buf->mst_mtime.
(mono_wrapper_stat): Same here.

* genwrapper.pl: Solaris does some nasty macro hadckery action for
st_[a,c,m]time and so lets namespace our wrapper members as
mst_[a,c,m]time to avoid namespace problems.

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

22 years agoForgot to change this too.
Duncan Mak [Sat, 16 Feb 2002 20:38:50 +0000 (20:38 -0000)]
Forgot to change this too.

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

22 years ago2002-02-16 Duncan Mak <duncan@ximian.com>
Duncan Mak [Sat, 16 Feb 2002 20:34:15 +0000 (20:34 -0000)]
2002-02-16  Duncan Mak  <duncan@ximian.com>

* TimeZone.cs: patch from Ajay Kumar Dwivedi (adwiv@yahoo.com) to
make IsDaylightSavingTime (DateTime) call
IsDaylightSavingTime (DateTime, DaylightTime).

Added internal class CurrentTimeZone from Ajay. It needs more work
to fill in the appropriate internal calls.

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

22 years agoremove checks for IP_ADD/DROP_MEMBERSHIP
Jeffrey Stedfast [Sat, 16 Feb 2002 19:44:06 +0000 (19:44 -0000)]
remove checks for IP_ADD/DROP_MEMBERSHIP

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

22 years agodon't bother wrapping IP_[ADD,DROP]_MEMBERSHIP with ifdefs since
Jeffrey Stedfast [Sat, 16 Feb 2002 19:42:48 +0000 (19:42 -0000)]
don't bother wrapping IP_[ADD,DROP]_MEMBERSHIP with ifdefs since
solaris does have these afterall.

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

22 years ago2002-02-16 Radek Doulik <rodo@ximian.com>
Radek Doulik [Sat, 16 Feb 2002 19:39:35 +0000 (19:39 -0000)]
2002-02-16  Radek Doulik  <rodo@ximian.com>

* unicode.c (ves_icall_iconv_new_encoder): decide on big_endian,
force big_endian to be 1 for big endian machines
(ves_icall_iconv_new_decoder): ditto

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

22 years ago2002-02-16 Jeffrey Stedfast <fejj@ximian.com>
Jeffrey Stedfast [Sat, 16 Feb 2002 19:37:58 +0000 (19:37 -0000)]
2002-02-16  Jeffrey Stedfast  <fejj@ximian.com>

* configure.in: Add checks for SOL_IP, SOL_TCP, IP_PKTINFO,
IP_ADD_MEMBERSHIP and IP_DROP_MEMBERSHIP. Also check for struct
ip_mreqn.

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

22 years ago2002-02-16 Jeffrey Stedfast <fejj@ximian.com>
Jeffrey Stedfast [Sat, 16 Feb 2002 19:22:40 +0000 (19:22 -0000)]
2002-02-16  Jeffrey Stedfast  <fejj@ximian.com>

* socket-io.c (convert_sockopt_level_and_name): If the system
doesn't define SOL_IP or SOL_TCP, get them by hand using
getprotobyname() and caching the values (because this could be a
slow operation).
(ves_icall_System_Net_Sockets_Socket_SetSocketOption_internal):
Don't attempt to add or drop memberships unless the system
supports it. Also use the appropriate struct when the system does
support it. Ie, not all systems have struct ip_mreqn so use struct
ip_mreq when appropriate.

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

22 years ago2002-02-16 Jeffrey Stedfast <fejj@ximian.com>
Jeffrey Stedfast [Sat, 16 Feb 2002 18:48:14 +0000 (18:48 -0000)]
2002-02-16  Jeffrey Stedfast  <fejj@ximian.com>

* socket-io.c (convert_sockopt_level_and_name): If the system
doesn't define SOL_IP or SOL_TCP, get them by hand using
getprotobyname() and caching the values (because this could be a
slow operation).
(ves_icall_System_Net_Sockets_Socket_SetSocketOption_internal):
Don't attempt to add or drop memberships unless the system
supports it.

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

22 years ago2002-02-16 Jeffrey Stedfast <fejj@ximian.com>
Jeffrey Stedfast [Sat, 16 Feb 2002 18:47:38 +0000 (18:47 -0000)]
2002-02-16  Jeffrey Stedfast  <fejj@ximian.com>

* configure.in: Add checks for SOL_IP, SOL_TCP, IP_PKTINFO,
IP_ADD_MEMBERSHIP and IP_DROP_MEMBERSHIP.

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

22 years ago2002-02-16 Radek Doulik <rodo@ximian.com>
Radek Doulik [Sat, 16 Feb 2002 18:21:33 +0000 (18:21 -0000)]
2002-02-16  Radek Doulik  <rodo@ximian.com>

* interp.c (ves_exec_method): test type of sp [-1] instead of sp
[0], because sp [-1] is the value going to be shifted, fixed in
CEE_SHL, CEE_SHR, CEE_UN opcodes)

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

22 years agoAdd missing makefile
Miguel de Icaza [Sat, 16 Feb 2002 12:13:28 +0000 (12:13 -0000)]
Add missing makefile

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

22 years agoSat Feb 16 16:27:42 CET 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Sat, 16 Feb 2002 11:41:15 +0000 (11:41 -0000)]
Sat Feb 16 16:27:42 CET 2002 Paolo Molaro <lupus@ximian.com>

* emit-x86.c: handle unreachable code. Eliminate some unneeded
malloc() calls.
* jit.c: handle unreachable code. Move setting of mono_end_of_stack to
main(). Add --compile classname and --ncompile num command line
options to do performance evaluation of the jitter (and help
debugging).

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

22 years agoSat Feb 16 12:41:41 CET 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Sat, 16 Feb 2002 07:50:34 +0000 (07:50 -0000)]
Sat Feb 16 12:41:41 CET 2002 Paolo Molaro <lupus@ximian.com>

* Type.cs: fix IsClass.

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

22 years agoSat Feb 16 12:02:02 CET 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Sat, 16 Feb 2002 07:10:54 +0000 (07:10 -0000)]
Sat Feb 16 12:02:02 CET 2002 Paolo Molaro <lupus@ximian.com>

* String.cs: fix Trim().

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

22 years agoSat Feb 16 12:00:24 CET 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Sat, 16 Feb 2002 07:09:22 +0000 (07:09 -0000)]
Sat Feb 16 12:00:24 CET 2002 Paolo Molaro <lupus@ximian.com>

* interp.c: fixed cut&paste error for ldind.r4 and ldind.r8.

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

22 years ago2002-02-16 Duncan Mak <duncan@ximian.com>
Duncan Mak [Sat, 16 Feb 2002 01:19:32 +0000 (01:19 -0000)]
2002-02-16  Duncan Mak  <duncan@ximian.com>

    * SurrogateSelector.cs: Stubbed out. Gonna be working on this
      tomorrow.

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

22 years ago2002-02-15 Duncan Mak <duncan@ximian.com>
Duncan Mak [Fri, 15 Feb 2002 23:16:55 +0000 (23:16 -0000)]
2002-02-15  Duncan Mak  <duncan@ximian.com>

    * SerializationEntry.cs: Added internal constructor bits for
      SerializationInfoEnumerator.
    * SerializationInfo.cs: Completed.
    * SerializationInfoEnumerator.cs: Implemented. Piggybacking on
      Hashtable's GetEnumerator method.

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

22 years agoAdd new sample error case, from Dan
Miguel de Icaza [Fri, 15 Feb 2002 21:28:18 +0000 (21:28 -0000)]
Add new sample error case, from Dan

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

22 years agoAdded StreamWriterTest to AllTests
David Brandt [Fri, 15 Feb 2002 18:55:45 +0000 (18:55 -0000)]
Added StreamWriterTest to AllTests

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

22 years agoAdding 'StreamWriterTest.cs' - mostly finished.
David Brandt [Fri, 15 Feb 2002 18:55:00 +0000 (18:55 -0000)]
Adding 'StreamWriterTest.cs' - mostly finished.

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

22 years agoFixing small incorrectness in test.
David Brandt [Fri, 15 Feb 2002 18:50:40 +0000 (18:50 -0000)]
Fixing small incorrectness in test.

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

22 years agoFri Feb 15 21:02:46 CET 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Fri, 15 Feb 2002 16:11:35 +0000 (16:11 -0000)]
Fri Feb 15 21:02:46 CET 2002 Paolo Molaro <lupus@ximian.com>

* String.cs: fix more off by one errors.

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

22 years agoAdding StreamReaderTest to AllTests
David Brandt [Fri, 15 Feb 2002 16:06:45 +0000 (16:06 -0000)]
Adding StreamReaderTest to AllTests

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

22 years agoAdding System.IO.StreamReaderTest. Only non-inherited methods are tested.
David Brandt [Fri, 15 Feb 2002 16:06:22 +0000 (16:06 -0000)]
Adding System.IO.StreamReaderTest.  Only non-inherited methods are tested.

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

22 years agoFri Feb 15 18:15:04 CET 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Fri, 15 Feb 2002 13:24:40 +0000 (13:24 -0000)]
Fri Feb 15 18:15:04 CET 2002 Paolo Molaro <lupus@ximian.com>

* ILGenerator.cs: finally block support and fixes.

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

22 years agoFri Feb 15 18:15:44 CET 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Fri, 15 Feb 2002 13:24:35 +0000 (13:24 -0000)]
Fri Feb 15 18:15:44 CET 2002 Paolo Molaro <lupus@ximian.com>

* reflection.c: handle finally clauses.

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

22 years agoFri Feb 15 15:07:27 CET 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Fri, 15 Feb 2002 10:16:57 +0000 (10:16 -0000)]
Fri Feb 15 15:07:27 CET 2002 Paolo Molaro <lupus@ximian.com>

* interp.c: use strrchr instead of rindex. use _isnan and _finite on
win32 systems.

Fri Feb 15 15:06:33 CET 2002 Paolo Molaro <lupus@ximian.com>

* socket-io.c: use g_snprintf() instead of snprintf.

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

22 years agoFix make distcheck.
Paolo Molaro [Fri, 15 Feb 2002 10:12:19 +0000 (10:12 -0000)]
Fix make distcheck.

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

22 years agoFri Feb 15 14:20:30 CET 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Fri, 15 Feb 2002 09:29:30 +0000 (09:29 -0000)]
Fri Feb 15 14:20:30 CET 2002 Paolo Molaro <lupus@ximian.com>

* Makefile.am: avoid automake for build on host stuff.

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

22 years agobug fix in static delegate invoke
Dietmar Maurer [Fri, 15 Feb 2002 04:54:34 +0000 (04:54 -0000)]
bug fix in static delegate invoke

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

22 years ago2002-02-14 Jeffrey Stedfast <fejj@ximian.com>
Jeffrey Stedfast [Thu, 14 Feb 2002 22:58:04 +0000 (22:58 -0000)]
2002-02-14  Jeffrey Stedfast  <fejj@ximian.com>

* interp.c (ves_exec_method): replace
'g_assert (sp->type = VAL_VALUETA)' with
'g_assert (sp->type == VAL_VALUETA)' otherwise
the assert always passes. FIXME: should the test have been !=?

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

22 years ago2002-02-14 Jeffrey Stedfast <fejj@ximian.com>
Jeffrey Stedfast [Thu, 14 Feb 2002 22:23:12 +0000 (22:23 -0000)]
2002-02-14  Jeffrey Stedfast  <fejj@ximian.com>

* reflection.c (mono_param_get_objects): Cast second argument to
mono_method_get_param_names to a const char** to silence the
compiler warning.

* appdomain.c (mono_domain_assembly_open): Put parens around the
truth statement in the for-loop.

* unicode.c (iconv_convert): Got rid of a compiler warning about
int i being unused when the system has a new iconv.
(iconv_get_length): Same.

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

22 years ago2002-02-14 Jeffrey Stedfast <fejj@ximian.com>
Jeffrey Stedfast [Thu, 14 Feb 2002 22:06:13 +0000 (22:06 -0000)]
2002-02-14  Jeffrey Stedfast  <fejj@ximian.com>

* image.c (load_class_names): Cast the second argument to
g_hash_table_insert() to char* to hush compiler warnings about the
arg being a const.
(mono_image_open): Same here.

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