mono.git
22 years ago2001-12-17 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Mon, 17 Dec 2001 10:43:07 +0000 (10:43 -0000)]
2001-12-17  Dietmar Maurer  <dietmar@ximian.com>

* icall.c (ves_icall_System_DateTime_GetNow): added EPOCH adjustment

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

22 years ago2001-12-16 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Mon, 17 Dec 2001 06:50:02 +0000 (06:50 -0000)]
2001-12-16  Dietmar Maurer  <dietmar@ximian.com>

* emit-x86.c (arch_handle_exception): new code to handle
exceptions inside unmanaged code.

* x86.brg: impl. SAVE_LMF, RESTORE_LMF, pass implizit valuetype
address as first argument.

* x86.brg: pass exceptions on the stack

* jit.h (ISSTRUCT): new macro to check for real value types
(return false for enum types).

* unicode.c (_wapi_unicode_to_utf8): byteswap UTF16 strings before
passing them to iconv

* file-io.c: raise exceptions if handle is invalid.

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

22 years ago2001-12-17 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Mon, 17 Dec 2001 05:08:30 +0000 (05:08 -0000)]
2001-12-17  Miguel de Icaza  <miguel@ximian.com>

* delegate.cs (Delegate.Populate): Register the delegage constructor builder here.

* ecore.cs: (CopyNewMethods): new utility function used to
assemble the list of methods from running FindMembers.

(MemberLookup): Rework FindMembers so that

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

22 years ago2001-12-17 Gaurav Vaish <Gvaish@iitk.ac.in>
Gaurav Vaish [Mon, 17 Dec 2001 03:48:03 +0000 (03:48 -0000)]
2001-12-17     Gaurav Vaish <Gvaish@iitk.ac.in>

* PropertyConverter   -- Made compilable. Minor errors corrected
* Utils               -- Minor error

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

22 years ago2001-12-17 Gaurav Vaish <gvaish@iitk.ac.in>
Gaurav Vaish [Mon, 17 Dec 2001 03:20:09 +0000 (03:20 -0000)]
2001-12-17    Gaurav Vaish <gvaish@iitk.ac.in>

* UrlUtils   --- Removed ugly Console.WriteLine(...) used for debugging.

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

22 years ago2001-12-17 Gaurav Vaish <GVaish@iitk.ac.in>
Gaurav Vaish [Mon, 17 Dec 2001 03:13:19 +0000 (03:13 -0000)]
2001-12-17      Gaurav Vaish <GVaish@iitk.ac.in>

* BaseCompareValidator           ---  Completed. Finally!
* ChangeLog                      ---  Informed.

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

22 years ago2001-12-16 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Sun, 16 Dec 2001 19:27:42 +0000 (19:27 -0000)]
2001-12-16  Miguel de Icaza  <miguel@ximian.com>

* class.cs (TypeContainer): Remove Delegates who fail to be
defined.

* delegate.cs (Populate): Verify that we dont get null return
values.   TODO: Check for AsAccessible.

* cs-parser.jay: Use basename to emit error 574 (destructor should
have the same name as container class), not the full name.

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

22 years agoAdd test for integer suffixes
Miguel de Icaza [Sun, 16 Dec 2001 19:12:16 +0000 (19:12 -0000)]
Add test for integer suffixes

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

22 years ago2001-12-17 Gaurav Vaish <gvaish@iitk.ac.in>
Gaurav Vaish [Sun, 16 Dec 2001 18:42:42 +0000 (18:42 -0000)]
2001-12-17    Gaurav Vaish <gvaish@iitk.ac.in>

* class.xml        ---- This week's update from my side.

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

22 years ago2001-12-17 Gaurav Vaish <Gvaish@iitk.ac.in>
Gaurav Vaish [Sun, 16 Dec 2001 18:26:37 +0000 (18:26 -0000)]
2001-12-17       Gaurav Vaish <Gvaish@iitk.ac.in>

* DataList, IRepeatInfoUser, RepeaterCommandEventArgs, ValidationCompareOperator               ---- Corrected SILLY mistakes

* BaseCompareValidator    --- Almost done. Just left with AddAttributesToRender(...)

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

22 years ago2001-12-17 Gaurav Vaish <Gvaish@iitk.ac.in>
Gaurav Vaish [Sun, 16 Dec 2001 18:20:32 +0000 (18:20 -0000)]
2001-12-17    Gaurav Vaish <Gvaish@iitk.ac.in>

* ChangeLog    --- Informed about generated classes.

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

22 years ago2001-12-17 Gaurav Vaish <Gvaish@iitk.ac.in>
Gaurav Vaish [Sun, 16 Dec 2001 18:17:35 +0000 (18:17 -0000)]
2001-12-17    Gaurav Vaish <Gvaish@iitk.ac.in>

* PropertyConverter   -- I needed it. Completed
* Utils               -- Also needed this. Initial implementation

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

22 years ago2001-12-16 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Sun, 16 Dec 2001 16:35:23 +0000 (16:35 -0000)]
2001-12-16  Miguel de Icaza  <miguel@ximian.com>

* DataSourceHelper.cs, UrlUtils.cs: Set the correct namespace.

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

