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
Gaurav Vaish [Fri, 30 Nov 2001 03:47:01 +0000 (03:47 -0000)]
2001-11-30 Gaurav Vaish <gvaish@iitk.ac.in>
* DataSourceHelper.cs, UrlUtils.cs -- Moved to proper places
* ChangeLog's --- Properly updated
svn path=/trunk/mcs/; revision=1487
Gaurav Vaish [Fri, 30 Nov 2001 03:43:45 +0000 (03:43 -0000)]
2001-11-30 Gaurav Vaish <gvaish@iitk.ac.in>
Important changes:
* System.Web.WebUtils removed... renamed to System.Web.Utils based on some hacking done.
* AdRotator.cs --- Updated to use Utils
* BaseDataList.cs --- Removing rubbishness
* CheckBox.cs --- Working
* CheckBoxList.cs --- Finalized?
* ListControl.cs --- Initital Implementation
svn path=/trunk/mcs/; revision=1486
Gaurav Vaish [Fri, 30 Nov 2001 02:07:03 +0000 (02:07 -0000)]
2001-11-30 Gaurav Vaish <gvaish@iitk.ac.in>
* DataSourceHelper --- Corrected the function name to GetResolvedDataSource(...)
svn path=/trunk/mcs/; revision=1485
Gaurav Vaish [Fri, 30 Nov 2001 01:58:12 +0000 (01:58 -0000)]
2001-11-30 Gaurav Vaish <gvaish@iitk.ac.in>
* DataSourceHelper.cs --- Renamed the class DataSourceUtils to DataSourceHelper (an internal class)
* ChangeLog --- Properly updated
svn path=/trunk/mcs/; revision=1484
Gaurav Vaish [Fri, 30 Nov 2001 01:53:33 +0000 (01:53 -0000)]
2001-11-30 Gaurav Vaish <gvaish@iitk.ac.in>
* DataSourceUtils.cs -- Internal class. Does the job of resolving data from the source based on a member element.
----- This function is required during the OnDataBinding(EventArgs) method in several of the UI.*, UI.WebControtrols.* classes
svn path=/trunk/mcs/; revision=1483
Radek Doulik [Thu, 29 Nov 2001 21:23:53 +0000 (21:23 -0000)]
2001-11-29 Radek Doulik <rodo@ximian.com>
* ppc/tramp.c: use r12 which is volatile instead of non-volatile
r14 to avoid saving
svn path=/trunk/mono/; revision=1482
Radek Doulik [Thu, 29 Nov 2001 20:20:45 +0000 (20:20 -0000)]
2001-11-29 Radek Doulik <rodo@ximian.com>
* configure.in (ACCESS_UNALIGNED): uncommented and modified
powerpc-*-linux*
generate mono/arch/ppc/Makefile
svn path=/trunk/mono/; revision=1481
Radek Doulik [Thu, 29 Nov 2001 20:20:18 +0000 (20:20 -0000)]
2001-11-29 Radek Doulik <rodo@ximian.com>
* object.c (mono_ldstr): swap bytes here, it's probably not the
best place, but works for me now, I'll redo it once I know mono
better, also note that I add PROT_WRITE and don't reset back, also
note that it's only affects big endians, so x86 should be OK
* mono-endian.h (read16): use just glib macros for both endians
* mono-endian.c: removed as glib macros are used in in
mono-endian.h so we don't need to care about endianess for read
macros as glib does that for us already
svn path=/trunk/mono/; revision=1480
Radek Doulik [Thu, 29 Nov 2001 20:19:32 +0000 (20:19 -0000)]
2001-11-29 Radek Doulik <rodo@ximian.com>
* Makefile.am: build mono only for X86 architecture, compilation
fails for ppc now because of accessing registers in sigcontext
structure
svn path=/trunk/mono/; revision=1479
Radek Doulik [Thu, 29 Nov 2001 20:19:00 +0000 (20:19 -0000)]
2001-11-29 Radek Doulik <rodo@ximian.com>
* Makefile.am (libmonoarch_la_LIBADD): added ppc to DIST_SUBDIRS
generate libmonoarch for ppc
svn path=/trunk/mono/; revision=1478
Radek Doulik [Thu, 29 Nov 2001 19:32:48 +0000 (19:32 -0000)]
added test
svn path=/trunk/mono/; revision=1477
Radek Doulik [Thu, 29 Nov 2001 19:32:19 +0000 (19:32 -0000)]
added files for initial ppc support
svn path=/trunk/mono/; revision=1476
Gaurav Vaish [Thu, 29 Nov 2001 18:11:51 +0000 (18:11 -0000)]
2001-11-30 Gaurav Vaish <gvaish@iitk.ac.in>
* CheckBoxList.cs --- Wanted to go for this class.
* ListControl.cs --- But ended up taking up this one.
svn path=/trunk/mcs/; revision=1475
Gaurav Vaish [Thu, 29 Nov 2001 18:09:44 +0000 (18:09 -0000)]
2001-11-30 Gaurav Vaish <gvaish@iitk.ac.in>
* CheckBox.cs --- Initial Implementation
* ChangeLog --- Updated with latest information. I think so, at least.
svn path=/trunk/mcs/; revision=1474
Gaurav Vaish [Thu, 29 Nov 2001 15:48:48 +0000 (15:48 -0000)]
2001-11-30 Gaurav Vaish <gvaish@iitk.ac.in>
* CheckBox.cs --- Oops! I forgot OnPreRender. The last method left, well, still supposedly. Looks pretty fine now.
svn path=/trunk/mcs/; revision=1473
Paolo Molaro [Thu, 29 Nov 2001 15:31:08 +0000 (15:31 -0000)]
Reformat to reduce line length.
svn path=/trunk/mono/; revision=1472
Gaurav Vaish [Thu, 29 Nov 2001 14:38:12 +0000 (14:38 -0000)]
2001-11-30 Gaurav Vaish <gvaish@iitk.ac.in>
* CheckBox.cs -- Huh! Completed another class. Looks to be at least. :))
* ChangeLog -- Notified others
svn path=/trunk/mcs/; revision=1471
Gaurav Vaish [Thu, 29 Nov 2001 14:32:17 +0000 (14:32 -0000)]
2001-11-29 Gaurav Vaish <gvaish@iitk.ac.in>
* CheckBox.cs -- Can now do Render-ing and LoadPostData-ing.
* ChangeLog -- Made proper updates
svn path=/trunk/mcs/; revision=1470
Paolo Molaro [Thu, 29 Nov 2001 13:39:08 +0000 (13:39 -0000)]
Thu Nov 29 18:20:58 CET 2001 Paolo Molaro <lupus@ximian.com>
* class.h, class.h: take minimum alignment into consideration so
that the fields of a class remain aligned also when in an array.
svn path=/trunk/mono/; revision=1469
Gaurav Vaish [Thu, 29 Nov 2001 13:27:07 +0000 (13:27 -0000)]
2001-11-29 Gaurav Vaish <gvaish@iitk.ac.in>
* ChangeLog -- When did I add System.Web.WebUtils?
svn path=/trunk/mcs/; revision=1468
Daniel Weber [Thu, 29 Nov 2001 10:49:39 +0000 (10:49 -0000)]
* XmlAttribute.cs re-arrange source file to put attributes first. Implement
value, modify constructor
* XmlAttributeCollection.cs - Fix bug on owner document check, add TODO - Make
insert operations match XmlNode insertion on null pointer refNode.
* XmlDeclaration.cs - Add copyright info to top of file
* XmlDocument.cs - implement localName, Name
* XmlDocumentFragment.cs : first cut at implementation. Implement name,
localName
* XmlElement.cs - implement value, modify constructor
* XmlNames_1_0.cs - add IsXmlName function, fix bug in IsXmlChar()
* XmlNode.cs - implement BaseURI and value, add more comments
* XmlWriter.cs - begin stubbing out methods
* Added XmlUtil.cs - Internal class. Contains static utility methods that are non-Xml version
specific, mostly character encoding conversions
* Added XmlInputSource.cs - internal class to handle streaming Xml input.
* Added DomEncodingType.cs - internal enueration class to detail supported encodings
(ISO-8859-n, UTF-8/UTF-16, eg)
svn path=/trunk/mcs/; revision=1467
Dietmar Maurer [Thu, 29 Nov 2001 10:46:40 +0000 (10:46 -0000)]
bug fixes, code cleanup
svn path=/trunk/mono/; revision=1466
Paolo Molaro [Thu, 29 Nov 2001 07:42:04 +0000 (07:42 -0000)]
Thu Nov 29 12:32:01 CET 2001 Paolo Molaro <lupus@ximian.com>
* debug.c: fix type handling. Position function position at start of
IL code. Output more fine-grained stepping information.
svn path=/trunk/mono/; revision=1465
Dietmar Maurer [Thu, 29 Nov 2001 05:51:04 +0000 (05:51 -0000)]
documentation
svn path=/trunk/mono/; revision=1464
Miguel de Icaza [Wed, 28 Nov 2001 18:18:32 +0000 (18:18 -0000)]
2001-11-28 Miguel de Icaza <miguel@ximian.com>
* UInt64.cs: ditto.
* UInt32.cs: ditto.
* Int32.cs (Int32.CompareTo): Fix because we can not just
substract the values.
Return possitive value if the object is null.
* Boolean.cs: (Boolean.CompareTo): ditto.
* Int16.cs (Int16.CompareTo): ditto.
* Byte.cs (Byte.CompareTo): ditto.
* SByte.cs (SByte.CompareTo): ditto.
* Char.cs (Char.CompareTo): ditto.
* Decimal.cs (Decimal.CompareTo): ditto.
* Int64.cs (Int64.CompareTo): ditto.
* Single.cs: Ditto.
* UInt16.cs: Ditto.
svn path=/trunk/mcs/; revision=1463
Miguel de Icaza [Wed, 28 Nov 2001 18:15:16 +0000 (18:15 -0000)]
Add more error tests
svn path=/trunk/mcs/; revision=1462
Miguel de Icaza [Wed, 28 Nov 2001 18:14:13 +0000 (18:14 -0000)]
Add test for switch
svn path=/trunk/mcs/; revision=1461
Miguel de Icaza [Wed, 28 Nov 2001 17:51:00 +0000 (17:51 -0000)]
2001-11-27 Miguel de Icaza <miguel@ximian.com>
* expression.cs (This): Fix prototype for DoResolveLValue to
override the base class DoResolveLValue.
* cs-parser.cs: Report errors cs574 and cs575 (destructor
declarations)
* ecore.cs (FieldExpr.EmitAssign): Handle value types specially
(we need to load the address of the field here). This fixes
test-22.
(FieldExpr.DoResolveLValue): Call the DoResolve
function to initialize the Instance expression.
* statement.cs (Foreach.Emit): Fix the bug where we did not invoke
correctly the GetEnumerator operation on a value type.
* cs-parser.jay: Add more simple parsing error catches.
* statement.cs (Switch): Add support for string switches.
Handle null specially.
* literal.cs (NullLiteral): Make NullLiteral objects singletons.
svn path=/trunk/mcs/; revision=1460
Miguel de Icaza [Wed, 28 Nov 2001 17:26:34 +0000 (17:26 -0000)]
Updates
svn path=/trunk/mono/; revision=1459
Ravi Pratap M [Wed, 28 Nov 2001 17:16:40 +0000 (17:16 -0000)]
2001-11-28 Ravi Pratap <ravi@ximian.com>
* cs-parser.jay (local_constant_declaration): Use declare_local_constant.
(declare_local_constant): New helper function.
* statement.cs (AddConstant): Keep a separate record of constants
(IsConstant): Implement to determine if a variable is a constant.
(GetConstantExpression): Implement.
* expression.cs (LocalVariableReference): Handle the case when it is a constant.
* statement.cs (IsVariableDefined): Re-write.
2001-11-27 Ravi Pratap <ravi@ximian.com>
* class.cs (TypeContainer::FindMembers): Look for constants
in the case when we are looking for MemberTypes.Field
* expression.cs (MemberAccess::DoResolve): Check that in the
case we are a FieldExpr and a Literal, we are not being accessed
by an instance reference.
* cs-parser.jay (local_constant_declaration): Implement.
(declaration_statement): Implement for constant declarations.
svn path=/trunk/mcs/; revision=1458
Ravi Pratap M [Wed, 28 Nov 2001 17:12:19 +0000 (17:12 -0000)]
2001-11-28 Ravi Pratap <ravi@ximian.com>
* test-48.cs : Add for constant emission tests.
* makefile : Update for the above as it passes nicely :-)
svn path=/trunk/mcs/; revision=1457
Dietmar Maurer [Wed, 28 Nov 2001 14:14:56 +0000 (14:14 -0000)]
2001-11-28 Dietmar Maurer <dietmar@ximian.com>
* x86.brg (LDIND_I1, LDIND_I2): use x86_widen_ instead of x86_mov_
* jit.c (sigsegv_signal_handler): translate sigsegv into "Internal error"
exception.
svn path=/trunk/mono/; revision=1456
Nick Drochak [Wed, 28 Nov 2001 09:18:02 +0000 (09:18 -0000)]
2001-11-28 Nick Drochak <ndrochak@gol.com>
* Byte.cs: Throw NotImplementedException for Parse.
svn path=/trunk/mcs/; revision=1455