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
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
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
Miguel de Icaza [Sun, 16 Dec 2001 00:28:14 +0000 (00:28 -0000)]
Flush
svn path=/trunk/mcs/; revision=1588
Miguel de Icaza [Sun, 16 Dec 2001 00:28:03 +0000 (00:28 -0000)]
update tests
svn path=/trunk/mcs/; revision=1587
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
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
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
Mike Kestner [Sat, 15 Dec 2001 19:59:08 +0000 (19:59 -0000)]
Some class status updates.
svn path=/trunk/mono/; revision=1583
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
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
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
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
Miguel de Icaza [Sat, 15 Dec 2001 04:32:39 +0000 (04:32 -0000)]
More refactoring work
svn path=/trunk/mcs/; revision=1578
Miguel de Icaza [Fri, 14 Dec 2001 21:05:53 +0000 (21:05 -0000)]
improve slightly test-31
svn path=/trunk/mcs/; revision=1577
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
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
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
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
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
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
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
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
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
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
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
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
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
Miguel de Icaza [Wed, 12 Dec 2001 23:21:15 +0000 (23:21 -0000)]
More bugs
svn path=/trunk/mcs/; revision=1563
Miguel de Icaza [Wed, 12 Dec 2001 23:20:55 +0000 (23:20 -0000)]
Add error cs0121
svn path=/trunk/mcs/; revision=1562
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
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
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
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
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
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
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
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
Miguel de Icaza [Tue, 11 Dec 2001 00:17:09 +0000 (00:17 -0000)]
Add bug
svn path=/trunk/mcs/; revision=1552
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
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
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
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
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
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
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
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
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
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
Dietmar Maurer [Fri, 7 Dec 2001 13:01:36 +0000 (13:01 -0000)]
*** empty log message ***
svn path=/trunk/mono/; revision=1540
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
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
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
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
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
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
Miguel de Icaza [Fri, 7 Dec 2001 04:56:12 +0000 (04:56 -0000)]
Extra tests
svn path=/trunk/mcs/; revision=1533
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
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
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
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
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
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
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
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
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
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
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
Miguel de Icaza [Tue, 4 Dec 2001 14:31:59 +0000 (14:31 -0000)]
Fix mail server url
svn path=/trunk/mono/; revision=1520
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
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
Miguel de Icaza [Tue, 4 Dec 2001 00:55:13 +0000 (00:55 -0000)]
New error test files
svn path=/trunk/mcs/; revision=1517
Miguel de Icaza [Tue, 4 Dec 2001 00:54:29 +0000 (00:54 -0000)]
Add new tests
svn path=/trunk/mcs/; revision=1516
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
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
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
Miguel de Icaza [Mon, 3 Dec 2001 14:37:34 +0000 (14:37 -0000)]
update
svn path=/trunk/mono/; revision=1512
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
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
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
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
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
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
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
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
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
Miguel de Icaza [Sat, 1 Dec 2001 21:50:32 +0000 (21:50 -0000)]
Add AnonCVS
svn path=/trunk/mono/; revision=1502
Ravi Pratap M [Sat, 1 Dec 2001 17:47:53 +0000 (17:47 -0000)]
Make the recursive definitions more roundabout
svn path=/trunk/mcs/; revision=1501
Miguel de Icaza [Sat, 1 Dec 2001 16:25:08 +0000 (16:25 -0000)]
2001-11-29 Miguel de Icaza <miguel@ximian.com>
* expression.cs (BaseAccess, BaseIndexer): Also split this out.
(BaseAccess.DoResolve): Implement.
(MemberAccess.DoResolve): Split this routine into a
ResolveMemberAccess routine that can be used independently
2001-11-28 Miguel de Icaza <miguel@ximian.com>
* expression.cs (Probe, Is, As): Split Probe in two classes Is and
As that share bits of the implementation. Is returns a boolean,
while As returns the Type that is being probbed.
svn path=/trunk/mcs/; revision=1500
Ravi Pratap M [Sat, 1 Dec 2001 13:55:44 +0000 (13:55 -0000)]
2001-12-01 Ravi Pratap <ravi@ximian.com>
* enum.cs (LookupEnumValue): Re-write various bits, return an object value
instead of a Literal - much easier.
(EnumInTransit): Remove - utterly useless :-)
(Populate): Re-write bits - remove duplicate code etc. The code is much neater now.
* expression.cs (MemberLookup): Cope with user-defined enums when they are in transit.
* enum.cs (LookupEnumValue): Auto-compute next values by going down the dependency
chain when we have no associated expression.
2001-11-30 Ravi Pratap <ravi@ximian.com>
* constant.cs (Define): Use Location while reporting the errror.
Also emit a warning when 'new' is used and there is no inherited
member to hide.
* enum.cs (EnumInTransit): Used to tell if an enum type is in the process of being
populated.
(LookupEnumValue): Implement to lookup an enum member's value and define it
if necessary.
(Populate): Re-write accordingly to use the above routine.
svn path=/trunk/mcs/; revision=1498
Ravi Pratap M [Sat, 1 Dec 2001 13:53:53 +0000 (13:53 -0000)]
2001-12-01 Ravi Pratap <ravi@ximian.com>
* test-40.cs : Update to do recursive enumeration definition.
svn path=/trunk/mcs/; revision=1497
Gaurav Vaish [Sat, 1 Dec 2001 05:15:43 +0000 (05:15 -0000)]
2001-12-01 Gaurav Vaish <gvaish@iitk.ac.in>
* ListControl.cs --- Finished it. And also understood what DataBinding is all about. :)))
svn path=/trunk/mcs/; revision=1496
Gaurav Vaish [Sat, 1 Dec 2001 05:14:58 +0000 (05:14 -0000)]
2001-12-01 Gaurav Vaish <gvaish@iitk.ac.in>
* ChangeLog -- ListControl Finished man!
svn path=/trunk/mcs/; revision=1495
Gaurav Vaish [Sat, 1 Dec 2001 04:56:03 +0000 (04:56 -0000)]
2001-12-01 Gaurav Vaish <gvaish@iitk.ac.in>
* ListControl.cs --- Pretty descent. Looks complete.
svn path=/trunk/mcs/; revision=1494
Dietmar Maurer [Fri, 30 Nov 2001 12:39:30 +0000 (12:39 -0000)]
2001-11-30 Dietmar Maurer <dietmar@ximian.com>
* emit-x86.c (tree_preallocate_regs): improved register allocation
* x86.brg: impl. ISINST, CASTCLASS
* class.c (mono_install_runtime_class_init): impl.
(mono_class_init): renamed mono_class_metadata_init to
mono_class_init, also removed the metadata_inited flag
* object.c (mono_object_isinst): use faster algorithm
svn path=/trunk/mono/; revision=1493
Radek Doulik [Fri, 30 Nov 2001 11:17:31 +0000 (11:17 -0000)]
2001-11-30 Radek Doulik <rodo@ximian.com>
* configure.in: remove ACCESS_UNALIGNED="no" from ppc
svn path=/trunk/mono/; revision=1492
Radek Doulik [Fri, 30 Nov 2001 11:09:16 +0000 (11:09 -0000)]
reverted my last changes, fixed unaligned access to make it work
2001-11-30 Radek Doulik <rodo@ximian.com>
* mono-endian.h: reverted last change
added function prototypes
* Makefile.am (libmetadata_a_SOURCES): reverted my last change and
add mono-endian.c back
* mono-endian.c: returned back, as Paolo pointed out, it's needed
for unaligned access, I've mistaked it with endianess. I am
sorry.
(mono_read16): fix reverted endianess
(mono_read64): ditto
(mono_read32): ditto
svn path=/trunk/mono/; revision=1491
Dick Porter [Fri, 30 Nov 2001 09:11:56 +0000 (09:11 -0000)]
2001-11-30 Dick Porter <dick@ximian.com>
* exception.c: Implement mono_exception_from_name()
2001-11-30 Dick Porter <dick@ximian.com>
* interp.c: Replace get_named_exception() with
mono_exception_from_name()
svn path=/trunk/mono/; revision=1490
Gaurav Vaish [Fri, 30 Nov 2001 07:26:11 +0000 (07:26 -0000)]
2001-11-30 Gaurav Vaish <gvaish@iitk.ac.in>
* class.xml --- Current status for System.Web.UI.WebControls namespace
svn path=/trunk/mono/; revision=1489
Paolo Molaro [Fri, 30 Nov 2001 07:20:41 +0000 (07:20 -0000)]
Fri Nov 30 12:01:02 CET 2001 Paolo Molaro <lupus@ximian.com>
* metadata.h, metadata.c: remove params_size and locals_size and their
calculation from the metadata code: they are only usefult to the
interp.
Fri Nov 30 12:02:24 CET 2001 Paolo Molaro <lupus@ximian.com>
* x86.brg: rearrange fields to reduce struct size.
* jit.c: use signature->param_count, not signature->params_size.
* debug.c: off-by-one error fix.
Fri Nov 30 12:05:21 CET 2001 Paolo Molaro <lupus@ximian.com>
* interp.c: calculate locals and args offsets only once
per method call. Cache trampoline code as well.
svn path=/trunk/mono/; revision=1488