22 years ago2001-12-17 Gaurav Vaish <Gvaish@iitk.ac.in>
Gaurav Vaish [Sun, 16 Dec 2001 15:28:23 +0000 (15:28 -0000)]
2001-12-17     Gaurav Vaish <Gvaish@iitk.ac.in>

* RepeaterItem  --- Initial DUMMY implementation

* AdRotator - Minor

* BaseCompareValidator -- Large part done
* ListControl -- Minor error

* RepeaterCommandEventArgs -- Modified

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

22 years ago2001-12-16 Gaurav Vaish <Gvaish@iitk.ac.in>
Gaurav Vaish [Sun, 16 Dec 2001 09:44:18 +0000 (09:44 -0000)]
2001-12-16   Gaurav Vaish <Gvaish@iitk.ac.in>

* CommandEventHandler, DataGridCommandEventHandler, DataGridItemEventHandler

          --- Added some delegates.

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

22 years ago2001-12-15 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Sun, 16 Dec 2001 00:33:35 +0000 (00:33 -0000)]
2001-12-15  Miguel de Icaza  <miguel@ximian.com>

* expression.cs (ArrayCreation.DoResolve): We need to do the
argument resolution *always*.

* decl.cs: Make this hold the namespace.  Hold the root context as
well.
(LookupType): Move here.

* enum.cs, class.cs, interface.cs: Adapt to new hierarchy.

* location.cs (Row, Name): Fixed the code, it was always returning
references to the first file.

* interface.cs: Register properties defined through interfaces.

* driver.cs: Add support for globbing on the command line

* class.cs (Field): Make it derive from MemberCore as well.
(Event): ditto.

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

22 years agoFlush
Miguel de Icaza [Sun, 16 Dec 2001 00:28:14 +0000 (00:28 -0000)]
Flush

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

22 years agoupdate tests
Miguel de Icaza [Sun, 16 Dec 2001 00:28:03 +0000 (00:28 -0000)]
update tests

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

22 years ago2001-12-15 Ravi Pratap <ravi@ximian.com>
Ravi Pratap M [Sun, 16 Dec 2001 00:27:44 +0000 (00:27 -0000)]
2001-12-15  Ravi Pratap  <ravi@ximian.com>

* class.cs (Event::Define): Check that the type of the event is a delegate
type else flag error #66.

Also, re-use TypeContainer.MethodModifiersValid here too as the rules are the
same.

* attribute.cs (DefinePInvokeMethod): Handle named arguments and process
values of EntryPoint, CharSet etc etc.

Pass in the values to TypeBuilder.DefinePInvokeMethod; determine Type etc neatly.

* class.cs (FindMembers): If a method is in transit, its MethodBuilder will
be null and we should ignore this. I am not sure if this is really clean. Apparently,
there's no way of avoiding hitting this because the call is coming from SimpleName.DoResolve,
which needs this to do its work.

* ../errors/cs0066.cs : Add.

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

22 years agoAdd as we now catch this error.
Ravi Pratap M [Sun, 16 Dec 2001 00:14:23 +0000 (00:14 -0000)]
Add as we now catch this error.

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

22 years ago2001-12-15 Ravi Pratap <ravi@ximian.com>
Ravi Pratap M [Sun, 16 Dec 2001 00:13:28 +0000 (00:13 -0000)]
2001-12-15  Ravi Pratap  <ravi@ximian.com>

* makefile : Include test-52.cs in the suite, it works fine!

(NO_PASS): It's test-51 which doesn't seem to pass.

* test-50.cs : Augment some more to set named arguments on
the DllImport attribute.

* test-57.cs : Add. This tests support for Events and does not
pass yet.

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

22 years agoSome class status updates.
Mike Kestner [Sat, 15 Dec 2001 19:59:08 +0000 (19:59 -0000)]
Some class status updates.

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

22 years ago2001-12-15 Mike Kestner <mkestner@speakeasy.net>
Mike Kestner [Sat, 15 Dec 2001 19:54:11 +0000 (19:54 -0000)]
2001-12-15  Mike Kestner <mkestner@speakeasy.net>

* Rectangle.cs : Add a doc comment.
* RectangleF.cs : New struct implementation.

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

22 years ago2001-12-15 Mike Kestner <mkestner@speakeasy.net>
Mike Kestner [Sat, 15 Dec 2001 18:40:04 +0000 (18:40 -0000)]
2001-12-15  Mike Kestner <mkestner@speakeasy.net>

Updated <c> statements
* Rectangle.cs : New struct implementation.

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

22 years ago2001-12-15 Gaurav Vaish <Gvaish@iitk.ac.in>
Gaurav Vaish [Sat, 15 Dec 2001 13:52:11 +0000 (13:52 -0000)]
2001-12-15  Gaurav Vaish <Gvaish@iitk.ac.in>

* DataListCommandEventArgs  -- Completed
* CompareValidator          -- Partial Implemetation

* ChangeLog                 -- Updated

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

22 years ago2001-12-15 Gaurav Vaish <Gvaish@iitk.ac.in>
Gaurav Vaish [Sat, 15 Dec 2001 13:49:31 +0000 (13:49 -0000)]
2001-12-15       Gaurav Vaish <Gvaish@iitk.ac.in>

* AdCreatedEventArgs.cs   - Comments

* BaseCompareValidator.cs - Some undocumented methods
* CheckBoxList.cs         - Comments
* CommandEventArgs, DataGridCommandEventArgs, RepeaterCommandEventArgs -- Completed

* ChangeLog - Updated

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

22 years agoMore refactoring work
Miguel de Icaza [Sat, 15 Dec 2001 04:32:39 +0000 (04:32 -0000)]
More refactoring work

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

22 years agoimprove slightly test-31
Miguel de Icaza [Fri, 14 Dec 2001 21:05:53 +0000 (21:05 -0000)]
improve slightly test-31

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

22 years ago2001-12-14 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Fri, 14 Dec 2001 21:05:22 +0000 (21:05 -0000)]
2001-12-14  Miguel de Icaza  <miguel@ximian.com>

* typemanager.cs: (GetPropertyGetter, GetPropertyGetter): New
helper functions.

* class.cs: (MethodSignature.MethodSignature): Removed hack that
clears out the parameters field.
(MemberSignatureCompare): Cleanup

(MemberCore): New base class used to share code between MethodCore
and Property.

(RegisterRequiredImplementations) BindingFlags.Public requires
either BindingFlags.Instace or Static.  Use instance here.

* parameter.cs (GetParameterInfo): Return an empty array instead
of null on error.

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

22 years agoFlush changes from work, minimal
Miguel de Icaza [Fri, 14 Dec 2001 14:25:07 +0000 (14:25 -0000)]
Flush changes from work, minimal

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

22 years agoArrayCreation::MakeByteBlob): Handle floats and doubles.
Ravi Pratap M [Fri, 14 Dec 2001 13:59:46 +0000 (13:59 -0000)]
ArrayCreation::MakeByteBlob): Handle floats and doubles.

* makefile: Pass in /unsafe.

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

22 years ago * test-45.cs : Update for float and double initialization.
Ravi Pratap M [Fri, 14 Dec 2001 13:52:49 +0000 (13:52 -0000)]
* test-45.cs : Update for float and double initialization.

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

22 years ago2001-12-14 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Fri, 14 Dec 2001 13:19:55 +0000 (13:19 -0000)]
2001-12-14  Miguel de Icaza  <miguel@ximian.com>

* parameter.cs (GetParameterInfo): return a zero-sized array.

* class.cs (TypeContainer.MethodModifiersValid): Move all the
method modifier validation to the typecontainer so we can reuse
this on properties.

(MethodCore.ParameterTypes): return an empty sized array of types.

(Property.Define): Test property modifier validity.

Add tests for sealed/override too.

(Method.Emit): abstract or extern methods have no bodies.

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

22 years agoavi Pratap <ravi@ximian.com>
Ravi Pratap M [Fri, 14 Dec 2001 12:36:18 +0000 (12:36 -0000)]
avi Pratap  <ravi@ximian.com>

* class.cs (Method.IsPInvoke): Get rid of it as it is an expensive
thing.

(Method::Define, ::Emit): Modify accordingly.

* expression.cs (Invocation::OverloadResolve): Handle error # 121.

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

22 years ago2001-12-13 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Thu, 13 Dec 2001 23:37:01 +0000 (23:37 -0000)]
2001-12-13  Miguel de Icaza  <miguel@ximian.com>

* class.cs (TypeContainer.Define): Correctly define explicit
method implementations (they require the full interface name plus
the method name).

* typemanager.cs: Deply the PtrHashtable here and stop using the
lame keys.  Things work so much better.

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

22 years ago3 more tests pass now
Miguel de Icaza [Thu, 13 Dec 2001 23:32:13 +0000 (23:32 -0000)]
3 more tests pass now

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

22 years ago2001-12-13 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Thu, 13 Dec 2001 23:10:24 +0000 (23:10 -0000)]
2001-12-13  Miguel de Icaza  <miguel@ximian.com>

* support.cs (PtrHashtable): A hashtable that avoid comparing with
the object stupid Equals method (because, that like fails all over
the place).  We still do not use it.

* class.cs (TypeContainer.SetRequiredInterface,
TypeContainer.RequireMethods): Killed these two routines and moved
all the functionality to RegisterRequiredImplementations.

(TypeContainer.RegisterRequiredImplementations): This routine now
registers all the implementations required in an array for the
interfaces and abstract methods.  We use an array of structures
which can be computed ahead of time to reduce memory usage and we
also assume that lookups are cheap as most classes will not
implement too many interfaces.

We also avoid creating too many MethodSignatures.

(TypeContainer.IsInterfaceMethod): Update and optionally does not
clear the "pending" bit if we find that there are problems with
the declaration.

(TypeContainer.VerifyPendingMethods): Update to report errors of
methods that look like implementations but are not.

(TypeContainer.Define): Add support for explicit interface method
implementation.

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

22 years agoThu Dec 13 20:27:08 CET 2001 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 13 Dec 2001 15:57:58 +0000 (15:57 -0000)]
Thu Dec 13 20:27:08 CET 2001 Paolo Molaro <lupus@ximian.com>

* assembly.c: yet another check for mscorlib.
* class.c, class.h: load nesting info for classes.
* icall.c: many new functions to support the Reflection classes.
* metadata.c, metadata.h: mono_metadata_nested_in_typedef() added.
* reflection.h, reflection.c: mono_image_create_token(),
mono_assembly_get_object(), mono_type_get_object(),
mono_method_get_object(), mono_field_get_object(): methods to return
objects that parallel the C representation of assemblies, types,
methods, fields.

Thu Dec 13 20:24:28 CET 2001 Paolo Molaro <lupus@ximian.com>

* interp.c: correctly handle exceptions generated in C code.
Install an handler for SIGSEGV. Bare-bones profiler and hook for the
verifier.

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

22 years agoThu Dec 13 20:10:57 CET 2001 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 13 Dec 2001 15:57:22 +0000 (15:57 -0000)]
Thu Dec 13 20:10:57 CET 2001 Paolo Molaro <lupus@ximian.com>

* Array.cs: implement CopyTo ().
* Char.cs: implement ToString ().
* Exception.cs: bugfix.
* Int32.cs: bare-bones Parse ().
* MonoType.cs: query the needed info with an internalcall.
* String.cs: speedups, bugfixes, reduced copies.
* Type.cs: added missing fields. Implemented many of the Is*
properties. Implemented GetMethod(), GetConstructor(), GetMethods(),
GetFields(), FindMembers(), ToString().

Thu Dec 13 20:17:08 CET 2001 Paolo Molaro <lupus@ximian.com>

* ArrayList.cs: implemented AddRange(), CopyTo().

Thu Dec 13 20:18:05 CET 2001 Paolo Molaro <lupus@ximian.com>

* FieldInfo.cs: implemented some Is* propeties.
* MethodBase.cs: fixed attribute accessors.
* MonoField.cs: runtime object to represent a field.
* MonoMethod.cs: runtime object to represent a method.
* AssemblyBuilder.cs: GetToken() methods to get tokens for
strings, fields, methods...
* ILGenerator.cs: handle tokens for methods.

Thu Dec 13 20:22:18 CET 2001 Paolo Molaro <lupus@ximian.com>

* DllImportAttribute.cs: added.
* MethodImplOptions.cs: removed: this is already in CompilerServices.

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

22 years agoThu Dec 13 15:56:53 CET 2001 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 13 Dec 2001 11:03:21 +0000 (11:03 -0000)]
Thu Dec 13 15:56:53 CET 2001 Paolo Molaro <lupus@ximian.com>

* x86/x86-codegen.h: x86_mov_memindex_imm() added.

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

22 years ago2001-12-12 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Wed, 12 Dec 2001 23:53:12 +0000 (23:53 -0000)]
2001-12-12  Miguel de Icaza  <miguel@ximian.com>

* typemanager.cs: Keep track of the parameters here instead of
being a feature of the TypeContainer.

* class.cs: Drop the registration of parameters here, as
InterfaceMethods are also interface declarations.

* delegate.cs: Register methods with the TypeManager not only with
the TypeContainer.  This code was buggy.

* interface.cs: Full registation here.

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

22 years agoMore bugs
Miguel de Icaza [Wed, 12 Dec 2001 23:21:15 +0000 (23:21 -0000)]
More bugs

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

22 years agoAdd error cs0121
Miguel de Icaza [Wed, 12 Dec 2001 23:20:55 +0000 (23:20 -0000)]
Add error cs0121

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

22 years agoFixed 32 bit -> 64 bit arithmetic problem found by Paolo
Dick Porter [Wed, 12 Dec 2001 13:50:07 +0000 (13:50 -0000)]
Fixed 32 bit -> 64 bit arithmetic problem found by Paolo

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

22 years agoSmall bug fix introduced in previous commit
Miguel de Icaza [Wed, 12 Dec 2001 00:53:25 +0000 (00:53 -0000)]
Small bug fix introduced in previous commit

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

22 years agoFlush going home, nothing important
Miguel de Icaza [Tue, 11 Dec 2001 22:20:20 +0000 (22:20 -0000)]
Flush going home, nothing important

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

22 years ago2001-12-11 Dick Porter <dick@ximian.com>
Dick Porter [Tue, 11 Dec 2001 16:59:43 +0000 (16:59 -0000)]
2001-12-11  Dick Porter  <dick@ximian.com>

* Linux.cs: IO implemented with file handles with internal calls,
rather than casting file descriptors for C library p/invokes.
Implemented Get/Set Creation/LastAccess/LastWrite TimeFile
functions.

2001-12-11  Dick Porter  <dick@ximian.com>

* FileStream.cs: Use handles rather than casting file descriptors.
Added Handle property.

2001-12-11  Dick Porter  <dick@ximian.com>

* DateTime.cs: Implemented FromFileTime() and ToFileTime()

* Console.cs: Use handles rather than casting file descriptors

2001-12-11  Dick Porter  <dick@ximian.com>

* WaitHandle.cs: Implemented WaitAll(), WaitAny() and WaitOne() as
internal calls.

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

22 years ago2001-12-11 Dick Porter <dick@ximian.com>
Dick Porter [Tue, 11 Dec 2001 16:31:34 +0000 (16:31 -0000)]
2001-12-11  Dick Porter  <dick@ximian.com>

* icall.c:
* file-io.c: Internal calls for file IO.

2001-12-11  Dick Porter  <dick@ximian.com>

* io.c: Implement DeleteFile(), GetFileTime(), SetFileTime() and
FileTimeToSystemTime().

* unicode.c (unicode_len): Nasty way of finding length of unicode
string with embedded NULLs (counts until two NULLs together).

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

22 years ago2001-12-11 Duncan Mak <duncan@ximian.com>
Duncan Mak [Tue, 11 Dec 2001 15:05:37 +0000 (15:05 -0000)]
2001-12-11  Duncan Mak  <duncan@ximian.com>

    * ChangeLog: Added "System.Resources" to the exclude list.

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

22 years ago2001-12-11 Duncan Mak <duncan@ximian.com>
Duncan Mak [Tue, 11 Dec 2001 15:04:20 +0000 (15:04 -0000)]
2001-12-11  Duncan Mak  <duncan@ximian.com>

    * Checked in to CVS.

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

22 years agoetmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Tue, 11 Dec 2001 11:16:20 +0000 (11:16 -0000)]
etmar Maurer  <dietmar@ximian.com>

* x86.brg: use position indepentent code if possible.

* x86.brg (EMIT_COND_EXCEPTION): new macro.

* emit-x86.c (mono_emit_cfg): impl. variable code buffer size

* jit.c (mono_analyze_flow): use g_malloc0 o allocate large bcinfo
blocks.
(mono_analyze_flow): use g_malloc0 o allocate large bblocks array.

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

22 years agoAdd bug
Miguel de Icaza [Tue, 11 Dec 2001 00:17:09 +0000 (00:17 -0000)]
Add bug

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

22 years agoadded a new test that fails with mint
Dietmar Maurer [Mon, 10 Dec 2001 11:57:47 +0000 (11:57 -0000)]
added a new test that fails with mint

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

22 years ago2001-12-10 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Mon, 10 Dec 2001 09:11:55 +0000 (09:11 -0000)]
2001-12-10  Dietmar Maurer  <dietmar@ximian.com>

* x86.brg (stmt): added opt. for STIND_R4/STIND_R8

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

22 years agoMore errors that we catch
Miguel de Icaza [Mon, 10 Dec 2001 01:25:29 +0000 (01:25 -0000)]
More errors that we catch

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

22 years ago2001-12-09 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Mon, 10 Dec 2001 01:24:16 +0000 (01:24 -0000)]
2001-12-09  Miguel de Icaza  <miguel@ximian.com>

* statement.cs (Return.Emit): Report error 157 if the user
attempts to return from a finally block.

(Return.Emit): Instead of emitting a return, jump to the end of
the function.

* codegen.cs (EmitContext): ReturnValue, ReturnLabel: new
LocalBuilder to store the result of the function.  ReturnLabel is
the target where we jump.

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

22 years ago2001-12-09 Radek Doulik <rodo@ximian.com>
Radek Doulik [Sun, 9 Dec 2001 15:29:27 +0000 (15:29 -0000)]
2001-12-09  Radek Doulik  <rodo@ximian.com>

* makefile (TEST_SOURCES): added test-55 for using alias directive

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

22 years ago2001-12-09 Radek Doulik <rodo@ximian.com>
Radek Doulik [Sun, 9 Dec 2001 15:28:19 +0000 (15:28 -0000)]
2001-12-09  Radek Doulik  <rodo@ximian.com>

* cs-parser.jay: remember alias in current namespace

* ecore.cs (SimpleName::DoResolve): use aliases for types or
namespaces

* class.cs (LookupAlias): lookup alias in my_namespace

* namespace.cs (UsingAlias): add alias, namespace_or_type pair to
aliases hashtable
(LookupAlias): lookup alias in this and if needed in parent
namespaces

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

22 years agoAdd more tests, update test-53
Miguel de Icaza [Sat, 8 Dec 2001 22:48:43 +0000 (22:48 -0000)]
Add more tests, update test-53

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

22 years ago2001-12-08 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Sat, 8 Dec 2001 22:45:22 +0000 (22:45 -0000)]
2001-12-08  Miguel de Icaza  <miguel@ximian.com>

* support.cs:

* rootcontext.cs: (ModuleBuilder) Made static, first step into
making things static.  I need this to avoid passing the
TypeContainer when calling ParameterType.

* support.cs (InternalParameters.ParameterType): Remove ugly hack
that did string manipulation to compute the type and then call
GetType.  Use Parameter.ParameterType instead.

* cs-tokenizer.cs: Consume the suffix for floating values.

* expression.cs (ParameterReference): figure out whether this is a
reference parameter or not.  Kill an extra variable by computing
the arg_idx during emission.

* parameter.cs (Parameters.GetParameterInfo): New overloaded
function that returns whether a parameter is an out/ref value or not.

(Parameter.ParameterType): The type of the parameter (base,
without ref/out applied).

(Parameter.Resolve): Perform resolution here.
(Parameter.ExternalType): The full type (with ref/out applied).

* statement.cs (Using.Emit, Using.EmitExpression): Implement
support for expressions on the using statement.

2001-12-07  Miguel de Icaza  <miguel@ximian.com>

* statement.cs (Using.EmitLocalVariableDecls): Split the
localvariable handling of the using statement.

(Block.EmitMeta): Keep track of variable count across blocks.  We
were reusing slots on separate branches of blocks.

(Try.Emit): Emit the general code block, we were not emitting it.

Check the type of the declaration to be an IDisposable or
something that can be implicity converted to it.

Emit conversions if required.

* ecore.cs (EmptyExpression): New utility class.
(Expression.ImplicitConversionExists): New utility function.

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

22 years ago* Ignoring <PrivateImplementationDetails>;
Sergey Chaban [Sat, 8 Dec 2001 15:21:31 +0000 (15:21 -0000)]
* Ignoring <PrivateImplementationDetails>;
* Checking for more attributes when comparing types;

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

22 years agouse x86_inc/x86_dec, bug fix in getNow()
Dietmar Maurer [Sat, 8 Dec 2001 05:06:06 +0000 (05:06 -0000)]
use x86_inc/x86_dec, bug fix in getNow()

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

22 years ago*** empty log message ***
Dietmar Maurer [Fri, 7 Dec 2001 13:01:36 +0000 (13:01 -0000)]
*** empty log message ***

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

22 years agoetmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Fri, 7 Dec 2001 12:09:30 +0000 (12:09 -0000)]
etmar Maurer  <dietmar@ximian.com>

* jit.c (mono_allocate_intvar): bug fix.

* emit-x86.c (get_unbox_trampoline): impl.

* jit.c (mono_analyze_stack): impl STOBJ, LEAVE

* x86.brg: raise more exceptions.

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

22 years ago2001-12-08 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Fri, 7 Dec 2001 12:05:28 +0000 (12:05 -0000)]
2001-12-08  Nick Drochak  <ndrochak@gol.com>

* Byte.cs (Parse): Start implementation. Parse(string) works, but
now we need to handle other formats

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

22 years ago2001-12-08 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Fri, 7 Dec 2001 11:51:37 +0000 (11:51 -0000)]
2001-12-08  Nick Drochak  <ndrochak@gol.com>

* ByteTest.cs: Added messages to Assert()'s to find out which one was failing.

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

22 years ago2001-12-07 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Fri, 7 Dec 2001 10:53:20 +0000 (10:53 -0000)]
2001-12-07  Nick Drochak <ndrochak@gol.com>

* ChangeLog: Add the change log to this directory

* System.XML.build: Add dependancy on linux target to test target.
Need to have the dll before we can test it, right?  Plus it encourages
others to try 'make test'.

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

22 years ago2001-12-07 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Fri, 7 Dec 2001 10:50:26 +0000 (10:50 -0000)]
2001-12-07  Nick Drochak <ndrochak@gol.com>

* ChangeLog: Add the change log to this directory

* System.build: Add dependancy on linux target to test target. Need to
have the dll before we can test it, right?  Plus it encourages others
to try 'make test'.

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

22 years ago2001-12-05 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Fri, 7 Dec 2001 10:42:03 +0000 (10:42 -0000)]
2001-12-05  Nick Drochak <ndrochak@gol.com>

* ChangeLog: Add the change log to this directory

* corlib.build: Add dependancy on linux target to test target. Need to have the dll before we can test it, right?  Plus it encourages others to try 'make test'.

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

22 years agoExtra tests
Miguel de Icaza [Fri, 7 Dec 2001 04:56:12 +0000 (04:56 -0000)]
Extra tests

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

22 years ago2001-12-06 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Fri, 7 Dec 2001 04:52:18 +0000 (04:52 -0000)]
2001-12-06  Miguel de Icaza  <miguel@ximian.com>

* statement.cs (Using): Implement.

* expression.cs (LocalVariableReference): Support read only variables.

* statement.cs: Remove the explicit emit for the Leave opcode.
(VariableInfo): Add a readonly field.

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

22 years ago2001-12-06 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Thu, 6 Dec 2001 14:06:50 +0000 (14:06 -0000)]
2001-12-06  Miguel de Icaza  <miguel@ximian.com>

* statement.cs: Remove the explicit emit for the Leave opcode.

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

22 years agoThu Dec 6 16:21:30 CET 2001 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 6 Dec 2001 11:32:32 +0000 (11:32 -0000)]
Thu Dec 6 16:21:30 CET 2001 Paolo Molaro <lupus@ximian.com>

* tabledefs.h: missing FileAttributes.
* verify.h, verify.c: use is_valid_string () to simplify and check for
valid strings more correctly. Fix warnings and speeling.
Check more tables: Filed, File, ModuleRef, StandAloneSig.
Check code: branches, maxstack, method calls.

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

22 years ago2001-12-06 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Thu, 6 Dec 2001 05:00:39 +0000 (05:00 -0000)]
2001-12-06  Dietmar Maurer  <dietmar@ximian.com>

* makefile: added new target test-jit

* Double.cs: added the parse method from Bob Smith

* DateTime.cs: added an icall to GetNow()

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

22 years ago2001-12-06 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Thu, 6 Dec 2001 04:02:50 +0000 (04:02 -0000)]
2001-12-06  Miguel de Icaza  <miguel@ximian.com>

* jit.c (mono_analyze_stack), x86.brg: Implement CONV.OVF.I1,
CONV.OVF.I4, CONV.OVF.I1.UN, CONV.OVF.U1, CONV.OVF.U1.UN,
CONV.OVF.I2.UN, CONV.OVF.I8.UN

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

22 years ago2001-12-05 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Wed, 5 Dec 2001 13:11:27 +0000 (13:11 -0000)]
2001-12-05  Miguel de Icaza  <miguel@ximian.com>

* ecore.cs (ConvCast): new class used to encapsulate the various
explicit integer conversions that works in both checked and
unchecked contexts.

(Expression.ConvertNumericExplicit): Use new ConvCast class to
properly generate the overflow opcodes.

2001-12-04  Miguel de Icaza  <miguel@ximian.com>

* statement.cs: The correct type for the EmptyExpression is the

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

22 years ago2001-12-04 Ravi Pratap <ravi@ximian.com>
Ravi Pratap M [Tue, 4 Dec 2001 17:33:03 +0000 (17:33 -0000)]
2001-12-04  Ravi Pratap  <ravi@ximian.com>

* class.cs (Method::Define): Handle PInvoke methods specially
by using DefinePInvokeMethod instead of the usual one.

* attribute.cs (DefinePInvokeMethod): Implement as this is what is called
above to do the task of extracting information and defining the method.

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

22 years ago2001-12-04 Ravi Pratap <ravi@ximian.com>
Ravi Pratap M [Tue, 4 Dec 2001 17:31:15 +0000 (17:31 -0000)]
2001-12-04  Ravi Pratap <ravi@ximian.com>

* makefile : Update to include test 50 as it now passes.

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

22 years ago2001-12-04 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Tue, 4 Dec 2001 15:59:27 +0000 (15:59 -0000)]
2001-12-04  Dietmar Maurer  <dietmar@ximian.com>

* x86.brg: impl. UNBOX, NEWSTRUCT, removed VTYPE, bug fixes,
removed the locaddr nonterminal, reimplemented value types

* jit.c: reimplemented value type support, better support for
enumeration types.

* object.c (mono_object_allocate): removed static, so that the jit
can allocate value types.

* icall.c (ves_icall_System_DateTime_GetNow): impl.

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

22 years ago2001-12-04 Ravi Pratap <ravi@ximian.com>
Ravi Pratap M [Tue, 4 Dec 2001 14:52:10 +0000 (14:52 -0000)]
2001-12-04  Ravi Pratap  <ravi@ximian.com>

* expression.cs (ArrayCreation::EmitStaticInitializers): Get rid
of the condition for string type.

(Emit): Move that here.

(ArrayCreation::CheckIndices): Keep string literals in their expression
form.

(EmitDynamicInitializers): Handle strings appropriately.

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

22 years ago2001-12-04 Ravi Pratap <ravi@ximian.com>
Ravi Pratap M [Tue, 4 Dec 2001 14:43:21 +0000 (14:43 -0000)]
2001-12-04  Ravi Pratap <ravi@ximian.com>

* test-45.cs : Update for string initialization tests.

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

22 years agoFix mail server url
Miguel de Icaza [Tue, 4 Dec 2001 14:31:59 +0000 (14:31 -0000)]
Fix mail server url

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

22 years ago2001-12-03 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Tue, 4 Dec 2001 07:31:31 +0000 (07:31 -0000)]
2001-12-03  Miguel de Icaza  <miguel@ximian.com>

* x86.brg, jit.c: Implement conv.ovf.u4, conv.ovf.u2, conv.ovf.i2,
conv.ovf.u8

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

22 years ago2001-12-04 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Tue, 4 Dec 2001 02:32:08 +0000 (02:32 -0000)]
2001-12-04  Miguel de Icaza  <miguel@ximian.com>

* codegen.cs (EmitContext): Replace multiple variables with a
single pointer to the current Switch statement.

* statement.cs (GotoDefault, Switch): Adjust to cleaned up
EmitContext.

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

22 years agoNew error test files
Miguel de Icaza [Tue, 4 Dec 2001 00:55:13 +0000 (00:55 -0000)]
New error test files

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

22 years agoAdd new tests
Miguel de Icaza [Tue, 4 Dec 2001 00:54:29 +0000 (00:54 -0000)]
Add new tests

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

22 years ago2001-12-03 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Tue, 4 Dec 2001 00:28:32 +0000 (00:28 -0000)]
2001-12-03  Miguel de Icaza  <miguel@ximian.com>

* statement.cs

* statement.cs (GotoDefault), cs-parser.jay: Implement `goto
default'.

(Foreach.Emit): Foreach on arrays was not setting
up the loop variables (for break/continue).

(GotoCase): Semi-implented.

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

22 years ago2001-12-03 Ravi Pratap <ravi@ximian.com>
Ravi Pratap M [Mon, 3 Dec 2001 17:47:44 +0000 (17:47 -0000)]
2001-12-03  Ravi Pratap  <ravi@ximian.com>

* attribute.cs (CheckAttribute): Handle system attributes by using
Attribute.GetAttributes to examine information we need.

(GetValidPlaces): Same here.

* class.cs (Method::Define): Catch invalid use of extern and abstract together.

* typemanager.cs (dllimport_type): Core type for System.DllImportAttribute.

* class.cs (Method.IsPinvoke): Used to determine if we are a PInvoke method.

(Method::Define): Set appropriate flags if we have a DllImport attribute.

(Method::Emit): Handle the case when we are a PInvoke method.

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

22 years ago2001-12-03 Ravi Pratap <ravi@ximian.com>
Ravi Pratap M [Mon, 3 Dec 2001 17:42:48 +0000 (17:42 -0000)]
2001-12-03  Ravi Pratap <ravi@ximian.com>

* test-50.cs : Add. This does not pass yet.

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

22 years agoupdate
Miguel de Icaza [Mon, 3 Dec 2001 14:37:34 +0000 (14:37 -0000)]
update

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

22 years ago2001-12-03 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Mon, 3 Dec 2001 14:02:25 +0000 (14:02 -0000)]
2001-12-03  Miguel de Icaza  <miguel@ximian.com>

* expression.cs: Use ResolveWithSimpleName on compound names.

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

22 years agoDum de dum, missing files for previous commit.
Paolo Molaro [Mon, 3 Dec 2001 12:30:59 +0000 (12:30 -0000)]
Dum de dum, missing files for previous commit.

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

22 years agoMon Dec 3 17:02:01 CET 2001 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 3 Dec 2001 12:23:29 +0000 (12:23 -0000)]
Mon Dec 3 17:02:01 CET 2001 Paolo Molaro <lupus@ximian.com>

* class.c: init enum types right away and register the
token->MonoClass map in mono_class_create_from_typedef ().
* verify.h, verify.c: first cut of the verifier.
* pedump.c: add --verify switch to verify metadata tables.
* tabledefs.h: add some missing enums.

Mon Dec 3 17:16:36 CET 2001 Paolo Molaro <lupus@ximian.com>

* jit.c: call mono_init() after registering internal calls.

Mon Dec 3 17:15:44 CET 2001 Paolo Molaro <lupus@ximian.com>

* interp.c: call mono_init() after registering internal calls.

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

22 years ago2001-12-02 Gaurav Vaish <Gvaish@iitk.ac.in>
Gaurav Vaish [Sun, 2 Dec 2001 17:16:42 +0000 (17:16 -0000)]
2001-12-02    Gaurav Vaish <Gvaish@iitk.ac.in>

* ChangeLog  --- Updated for CheckBoxList

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

22 years ago2001-12-02 Gaurav Vaish <gvaish@iitk.ac.in>
Gaurav Vaish [Sun, 2 Dec 2001 17:14:11 +0000 (17:14 -0000)]
2001-12-02      Gaurav Vaish <gvaish@iitk.ac.in>

* Minor changes in comments

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

22 years ago2001-12-02 Gaurav Vaish <gvaish@iitk.ac.in>
Gaurav Vaish [Sun, 2 Dec 2001 17:13:20 +0000 (17:13 -0000)]
2001-12-02       Gaurav Vaish <gvaish@iitk.ac.in>

* ListControl.cs     --- Done

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

22 years ago2001-12-02 Gaurav Vaish <gvaish@iitk.ac.in>
Gaurav Vaish [Sun, 2 Dec 2001 17:12:40 +0000 (17:12 -0000)]
2001-12-02    Gaurav Vaish <gvaish@iitk.ac.in>

* CheckBoxList.cs   --- Almost done. Except for Render-ing

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

22 years ago2001-12-02 Ravi Pratap <ravi@ximian.com>
Ravi Pratap M [Sun, 2 Dec 2001 10:07:06 +0000 (10:07 -0000)]
2001-12-02  Ravi Pratap  <ravi@ximian.com>

* constant.cs (EmitConstant): Make sure we resolve the associated expression
before trying to reduce it.

* typemanager.cs (RegisterConstant, LookupConstant): Implement.

* constant.cs (LookupConstantValue): Implement.

(EmitConstant): Use the above in emitting the constant.

* expression.cs (MemberAccess::ResolveMemberAccess): Handle constants
that are user-defined by doing a LookupConstantValue on them.

(SimpleName::DoResolve): When we have a FieldExpr, cope with constants
too, like above.

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

22 years ago2001-12-02 Ravi Pratap <ravi@ximian.com>
Ravi Pratap M [Sun, 2 Dec 2001 10:04:15 +0000 (10:04 -0000)]
2001-12-02  Ravi Pratap  <ravi@ximian.com>

* test-40.cs : Update to now test recursive definitions with
constants hooked up.

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

22 years agoAdd AnonCVS
Miguel de Icaza [Sat, 1 Dec 2001 21:50:32 +0000 (21:50 -0000)]
Add AnonCVS

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