* expression.cs: Fix the case where the argument to params if the
type of the params. I omitted handling this before. Fixed
svn path=/trunk/mcs/; revision=4030
* string-icalls.c : String does now passes unit tests without any
errors, the following changes has been made:
Implemented replace methods.
Renaming of methods to (try) follow the standard.
Fixed compare ordinal
Made all memory allocated directly to function instead of via icall function.
Small performance fix in is_in_array function
(2002-04-23) Changes from Duncan Mak <[email protected]>
c (mono_string_Internal_ctor_charp_int_int):
(mono_string_Internal_ctor_sbytep_int_int): Removed check for
sindex < 0, throw ArgumentOutOfRangeException instead of
ArgumentNullException.
Added new check for length == 0, however
I need to make it return String.Empty from the C code.
(mono_string_Internal_ctor_sbytep): Use mono_string_new, and let
that calculate the length for us here.
(mono_string_Internal_ctor_sbytep_int_int): Replaced
mono_string_new_utf16 with mono_string_new, since value is utf8.
svn path=/trunk/mono/; revision=4029
* object.c: register the object for finalization if needed.
Allocate one more char in the string for the terminating 0 char.
svn path=/trunk/mono/; revision=4026
* class.c, class.h, image.c: check if a type implemenst a destructor.
Use the proper key for array class lookups.
* icall.c: register the icalls in the System.GC class.
* gc.c, gc.h: GC-related functions and icalls.
svn path=/trunk/mono/; revision=4024
* icall.c:
* socket-io.c:
* unicode.c: free some strings gotten from mono_string_to_utf8 and
changed a couple of free () by g_free ().
svn path=/trunk/mono/; revision=4021
* IPAddressTest.cs: Make test conform to MS behavior. Also, if wrong
exception is thrown, let eveyone know which one.
svn path=/trunk/mcs/; revision=4018
* Most of the enums have correct values. *
*At least one enum has incorrect valuesI Will correct all by 5/1/2002. *
svn path=/trunk/mcs/; revision=4013
* System.Data.build: modified - added new
files to exclude from build
* System.Data/Constraint.cs
* System.Data/ConstraintCollection.cs
* System.Data/InternalDataCollectionBase.cs: added -
stubs which are needed to build DataTable.cs
* TODO: modified - added more classes TODO and
added more stuff TODO, such as, create script
to create test database monotestdb for testing
classes in System.Data
svn path=/trunk/mcs/; revision=4010
* IPAddressTest.cs: use BitConverter to set localhost, catch
OverflowException in TestParseWrong() and changed some constants.
svn path=/trunk/mcs/; revision=4003
* configure.in: removed -Wshadow from CFLAGS.
2002-04-12 Rodrigo Moya <[email protected]>
* status/maintainers.xml: added danmorg and myself for System.Data.*
classes.
* status/class.xml: added System.Data.* classes.
2002-04-08 Dick Porter <[email protected]>
* configure.in: Set -mno-cygwin here rather than in the build script
2002-04-05 Dietmar Maurer <[email protected]>
* mono/tests/remoting2.cs: new test for async invoke of proxy calls
2002-03-29 Martin Baulig <[email protected]>
* doc/jit-debug, docs/jit-debug-sample, docs/jit-debug-sample2:
New files, added documentation for the debugging code.
* doc/web/commands: Added the debugging pages.
* docs/jit-debug: Removed, this is now on the web site.
2002-03-24 Martin Baulig <[email protected]>
* man/mcs.1: Documented the new --debug option and added a section
about debugging support.
* man/mono.1: Documented the new --dwarf and --dwarf-plus options.
2002-03-21 Martin Baulig <[email protected]>
* configure.in: Added check for <elf.h>.
2002-03-18 Dick Porter <[email protected]>
* configure.in: Only look for libgc on the system. Default to not
using GC at all, because it doesn't work with the jit.
2002-03-17 Miguel de Icaza <[email protected]>
* configure.in: Add support for building the included boehm GC.
Thu Mar 7 17:19:44 CET 2002 Paolo Molaro <[email protected]>
* configure.in: detect Boehm GC libs and add --with-gc switch.
Boehm GC needs to be explicitly enabled since the JIT currently fails
in some cases with it.
2002-02-27 Dietmar Maurer <[email protected]>
* mono/tests/fib.cs: it is now possible to pass a repeat count as
command line argument, for example fib.exe 20 runs the test 20
times.
2002-02-25 Sergey Chaban <[email protected]>
* configure.in: added support for ARM target arch.
Uncommented and modified arm-*-linux* target,
added mono/arch/arm/Makefile to AC_OUTPUT list.
2002-02-21 Mark Crichton <[email protected]>
* status/class.xml: Added contact info for RNGCryptoServiceProvider
class and Rijndael classes.
* status/maintainers.xml: Added contact info to maintainers list.
2002-02-21 Mark Crichton <[email protected]>
* configure.in: Add checks for a system-provided entropy device
* acconfig.h: Added HAVE_CRYPT_RNG and NAME_DEV_RANDOM
2002-02-20 Dick Porter <[email protected]>
* acconfig.h:
* configure.in: Always build without cygwin support on windows
2002-02-19 Radek Doulik <[email protected]>
* mono/tests/pinvoke.cs: use more pinvoke test methods
2002-02-19 Radek Doulik <[email protected]>
* mono/tests/libtest.c (mono_test_many_short_arguments): new test
method
(mono_test_many_byte_arguments): ditto
2002-02-18 Radek Doulik <[email protected]>
* mono/tests/Makefile.am: added small test library for pinvoke
testing
* mono/tests/libtest.c (mono_test_many_int_arguments): new file,
new function to test pinvoke
* mono/tests/pinvoke.cs (Test): added pinvoked method with 10 int
arguments
* mono/tests/Makefile.am: display # of passing tests too
added simple shared library libtest with testing function for
pinvoke
2002-02-17 Radek Doulik <[email protected]>
* mono/tests/Makefile.am (test): display # of failed tests
2002-02-16 Jeffrey Stedfast <[email protected]>
* configure.in: Add checks for SOL_IP, SOL_TCP, and
IP_PKTINFO. Also check for struct ip_mreqn.
2002-02-14 Jeffrey Stedfast <[email protected]>
* configure.in: Add checks to see if we need to link to libsocket,
libnsl, and/or librt. Also check for inet_pton and inet_aton.
2002-02-13 Jeffrey Stedfast <[email protected]>
* acconfig.h: #undef USE_MONO_MUTEX
* configure.in: If the system pthread implementation is lacking,
default to using mono-mutex.
2002-02-05 Dietmar Maurer <[email protected]>
* mono/tests/enum2.cs: new file with more enum tests.
2002-02-01 Dietmar Maurer <[email protected]>
* mono/tests/jit-long.cs: added some SHL/SHR tests
Fri Feb 1 15:32:36 CET 2002 Paolo Molaro <[email protected]>
* configure.in: allow PKG_CONFIG_PATH for the build-platform
pkg-config invocation.
Fri Feb 1 15:13:25 CET 2002 Paolo Molaro <[email protected]>
* configure.in: add some support/fixes for cross-compilation.
2002-01-14 Dietmar Maurer <[email protected]>
* mono/tests/exception6.cs: new tests for ADD_OVF, MUL_OVF
added tests for SUB_OVF, SUB_OVF_UN
2001-12-21 Dietmar Maurer <[email protected]>
* mono/tests/Makefile.am (TESTSRC): disabled stream-writer test
2001-12-21 Aaron Weber <[email protected]>
* doc/faq (A): added a linebreak that was missing and was causing
a heading to appear badly.
2001-12-20 Aaron Weber <[email protected]>
* doc/faq: added <a name=""> nav links, and moved all MSFT-related
questions into a single section.
2001-12-17 Aaron Weber <[email protected]>
* doc/faq (Q): Question-by-question, line-by-line revision.
2001-12-17 Dietmar Maurer <[email protected]>
* mono/tests/time.cs: new test
2001-11-30 Radek Doulik <[email protected]>
* configure.in: remove ACCESS_UNALIGNED="no" from ppc
2001-11-29 Radek Doulik <[email protected]>
* configure.in (ACCESS_UNALIGNED): uncommented and modified
powerpc-*-linux*
generate mono/arch/ppc/Makefile
2001-11-26 Dietmar Maurer <[email protected]>
* mono/tests/exception3.cs: modified the test to show a bug in the
current exception handling implementation.
2001-11-13 Dick Porter <[email protected]>
* configure.in: Some more tests for pthread features
(specifically, glibc 2.1 doesnt define pthread_mutex_timedlock but
still needs _GNU_SOURCE for PTHREAD_MUTEX_RECURSIVE)
2001-11-09 Dick Porter <[email protected]>
* configure.in: Try and get large file support, but it's not fatal
if it's not there (the io-layer just ignores the high word in that
case.)
Check for windows builds, and only bother to look for pthreads and
large files if we're not building for cygwin or native win32. Not
having pthread support on Posix systems is now a fatal error.
* autogen.sh: Fix ACLOCAL_FLAGS - it wasn't being passed to
aclocal
2001-10-15 Dietmar Maurer <[email protected]>
* mono/tests/Makefile.am: removed JITTESTS, simply run all tests for
target testjit.
2001-10-11 Dietmar Maurer <[email protected]>
* docs/object-layout: more documentation
Mon Oct 8 20:27:50 CEST 2001 Paolo Molaro <[email protected]>
* configure.in: define NO_UNALIGNED_ACCESS for platforms that
can't read on unaligned boundaries
2001-10-04 Dick Porter <[email protected]>
* configure.in: Do some deeper checks on pthreads for some of the
more interesting functions
2001-09-24 Dietmar Maurer <[email protected]>
* mono/tests/Makefile.am (testjit): a new target to test the JITer
* mono/tests/jit-*: added some test for the JITer
2001-09-23 Dick Porter <[email protected]>
* configure.in: Arrange to compile dummy thread support routines
if pthread isnt available
2001-09-23 Dick Porter <[email protected]>
* configure.in: Check for pthread.h, so that we can check for the
HAVE_PTHREAD_H define in config.h
2001-09-21 Dick Porter <[email protected]>
* configure.in: Check for libpthread
2001-09-19 Dietmar Maurer <[email protected]>
* mono/tests/test-ops.cs: added more tests
Mon Sep 10 20:19:00 CEST 2001 Paolo Molaro <[email protected]>
* configure.in: check for sizeof(void*) and for the architecture.
2001-09-05 Dick Porter <[email protected]>
* autogen.sh: Fixed the section that adds $ACLOCAL_FLAGS to the
aclocal invocation, so putting aclocal files in /usr/local works
2001-08-30 Dietmar Maurer <[email protected]>
* *: removed the libffi dependency, mono now compiles on cygwin
* mono/wrapper/build-dll: new file.
2001-08-28 Dietmar Maurer <[email protected]>
* mono/tests/console.cs: impl.
* mono/tests/box.cs: impl.
* mono/tests/stream-writer.cs: impl.
Mon Aug 27 20:24:26 CEST 2001 Paolo Molaro <[email protected]>
* mono/tests/*: New test cases, mostly for virtual method dispatch.
Use make testb for the slow benchmarking programs,
make test for the usual regression test checks.
2001-08-22 Rodrigo Moya <[email protected]>
* mono/cil/Makefile.am:
* mono/wrapper/Makefile.am: use correct variables for installation
directories
Tue Aug 21 18:54:06 CEST 2001 Paolo Molaro <[email protected]>
* mono/tests/exceptions*: enhanced and added more tests for
exceptions.
2001-08-20 Miguel de Icaza <[email protected]>
* mono/Makefile.am (SUBDIRS): Remove `test' from here to allow us
to pass make distcheck
* mono/wrapper/Makefile.am (EXTRA_DIST): Include genwrapper.pl
* configure.in, Makefile.am, runtime/Makefile.am (dist-hook,
install-data-hook): Added mechanism to distribute and install the
dll files.
2001-08-20 Dietmar Maurer <[email protected]>
* mono/tests/stream.cs: new tests for the Stream class
* configure.in: I really need LIBTOOL for libmonowrapper.so, so I
added it again.
2001-08-16 Alex Graveley <[email protected]>
* configure.in: Replace AM_PROG_LIBTOOL with AC_PROG_RANLIB. This
removes libtool dependency on all of Mono.
2001-08-10 Dietmar Maurer <[email protected]>
* mono/tests/array.cs: more array tests
2001-08-09 Dietmar Maurer <[email protected]>
* mono/tests/array.cs: more array tests
2001-08-06 Dietmar Maurer <[email protected]>
* mono/tests/pinvoke.cs: we can now print strings ;-)
* mono/tests/array.cs: new test for arrays
2001-08-02 Alex Graveley <[email protected]>
* libffi/*: Import libffi CVS version, with minor changes to make it
compile.
* mono/interpreter/Makefile.am: Link against
../../libffi/.libs/libffi.a.
* Makefile.am: Add libffi
* autogen.sh: Replace with adapted gnome autogen.sh
* configure.in: Add AC_CONFIG_SUBDIRS(libffi).
2001-08-02 Dietmar Maurer <[email protected]>
* mono/tests/pinvoke.cs: impl.
Wed Aug 1 22:34:52 CEST 2001 Paolo Molaro <[email protected]>
* configure.in, mono/tests: added some tests for the interpreter.
2001-07-15 Sean MacIsaac <[email protected]>
* doc/download: added instructions for cygwin
* doc/c-sharp: removed bit about compiling
* status/compare-assembly.cs: basedir should be there if
parameters are provided.
* status/makefile: made targets to dump info.
2001-07-15 Joe Shaw <[email protected]>
* configure.in: Don't create doc/Makefile as there's nothing there
to make.
* Makefile.am: Don't build the doc directory because there's no
Makefile.am there.
* autogen.sh: Call aclocal with the $ACLOCAL_FLAGS env var.
2001-07-15 Miguel de Icaza <[email protected]>
* doc/class-library (A): Updated FAQ with question on error 1595.
2001-07-14 Miguel de Icaza <[email protected]>
* doc/index:
Wed Jul 11 00:36:36 CEST 2001 Paolo Molaro <[email protected]>
* status/*: scripts and data to create statistics about the
class library status.
2001-07-09 Alex Graveley <[email protected]>
* doc/makefile (clean): Add clean target.
* doc/web/makefile (clean): Ditto.
2001-07-09 Alex Graveley <[email protected]>
* doc/makefile (all-docs): Fix typo.
2001-05-30 Miguel de Icaza <[email protected]>
* NEWS:
svn path=/trunk/mono/; revision=3988
* jit.c (mono_analyze_stack): only use MB_TERM_CHECKTHIS when necessary
* x86.brg (stmt): removed stmt: STIND_I4 (addr, coni4) rule
because it slows down performance.
svn path=/trunk/mono/; revision=3979
* interface.cs: Temporary hack: try/catch around the
CustomAttributeBuilder, because I am getting an exception that I
do not understand.
* rootcontext.cs (BootCorlib_PopulateCoreType): Populate some
types whose definitions are required to be there (attributes are
defined before standard types).
Compute definitions as we boot the various types, as they are used
immediately (value_type class will need object_type, but if we do
not initialize object_type, we will pass a null, which will let
the runtime pick the System.Object from the existing corlib, which
is not what we want).
* class.cs (Property.CheckBase): Check for properties only, not
for all members.
* driver.cs: Call BootCorlib_PopulateCoreType
2002-04-22 Miguel de Icaza <[email protected]>
* ValueType.cs: Add Serializable attribute.
* String.cs: ifdef-out out the __arglist Concat function until I
add support for that to mcs.
svn path=/trunk/mcs/; revision=3973
* threads.c: implemented all of the new interlocked icalls.
* string-icalls.c: fix a bug in insert.
* icalls.c: added the icalls for interlocked, removed old string functions.
svn path=/trunk/mono/; revision=3968
* expression.cs (Argument.Type): Ensure that we return the correct
type when we have out or ref parameters [in which case we
append a "&"].
svn path=/trunk/mcs/; revision=3967
* interp.c: handle muslticast delegates. Implement a couple more
convert opcodes. Pretend we spend some time jitting...
svn path=/trunk/mono/; revision=3956
* class.cs (Property, Indexer): Allow extern modifier in there.
* typemanager.cs (InitBaseTypes): Initializes object_type and
value_type, since those will be used early on during the bootstrap
process to compile corlib.
(InitCoreTypes): Move code from here to InitBaseTypes.
svn path=/trunk/mcs/; revision=3952
* string-icalls.c: Fixed trim method, added the constructors done by Duncan, fixed
method signatures to use gunichar2 instead of gint16.
svn path=/trunk/mono/; revision=3951
* System.Data.SqlClient/SqlCommand.cs: modified - to
compile using mcs. This problem is
returning a stronger type in csc vs. msc
* System.Data.SqlClient/SqlConnection.cs: modified - msc
can not do a using PGconn = IntPtr; and then declare
with PGconn pgConn = IntPtr.Zero;
Thiw works under csc though. Had to comment using and
changed declaration to IntPtr pgConn = IntPtr.Zero;
Also, got rid of compile warnings for hostaddr and port.
* System.Data.SqlClient/SqlErrorCollection.cs: modified - got
rid of compile warnings. Commented MonoTODO attribute because mcs
doesn't seem to work with C# array property indexer (Item)
this[int index]
* System.Data.SqlClient/SqlParameterCollection.cs: modified -
commented MonoTODO attribute for indexer for mcs compiling
* Test/TestSqlIsolationLevel.cs:
* Test/TestSqlInsert.cs:
* Test/TestSqlException.cs: modified -
removed extra ExecuteNonQuery which caused two inserted rows
svn path=/trunk/mcs/; revision=3938
* ecore.cs (PropertyExpr): Optimize calls to Array::get_Length on
single-dimension arrays as using the ldlen opcode.
Daniel Lewis discovered this optimization.
* typemanager.cs: Add signature for System.Array::get_Length
svn path=/trunk/mcs/; revision=3937
* x86.brg: added constant folding for inegers
* emit-x86.c (tree_allocate_regs): handle the special case when
chain rules need a register.
* monoburg.y (yylex): bug fix in number parsing
svn path=/trunk/mono/; revision=3918
* threads.c: destroy the mutex at thread destruction
(if/when thread destruction code will be actually called).
When protecting a tls data pointer from the gc, use also the
thread id in the key.
svn path=/trunk/mono/; revision=3917
* string-icalls.c: fix IndexOf and LastIndexOf. Now
InternalCompareStr don't call twice mono_string_cmp_char for the last
character. Improved performance in mono_string_cmp_char.
svn path=/trunk/mono/; revision=3915
* invoke.c (arch_create_native_wrapper): do not save LMF for Strings
* jit.c (check_inlining): better inlining support
svn path=/trunk/mono/; revision=3909
* object.h, object.c: changed array format so that szarrays do not
require a bounds structure.
* icall.c, appdomain.c, interp.c, jit.c: support for new szarray format
* x86.brg: LDLEN uses max_length instead of bounds[0]
svn path=/trunk/mono/; revision=3908
* metadata.c: compare also the retuns type when comparing signatures:
we didn't do this as an optimization since really overloaded methods
must differ also in the arguments, but this doesn't work with
low-level IL code (or when using explicit conversion operators: see
bug#23498 for an example).
svn path=/trunk/mono/; revision=3907
* AllTests.cs: added IPEndPointTest.
* IPEndPointTest.cs: added file (author: Lawrence Pit).
* IPAdressTest.cs: use Fail is expected exception are not raised.
svn path=/trunk/mcs/; revision=3903
* icall.c: remove MonoMethod_get_Name().
* reflection.c, reflection.h, verify: cache the method name in the MonoMethod
object.
svn path=/trunk/mono/; revision=3895
* attribute.cs: use the new property of TypeOf.
* expression.cs: added 'get' property around typearg.
These changes fix a build breaker reported by NickD. Is this the
correct way to fix? If not, please, revert my changes and make it
work :-).
svn path=/trunk/mcs/; revision=3887
* icall.c: added all new string internal calls
* string-icalls.c: added, new string internal call implementation.
* object.c: added mono_string_new_size for allocating a string a size
svn path=/trunk/mono/; revision=3880
* Test/TestSqlInsert.cs: modified - do
a SQL DELETE before SQL INSERT of row so you can use this
test over and over.
* System.Data.SqlClient/SqlTransaction.cs: modified - default
IsolationLevel for PostgreSQL is ReadCommitted. However,
PostgreSQL allows Serializable as well.
(Thanks to Gonzalo for that!)
* System.Data.SqlClient/SqlConnection.cs: modified
* System.Data.SqlClient/SqlCommand.cs: modified
* System.Data.SqlClient/SqlTransaction.cs: modified - got transactions
working; however, we still need to implement SQL errors
and exceptions to properly handle transactions. Also, added
status and error message support from the PostgreSQL database.
Currently, this does a Console.WriteLine() to display the
status and error messages, but this is a TODO
for SQL errors and exceptions.
* System.Data/TODOAttribute.cs: added - needed MonoTODO
attribute for System.Data.dll assembly
* System.Data/IDbCommand.cs: modified - commented
overloaded method ExecuteReader
so System.Data.SqlClient.SqlCommand can compile
* System.Data/IDbCommand.cs: modified
* System.Data/IDbConnection.cs: modified - added using System;
* System.Data/IDataParameter.cs
* System.Data.build: modified - build classes
in System.Data.SqlClient and exclude others in System.Data
* System.Data.SqlClient/PostgresLibrary.cs: modified - change
parameter data type from IntPtr to enum ExecStatusType
* ChangeLog: modified - corrected previous entries in log
svn path=/trunk/mcs/; revision=3874
* profiler.c: TSC-based timer code (faster and more accurate).
Not hooked up in configure, yet (set USE_X86TSC to 1).
svn path=/trunk/mono/; revision=3872
* IPAddress.cs: the icalls for sockets are endianness-aware. So I
changed a few things. Also included a workaround for bug #23547.
svn path=/trunk/mcs/; revision=3867
* jit.h: included mono/io-layer/io-layer.h to avoid breaking
compilation under windows when upgrading mingw and w32api to
version 1.3 (thanks Dick!).
svn path=/trunk/mono/; revision=3865
* jit.h: to more #include lines to avoid breaking compilation
under windows when upgrading mingw and w32api to version
1.3 (thanks Dick!).
svn path=/trunk/mono/; revision=3864
* profiler.c, profiler.h, profiler-private.h: profiling interface
and sample implementation. Moved here so that it can be used also by
the jit.
svn path=/trunk/mono/; revision=3862
* reflection.c, reflection.h: keep types and other handles separate in
the hash tables for referred tokens. Add guid for modules.
svn path=/trunk/mono/; revision=3849
* System.Data.IDbTransaction: Added Interface to IDisposable.
* System.Data.IDbCommand: Fixed Capitalization of class name.
* System.Data.IDbConnection: Fixed Capitalization of class name.
svn path=/trunk/mcs/; revision=3839
* IPAddress.cs: use System.BitConverter.IsLittleEndian (suggested
by Paolo) instead of guessing the endianness.
* SocketAddress.cs: implemented Equals() and GetHashcode().
svn path=/trunk/mcs/; revision=3834
* IPAddressTest.cs: use System.BitConverter.IsLittleEndian (suggested
by Paolo) instead of guessing the endianness.
svn path=/trunk/mcs/; revision=3833
* atomic.h: use xaddl for InterlockedIncrement() and
InterlockedDecrement(). Use cmpxchgl in a loop for
InterlockedExchange() and InterlockedExchangePointer().
svn path=/trunk/mono/; revision=3829
* IPAddress.cs: finished all MonoTODO's. Use network order to store
the address. Check for max and min values in Address:set. IsLoopback()
returns now true for all 127.x.y.z. Some more checks in Parse ().
svn path=/trunk/mcs/; revision=3816
* Thread.cs: Fixed IsThreadPoolThread to use a internal property instead of extending
the threadstate enum.
* ThreadPool.cs: Now using the internal Isthreadpoolthread property
* ThreadState.cs: removed non-standard enum (ThreadPoolThread)
svn path=/trunk/mcs/; revision=3805
* System.Data.SqlClient/PostgresLibrary.cs: new internal class, which
contains all calls the the PostgreSQL client library, to be used
everywhere in System.Data.SqlClient.
svn path=/trunk/mcs/; revision=3804
* ThreadState.cs: Added enum for threadpool thread
* Thread.cs: changed the set/clr_state to be internal (used from threadpool)
* Thread.cs: Added IsThreadPoolThread
* ThreadPool.cs: Implementation of QueueUserWorkItem
svn path=/trunk/mcs/; revision=3803
* class.cs (DefineType): Ensure that we do a proper check on
attribute types and also register it with the TypeManager.
(TypeContainer.Targets): The default for attribute types is
AttributeTargets.All.
* attribute.cs (ApplyAttributes): Registering the attribute type
is done elsewhere, not when we discover we have a Usage attribute.
svn path=/trunk/mcs/; revision=3802
* IMonoSymbolWriter.cs (ISourceBlock): Added `Blocks' property and `AddBlock'
method to support nested blocks.
* MonoSymbolWriter.cs: Correctly handle nested blocks.
* MonoDwarfFileWriter.cs (DieMember): Provide info for all fields, not just for
public ones; also added DW_AT_accessibility.
(DieVariable): Reflected latest debug-symfile.c changes.
svn path=/trunk/mcs/; revision=3801
* debug-dwarf2.c (dwarf2_write_variable_location): New static func to write
the location of a variable.
(dwarf2_write_variable, dwarf2_write_parameter): Take a MonoDebugVarInfo
instead of a stack offset and use dwarf2_write_variable_location() to write
the location.
svn path=/trunk/mono/; revision=3800
* debug-symfile.h (MonoDebugLocalInfo): Renamed to MonoDebugVarInfo.
(MonoDebugVarInfo): Added `index' field for register based addresses.
(MONO_DEBUG_SYMBOL_FILE_VERSION): Increased to 9.
(MonoDebugMethodInfo): Replaced `guint32 *param_offsets' with
`MonoDebugVarInfo *params' and `guint32 this_offset' with
`MonoDebugVarInfo *this_var'.
* debug-symfile.c (relocate_variable): New static function to write
a location description for a local variable or method parameter.
svn path=/trunk/mono/; revision=3798
* monoburg/monoburg.c: added option -s to specify the c source file for output.
* jit/Makefile.am: use the new option.
svn path=/trunk/mono/; revision=3797
* XmlAttribute.cs (Prefix): Added preliminary code for set block,
added comment on work that needs to be done here. A new MonoTODO item.
* XmlDocument.cs (ctor): Corrected constructor signature, changed
parameter from 'NameTable' to 'XmlNameTable'.
* XmlDocumentFragment.cs (InnerXml): Added missing set block.
svn path=/trunk/mcs/; revision=3793
* cs-parser.jay (compilation_unit): Revamp completely to use
some new ideas that I got from Rhys' grammar to solve the problems
with assembly level attributes.
(outer_declaration): New grammar production.
(attribute_sections): Add.
(opt_attributes): Base on attribute_sections
(namespace_declaration): Allow opt_attributes to tackle the case
when we have assembly level attributes - we are clever in this
regard now ;-)
* attribute.cs (ApplyAttributes): Do not worry about assembly
attributes in the non-global context.
* rootcontext.cs (AddGlobalAttributes): Go back to using this
instead of SetGlobalAttributes.
* class.cs, rootcontext.cs : Ensure we define and generate
attribute types before anything else.
* attribute.cs (CheckAttribute and GetValidPlaces): Handle the exception
and flag the new error -20 for the case when the attribute type
does not have valid targets specified. csc does not catch this.
* ../errors/errors.txt : update for error # -20
2002-04-11 Ravi Pratap <[email protected]>
* support.cs (InternalParameters.ParameterModifier): Do some null
checking and return sane values.
* class.cs (Method.Define): If we are a PInvoke method, ensure
that we are static and extern. Report error # 601
* ../errors/cs0601.cs : Add test case for the above error.
2002-04-07 Ravi Pratap <[email protected]>
* rootcontext.cs (attribute_types): We need to keep type of
all attribute types separately and emit code for them first.
(RegisterAttribute) : Implement.
* class.cs (DefineType): Check if the current Type is a custom
attribute type and register it accordingly.
* rootcontext.cs (AddGlobalAttributes): Fix silly bug where we were
adding the first attribute twice and rename to
(SetGlobalAttributes): this.
* rootcontext.cs (NamespaceLookup): Run through the aliases too and perform
lookups.
* attribute.cs (ApplyAttributes): Take an additional argument telling us
if we are processing global arguments. Hmm, I am unsure of this.
svn path=/trunk/mcs/; revision=3790
* MonoDwarfFileWriter.cs (DieVariable): Provide info about the variable's
lifetime using DW_AT_begin_scope and a new baulig extension DW_AT_end_scope.
svn path=/trunk/mcs/; revision=3775
* debug-symfile.h (MonoDebugLocalInfo): New type. This contains the
stack offset and begin/end scope address of a local variable.
(MonoDebugMethodInfo): Replaced `guint32 *local_offsets' with
'MonoDebugLocalInfo *locals', added `prologue_end' and `epilogue_begin'.
(MONO_DEBUG_SYMBOL_FILE_VERSION): Increase to 8.
* debug-symfile.c (MRT_variable_start_scope, MRT_variable_end_scope):
Added new relocation types for start/end scope of a local variable.
svn path=/trunk/mono/; revision=3774
* expression.cs: added static array of strings to avoid calling
Enum.ToString () for Operator in Binary. Significant recover of
performance.
svn path=/trunk/mcs/; revision=3766
* HttpException.cs: 95% ready, only windows dependent code left
* HttpFileCollection.cs: Finished.
* HttpRequest.cs: Minor fixes and fixed signature problems
* HttpResponse.cs: Implementation of missing methods and signature problems
* HttpResponseHeader.cs: Fixed signature problems
* HttpRuntime.cs: Fixed signature problems
* HttpServerUtility.cs: Added support for HttpApplication
* HttpSessionState.cs: Fixed signature issues
* HttpUtility.cs: fixed signature issues
* HttpValueCollection.cs: Support for cookie parsing and fixed signature issues
* HttpWorkerRequest.cs: Fixed small signature issue
* HttpWriter.cs: Fixed signature issue
* HttpApplication.cs: Basic implementation
* HttpApplicationState.cs: Small fixes to support major change comming up
* HttpBrowserCapabilities.cs: Added Type method
* HttpClientCertificate.cs: Almost ready, needs to parse certificate.
* HttpContext.cs: Fixed signature issues and added last methods.
* HttpCookie.cs: Full implementation
* HttpCookieCollection.cs: Full implementation
* TraceContext.cs: Methods implemented.
* HttpPostedFile.cs: Placeholder
* HttpStaticObjectsCollection.cs: Placeholder
* HttpModuleCollection.cs: Ready, will be used during the major revamp.
* Fixed a number of other small signature problems also (class status page)
svn path=/trunk/mcs/; revision=3762
* class.cs (FindMembers): Allow the Builders of the various
members to be null. If they are skip them. This only happens
during the PInvoke declaration.
svn path=/trunk/mcs/; revision=3757
* monoburg.c: added a default handler for warning messages that just
output the messages to stderr instead of stdout.
svn path=/trunk/mono/; revision=3749
* Double.cs: Use an internal call for ToString(). This is just a simple
implementation to get away from throwing a NotImplementedException.
svn path=/trunk/mcs/; revision=3739
* Int32.cs:
* UInt32.cs:
* Int64.cs:
* UInt64.cs: changed Type.GetType () by typeof (), as suggested by
lupus.
* Int32.cs:
* Int64.cs: throw an OverFlowException when parsing a string
containing a dot followed by any non '0' number.
svn path=/trunk/mcs/; revision=3737
* ApplicationHost.cs: Test implementation to support testing.
* SimpleWorkerRequest.cs: Rewrite and a almost full implementation.
svn path=/trunk/mcs/; revision=3733
* HttpWorkerRequest.EndOfSendNotification.cs Removed (included in WorkerRequest)
* Checkin of all new files (noted in last changenote)
svn path=/trunk/mcs/; revision=3732
* HttpContext.cs: First implementation (basic support, few methods left to impl)
* HttpException.cs: Partial implementation (basic support)
* HttpHelper.cs: Header parse helper, used by runtime (non public)
* HttpRequest.cs: Implementation (all methods there, not all fully impl)
* HttpRequestStream.cs: Full implementation
* HttpResponse.cs: Partial implementation(almost all methods)
* HttpResponseHeader.cs: Header helper
* HttpResponseStream.cs: Full implementation - Response stream support
* HttpResponseStreamProxy.cs: Implementation - filter support
* HttpRuntime.cs: Rewrite to support one IHttpModule (use for testing the runtime)
* HttpServerUtility.cs: Implemented usage of HttpContext for methods
and moved encoding functions to HttpUtility.
* HttpUtility.cs: Added encoding/decoding functions from HttpServerUtility and
added the Attribute encoding functions.
* HttpValueCollection.cs: Implementation.
* HttpWorkerRequest.cs: Rewrite and implementation of all methods (ready)
* HttpWriter.cs: Implementation (with filter support)
* HttpFileCollection: Added dummy class (placeholder)
* HttpApplication.cs: Added dummy class (placeholder)
* HttpApplicationState.cs: Added dummy class (placeholder)
* HttpBrowserCapabilities.cs: Added dummy class (placeholder)
* HtttpCachePolicy.cs: Added dummy class (placeholder)
* HttpClientCertificate.cs: Added dummy class (placeholder)
* HttpSessionState.cs: Added dummy class (placeholder)
* TraceContext.cs: Added dummy class (placeholder)
svn path=/trunk/mcs/; revision=3731
* System.Web -- Assembly build.
The basic runtime support is now working, we can now start working
on the runtime flow system (thread pool etc) and also start testing
the parser and control framework. (224 files are compiled)
svn path=/trunk/mcs/; revision=3729
* expression.cs: (Invocation.OverloadResolve): I believe Ravi
wanted to pass `false' as the `is_delegate' argument. If this is
the case, why not use delegate_type == null to mean `is_delegate =
false' and anything else as is_delegate = true.
svn path=/trunk/mcs/; revision=3715
* icall.c (ves_icall_System_CurrentTimeZone_GetTimeZoneData) :
return true even if it's not Daylight Savings time.
Only return false for the case where the function isn't
implemented for a plaform (read Windows).
svn path=/trunk/mono/; revision=3714
* Array.cs (BinarySearch): Add checks on paramters before using them
and throw exceptions as needed.
* Enum.cs (Format): Check if [Flags] is applied to enum and convert
"G" format to "F" if so.
svn path=/trunk/mcs/; revision=3712
* statement.cs: fixed SimpleSwitchEmit to make 'goto case' goto the
code for the section, not the beginning of the tests.
svn path=/trunk/mcs/; revision=3711
and Log() so that System.Diagnostics.DefaultTraceListener could use them
without having NotImplementedException's thrown, as the functionality
DefaultTraceListener is using is non-critical.
The DefaultTraceListener simply checks to see if a debugger is attached, and
if so, invokes Log(). Since we don't currently support a debugger, we can
have IsLogging() simply return false, allowing DefaultTraceListener to
continue on its merry way.
The benefit of this is that when the Debugger class is fully functional, we
won't have to worry about correcting the DefaultTraceListener. It should
"Just Work". (Famous last words, I know...)
svn path=/trunk/mcs/; revision=3701
(2) is supposed to be in the corlib assembly. Two strikes against me for
not reading the @#$% docs closely enough to figure this out.
Remove the files I added, as they're unnecessary.
svn path=/trunk/mcs/; revision=3699
* IntegerFormatter.cs: Don't use a format character to indicate a
custom format was passed in. It was using 'z' to indicate a custom
format, but really it should throw a format exception if the user
tries to use "z" as the format string. Now it does.
* Activator.cs: New File.
svn path=/trunk/mcs/; revision=3691
* appdomain.h, appdomain.c: split initialization that requires the
execution engine support into mono_runtime_init().
svn path=/trunk/mono/; revision=3687
* Enum.cs (ToString): Big ugly fix for the case where [Flags] is
applied to an enum. Need to handle the different possible integer
types of an enum somehow. Can anyone say generics?
svn path=/trunk/mcs/; revision=3680
* cfold.cs: Handle operator + (Enum x, Underlying x)
* expression.cs (Binary): same. Warn about errors where we have
Enum/Enum in operator + as well.
svn path=/trunk/mcs/; revision=3675
* invoke.c (arch_create_native_wrapper): special case EndInvoke -
we need to pass the MonoMethod pointer as first argument.
* delegate.c (mono_async_invoke): notify all listeners, not only a
single one.
(arch_end_invoke): we now pass a MonoMethod as first parameter and
use arch_method_call_message_new() to access the stack.
(arch_end_invoke): wait until we really finished processing
(async_invoke_abort): notify all listeners, not only a
single one.
svn path=/trunk/mono/; revision=3671
The problem was that 'WriteIndent' uses 'Write' to write the indentation.
However, 'Write' uses 'WriteIndent' if 'NeedIndent' is true. Since the
original version of 'WriteIndent' didn't set 'NeedIndent' to false until after
it wrote the indentation...'NeedIndent' would never be set to false, resulting
in repeated calls of 'Write' -> 'WriteIndent' -> 'Write' ... <stack overflow>.
Simple fix: set 'NeedIndent' to false before writing the indent.
svn path=/trunk/mcs/; revision=3660
* message.c (arch_return_value): impl.
(arch_method_return_message_restore): consider delegate BeginInvoke
* jit.c: removed jit_exec_main()
* delegate.c (arch_begin_invoke): use the message builder to make
it architecture independent - still needs more cleanup.
* object.c (mono_message_init): moved
(mono_runtime_exec_main): new arch. independent impl.
(mono_runtime_invoke_array): new method - like
mono_runtime_invoke, but you can pass an array of objects.
(mono_remoting_invoke): new arch. independent impl.
(mono_message_invoke): new arch. independent impl.
svn path=/trunk/mono/; revision=3651
* expression.cs (Invocation.OverloadResolve): Factor out code which
does parameter compatibility checking with arguments so that we can
re-use the code even from Delegate.VerifyApplicability
(VerifyArgumentsCompat): Move above code here.
* delegate.cs (VerifyApplicability): Get rid of duplicate code
and instead make a call to the above method.
svn path=/trunk/mcs/; revision=3648
* delegate.c (mono_delegate_ctor): support for transparent proxy
* mono/tests/remoting2.cs: new test for async invoke of proxy calls
svn path=/trunk/mono/; revision=3631
* MdiToolBar.cs:
- proper behavior when selected buttons are clicked
- event cleanup
- determine image index from mdi child form tag if possible
svn path=/trunk/mcs/; revision=3629
* Enum.cs (IsDefined): Throw exception when type of value to look for
is not the correct one. Attempt to have it work with string values
too, but not sure if the unit tests are getting that far yet.
svn path=/trunk/mcs/; revision=3599
* corlib_test.build: Again; disable running of NUnit tests against mono
corlib. There are so many icalls now, that these tests need
to be run inside mint and mono. Will change this soon to run
the tests using both. It still runs the tests against the mscorlib
to validate the tests themselves.
svn path=/trunk/mcs/; revision=3596
* delegate.cs (Delegate.Define): Correctly define the types in the
presence of fixed and array parameters.
* class.cs (TypeContainers.FindMembers): Use NonPublic flag while
doing FindMembers.
* ecore.cs (Expression.MemberLookup): Reset binding flags to not
include NonPublic after the first iteration.
* class.cs (Indexer.CheckBase): Only check if both parents are
non-null.
* cs-parser.jay (accessor_body): If empty, set to null.
* ecore.cs (SimpleName.SimpleNameResolve): We did not have the
same code path here to resolve constants names that we did have in
MemberAccess.DoResolve. There is too much code duplicated here.
svn path=/trunk/mcs/; revision=3593
* Enum.cs: the values array is of the enum and not of the underlying
type. Updates and some bug fixes.
* MonoType.cs: make the internalcall return FullName instead of the
assembly qualified name.
* Type.cs: make ToString () simply return FullName.
svn path=/trunk/mcs/; revision=3585
* icall.c: the values array fro enums is of the correct type, now.
Implement (correctly) getFullName instead of assQualifiedName for
MonoType.
* reflection.h, reflection.c: added mono_type_get_name ().
svn path=/trunk/mono/; revision=3584
* assembly.c, image.h: for each MonoImage, record from wich assembly
it was loaded.
* reflection.h, icall.c: added System_Reflection_Assembly_GetTypes().
Make Type.Assembly work.
svn path=/trunk/mono/; revision=3582
* Type.cs (GetTypeCode): provide some of the implementation for this
method. It's still too simplistic to be considered complete.
svn path=/trunk/mcs/; revision=3576
* TcpListener.cs: in Start(), set the socket listen backlog value
to a sane value (noticed by Jonathan Stowe <[email protected]>)
svn path=/trunk/mcs/; revision=3553
* statement.cs, makefile: Drop Statementcollection and just use ArrayLists
* ecore.cs: Optimize UserDefinedConversion by minimizing the calls
to MakeUnionSet.
* cs-tokenizer.cs: Reuse a single StringBuilder for assembling
tokens, numbers and strings.
* ecore.cs (MethodGroupExpr): Make Emit warn about missing
parenthesis.
* delegate.cs: Use ComputeAndDefineParameterTypes for both the
asyncronous parameters and the regular parameters.
* codegen.cs (CodeGen.Init): Use the constructor that allows us to
specify the target directory.
* expression.cs: (This.DoResolve): Simplify
(As.Emit): Optimize, do not generate IsInst if the expression is
always of the given type.
(Is.DoResolve): Bug fix, we were reporting both always/never for
the is expression.
* (Invocation.MakeUnionSet): Simplify vastly and optimize, we were
creating too many unnecessary arrays.
2002-03-31 Miguel de Icaza <[email protected]>
* class.cs (EmitFieldInitializer): Use Assign expression to assign
fields instead of rolling our own initializer. Takes care of all
implicit conversions, and drops unnecessary static checks/argument.
svn path=/trunk/mcs/; revision=3533
* corlib_test.build: don't exclude IntegerFormatterTest.
* System/AllTests.cs: added IntegerFormatterTest suite.
* System/IntegerFormatterTest.cs: totally reworked to use NUnit. Right
now it fails cause I haven't implemented Parse () methods yet. With
corlib_reference.dll runs ok.
svn path=/trunk/mcs/; revision=3524
Simplify the recursive toplevel definition process.
Initial steps to fix the toplevel delegate type reference declarations.
2002-03-30 Miguel de Icaza <[email protected]>
* expression.cs (Unary): Optimize - - expr into expr.
(Binary): Optimize a + (-b) into a -b.
* codegen.cs (CodeGen): Made all methods static.
2002-03-29 Miguel de Icaza <[email protected]>
* rootcontext.cs:
* decl.cs: Rename `definition' into `TypeBuilder' and drop the
TypeBuilder property.
* cs-parser.jay: Drop the use of RecordXXX and use RecordDecl
instead.
* tree.cs: Removed the various RecordXXXX, and replaced with a
single RecordDecl. Removed all the accessor methods, and just
left a single access point Type
* enum.cs: Rename DefineEnum to DefineType.
* decl.cs: New abstract method `DefineType' used to unify the
Defines for Enumerations, Interfaces, TypeContainers and
Delegates.
(FindType): Moved LookupInterfaceOrClass here. Moved the
LookupBaseClasses method that used to live in class.cs and
interface.cs here, and renamed to FindType.
* delegate.cs: Implement DefineType. Take advantage of the
refactored pattern for locating the parent builder without taking
the parent_builder argument (which we know does not work if we are
nested, and triggering a toplevel definition).
svn path=/trunk/mcs/; revision=3519
* class.c (mono_class_init): added exerimental EXT_VTABLE_HACK, if
defined we call all (non-static)methods through the vtable.
svn path=/trunk/mono/; revision=3512
* class.c: it seems GC_debug_malloc() makes the Boehm GC call the
finalizer even though the memory is still referenced (and the chunk of
memory is not freed).
svn path=/trunk/mono/; revision=3498
* io.c: EEXISTS is ignored for directory creation.
* mono-mutex.h: remove silly "pragma }" that emacs users insert
because they use a broken editor:-)
svn path=/trunk/mono/; revision=3496
* class.c: kill some warnings. Check explicit interface method
implementation also without considering the namespace.
Load also literal strings in static class data.
svn path=/trunk/mono/; revision=3495
* doc/jit-debug, docs/jit-debug-sample, docs/jit-debug-sample2:
New files, added documentation for the debugging code.
* doc/web/commands: Added the debugging pages.
* docs/jit-debug: Removed, this is now on the web site.
svn path=/trunk/mono/; revision=3493
* assembly.c (default_assembly_name_resolver): Kill memory leak.
(default_assembly_name_resolver): Make the resolver take the
"base" directory where the assembly was originally defined, so we
can load DLLs that are in the same directory as the assembly that
is being referenced.
svn path=/trunk/mono/; revision=3483
* AssemblerWriterI386.cs: Rewrote most of the string output function, do the
number->string conversion manually. It's now taking about 15 seconds to write
a symbol file for MCS, no longer more than a minute.
* MonoDwarfFileWriter.cs: Added some profiling code, speeded things up, fixed
a few bugs.
svn path=/trunk/mcs/; revision=3481
* decl.cs (MemberCore.CheckMethodAgainstBase): Test if the
accessibility of a member has changed during override and report
an error if so.
* class.cs (Method.Define, Property.Define): Only complain on
overrides if the method is private, any other accessibility is
fine (and since we just checked the permission is the same, we are
good to go).
* cs-tokenizer.cs: only line, region, endregion, if, endif, else
and elif are processed always. The other pre-processing
directives are only processed if we are "taking" the path
svn path=/trunk/mcs/; revision=3474
* class.cs (Method.Emit): Only emit symbolic debugging info if the
current location is not Null.
* codegen.cs (CodeGen.SaveSymbols): Split out symbol writing code into
a separate method so we can profile it.
* driver.cs (ShowTime): We need to use `(int) span.TotalSeconds' since
`span.Seconds' are just seconds, but no minutes or hours.
(MainDriver): Profile the CodeGen.SaveSymbols calls.
svn path=/trunk/mcs/; revision=3469
* class.cs (Method.Define), (Property.Define), (Indexer.Define):
Remove the gratuitous set of Final:
// If an interface implementation, then we can set Final.
if (((flags & MethodAttributes.Abstract) == 0) &&
implementing.DeclaringType.IsInterface)
flags |= MethodAttributes.Final;
I do not know what I was smoking when I used that.
* cs-parser.jay, delegate.cs: Make Delegate be a DeclSpace, first
step into fixing the name resolution issues for delegates and
unifying the toplevel name resolution.
svn path=/trunk/mcs/; revision=3459
* class.cs (Method.Emit): If we have a symbol writer, call its
OpenMethod(), CloseMethod() and SetMethodSourceRange() methods to
tell it about the current method.
* codegen.cs (EmitContext.Mark): New public method. Tell the symbol
writer that we're going to emit the first byte of IL code for a new
statement (a new source line).
(EmitContext.EmitTopBlock): If we have a symbol writer, call
EmitContext.Mark() before emitting any code.
* location.cs (SymbolDocument): Return null when we're Null.
* statement.cs (Statement): Moved the `Location loc' variable here.
(Statement.EmitBoolExpression): If we have a symbol writer, call
ec.Mark() before emitting any code to tell it that we're at the
beginning of a new statement.
(StatementExpression): Added `Location' argument to the constructor.
(Block): Added public readonly variable `StartLocation' and public
variable `EndLocation'. The latter is to be set using SetEndLocation().
(Block): Added constructor which takes a start and end location.
(Block.SetEndLocation): New method. This sets the end location.
(Block.EmitMeta): If we have a symbol writer, tell it the names of the
local variables we create.
(Block.Emit): If we have a symbol writer, call ec.Mark() before emitting
each statement and do also mark the begin and end of the block.
* cs-parser.jay (block : OPEN_BRACE): Use the new `Block' constructor to
tell it the current lexer.Location, use Location.Null for the end of the
block.
(block : OPEN_BRACE opt_statement_list CLOSE_BRACE): When closing the
current block, set its end location using SetEndLocation().
(statement_expression): StatementExpression constructor now takes the
lexer.Location as additional argument.
(for_statement, declare_local_variables): Likewise.
(declare_local_variables): When creating a new implicit block, use the
new Block constructor and pass it the lexer.Location.
svn path=/trunk/mcs/; revision=3457
* jit.c (mono_debug_insert_breakpoint): New global variable.
(mono_debug_last_breakpoint_address): New global variable.
* emit-x86.c (arch_compile_method): If `mono_debug_insert_breakpoint' is
non-zero, insert a breakpoint; if it's positive, decrement it when done.
Set `mono_debug_last_breakpoint_address' to the address of the last inserted
breakpoint.
* debug.h: Provide external declaration of `mono_debug_insert_breakpoint' and
`mono_debug_last_breakpoint_address', also documented them here.
svn path=/trunk/mono/; revision=3456
* debug-private.h (MonoDebugHandle): Renamed `format' to `default_format'.
(AssemblyDebugInfo): Added `format'.
* debug.c: Use the AssemblyDebugInfo's `format' field to determine the format,
this allows us choose the format on a per-assembly basis.
(mono_debug_open_assembly): When using MONO_DEBUG_FORMAT_DWARF2_PLUS, fall back
to MONO_DEBUG_FORMAT_DWARF2 if the symbol file does not exist, but the IL file
exists.
(debug_generate_method_lines): Generate correct IL offsets.
svn path=/trunk/mono/; revision=3454
* jit.h (MonoFlowGraph): Added `prologue_end' and `epilogue_start' fields.
* emit-x86.c (arch_compile_method): Set prologue_end and epilogue_start.
* debug-private.h (DebugMethodInfo): Renamed `frame_start_offset' to
`prologue_end_offset', added `epilogue_begin_offset' and `last_line'.
* debug.c (debug_generate_method_lines): Don't return if we don't have line
numbers, we still need to generate the IL offsets here. Emit line numbers
for `prologue_end_offset' (the first line of actual code) and
`epilogue_begin_offset' (the line of the method's closing brace).
Don't crash if cfg->bblocks [i].forest is NULL.
(mono_debug_add_method): Don't crash if we don't have line numbers.
Initialize the newly added fields.
* debug-stabs.c: Record first and last line, emit filename info at the
beginning of the stab file, gdb ignores the types otherwise.
* debug-dwarf2.c: Use the new prologue_end_offset instead of guessing it;
emit line number info for the first and last line.
svn path=/trunk/mono/; revision=3450
* loader.c: don't assert when a typeref can't be loaded, give
a chance to the runtime to trow an exception instead.
* loader.h: fix warning.
svn path=/trunk/mono/; revision=3438
* Makefile.am, mono.c, jit.h, jit.c: build the libmono library
with the jit runtime to easy embedding. main() is moved to mono.c, now.
* jit.c: use opcode names from libmetadata.
* debug.h, debug.c: constify char* argument.
svn path=/trunk/mono/; revision=3435
* util.c: when an invalid flags combination is seen,
return the string "invalid-flags", so disassembly can continue.
svn path=/trunk/mono/; revision=3432
* corlib_test.build: Re-exclude it in a couple of places where it was
breaking the build. This test is not an NUnit test. So, it doesn't
belong in these dll's until it's made a proper NUnit test.
svn path=/trunk/mcs/; revision=3420
make custom format strings work (not fully functional yet).
* corlib_test.build: remove two more lines that excluded
IntegerFormatterTest.
svn path=/trunk/mcs/; revision=3419
2002-03-27 Miguel de Icaza <[email protected]>
* expression.cs (Binary.ResolveOperator): added missing operator|
operator& and operator^ for bool/bool.
* cs-parser.jay: CheckDef now takes a Location argument that is
used to report errors more precisly (instead of reporting the end
of a definition, we try to track something which is a lot closer
to the source of the problem).
svn path=/trunk/mcs/; revision=3414
* cs-tokenizer.cs: Track global token use, so we can properly flag
the use of #define/#undef after the first token has been seen.
Also, rename the reportXXXX to Error_DescriptiveName
svn path=/trunk/mcs/; revision=3413
* decl.cs (DeclSpace.IsTopLevel): Move property here from
TypeContainer, so that Enum and Interface can use this too.
* class.cs (TypeContainer.LookupInterfaceOrClass,
GetInterfaceOrClass, GetClassBases, DefineType): Drop the
`builder' argument. Typically this was used to pass the parent
builder (a ModuleBuilder or a TypeBuilder from whoever triggered
the definition).
The problem is that a nested class could trigger the definition of
a toplevel class, and the builder would be obviously wrong in that
case.
So we drop this argument, and we compute dynamically the
TypeBuilder/ModuleBuilder (the correct information was available
to us anyways from DeclSpace.Parent)
* interface.cs (Interface.DefineInterface): Drop builder
parameter cleanup like class.cs
* enum.cs (Enum.DefineEnum): Drop builder parameter. Clean up
like class.cs
svn path=/trunk/mcs/; revision=3411
* statement.cs (Switch.EmitObjectInteger): Emit short/ushort
values.
(Try.Emit): Propagate the returns value from the statement.
(Return.Emit): Even if we are leavning
* driver.cs: Catch IOExpcetion for Directory.GetFiles as well.
* modifiers.cs: Fix the computation of MethodAttributes flags.
svn path=/trunk/mcs/; revision=3408
* EnumTest.cs(TestFormat): Use Fail() instead of AssertEquals() in
try-catch blocks. Add test to check if correct exception is being
thrown.
svn path=/trunk/mcs/; revision=3394
corlib/
* corlib.build: removed seperate windows/linux builds. excluded
wrapper and PAL classes from all builds.
corlib/System/
* Console.cs: Modified to get std handles from MonoIO.
* Environment.cs: removed PAL dependencies.
corlib/System.IO/
* Directory.cs, File.cs, FileSystemInfo.cs, FileInfo.cs,
DirectoryInfo.cs, Path.cs: Modified to use MonoIO class instead of
wrapper and PAL classes.
* MonoIO.cs, MonoIOStat.cs, MonoIOError.cs: Added.
svn path=/trunk/mcs/; revision=3379
* Makefile.am: wrapper no longer built
io-layer/
* unicode.h, unicode.c: changed to gunichar2
* io.h, io.c: changed strings to gunichar2*, added
SetFileAttributes(), GetCurrentDirectory(), SetCurrentDirectory(),
some fixes to FindFirstFile() and friends.
metadata/
* icall.c: removed last of PAL calls, added System.Environment
* file-io.h, file-io.c: MonoIO implementation
* object.h, object.c: mono_string_to_utf16() now returns gunichar2*
svn path=/trunk/mono/; revision=3377
* XmlProcessingInstruction.cs (InnerText): Implemented. It works just
like XmlCharacterData.
* XmlCommentTests.cs (TestXmlNodeBaseProperties): Move the
XmlNode.Value test in here.
svn path=/trunk/mcs/; revision=3369
* driver.cs: allow compilation of files that start with '/'.
Add a default case when checking the argument of --target.
svn path=/trunk/mcs/; revision=3365
* AssemblyBuilder.cs: use FileMode.Create.
* ILGenerator.cs: optimize localbuilder related opcodes.
Track parameters to adjust maxstack.
* LocalBuilder.cS: use unsigned for position.
svn path=/trunk/mcs/; revision=3362
* appdomain.c: do not use the byte marker in ldstr table lookup.
* debug-helpers.c: allow two ':' to separate class and method name.
* object.c: allocate arrays bounds with the GC, too.
* verify: add a few more checks.
svn path=/trunk/mono/; revision=3360
* XmlCharacterData.cs (InnerText): Implemented. Funny that the
docs say it is the "The concatenated values of the node and all
the children of the node.". I wrote some test programs and
couldn't get any of the derived nodes to AppendChild. For now,
InnerText == Data == Value.
* XmlDeclaration.cs (XmlDeclaration): Fixed the constructor parameter signature.
svn path=/trunk/mcs/; revision=3358
* reflection.c: output also literal strings. Allocate parameter data
with GC_malloc() (thanks, Martin, for catching this!).
svn path=/trunk/mono/; revision=3357
* interp.c: Show thread ID's in trace output.
New option "--traceclassinit" to put debug output around
runtime_class_init().
Make sure all options are displayed in usage().
svn path=/trunk/mono/; revision=3355
* debug-dwarf2.c (write_method_lines_dwarf2): Don't generate method
lines if we don't have line number information.
(write_method_dwarf2): Use `minfo->method_info.this_offset' instead
of hardcoding 8.
* debug-stabs.c (write_method_stabs): Don't generate method lines if
we don't have line number information. Use `minfo->method_info.this_offset'
instead of hardcoding 8.
* debug.c (debug_generate_method_lines): Don't crash if we don't have
line number information.
(mono_debug_open_assembly): Don't generate line numbers for
MONO_DEBUG_FORMAT_DWARF2_PLUS.
(mono_debug_add_method): Don't store the 'this' offset in `param_offsets',
but it in the new `this_offset' field.
svn path=/trunk/mono/; revision=3349
* debug-symfile.h (MonoDebugMethodInfo): Added `this_offset', don't
include the `this' offset in the `param_offsets'.
svn path=/trunk/mono/; revision=3348
* Removed all the files. Making place for someone other to contribute.
I am not in a position, right now, to look after this. It's screwing
me up...
svn path=/trunk/mcs/; revision=3343
** added functionality for basic functionality. **
** Only suports 32 bit color bitmaps, no compression. **
** Untested **
* Dennis Hayes**
svn path=/trunk/mcs/; revision=3340
* IntPtr.cs: Temporary work-around until I fix the assembly
attributes bug.
* String.cs (System): Removed enumeration, because it is pretty
hard to support enumerations in /nostdlib mode for the core types.
2002-03-25 Miguel de Icaza <[email protected]>
* interface.cs: Implement the same search algorithm for types in
the interface code.
* delegate.cs: Do not allow multiple definition.
svn path=/trunk/mcs/; revision=3335
* interface.cs (Interface.DefineInterface): Prevent from double definitions.
* rootcontext.cs: Load manually enum to allow core classes to
contain enumerations.
* enum.cs, ecore.cs, driver.cs, attribute.cs, class.cs, expression.cs:
Update to new static methods in TypeManager.
* typemanager.cs (GetMethod, GetConstructor): Use our
implementation of FindMembers to find the members, since during
corlib compilation, the types are TypeBuilders and GetMethod and
GetConstructor do not work.
Make all methods in TypeManager static.
svn path=/trunk/mcs/; revision=3332
* debug-symfile.c (mono_debug_update_symbol_file): Use a new
mono_debug_get_class() function to get the classes. Added new
relocation types for arrays and strings.
(mono_debug_get_class): New static function to search in all
referenced assemblies for a metadata token.
* debug-symfile.h (MONO_DEBUG_SYMBOL_FILE_VERSION): Increased to 7.
svn path=/trunk/mono/; revision=3330
* MonoDwarfFileWriter.cs (CreateType): Return a `DieType'.
(RegisterType): Add the type to the type hash before creating dependency types
so we don't get recursion loops.
(RegisterPointerType): New func to register a "pointer to type" type.
(DieTypeDef, DiePointerType, DieArrayType, DieStringType, DieClassType): New
types; added support for strings, arrays and basic support for classes.
svn path=/trunk/mcs/; revision=3329
* reflection.h, reflection.c: use a gc-safe hash for hash tables that
hold gc-allocated objects. Make the string heap a stream like the
others. Removed duplicated code when writing stream info.
Added asserts to catch possible buffer overflows. Set the sorted map
for tables that need sorting. Added some documentation.
svn path=/trunk/mono/; revision=3326
* interp.c: allow tracing to be done on a per-method basis.
Fix interp_mono_runtime_invoke() to deal correcttly with the return
value. Disable glib mem vtable setting.
svn path=/trunk/mono/; revision=3322
* First checkin: libmonoutils is meant to hold some utility
data structures and bits that are usefult to the rest of the project
and don't require metadata/runtime support.
mono-hash is a GC-safe hash table: i.e. you can store GC-allocated
data in it.
svn path=/trunk/mono/; revision=3320
I am very close!
2002-03-25 Miguel de Icaza <[email protected]>
* typemanager.cs (InitCodeHelpers): Split the functionality from
the InitCodeTypes function.
* driver.cs: Call InitCodeHelpers after we have populated the
types.
* cs-parser.jay (delegate_declaration): we did not used to compute
the delegate name correctly for void delegates.
2002-03-24 Miguel de Icaza <[email protected]>
* rootcontext.cs (RootContext): Init the interface_resolve_order
and type_container_resolve_order always.
(ResolveCore, BootstrapCorlib_ResolveClass,
BootstrapCorlib_ResolveStruct): New functions to bootstrap the
compiler when compiling with --nostdlib
* class.cs (TypeContainer.DefineType): Check that our parent is
not null. This test is most important when we are bootstraping
the core types.
* codegen.cs: Split out the symbol writing code.
svn path=/trunk/mcs/; revision=3318
* System.Data.build: Excluded System.Data.SqlClient from the build.
The stubs are incomplete and they are stopping the build.
* System.Data.SqlClient/SqlCommand.cs: Replaced 'implements' with ':'.
* SortedList.cs (Synchronized): Stubbed out a missing method
pointed out by Jakk Simm's test suite.
* SortedListTest.cs: Committed to CVS for Jaak Simm <[email protected]>.
svn path=/trunk/mcs/; revision=3314
* man/mcs.1: Documented the new --debug option and added a section
about debugging support.
* man/mono.1: Documented the new --dwarf and --dwarf-plus options.
svn path=/trunk/mono/; revision=3311
* codegen.cs (SymbolWriter): New public variable. Returns the
current symbol writer.
(CodeGen): Added `bool want_debugging_support' argument to the
constructor. If true, tell the ModuleBuild that we want debugging
support and ask it for the ISymbolWriter.
(Save): If we have a symbol writer, call it's Close() method after
saving the assembly.
* driver.c (--debug): New command line argument to create a
debugger information file.
* location.cs (SymbolDocument): New public property. Returns an
ISymbolDocumentWriter object for the current source file or null
if we don't have a symbol writer.
svn path=/trunk/mcs/; revision=3310
* IMonoSymbolWriter.cs: Killed all methods in this interface, no longer needed.
* MonoSymbolWriter.cs (MonoSymbolWriter): The constructor now takes a string
argument which is the full pathname of the assembly - you must call Close()
after the assembly has been written to disk since the symbol writer needs to
load the finished assembly to get its metadata.
* MonoDwarfFileWriter.cs: Added support for enums and structs.
svn path=/trunk/mcs/; revision=3306
* icall.c (ves_icall_Type_GetFields): Reverse the list before storing
it in the array since it was created with g_slist_prepend().
2002-03-24 Martin Baulig <[email protected]>
* debug-symfile.c (mono_debug_local_type_from_signature): Renamed
to ves_icall_Debugger_MonoSymbolWriter_get_local_type_from_sig().
(mono_debug_method_from_token): Renamed to
ves_icall_Debugger_MonoSymbolWriter_method_from_token().
(ves_icall_Debugger_DwarfFileWriter_get_type_token): New interncall.
* debug-symfile.c (MRT_type_sizeof, MRT_type_field_offset): New
relocation types.
* debug-symfile.h (MONO_DEBUG_SYMBOL_FILE_VERSION): Increased to 6.
svn path=/trunk/mono/; revision=3302
* System.Data.SqlClient/*: added skeletons for the SQL managed
provider for ADO.Net, to be based initially in PostgreSQL.
svn path=/trunk/mcs/; revision=3300
* IMonoSymbolWriter.cs (IMonoSymbolWriter): Removed my custom OpenMethod(),
we're now using the ISymbolWriter's method.
(IVariable): Added `byte[] Signature' property.
* MonoSymbolWriter.cs (SetAssembly): New method. This must be called before
Close(); the assembly parameter is the already-written assembly, ie. it must
contain the full metadata.
(OpenMethod): Only take the token argument and set MethodInfo later in DoFixups.
(SetMethodSourceRange): You must call this function to tell the symbol writer
in which source file the method is defined.
(DefineLocal): Store the signature in the local.
(DoFixups): Use two new interncalls to set the SourceMethod's MethodInfo field
and the LocalVariable's Type field.
svn path=/trunk/mcs/; revision=3298
* ILGenerator.cs: Use #if-#endif instead of if(false){} to disable
code. This way there is no compiler warning.
* TypeBuilder.cs: Removed the returns that came after the throws.
This removes a few more compiler warnings. Also marked with MonoTODO
all places where we throw NotImplemented exceptions.
svn path=/trunk/mcs/; revision=3294
* SignatureHelper.cs (GetFieldSignatureHelper, GetLocalSignatureHelper):
Implemented.
* LocalBuilder.cs (LocalBuilder): This internal constructor now takes
a ModuleBuilder argument instead of a ISymbolWriter one.
(SetLocalSymInfo): Create and pass type signature to DefineLocalVariable.
svn path=/trunk/mcs/; revision=3291
* unicode.c (ves_icall_iconv_get_char_count): The `count' argument
specifies the number of bytes to be converted, not the array size.
Return the number of chars, not the number of bytes.
(ves_icall_iconv_get_chars): The `byteCount' argument
specifies the number of bytes to be converted, not the array size.
svn path=/trunk/mono/; revision=3288
* Fixed hanging fileHandle
* Removed <seeAlso> stubs; unnecessary
* changed <returnType> to <returns> to conform with the DTD.
svn path=/trunk/mcs/; revision=3287
* IMonoSymbolWriter.cs (ISourceBlock): New interface.
(ILocalVariable): Renamed this interface to IVariable.
(IVariable): Added Line, Type, Token.
(ILocalVariable, IMethodParameter): New interfaces, derive from IVariable.
(ISourceMethod): Added Blocks. Renamed FirstLine and LastLine to Start and End,
changed their type to ISourceLine. Removed CodeSize.
(ISourceLine): Renamed Line to Row, added Column. Added OffsetType and Offset.
* MonoDwarfFileWriter.cs (MonoDwarfFileWriter.DieLexicalBlock): New class.
(MonoDwarfFileWriter.DieMethodVariable): New class.
* MonoSymbolWriter.cs (OpenScope, CloseScope): Implemented.
Reflected latest IMonoSymbolWriter interface changes.
svn path=/trunk/mcs/; revision=3283
* debug-private.h (AssemblyDebugInfo): Added `_priv'.
* debug-dwarf2-plus.c
(mono_debug_open_assembly_dwarf2_plus): Open the symbol file here.
(mono_debug_close_assembly_dwarf2_plus): Close the symbol file here.
(mono_debug_write_assembly_dwarf2_plus): Only call
mono_debug_update_symbol_file() here.
svn path=/trunk/mono/; revision=3281
* rawbuffer.c (mono_raw_buffer_load_mmap): Use MAP_SHARED when
is_writeable is set.
(mono_raw_buffer_update): New function to write the modified map
back to disk.
* debug-symfile.h (MonoDebugSymbolFile): Added `raw_contents_size'.
* debug-symfile.c (mono_debug_update_symbol_file): Call
mono_raw_buffer_update() when done writing.
svn path=/trunk/mono/; revision=3280
* debug-symfile.h (MONO_DEBUG_SYMBOL_FILE_VERSION): Increased to 5.
* debug-symfile.c: Added support for arguments and local variables.
svn path=/trunk/mono/; revision=3279
* threads.c: Fix a race condition where a thread can start and
exit before the handle has been properly initialised (no reason
why the handle couldn't be initialised beforehand, so do so)
Fix a ms to ns conversion magnitude thinko.
svn path=/trunk/mono/; revision=3272
* XmlElement.cs: Reformatted.
(CloneNode) Corrected.
* XmlDocument.cs (CreateWhitespace): Implemented.
* XmlAttribute.cs (CloneNode): Changed the child's CloneNode to
true, because Attributes have ChildNodes.
2002-03-22 Duncan Mak <[email protected]>
* AllTests.cs:
* Microsoft.Test.csproj:
* Mono.Test.csproj: Updated to include new files.
* XmlCDataSectionTests.cs: Added to CVS.
* XmlCommentTests.cs: Added to CVS. hanks to Kral for helping me
setup a testing environment on VS.NET.
* XmlElementTests.cs: Reformatted.
(TestCloneNode): Added.
* XmlWhiteSpaceTests.cs: Added to CVS.
svn path=/trunk/mcs/; revision=3267
* ASCIIEncoding.cs : Fix off by one error in Get(Char|Byte)Count.
2002-03-21 Mike Kestner <[email protected]>
* StreamReader.cs : Fill out, add buffering, and use encoding.
svn path=/trunk/mcs/; revision=3266
* jit.c: inter strings before executing a method.
Do not intern command line arguments anymore.
Thu Mar 21 17:32:46 CET 2002 Paolo Molaro <[email protected]>
* interp.c: intern strings before executing a method (and don't
intern command line arguments anymore). Add sanity checks in alloca
use.
svn path=/trunk/mono/; revision=3262
* debug.h (MonoDebugFormat): Added MONO_DEBUG_FORMAT_DWARF2_PLUS.
* debug-dwarf2-plus.c: This debugging format reads a symbol file which has
been created by MCS and fills in all machine dependent stuff.
* debug-private.h (DebugMethodInfo): Added `MonoDebugMethodInfo method_info',
removed everything which is already in MonoDebugMethodInfo.
* debug.c (debug_generate_method_lines): Generate the MonoILOffsetInfo array.
(mono_debug_make_symbols): Don't open the file or call as, this is done in the
backend code.
* jit.c (main): Added "--dwarf-plus" command line option to use the new
MONO_DEBUG_FORMAT_DWARF2_PLUS debugging format.
svn path=/trunk/mono/; revision=3260
* semaphores.c: Fix a problem when waiting for one or more
semaphores, and another semaphore is Released (all waiting
semaphores assumed they were signalled)
svn path=/trunk/mono/; revision=3257
* debug-symfile.[ch]: New files to handle debugging information
files. There's also support to dynamically update these symbol
files to include machine dependent information.
svn path=/trunk/mono/; revision=3253
* jit.c (usage): new option to specify maximum number of worker threads
* delegate.c (arch_get_async_invoke): notify listeners before we call the
asynchronous callback
svn path=/trunk/mono/; revision=3251
* test-49.cs: Improved test to excerise the coverage.
2002-03-21 Miguel de Icaza <[email protected]>
* driver.cs (LoadAssembly): Correctly return when all the paths
have been tried and not before.
* statement.cs (Switch.Emit): return the actual coverage for this
statement (returns/not-returns)
(Switch.SimpleSwitchEmit): Do not generate jumps to the end of the
switch of the statement if we are the last switch section. That
kills two problems: try/catch problems (we used to emit an empty
nop at the end) and switch statements where all branches would
return.
svn path=/trunk/mcs/; revision=3248
* IAssemblerWriter.cs: New interface.
* AssemblerWriterI386.cs: New class.
* MonoDwarfFileWriter.cs: Use the IAssemblerWriter interface to make this class
platform and assembler independent.
svn path=/trunk/mcs/; revision=3243
* ModuleBuilder.cs (GetSymbolWriter): New internal function. Dynamically
loads the default symbol writer, catch all possible exceptions and return
null on failure.
(ModuleBuilder): Added `bool emitSymbolInfo' argument to this internal
constructor; if set, call GetSymbolWriter ().
(GetSymWriter): Implemented.
* LocalBuilder.cs (LocalBuilder): Added ISymbolWriter argument to this
internal method.
(SetLocalSymInfo): Implemented, call ISymbolWriter.DefineLocalVariable ()
if the symbol writer is not null.
* ILGenerator.cs (ILGenerator): Call ModuleBuilder.GetSymWriter () to get
and store the symbol writer.
(DeclareLocal): Pass the symbol writer to LocalBuilder's constructor.
(MarkSequencePoint): Implemented, call ISymbolWriter.DefineSequencePoints ()
if the symbol writer is not null.
* AssemblyBuilder.cs (DefineDynamicModule): Pass the `bool emitSymbolInfo'
to ModuleBuilder's constructor.
svn path=/trunk/mcs/; revision=3239
* icall.c (ves_icall_InternalInvoke): Create a new object if the
method is a constructor.
(icall_map): Added "System.Reflection.MonoCMethod::InternalInvoke",
points to ves_icall_InternalInvoke().
svn path=/trunk/mono/; revision=3237
* Array.cs: move error handling in the catch block.
* MulticastDelegate.cs: remove == and != operators that were
removed with the delegate changes (when you add stuff, please do not
remove existing functionality!).
* Type.cs: if a property is not found in a type, search for it
in the parent types, too.
svn path=/trunk/mcs/; revision=3215
* StreamWriter.cs (StreamWriter (string)): The default is to override
the file, not to append to it.
(StreamWriter (string path, bool append)): When appending, seek to the
end of the file, otherwise truncate the file to zero length.
(Dispose (bool)): Close the internalStream.
(Flush): Flush the interalStream.
(Write (char[], int, int)): Flush the internalStream in auto-flush-mode.
svn path=/trunk/mcs/; revision=3207
* interface.cs (Interface.PopulateProperty): Instead of using
`parent' as the declaration space for the set parameters, use
`this'
* support.cs (InternalParameters): InternalParameters constructor
takes a DeclSpace instead of a TypeContainer.
* expression.cs (ArrayCreation.EmitDynamicInitializers): If value
types are being initialized, load the address of it before calling
the function.
(New): Provide a mechanism to disable the generation of local
value type temporaries when the caller will be providing us with
an address to store it.
(ArrayCreation.EmitDynamicInitializers): Use it.
Fixes two bugs reported on Bugzilla
svn path=/trunk/mcs/; revision=3197
This is an implementation of the System.Diagnostics.SymbolStore.SymbolWriter
interface. It's still work in progress and not yet used anywhere.
There is some preliminary documentation in the source files and some more
docu in the README and README.relocation-table files.
* IMonoSymbolWriter.cs: New file.
* MonoDwarfFileWriter.cs: New file.
* MonoSymbolDocumentWriter.cs: New file.
* MonoSymbolWriter.cs: New file.
* README, README.relocation-table: Documentation.
svn path=/trunk/mcs/; revision=3193
* sysmath.c, sysmath.h, icall.c, Makefile.am: math routines now
handled by runtime as icall rather than dllimport from libm.so
* file-io.c, file-io.h: fixed handle argument type.
svn path=/trunk/mono/; revision=3191
* configure.in: Only look for libgc on the system. Default to not
using GC at all, because it doesn't work with the jit.
2002-03-18 Dick Porter <[email protected]>
* reflection.c (mono_image_get_type_info): rename interface to
iface, because of "#define interface struct" on windows.
svn path=/trunk/mono/; revision=3190
* Enum.cs (Equals): check for null and throw if it is.
* Enum.cs (Format): check for null parameters and throw if necessary.
This method still needs more argument checking.
svn path=/trunk/mcs/; revision=3186
* corlib_test.build: build RunTests.corlib.exe with only mono class
libs. This tells what we are missing to run the tests.
svn path=/trunk/mcs/; revision=3184
* ByteTest.cs:
* Int64Test.cs:
* SByteTest.cs: Do not hard code the "$" as the currency symbol to
use for Parse tests. This isn not really the fix we need. These
number formats vary wildly depending on the culture the system
runs with. We need a much better strategy here for testing this.
* Int32Test.cs: Use #if NOTYET-#endif to disable a test. This removes
an annoying compile warning.
svn path=/trunk/mcs/; revision=3181
* corlib_test.build: disable running of NUnit tests against mono
corlib. There are so many icalls now, that these tests need
to be run inside mint and mono. Will change this soon to run
the tests using both. It still runs the tests against the mscorlib
to validate the tests themselves.
svn path=/trunk/mcs/; revision=3179
* ASCIIEncodingTest.cs : New suite for ASCIIEncoding.
* AllTests.cs : Add the new suite.
2002-03-17 Mike Kestner <[email protected]>
* ASCIIEncoding.cs: Implement all the overridden methods. No longer
dependent on iconv icalls.
* Encoding.cs: Fix count bugs in GetBytes and GetChars. Add virtual
to GetBytes.
svn path=/trunk/mcs/; revision=3170
* expression.cs (Invocation.EmitArguments): Only probe for array
property if there is more than one argument. Sorry about that.
svn path=/trunk/mcs/; revision=3168
* Double.cs: Explicitly handle comparisons in CompareTo() for
Positive/Negative Infinity and NaN. Unit Test now passes on Linux.
* Enum.cs(CompareTo): Check types of values before trying to compare.
Throw exceptions if types are invalid or don't match.
svn path=/trunk/mcs/; revision=3164
* Double.cs: Explicitly handle comparisons in CompareTo() for
Positive/Negative Infinity and NaN. Unit Test now passes on Linux.
svn path=/trunk/mcs/; revision=3163
* makefile: Do not remove the NAnt.exe on a 'make clean'. This would
prevent other cleans from happening that need nant.
svn path=/trunk/mcs/; revision=3161
* library.build: Uncommented System.Web tag
* System.Web.build: Did the same. Now does not exclude System.Web.UI.WebControls.
GOOD NEWS! N-JOY!
svn path=/trunk/mcs/; revision=3157
* class.cs (Invocation.EmitArguments): Fix to emit arguments for
empty param arrays.
* class.cs (Method.LabelParameters): Fix incorrect code path that
prevented the `ParamArrayAttribute' from being applied to the
params attribute.
svn path=/trunk/mcs/; revision=3155
* debug.c (mono_debug_open_assembly): Call mono_debug_get_type() on all
base types.
* debug-dwarf2.c: Added support for strings and arrays.
svn path=/trunk/mono/; revision=3154
* debug.c (mono_debug_get_type): Recursively call this for all function members
of a class type.
(mono_debug_add_method): Don't mangle function names, this must be done by the
debugger backend if the debugging format needs mangled names.
* debug-dwarf2.c: Improved support for classes, added member functions.
svn path=/trunk/mono/; revision=3153
* typemanager.cs: Make the assemblies array always be non-null
(empty, but non-null)
* tree.cs (RecordDecl): New function that abstracts the recording
of names. This reports error 101, and provides a pointer to the
previous declaration. Fixes a crash in the compiler.
svn path=/trunk/mcs/; revision=3151
* debug.c (mono_debug_get_type): Recursively call this for all members and
parent classes of a class type.
* debug-dwarf2.c: Added basic support for classes. Set source language to C++
since GDB doesn't like Java very much.
svn path=/trunk/mono/; revision=3150
* cs-parser.jay (constructor_declaration): Update to new grammar,
and provide a constructor_body that can be empty.
svn path=/trunk/mcs/; revision=3149
2002-02-28 Miguel de Icaza <[email protected]>
* Stream.cs (NullStream): Do not track position, this beast does
nothing in practice.
2002-03-14 Miguel de Icaza <[email protected]>
* Array.cs: Add some extra debugging information.
svn path=/trunk/mcs/; revision=3147
* class.c, class.h: rename and export mono_ptr_class_get().
* metadata.c: support MONO_TYPE_ARRAY in MonoType compare.
* reflection.c, reflection.h, icall.c: better/saner type name
parsing and MonoType creation. Handle MONO_TYPE_ARRAY in
method signatures.
svn path=/trunk/mono/; revision=3145
* interp.c: restore frame on return from unmanaged calls.
Add support for continuing execution up to x IL insn.
Fix exception handling when an exception is raised in the catch
handler of the same method that issued the first one.
svn path=/trunk/mono/; revision=3142
* Stubbed some methods: FormatResourceString(...) in compliance with
several forms of String.Format(...) available.
svn path=/trunk/mcs/; revision=3137
* driver.cs: Add support for --resources.
* expression.cs: (FetchGetMethod, FetchAddressMethod, EmitAssign):
Make all types for the various array helper methods be integer.
* ecore.cs (Expression.ConvertNumericExplicit): Pass the
CheckState to ConvCast.
(ConvCast): Now it takes a `checked' state argument, to avoid
depending on the emit context for the conversion, and just using
the resolve time setting.
* expression.cs (ArrayCreation.EmitArrayArguments): New function,
instead of Invocation.EmitArguments. We do not emit the original
arguments, instead we emit those which have been converted to
unsigned int expressions.
svn path=/trunk/mcs/; revision=3135
* XmlEntity.cs: Added to CVS. Need to implement BaseURI and
InnerText once I know what they do.
* XmlDocumentType.cs (XmlDocumentType): Fix the constructor now
that we can properly chain constructors.
(CloneNode): implemented.
(WriteContentTo): Removed MonoTODO attribute as this method has no
effect in this class.
svn path=/trunk/mcs/; revision=3134
* debug.c (mono_debug_get_type): Recursively call this for all members
of a struct type.
* debug-dwarf.c: Added support for structs.
svn path=/trunk/mono/; revision=3131
2002-03-15 Miguel de Icaza <[email protected]>
* statement.cs (Block.EmitMeta): Drop tracking of indexes.
* codegen.cs: ditto.
* expression.cs (LocalVariableReference): Drop the use of the
Store function that depended on the variable index.
* statement.cs (VariableInfo): Drop the `Idx' property from this
class, as this is not taking into account the indexes for
temporaries tat we generate during the execution, getting the
indexes wrong.
* class.cs: First emit class initializers, then call the parent
constructor.
svn path=/trunk/mcs/; revision=3130
* ecore.cs (MemberLookup): TypeManager.FindMembers will return
matches for events for both the Static and Instance scans,
pointing to the same element. Fix that.
svn path=/trunk/mcs/; revision=3121
* DirectoryInfo.cs: Fixed the overloaded GetDirectories and GetFiles.
This code seemed to be copied from somewhere, and it was close,
but didn't match the docs. This was the last bit needed to get
NAnt to compile with our class libs.
svn path=/trunk/mcs/; revision=3118
* makefile: Compile a version of NAnt with Mono's libs. It only does
this if you 'make NAnt_mono.exe'. Of course, right now the resulting
exe probably is not going to work yet becuase of the immature class
libs.
svn path=/trunk/mcs/; revision=3117
* rootcontext.cs (ResolveTree): Always set the
interface_resolve_order, because nested interfaces will be calling
into us.
* class.cs (GetInterfaceOrClass): Track the same resolution
process used by TypeManager.LookupType. This fixes the nested
type lookups in class declarations (separate path from
LookupType).
(TypeContainer.DefineType): Also define nested interfaces.
(TypeContainer.RegisterOrder): New public function used to
register the order in which child interfaces need to be closed.
Nested interfaces need to be closed after their parents have been
created.
* interface.cs (InterfaceAttr): Put all the logic for computing
the interface attribute here.
(DefineInterface): Register our interface order with the
RootContext or with the TypeContainer depending on the case.
New test as well.
svn path=/trunk/mcs/; revision=3115
* XmlDocument.cs: Moved the NodeChanged EventHandler to its own
file, and updated the callbacks to reflect the change.
(XmlDocument): Added the NameTable constructor.
(NameTable): Also the NameTable property.
svn path=/trunk/mcs/; revision=3113
* XmlDocument.cs: Moved the NodeChanged EventHandler to its own
file, and updated the callbacks to reflect the change.
* XmlNodeChangedEventHandler.cs: Added, replacing the version that
was in XmlDocument.cs. It has two arguments now (object,
EventArgs) , instead of one (object).
svn path=/trunk/mcs/; revision=3112
* XmlNamedNodeMap.cs (SetNamedItem): Reverted (added back in)
the patch with the ReadOnly checks. "Don't doubt yourself, my
son... you were right!"
svn path=/trunk/mcs/; revision=3096
* ArrayList.cs (FixedSize): Changed the return type to IList if
the argument is an IList.
(Synchronized): Ditto here.
svn path=/trunk/mcs/; revision=3092
* debug.c (MonoDebugFormat): New public enums specifying which debugging
format to use.
(mono_debug_open_file): Added MonoDebugFormat argument.
(mono_debug_make_symbols): Don't take an argument to make it easier to call
this function from GDB. It's now safe to call this function multiple times;
it'll always write a complete debugging file.
* debug.c: Splitted this file into a general part which remains in this file
and the debugging format specific parts debug-stabs.c and debug-dwarf2.c.
All public functions now call a corresponding format specific function.
* debug.c: The following changes are private to debug.c:
(AssemblyDebugInfo, MonoDebugHandle): Moved declarations to debug-private.h.
(record_line_number, debug_generate_method_lines): New private functions.
(mono_debug_open_ass): Renamed to mono_debug_open_assembly; this function now
calls a debugging-format-specific function (mono_debug_open_assembly_stabs or
mono_debug_open_assembly_dwarf2).
(mono_debug_make_symbols): Calls mono_debug_write_assembly_stabs/dwarf2(). It's
now safe to call this function multiple times.
(mono_debug_get_type): New public function. This takes a `MonoClass *' and
returns an unique index for this type. It's used to ensure that we only write
each class once to the debugging file.
(mono_debug_add_method, mono_debug_add_type): Store all the data in an internal
data structure, but don't directly write to the debugging file. This is done
later from mono_debug_write_assembly().
* jit.c (main): Added "--dwarf" command line argument to generate DWARF 2
debugging output. Call mono_debug_close() on cleanup if necessary.
svn path=/trunk/mono/; revision=3090
* debug-private.h: New private header file.
* debug-stabs.c: Added the stabs type generation stuff which was
previously in debug.c.
* debug-dwarf.c: Started to implement type support. We're currently
only writing this most basic types to the dwarf file, but this will
change soon.
svn path=/trunk/mono/; revision=3089
* ecore.cs (StandardConversionExists): Modify to take an Expression
as the first parameter. Ensure we do null -> reference type conversion
checking.
* Everywhere : update calls accordingly, making use of MyEmptyExpr to store
temporary Expression objects.
svn path=/trunk/mcs/; revision=3087
* XmlCharacterData.cs: Reformatted the properties for better readability.
* XmlLinkedNode.cs: Removed the awful boxy comments.
* XmlNamedNodeMap.cs (Count):
(Item): Implemented. Tests will be coming.
* XmlEntityReference.cs:
* XmlSignificantWhitespace.cs: Implemented these classes except for
the Clone, WriteContentTo and WriteTo methods. Will have to
investigate into these later.
svn path=/trunk/mcs/; revision=3081
* StringBuilder.cs: make ToString() return a interned string, this
seems to be required to make switch on string work.
svn path=/trunk/mcs/; revision=3079
* debug-stabs.c, debug-dwarf2.c: New files containing my new
debugging code. They're now in CVS, but not yet used anywhere.
svn path=/trunk/mono/; revision=3077
* EndOfStreamException.cs:
* FileLoadException.cs:
* FileNotFoundException.cs:
* PathTooLongException.cs: Changed the base classes to IOException
instead of SystemException.
* IOException.cs: Added missing constructors.
* MissingManifestResourceException.cs: This should inherit from
SystemException, not Exception.
* SiteIdentityPermissionAttribute.cs:
* UIPermissionAttribute.cs: These should inherit from
CodeAccessSecurityAttribute, not IsolatedStoragePermissionAttribute.
* SecurityException.cs: Inherit from SystemException, not Exception.
* FieldAccessException.cs:
* MethodAccessException.cs:
* PlatformNotSupportedException.cs: Inherit from
MemberAccessException, not SystemException.
svn path=/trunk/mcs/; revision=3076
We could also solve this problem by having a separate path for
performing type lookups, instead of DoResolve, we could have a
ResolveType entry point, and only participating pieces of the
production (simplename, deref, array) would implement this.
* codegen.cs (EmitContext): New field OnlyLookupTypes used to
signal SimpleName to only resolve type names and not attempt to
resolve anything else.
* expression.cs (Cast): Set the flag.
* ecore.cs (SimpleName): Use the OnlyLookupTypes flag
* Everywhere: Use ec.DeclSpace on calls to LookupType, as this
makes the use more obvious of the DeclSpace. The
ec.TypeContainer.TypeBuilder is now only used to pull the
TypeBuilder for it.
My theory is that I can get rid of the TypeBuilder completely from
the EmitContext, and have typecasts where it is used (from
DeclSpace to where it matters).
The only pending problem is that the code that implements Aliases
is on TypeContainer, and probably should go in DeclSpace.
svn path=/trunk/mcs/; revision=3075
* IFormatter.cs: Fix the return type of the Serialize method.
* ObsoleteAttribute.cs: Made Message and IsError properties
instead of fields.
svn path=/trunk/mcs/; revision=3074
* class.cs: Only report 108 if there is no `new' modifier.
* cs-parser.jay: rework foreach statement to work with the new
changes to the policy on SimpleNames.
* report.cs: support Stacktrace on warnings as well.
* makefile: drop --unsafe and /unsafe from the compile.
2002-03-11 Miguel de Icaza <[email protected]>
* ecore.cs (SimpleName.SimpleNameResolve): Perform local variable
lookups here, instead of doing that at parse time. This means
that our grammar will not introduce `LocalVariableReferences' as
expressions at this point. That solves the problem of code like
this:
class X {
static void Main ()
{ int X = 1;
{ X x = null }}}
This is only half the fix. The full fix requires parameters to
also be handled in this way.
Added test for the above new scenario, updated our foreach tests to try
the new changes.
svn path=/trunk/mcs/; revision=3059
* class.cs (Property.DefineMethod): When implementing an interface
method, set newslot, when implementing an abstract method, do not
set the flag (before we tried never setting it, or always setting
it, which is the difference).
(Indexer.DefineMethod): same.
(Method.DefineMethod): same.
svn path=/trunk/mcs/; revision=3057
* interp.c: use the new facilities in debug-helpers to
disassemble CIL code and match method names to MonoMethods.
svn path=/trunk/mono/; revision=3044
* monograph.c: removed method signature and searching helpers
that are now provided in libmetadata. Added --control-flow option to
create a control flow graph of a method, with basic blocks etc.
svn path=/trunk/mono/; revision=3043
* debug-helpers.{c,h}: moved here from monograph some useful functions
to locate a method by name/signature in a class or image. Included
also a small and flexible IL disassembler.
svn path=/trunk/mono/; revision=3042
* attribute.cs (Attribute.UnmanagedType): This is to keep track of
the unmanaged type in the case we have a MarshalAs attribute.
(Resolve): Handle the case when we are parsing the special MarshalAs
attribute [we need to store the unmanaged type to use later]
* typemanager.cs (marshal_as_attr_type): Built in type for the
MarshalAs Attribute.
* attribute.cs (ApplyAttributes): Recognize the MarshalAs attribute
on parameters and accordingly set the marshalling info.
svn path=/trunk/mcs/; revision=3035
* emit-x86.c (arch_compile_method): When emitting stabs debugging
output, put a nop instruction at the start of all functions so that
the adresses won't change when using --debug.
* debug.c (mono_debug_add_method): `tree->cli_addr' is an offset into
the bytecode area, stabs needs a line number in the .il file. Use the
new info->moffsets to get the line number.
(AssemblyDebugInfo): Added `total_lines' and `moffsets' fields.
`moffsets' is an array of `total_lines' fields (total number of lines
in the .il file); for each line in the .il field, this array contains
the bytecode offset if it's an "IL_xxxx" line, -1 if it's the last line
of a method and 0 otherwise.
(debug_load_method_lines): Read the whole .il file and initialize the
info->moffsets field.
svn path=/trunk/mono/; revision=3033
* class.cs: Optimizing slightly by removing redundant code after
we switched to the `NoTypes' return value.
(Property.DefineMethod): use NoTypes here too.
This fixes the bug I introduced in my last batch of changes.
svn path=/trunk/mcs/; revision=3029
* ArrayTest.cs: Enable the enumerator test and include test for
Multi-dimensional array enumerator. Also include test for
mutation _not_ invalidating the enumerator.
svn path=/trunk/mcs/; revision=3006
* Int16Test.cs, Int32Tests.cs, UInt16Tests.cs: Use "en-US" culture and
don't let the user override.
* Int32Tests.cs: Cleanup. Use unique names in Assert()s, use AssertEquals()
where appropriate etc.
svn path=/trunk/mcs/; revision=3005
* DumpCultureInfo.cs: New tool to dump culture info. Incomplete,
we need to get unicode support working before we can use this.
svn path=/trunk/mcs/; revision=3004
* XPathNamespaceScope.cs:
* XPathNodeType.cs:
* XPathResultType.cs:
* XmlDataType.cs:
* XmlSortOrder.cs: Used EnumCheck and realigned elements to be compatible with MS
implementation. XPathResultType is interesting as EnumCheck does
not show the Navigator element, but shows the String element twice.
svn path=/trunk/mcs/; revision=3003
* Object.cs: commit my hacked GetHashCode(): it's good enough for now.
* String.cs: use the dumb code for IndexOf(string): this is worth
15-20 % speedup in mcs compile with mint.
svn path=/trunk/mcs/; revision=2996
Fri Mar 8 16:29:29 CET 2002 Paolo Molaro <[email protected]>
* reflection.c: fixup tokens in methods with small header size, too.
svn path=/trunk/mono/; revision=2994
* monodis.1: Add info about new parameter
* main.c: Add flag to remember if user wants to us mscorlib for
non-corilb assembly names
* get.c(get_typedef): use mscorlib for assembly name only
if user specifies it with a command line parameter. Default
behavior is now to use actual assembly name.
svn path=/trunk/mono/; revision=2992
* tree.cs (RecordEnum): Add. We now keep track of enums too.
* class.cs (LookupInterfaceOrClass): Check against the list of recorded
Enums since those are types too.
* cs-parser.jay (enum_declaration): Record enums as we parse them.
* enum.cs (DefineEnum): Return if the TypeBuilder has already been defined
thanks to a call during the lookup process.
svn path=/trunk/mcs/; revision=2983
Lots of bug fixes today, including a major bugfix/upgrade to `foreach'.
2002-03-07 Miguel de Icaza <[email protected]>
* statement.cs (Foreach): Lots of work to accomodate a particular
kind of foreach statement that I had not kept in mind. It is
possible to have foreachs on classes that provide a GetEnumerator
method that return objects that implement the "pattern" for using
a foreach, there is no need to support GetEnumerator
specifically.
This is needed to compile nant.
* decl.cs: Only report 114 if the member is not `Finalize' and if
the warning level is at least 2.
* class.cs: Moved the compare function from Method to
MethodSignature.
(MethodSignature.InheritableMemberSignatureCompare): Add new
filter function that is used to extract inheritable methods from a
class.
(Method.Define): Use the new `inheritable_method_signature_filter'
delegate
* cs-tokenizer.cs (get_cmd_arg): Do not add white space to the
command.
svn path=/trunk/mcs/; revision=2981
* Makefile.am: A small patch fixing errors in vpath-based builds (make clean
failing to rerun monoburg due to BUILT_SOURCES usage), committed
for Daniel Stodden <[email protected]>.
svn path=/trunk/mono/; revision=2980
* String.cs (Join): Throw an ArgumentNullException.
(LastIndexOf (string,int,int)): This method does a backwards search,
so startIndex points to the end of value, not to its beginning. Don't
throw an exception if startIndex equals this.Length. Always return -1
if startIndex is smaller than the length of value.
(Replace (string,string)): Replace all occurences of oldValue.
If newValue is null, all occurences of oldValue are to be removed.
(Split (char[],int)): Return an empty array if maxCount is zero, throw
an ArgumentOutOfRangeException if it's less than zero. Return maxValue
elements, not maxValue+1.
svn path=/trunk/mcs/; revision=2977
* configure.in: detect Boehm GC libs and add --with-gc switch.
Boehm GC needs to be explicitly enabled since the JIT currently fails
in some cases with it.
svn path=/trunk/mono/; revision=2972
* appdomain.c, object.c: Boehm-GC enable.
* icall.c: make get_data_chunk() support split data requests.
Ensure a class is initialized in more cases. Return only the first
property found in GetProperties() or the compiler gets confused.
Implemented GetEvents(). Temporary fix to GetType(), needs rewriting.
* reflection.h, reflection.c: add fixup mechanism for field and method
tokens. Initialize assembly->typeref in a single place. Output
properties after events. Support custom attributes for events, too.
Typo fix for paramter custom attrs.
svn path=/trunk/mono/; revision=2969
* AssemblyBuilder.cs: allow saving bigger assemblies.
* ILGenerator.cs: add fixup table for fields and methods, since
at the end of the compile they may end up with a different table
index.
* ModuleBuilder.cs: add cache for type names to speed up the type
lookups from the compiler.
* TypeBuilder.cs: GetInterfaces () returns only interfaces in the
current type, not in parents (the docs are wrong).
svn path=/trunk/mcs/; revision=2968
* nunit.build: exclude all the obsolete stuff, and prevent csc from
linking any ms stuff to the dll and exe we are testing on Linux.
svn path=/trunk/mcs/; revision=2965
* x86.brg (SAVE_LFM): bug fix: patch the saved IP because we
realloc that code sometimes!
* emit-x86.c (mono_compute_branches): support several types of
jump infos
svn path=/trunk/mono/; revision=2964
* corlib_test.build: resolve chicken and egg problem. Only build and
execute test assemblies when 'make test' is specified. Need to do a
'make' first now before 'make test'.
svn path=/trunk/mcs/; revision=2953
* cs-parser.jay: Add opt_semicolon to the interface declaration.
* expression.cs: Pass location information to
ConvertImplicitStandard.
* class.cs: Added debugging code to track return values from
interfaces.
svn path=/trunk/mcs/; revision=2950
* .cvsignore: ignore *.pdb files
* nunit.build: Build a version of NUnitCore.dll and NUnitConsole.exe
using mono's corlib. Use this to test on Linux under mint and mono.
svn path=/trunk/mcs/; revision=2946
* RuntimeTypeHandle.cs: Add Serializable attribute as the docs say.
I need to understand what the difference between the attribute and
the interface is.
svn path=/trunk/mcs/; revision=2945
* Array.cs (Copy): Always throw an ArrayTypeMismatchException, not
an InvalidCastException if the widening conversion failed. See
testcases #M94-#M96.
svn path=/trunk/mcs/; revision=2941
* icall.c (ves_icall_System_Array_CreateInstanceImpl): Make this work with
non-zero lower bounds. See testcases #F10-#F13.
svn path=/trunk/mono/; revision=2939
* Array.cs (CopyTo): Reverted my last change, it was incorrect.
(Copy): Actually allow copying multi-dimensional arrays.
svn path=/trunk/mcs/; revision=2936
* expression.cs (Is.DoResolve): If either side of the `is' is an
interface, do not flag the warning.
* ecore.cs (ImplicitReferenceConversion): We need a separate test
for interfaces
svn path=/trunk/mcs/; revision=2930
a few easy to fix hot spots):
2002-03-05 Miguel de Icaza <[email protected]>
* typemanager.cs (NoTypes): Move the definition for the empty Type
array here.
* class.cs (TypeContainer.FindMembers): Also look for methods defined by
properties.
(TypeContainer.DefineProxy): New function used to proxy to parent
implementations when implementing interfaces.
(TypeContainer.ParentImplements): used to lookup if our parent
implements a public function that is required by an interface.
(TypeContainer.VerifyPendingMethods): Hook this up.
* typemanager.cs (TypeManager, AddModule, AddAssembly): Make the
`modules' and `assemblies' arraylists into arrays. We only grow
these are the very early start up of the program, so this improves
the speedof LookupType (nicely measured).
svn path=/trunk/mcs/; revision=2929
* Array.cs (Copy): Calculate absolute array position here and use
GetValueImpl() and SetValueImpl() with that position. We can now
copy multi-dimensional arrays.
(CopyTo): Small bug fix.
svn path=/trunk/mcs/; revision=2924
* exception.c (mono_get_exception_argument_out_of_range): New exception.
* icall.c (ves_icall_System_Array_GetValue): Moved actual implementation to
ves_icall_System_Array_GetValue(), only calculate the absolute array position
here.
(ves_icall_System_Array_SetValue): Likewise.
(ves_icall_System_Array_GetValueImpl): New interncall. Takes an array position
as argument and does the actual work. This function is used when copying a
multi-dimensional array.
(ves_icall_System_Array_SetValueImpl): Almost completely rewrote this. It can
now do all the widening conversions of value types.
(ves_icall_System_Array_CreateInstanceImpl): Implemented.
svn path=/trunk/mono/; revision=2923
* cfold.cs (ConstantFold.Binary): Special case: perform constant
folding of string concatenation, but if either side is a string,
and the other is not, then return null, and let the runtime use
the concatenation on the string plus the object (using
`Object.ToString').
svn path=/trunk/mcs/; revision=2915
* interp.c: fix non-debug build and some more opcode work.
Tue Mar 5 18:11:01 CET 2002 Paolo Molaro <[email protected]>
* dump.c: print index of the methodsemantics table.
* main.cs: print event information.
Tue Mar 5 18:14:01 CET 2002 Paolo Molaro <[email protected]>
* class.c: remove some magic numbers and use the smbolic names,
instead. Added init_events() to load event info at class init time.
* metadata.h, metadata.c: added mono_metadata_events_from_typedef()
and mono_metadata_methods_from_event().
* reflection.h, reflection.c: added support for writing out the evnets
related information.
svn path=/trunk/mono/; revision=2910
* SByte.cs, UInt64.cs: implement IConvertible interface. Nobody wants
to do this dirty work, but someone has to do it (and I need it to pass
the "200 sample tests compiled on linux" mark).
svn path=/trunk/mcs/; revision=2908
* UInt16Test.cs:
* UInt32Test.cs:
* UInt64Test.cs: Use NumberFormatInfo.InvariantInfo.CurrencySymbol
where "$" was used. Should help suppress false negatives on systems
where "$" is not the currency symbol.
svn path=/trunk/mcs/; revision=2905
* ChangeLog: My frustration appears here.
------------------------------------------------------------------
------------------------------------------------------------------
I AM TOTALLY SCREWED UP. NO GUESSES WHATSOEVER ON WHAT TO DO NOW!!
------------------------------------------------------------------
------------------------------------------------------------------
svn path=/trunk/mcs/; revision=2904
* *.cs -- *EventHandler.cs - Minor Corrections.
* Others -- Either complete, or first draft.
* ChangeLog, TODO -- Updated in accordance.
svn path=/trunk/mcs/; revision=2900
* Int16.cs (Parse): do not overflow on max negative value
* Int32.cs (Parse): do not overflow on max negative value
svn path=/trunk/mcs/; revision=2898
Constant Folding has been implemented now.
* expression.cs (Unary.Reduce): Do not throw an exception, catch
the error instead on types that are not supported in one's
complement.
* constant.cs (Constant and all children): New set of functions to
perform implict and explicit conversions.
* ecore.cs (EnumConstant): Implement the new functions to perform
conversion by proxying to the child expression.
* codegen.cs: (ConstantCheckState): Constant evaluation has its
own separate setting that can not be turned off from the command
line using --unchecked or --checked and is only controlled using
the checked/unchecked statements and expressions. This setting is
used by the constant folder to flag errors.
* expression.cs (CheckedExpr, UncheckedExpr): Set the
ConstantCheckState as well.
During Resolve, they also have to flag the state, because the
constant folder runs completely in the Resolve phase.
* statement.cs (Checked, Unchecked): Set the ConstantCheckState as
well.
2002-03-01 Miguel de Icaza <[email protected]>
* cfold.cs: New file, this file contains the constant folder.
* ecore.cs (IMemoryLocation.AddressOf): Now takes an extra
argument to track whether we are using the resulting address to
load or store a value and provide better error messages.
(FieldExpr.Emit, FieldExpr.EmitAssign, FieldExpr.AddressOf): Use
new AddressOf arguments.
* statement.cs (Foreach.EmitCollectionForeach): Update
* expression.cs (Argument.Emit): Call AddressOf with proper
arguments to track usage.
(New.DoEmit): Call AddressOf with new arguments.
(Unary.Emit): Adjust AddressOf call.
svn path=/trunk/mcs/; revision=2896
* GenerateDelegate.cs -- Generate delegates at your whim. Quite useful tool.
* ChangeLog -- SHOULD NOT MISS IT. has description about the tool.
* makefile -- Makes it.
svn path=/trunk/mcs/; revision=2891
* reflection.h, icall.c: use a different method (GetInterfaces)
to gather interface info and add isbyref, isprimitive and
ispointer to the ves_icall_get_type_info() return value.
svn path=/trunk/mono/; revision=2886
* Repeater.cs -- 90% done.
* ChangeLog -- DON'T MISS THIS UPDATE. This reveals a lot about what is done,
is being done and what is left out.
************************************************************
THIS COMPLETES MY TASK IN WebControls for the time being.
************************************************************
svn path=/trunk/mcs/; revision=2884
* MonoType.cs: implemented GetConstructors(), GetFields(),
GetMethods(), GetProperties().
* Object.cs: added debugging icall obj_address().
* Type.cs: fixed the binding flags for some Get* methods.
Implemented FindMembers() as calls to the specific GetMember
methods.
svn path=/trunk/mcs/; revision=2876
* interp.c: print the address of 'this' in tracing mode.
Mon Mar 4 11:22:26 CET 2002 Paolo Molaro <[email protected]>
* class.h: stared adding support for events.
* icall.c: split find_members implementation. Added debug icall to get
the address of an object.
* reflection.c: handle TypeBuilders in mono_type_get_object().
svn path=/trunk/mono/; revision=2875
* *EventArgs.cs -- Damn! I marked them "*" and forgot to even write them.
* ChangeLog -- Updated
* TODO -- I guess, nothing to do with this.
svn path=/trunk/mcs/; revision=2871
* BaseValidator.cs -- Rejuvination.
* **.cs (Added) -- Completed ones (I guess)
* ChangeLog -- DON'T MISS THIS
* TODO -- Updated in accordance..
NOW I HAVE ONLY ONE CLASS THAT REMAINS 0% implemented and that is Repeater.
I will start work on it soon.
svn path=/trunk/mcs/; revision=2868
* corlib.build: Exclude a bunch of interfaces from corlib_res.dll
that were preventing the tests from running on Windows.
svn path=/trunk/mcs/; revision=2856
* DateTimeTest.cs: make static member non-static -- wouldn't work on
Windows if it was static. Doesn't _need_ to be static anyway.
svn path=/trunk/mcs/; revision=2854
2002-03-02 Mike Kestner <[email protected]>
* XmlAttributeTests.cs : New test suite for attrs.
* AllTests.cs : Add the attr suite.
In System.Xml:
2002-03-02 Mike Kestner <[email protected]>
* XmlAttribute.cs : Using fix.
* XmlDocument.cs (CreateAttribute(String)): Implement.
svn path=/trunk/mcs/; revision=2847
* ecore.cs (SimpleName.SimpleNameResolve): Perform a check on ec.TypeContainer.TypeBuilder
not being null.
* codegen.cs (EmitContext): The constructor now takes in an extra argument specifying the
DeclSpace as the distinction is important. We provide sane defaults as usually the TypeContainer
is the DeclSpace.
* Update code everywhere accordingly.
* ecore.cs : Change references to ec.TypeContainer to ec.DeclSpace where appropriate.
* cs-parser.jay (enum_declaration): Set the current namespace of the enum.
svn path=/trunk/mcs/; revision=2838
* cs-parser.jay (member_access): Change the case for pre-defined types
to use a MemberAccess instead of a SimpleName. Thanks to Felix again for
this suggestion.
* class.cs (Operator::Emit): If we are abstract or extern, we don't have
a method body.
* attribute.cs (CheckAttribute, ApplyAttribute): Ensure that treat operators
essentially like methods and apply attributes like MethodImplOptions.
svn path=/trunk/mcs/; revision=2835
* DataColumnCollection.cs : When an existing DataColumn is added, will now Assign a
default name if the ColumnName is null.
* DataSet.cs : Added
* DataTable.cs : Added
* DataRelationCollection.cs : Added
* DataTableRelationCollection.cs : Added
* DataColumn : Added
svn path=/trunk/mcs/; revision=2834
* icall.c (ves_icall_System_Array_GetLength): This must throw an
ArgumentOutOfRangeException(), not an ArgumentException().
(ves_icall_System_Array_GetLowerBound): Likewise.
(ves_icall_System_Array_GetValue): Improved argument checking.
(ves_icall_System_Array_SetValue): Improved argument checking.
svn path=/trunk/mono/; revision=2828
* BitConverter.cs: Indentation match
* AppDomain.cs: Added MonoTODOs to this too.
* Buffer.cs: Added MonoTODOs to this.
svn path=/trunk/mcs/; revision=2824
* ArrayTest.cs: Commented out a few bits which are not yet implemented and
marked them with FIXME's.
* DecimalTest.cs, DecimalTest2.cs: Added zero-arg constructors.
* MartinTests.cs: Enabled ArrayTests.cs.
svn path=/trunk/mcs/; revision=2821
* icall.c (ves_icall_System_Array_GetValue): Raise an exception when
called with invalid arguments rather than just dying with g_assert().
(ves_icall_System_Array_SetValue): Likewise.
(ves_icall_System_Array_CreateInstanceImpl): Don't g_assert_not_reached(),
raise a NotImplementedException instead.
(ves_icall_System_Array_GetLength): Added argument checking.
(ves_icall_System_Array_GetLowerBound): Added argument checking.
svn path=/trunk/mono/; revision=2819
* rootcontext.cs (LookupType): As we cycle through the chain of namespaces
try performing lookups against those instead of jumping straight into using
the 'using' clauses.
(ImplicitParent): Add. Thanks to Felix Arrese-Igor for this idea.
(LookupType): Perform lookups in implicit parents too.
* class.cs (GetInterfaceOrClass): Modify to perform the exact same lookup
sequence as RootContext.LookupType.
* rootcontext.cs (NamespaceLookup): Split out code from LookupType which tries
the various cases of namespace lookups into this method.
svn path=/trunk/mcs/; revision=2814
* BitConverter.cs: Throw ArgumentException like mscorlib, instead of
ArgumentOutOfRangeException like the docs say.
svn path=/trunk/mcs/; revision=2807
* scan-tests.pl: Catch exceptions when running the tests so that we
always run all the tests in a test suite even if some of them fail.
svn path=/trunk/mcs/; revision=2800
* x86.brg: use new mono_assert macros
* emit-x86.c (arch_create_jit_trampoline): save/restore LMF before
calling into unmanaged code (arch_compile_method).
* object.h (mono_assert): new macros mono_assert and
mono_assert_not_reached
svn path=/trunk/mono/; revision=2795
as the are some repeats, that I need to handle gracefully.
2002-03-01 Miguel de Icaza <[email protected]>
* cs-parser.jay: Add support for [Attribute ()] (empty arguments
in positional arguments)
* class.cs (Operator): Update the AllowedModifiers to contain
extern.
* cs-parser.jay: Update operator declaration to allow for the
operator body to be empty.
* cs-tokenizer.cs: Added '\u' unicode support in strings and hex
values.
svn path=/trunk/mcs/; revision=2782
* String.cs: This file now passes the testsuite on Linux :-)
* String.cs (Intern, IsInterned): The interncalls are now called _Intern and _IsInterned;
make them private and provide C# wrappers which do proper argument checking.
svn path=/trunk/mcs/; revision=2775
* icall.c: Rename "System::String::Intern" to "System::String::_Intern"
and "System::String::IsInterned" to "System::String::_IsInterned".
svn path=/trunk/mono/; revision=2774
* interp.c: add checks for more binary consistency.
Thu Feb 28 19:19:35 CET 2002 Paolo Molaro <[email protected]>
* icall.c: remove hacks for typebuilder. Added icall to create a
modified type from a tybebuilder.
* reflection.c: removed hacks for TypeBuilder. Create also a MonoImage
in mono_image_basic_init (). Added mono_reflection_setup_internal_class ()
to create a backing MonoClass for a TypeBuilder.
svn path=/trunk/mono/; revision=2771
* AssemblyBuilder.cs: call into the runtime to init some basic
assembly stuff. Reserve slot 1 of typedef table for .<Module>.
* ModuleBuilder.cs: call into the runtime if we need to create a
modief type, such as arrays, byref etc.
* TypeBuilder.cs: call into the runtime to create the MonoClass
representation for the type. Throw exceptions with not implemented
stuff.
svn path=/trunk/mcs/; revision=2770
* String.cs (TestCompare): Added a few tests.
(TestFormat): Please don't compare two strings with Assert (... == ...),
use AssertEquals instead - this gives you a better idea what went wrong
if the test fails.
svn path=/trunk/mcs/; revision=2768
* String.cs (_CompareChar): New internal function which compares two chars.
(_Compare): Provide an internal compare method which can do all sorts of
comparision and call it from all the Compare() methods. Also fixed a lot of
bugs here, this code now actually passes the testsuite.
svn path=/trunk/mcs/; revision=2767
* Convert.cs: Added the missing methods. The new class status page
kicks ass, it even found my typos! Woohoo!
(ConvertFromBase): Moved the Exception throwing in here and
removed the other occurances so it's all centralized now.
svn path=/trunk/mcs/; revision=2765
* class.c, class.h: more refactoring of class init.
Export mono_class_setup_mono_type() and mono_class_setup_parent().
svn path=/trunk/mono/; revision=2763
* BitConverterTest.cs: Test was trying to catch the wrong Exception.
The MSDN docs clearly say ArgumentOutOfRangeException, but that's
not what get's thrown.
* DoubleTest.cs: Get working against mscorlib reference.
svn path=/trunk/mcs/; revision=2762
* BitConverterTest.cs: Test was trying to catch the wrong Exception.
The MSDN docs clearly say ArgumentOutOfRangeException, but that's
not what get's thrown.
svn path=/trunk/mcs/; revision=2760
* x86/tramp.c: start handling of more complex marshaling stuff.
Thu Feb 28 12:33:41 CET 2002 Paolo Molaro <[email protected]>
* marshal.c, marshal.h: start of marshaling interface.
svn path=/trunk/mono/; revision=2759
* System.Text.RegularExpressions/*.cs: Put everything into namespace
Ximian.Mono.Tests.System.Text.RegularExpressions.
svn path=/trunk/mcs/; revision=2736
* System_test.build: Build new executable RunTests.System.exe which you can
use to run the tests on Linux.
* NameValueCollectionTest.cs: Split out BasicOperationTest into
BasicOperationTest.cs.
* AllTests.cs: Use namespace Ximian.Mono.Tests.System instead of
Ximian.Mono.Tests.
* DnsTest.cs: Put this into namespace Ximian.Mono.Tests.Systeam.
* NameValueCollectionTest.cs: Likewise.
* StringCollectionTest.cs: Likewise.
svn path=/trunk/mcs/; revision=2732
* class.c: do not free str, since we store it in the hash table.
* reflection.h: add label field to MonoILExceptionInfo.
* reflection.c: handle references to more than one assembly. Handle
case when there isn't a module created in the assembly.
svn path=/trunk/mono/; revision=2729
* MemoryStreamTest.cs
* StreamWriterTest.cs
* StringReaderTest.cs: Fix test bugs found by running against mscorlib.
AssertEquals() requires the expected and atual values to be the same
type if they are to be considered equal.
svn path=/trunk/mcs/; revision=2726
* HashtableTest.cs: make the second test class public. The was showing
as an error whe run against the mscorlib. Might be because of the
new NUnit that was just checked in.
svn path=/trunk/mcs/; revision=2724
* corlib_test.build: Don't link TheTests.cs into the dlls, renamed
RunTests.exe to RunTests.corlib.exe and link it against NUnitBase.dll.
svn path=/trunk/mcs/; revision=2721
* RunTests.cs: This is a simple test runner which is used when we
run the tests on Linux. It is linked into UNitBase.dll.
svn path=/trunk/mcs/; revision=2717
Imported NUnit 1.11.
* nunit.build: Added NAnt build file for NUnit. In addition to
NUnitConsole.exe and NUnitCore.dll, we also create a small
NUnitBase.dll which just contains the source files which are needed
to run the tests on Linux.
* makefile: Just call NAnt here.
* NUnitGUI.exe, NUnitTests.dll: Removed binaries.
svn path=/trunk/mcs/; revision=2716
* appdomain.c: exit with 1 on error.
* class.c: we already have the name in MonoClassField.
* image.c, image.h, metadata.c, pedump.c: use directly a pointer in
MonoStreamHeader instead of an offset of image->raw_metadata.
svn path=/trunk/mono/; revision=2708
* expression.cs: Special case the `null' object when trying to
auto-compute the type, as anything can be explicitly converted to
that.
Added test
svn path=/trunk/mcs/; revision=2701
fixed, plus:
2002-02-26 Miguel de Icaza <[email protected]>
* ecore.cs (Expression.ConvertExplicit): Bug fix, thanks for
spotting this Paolo.
(Expression.ImplicitNumericConversion): Perform comparissions of
the type using the underlying type in the case of an enumeration
rather than using the enumeration type for the compare.
Cope with the underlying == type case, which is not possible to
catch before.
(Expression.ConvertNumericExplicit): Perform comparissions of
the type using the underlying type in the case of an enumeration
rather than using the enumeration type for the compare.
svn path=/trunk/mcs/; revision=2696
* MartinTests.cs: New file. This contains all the tests which already
work on Linux.
* RunTests.cs: A small custom testrunner to run the tests on Linux.
* scan-tests.pl: Call this perl script with either MartinTests.cs or
AllTests.cs as argument and redirect the output the TheTests.cs - it'll
create a file which calls all the tests.
* TheTests.cs: This is automatically generated from scan-tests.pl but
needs some manual editing, so it's in CVS.
* corlib_test.build: In addition to the libraries, create an executable
called RunTests.exe which contains all the tests and the custom test
runner. You can run this executable on Windows to test things with
mscorlib or on Linux using the mono runtime.
svn path=/trunk/mcs/; revision=2695
* TimeZone.cs: Use an internal enum rather than magic numbers to access the
fields of the interncall GetTimeZoneData.
svn path=/trunk/mcs/; revision=2686
* cs-parser.jay (if_statement): Rewrote so that we can track the
location for the if statement.
* expression.cs (Binary.ConstantFold): Only concat strings when
the operation is "+", not everything ;-)
* statement.cs (Statement.EmitBoolExpression): Take a location
argument.
(If, While, Do): Track location.
* expression.cs (Binary.ResolveOperator): In the object + string
case, I was missing a call to ConvertImplicit
svn path=/trunk/mcs/; revision=2684
* DateTimeTest.cs: Added testcases for the parsers. Use the invariant
culture to run this test suite.
* TimeZoneTest.cs: Use the invariant culture to run this test suite.
svn path=/trunk/mcs/; revision=2673
* index: point to new location of mailing lists
* resources: fix bug (add missing </a>).
Thanks to Andreas Jellinghaus for pointing these out.
svn path=/trunk/mono/; revision=2667
* parameter.cs (Parameter.ExternalType): Take in extra DeclSpace and
Location arguments. Ensure we use RootContext.LookupType to do our work
and not try to do a direct Type.GetType and ModuleBuilder.GetType
* interface.cs (PopulateMethod): Handle the type of the parameter being
null gracefully.
* expression.cs (Invocation.BetterFunction): Handle the case when we
have a params method with no fixed arguments and a call is made with no
arguments.
* More tomorrow - have to go home now and study :-)
svn path=/trunk/mcs/; revision=2658
* DateTime.cs: Miguel already committed this, but there was still a
ChangeLog entry for this missing ....
We're now reusing functionality from TimeSpan, printing dates is
fully implemented, currently working on parsing.
svn path=/trunk/mcs/; revision=2654
* support.cs (InternalParameters.ParameterModifier): handle null
fixed parameters.
(InternalParameters.ParameterType): ditto.
* parameter.cs (VerifyArgs): Also check if the fixed parameter is
duplicating the name of the variable parameter.
(GetParameterByName): Fix bug where we were not looking up array
paramters if they were the only present (thanks Paolo!).
(GetParameterInfo): We only have an empty set of types if both
fixed and array are set to null.
(GetParameterInfo-idx): Handle FixedParameter == null
svn path=/trunk/mcs/; revision=2638
* reflection.c: set virtual and raw size of section correctly.
* threads.c: transfer domain information to newly created threads.
svn path=/trunk/mono/; revision=2633
* ToDoAssembly.cs: remove unused code
* ToDoNamespace.cs: using BindingFlags for GetMembers
* ToDoType.cs: throw exception if we encounter a member type
that we didn't expect. Also remove unused property.
svn path=/trunk/mcs/; revision=2631
* ICredentialLookup.cs: Added the GetCredential method to the
interface. The interface is named "ICredentials", should this file
be renamed?
* NetworkCredential.cs: Added to CVS. Need to investigate on how
GetCredential() works
svn path=/trunk/mcs/; revision=2617
* XmlTokenizedType.cs: Added to CVS.
* XmlUrlResolver.cs: Added to CVS with one TODO task.
2002-02-23 Duncan Mak <[email protected]>
* XmlQualifiedName.cs: Fixed ToString () and added the
operators (== and !=).
svn path=/trunk/mcs/; revision=2616
* jit.h, jit.c, emit-x86.c: Added a few statistics counters
and the --stats command line option to print them.
Fixed memory leak in arch_compile_method () when a method's code is
found in the cache. Fix magic trampoline to deal with static calls.
svn path=/trunk/mono/; revision=2614
* ppc/tramp.c (mono_create_method_pointer): basic delegates
implementation, it works for simple delegates now and I am already
pretty close to have it working for every delegates, but I am
going to sleep and finish it tomorrow?
svn path=/trunk/mono/; revision=2611
* Now it makes a decent looking status XML. It only has methods
and properties, but they seem to be correct. Not sure how
to handle the properties get_* set_* methods that show up. I'd
like to fold those into the properties, and remove them from
the methods. Next up is the rest of the Member Types.
svn path=/trunk/mcs/; revision=2608
* ChangeLog: Add the change log to this directory
* XmlQualifiedName.cs: Fixed compile errors so it would build. Still has
MonoTODO's
svn path=/trunk/mcs/; revision=2604
* sparc/tramp.c (mono_create_trampoline): Much tinkering to get
the opcodes more correct. Still needs a lot of work.
svn path=/trunk/mono/; revision=2602
* driver.cs (MainDriver):
Catch DirectoryNotFoundException when calling GetFiles.
(SplitPathAndPattern): Used to split the input specification into
a path and a pattern that we can feed to Directory.GetFiles.
svn path=/trunk/mcs/; revision=2595
* MonoType.cs: disable constructor.
* Object.cs: make GetType() an internalcall.
* Type.cs: added correct bindingflags to GetMethods ().
All such calls should be reviewed to use the correct flags.
svn path=/trunk/mcs/; revision=2591
* class.c: when instancing a class in a domain, load the default
vaules for static fields from the constant table. Fix System.Enum to
not be an enum.
* icall.c: implement Object::GetType() internalcall. Implemented
MonoField::GetValue() internalcall. Avoid SEGV in search_method().
Fixed checking of binding flags in find_members().
* metadata.c, metadata.h: introduce mono_metadata_type_hash().
* reflection.c: handle enumerations when writing to the constant
table. Use a different object cache for types.
svn path=/trunk/mono/; revision=2590
* Now shows some of the missing methods from the classes. It's
only showing one, so must be bug there somewhere. Need to
do other member types as well.
svn path=/trunk/mcs/; revision=2587
* statement.cs (Fixed): Implement the last case of the Fixed
statement (string handling).
* expression.cs (StringPtr): New class used to return a char * to
a string; Used by the Fixed statement.
* typemanager.cs: Add char_ptr_type. Add get_OffsetToStringData method.
svn path=/trunk/mcs/; revision=2580
* expression.cs (Binary.ResolveOperator): Remove redundant
MemberLookup pn parent type.
Optimize union call, we do not need a union if the types are the same.
(Unary.ResolveOperator): REmove redundant MemberLookup on parent
type.
Specialize the use of MemberLookup everywhere, instead of using
the default settings.
(StackAlloc): Implement stackalloc keyword.
* cs-parser.jay: Add rule to parse stackalloc.
* driver.cs: Handle /h, /help, /?
Added two more tests, added an error test.
svn path=/trunk/mcs/; revision=2579
* class.c, icall.c, metadata.c: better support for pointer types.
Create a class for them as suggested by dietmar. Fix TYPE_ARRAY class.
* reflection.c: Add support for getting custom attrs for properties
and simplify some code.
svn path=/trunk/mono/; revision=2565
* makefile: move corcompare to it's own directory to hold multiple
class files. still makes old corcompare for now. will remove that
soon.
svn path=/trunk/mcs/; revision=2563
* New corcompare directory. Split program into separate class
files and a driver. Creates XML file with missing and todo
classes. Not quite done with all member types, and also
there's a bug where it adds a todo class more than once.
This is a disaster recovery checkin.
svn path=/trunk/mcs/; revision=2562
* expression.cs (MakeByteBlob): Removed the hacks we had in place
before we supported unsafe code.
* makefile: add --unsafe to the self compilation of mcs.
2002-02-20 Miguel de Icaza <[email protected]>
* expression.cs (PointerArithmetic): New class that is used to
perform pointer arithmetic.
(Binary.Resolve): Handle pointer arithmetic
Handle pointer comparission.
(ArrayPtr): Utility expression class that is used to take the
address of an array.
(ElementAccess): Implement array access for pointers
* statement.cs (Fixed): Implement fixed statement for arrays, we
are missing one more case before we are done.
svn path=/trunk/mcs/; revision=2553
2002-02-20 Miguel de Icaza <[email protected]>
* expression.cs (Indirection): Implement EmitAssign and set the
ExprClass to Variable. This allows pointer dereferences to be
treated as variables, and to have values assigned to them.
* ecore.cs (Expression.StoreFromPtr): New utility function to
store values dereferencing.
2002-02-20 Miguel de Icaza <[email protected]>
* unsafe-1.cs: Extend test.
svn path=/trunk/mcs/; revision=2549
* decl.cs (CheckMethodAgainstBase): Do not allow overriding if
the parent implementation is sealed.
* ../errors/cs0239.cs : Add.
* attribute.cs (ApplyAttributes): Handle Modulebuilders too.
* typemanager.cs (unverifiable_code_type): Corresponds to
System.Security.UnverifiableCodeAttribute. We need to emit this for modules
which have unsafe code in them.
* rootcontext.cs (EmitCode): Emit the above attribute when we are in an
unsafe context.
svn path=/trunk/mcs/; revision=2548
* icall.c: change getToken () and add custom attribute GetBlob()helper
method.
* reflection.h: add custom attrs array to the reflection builder structures.
* reflection.c: encode and emit custom attributes for all the relevant
reflection objects. Cache fieldref and methodref tokens. Change
mono_image_create_token() interface to take a MonoDynamicAssembly.
More complete custom attributes decoder. Load custom attributes for
Assembly, Field, Method and Constructor objects, too. Make the
returned array an Attribute[] one, not object[]. Added
mono_reflection_get_custom_attrs_blob() to encode the arguments of a
custom attribute constructor.
Wed Feb 20 22:18:40 CET 2002 Paolo Molaro <[email protected]>
* interp.c: more complete runtime_invoke () implementation.
Fixed castclass/isinst to work correctly with arrays.
svn path=/trunk/mono/; revision=2542
* acconfig.h:
* configure.in: Always build without cygwin support on windows
2002-02-20 Dick Porter <[email protected]>
* io-layer.h: Always build without cygwin support on windows
2002-02-20 Dick Porter <[email protected]>
* icall.c:
* rawbuffer.c:
* socket-io.c: Windows portability fixes (sometimes just ifdeffing
problem code out for now).
2002-02-20 Dick Porter <[email protected]>
* Makefile.am:
* wrapper.c: Windows portability fixes (sometimes just ifdeffing
problem code out for now).
svn path=/trunk/mono/; revision=2536
* cs-tokenizer.cs: Make tokenizer accept pre-processor directives
on any column (remove the old C-like limitation).
* rootcontext.cs (EmitCode): Emit any global attributes.
(AddGlobalAttributes): Used to keep track of assembly attributes.
* attribute.cs (ApplyAttributes): Support AssemblyAttributes.
* cs-parser.jay: Add support for global attributes.
svn path=/trunk/mcs/; revision=2530
* expression.cs (Indirection): New helper class. Unary will
create Indirection classes to be able to implement the
IMemoryLocation interface on it.
2002-02-16 Miguel de Icaza <[email protected]>
* cs-parser.jay (fixed_statement): reference the right statement.
* statement.cs (Fixed.Emit): Finish implementing the fixed
statement for the &x case.
svn path=/trunk/mcs/; revision=2517
* MonoCustomAttrs.cs: hooks to get the custom attributes from the
runtime.
* MonoType.cs: Implemented custom attributes methods.
svn path=/trunk/mcs/; revision=2515
* x86/tramp.c: avoid pointer arthmetric (pointed out by Serge).
Tue Feb 19 20:20:15 CET 2002 Paolo Molaro <[email protected]>
* dump.c: the prolog is before each arg in the custom attribute blob.
svn path=/trunk/mono/; revision=2513
* ArrayList.cs: Add MonoTODO's where necessary. Fix bugs discovered
by Bucky's tests. Implement a couple of things that were left undone.
svn path=/trunk/mcs/; revision=2503
* Int64Test.cs: One array was giving us trouble. Not sure why, but
it's related to the number of elements in an Array. For short Arrays
the compiler doesn't use the PrivateImplmentationDetails struct,
but for longer ones it does. That's when our corlib fails. I paired
down the array for now.
svn path=/trunk/mcs/; revision=2502
* ArrayListTest.cs: Add a small assert for a bug that I found and fixed
in ArrayList. Make sure it doesn't come up again.
svn path=/trunk/mcs/; revision=2501
* emit-x86.c (arch_compile_method): add shared code to mono_root_domain
* class.c (mono_class_vtable): runtime init the class when we
allocate static class data.
svn path=/trunk/mono/; revision=2500
* appdomain.c (mono_domain_transfer_object): impl. hack for Arrays
and String - but we will need generic marshalling support in the
future.
* object.c (mono_string_new_utf16): bug fix: use char[] instead of
String[].
svn path=/trunk/mono/; revision=2494
* mono/tests/Makefile.am: added small test library for pinvoke
testing
* mono/tests/libtest.c (mono_test_many_int_arguments): new file,
new function to test pinvoke
svn path=/trunk/mono/; revision=2486
* jit.c (mono_analyze_stack): optimize LDSFLD/STSFLD for domain
specific code.
(mono_analyze_stack): use MB_TERM_LDELEMA to perform bound check
svn path=/trunk/mono/; revision=2476
* x86.brg: do not encode exception objects into the instruction
stream, because they are domain dependend. Use
arch_get_throw_exception_by_name() instead;
* jit.c (mono_analyze_stack): imp. LDSTR for shared code
svn path=/trunk/mono/; revision=2475
* corcompare.cs: Reorganized into collaberating classes to analyze
and generate reports. Still needs to find the MonoTODO's, and
has a little more prototype code in there, but it's almost done.
* makefile: output XML file in the tools directory for now.
svn path=/trunk/mcs/; revision=2474
* TimeZone.cs: Applied the rest of Ajay's patch for
IsDaylightSavingTime. Thanks a lot for the nice explanation of how
it works!
svn path=/trunk/mcs/; revision=2465
x86, modified to check for NULL text to avoid branching in
generated code
(calculate_sizes): updated for string retval changes
(emit_call_and_store_retval): updated for string retval
svn path=/trunk/mono/; revision=2461
* FileDialogPermissionAccess.cs: Add in namespace declaration, so
that this one little unique enum wouldn't show up in the System
namespace when we ildasm corlib.dll ;-) Oops, my bad.
svn path=/trunk/mcs/; revision=2457
* Convert.cs: Near-complete implementation of Convert.cs
Added all the To* methods taking (object) and
(object, IFormatProvider) as parameters.
Added [CLSCompliant (false)] attributes to methods dealing with
unsigned types.
Added the missing section on converting to and from DateTime. Only
6 missing methods, all marked with MonoTODOs. Will tackle them later.
svn path=/trunk/mcs/; revision=2456
* icall.c (ves_icall_System_Enum_ToObject): in case of big endian
and s2 > s1, just copy lower bytes to be compatible with little
endian (i.e. 64bit value & 0xffffffff --> 32bit value)
svn path=/trunk/mono/; revision=2454
* wrapper.c (mono_wrapper_fstat): The MonoWrapperStat namespace is
mst_ now, so update this code. Also fix a copy/paste-o that
assigned st.st_ctime to buf->mst_mtime.
(mono_wrapper_stat): Same here.
* genwrapper.pl: Solaris does some nasty macro hadckery action for
st_[a,c,m]time and so lets namespace our wrapper members as
mst_[a,c,m]time to avoid namespace problems.
svn path=/trunk/mono/; revision=2453
* TimeZone.cs: patch from Ajay Kumar Dwivedi ([email protected]) to
make IsDaylightSavingTime (DateTime) call
IsDaylightSavingTime (DateTime, DaylightTime).
Added internal class CurrentTimeZone from Ajay. It needs more work
to fill in the appropriate internal calls.
svn path=/trunk/mcs/; revision=2451
* unicode.c (ves_icall_iconv_new_encoder): decide on big_endian,
force big_endian to be 1 for big endian machines
(ves_icall_iconv_new_decoder): ditto
svn path=/trunk/mono/; revision=2448
* configure.in: Add checks for SOL_IP, SOL_TCP, IP_PKTINFO,
IP_ADD_MEMBERSHIP and IP_DROP_MEMBERSHIP. Also check for struct
ip_mreqn.
svn path=/trunk/mono/; revision=2447
* socket-io.c (convert_sockopt_level_and_name): If the system
doesn't define SOL_IP or SOL_TCP, get them by hand using
getprotobyname() and caching the values (because this could be a
slow operation).
(ves_icall_System_Net_Sockets_Socket_SetSocketOption_internal):
Don't attempt to add or drop memberships unless the system
supports it. Also use the appropriate struct when the system does
support it. Ie, not all systems have struct ip_mreqn so use struct
ip_mreq when appropriate.
svn path=/trunk/mono/; revision=2446
* socket-io.c (convert_sockopt_level_and_name): If the system
doesn't define SOL_IP or SOL_TCP, get them by hand using
getprotobyname() and caching the values (because this could be a
slow operation).
(ves_icall_System_Net_Sockets_Socket_SetSocketOption_internal):
Don't attempt to add or drop memberships unless the system
supports it.
svn path=/trunk/mono/; revision=2445
* interp.c (ves_exec_method): test type of sp [-1] instead of sp
[0], because sp [-1] is the value going to be shifted, fixed in
CEE_SHL, CEE_SHR, CEE_UN opcodes)
svn path=/trunk/mono/; revision=2443
* emit-x86.c: handle unreachable code. Eliminate some unneeded
malloc() calls.
* jit.c: handle unreachable code. Move setting of mono_end_of_stack to
main(). Add --compile classname and --ncompile num command line
options to do performance evaluation of the jitter (and help
debugging).
svn path=/trunk/mono/; revision=2441
* interp.c: use strrchr instead of rindex. use _isnan and _finite on
win32 systems.
Fri Feb 15 15:06:33 CET 2002 Paolo Molaro <[email protected]>
* socket-io.c: use g_snprintf() instead of snprintf.
svn path=/trunk/mono/; revision=2424
* interp.c (ves_exec_method): replace
'g_assert (sp->type = VAL_VALUETA)' with
'g_assert (sp->type == VAL_VALUETA)' otherwise
the assert always passes. FIXME: should the test have been !=?
svn path=/trunk/mono/; revision=2418
* reflection.c (mono_param_get_objects): Cast second argument to
mono_method_get_param_names to a const char** to silence the
compiler warning.
* appdomain.c (mono_domain_assembly_open): Put parens around the
truth statement in the for-loop.
* unicode.c (iconv_convert): Got rid of a compiler warning about
int i being unused when the system has a new iconv.
(iconv_get_length): Same.
svn path=/trunk/mono/; revision=2417
* image.c (load_class_names): Cast the second argument to
g_hash_table_insert() to char* to hush compiler warnings about the
arg being a const.
(mono_image_open): Same here.
svn path=/trunk/mono/; revision=2416
* socket-io.c: Don't conditionally include sys/filio.h or
sys/sockio.h here anymore since we now get them from
io-layer/io-layer.h
(inet_pton): If the system doesn't support inet_aton, implement
using inet_addr and also #define INADDR_NONE if it isn't defined
by the system.
svn path=/trunk/mono/; revision=2415
* metadata.c, metadata.h: added function to get packing and size info
of a typedef.
* reflection.h, reflection.c: handle field RVA data. Save info about
the table layout if needed. Assign typedef indexes to all the types
before dumping the info about them to avoid forward reference problems.
svn path=/trunk/mono/; revision=2406
* corcompare.cs: Adding stuff to collect all the missing and todo
information need to generate nice looking HTML pages. Not quite
done and needs some re-org, but Duncan can take a look.
* sample.xml: an example of how the XML will look that corcompare
will generate. Can be used to start working on the XSLT.
svn path=/trunk/mcs/; revision=2402
* socket-io.c: conditionally include sys/filio.h and sys/sockio.h
for FIONBIO, FIONREAD and SIOCATMARK.
(ves_icall_System_Net_Dns_GetHostByAddr_internal): SunOS doesn't
define INADDR_NONE and besides, inet_addr() is deprecated and
should not be used. Use inet_pton() instead - it also has the
added bonus that it can easily handle IPv6 addresses as well.
(inet_pton): Implement using inet_aton() ifndef HAVE_INET_PTON.
svn path=/trunk/mono/; revision=2395
* configure.in: Add checks to see if we need to link to libsocket,
libnsl, and/or librt. Also check for inet_pton and inet_aton.
svn path=/trunk/mono/; revision=2393
* driver.cs (GetSystemDir): Compute correctly the location of our
system assemblies. I was using the compiler directory instead of
the library directory.
svn path=/trunk/mcs/; revision=2392
* expression.cs (BetterFunction): Put back in what Miguel commented out
since it is the correct fix. The problem is elsewhere ;-)
(IsParamsMethodApplicable): Fix bug where we were not checking that the fixed
parameters of the parms method are themselves compatible or not !
(StandardConversionExists): Fix very dangerous bug where we were forgetting
to check that a class implements an interface before saying that an implicit
conversion was allowed. Use ImplementsInterface to do the checking.
svn path=/trunk/mcs/; revision=2390
The problem was with my understanding of the .override keyword.
2002-02-13 Miguel de Icaza <[email protected]>
* class.cs (Method.Define): Track whether we are an explicit
implementation or not. And only call DefineMethodOverride if we
are an explicit implementation.
(Property.DefineMethod): Ditto.
(IndexerAccess.DefineMethod): ditto.
svn path=/trunk/mcs/; revision=2389
* mono-mutex.[c,h]: New source files that thinly wrap all pthread
functions that take pthread_mutex_t and/or pthread_mutexattr_t
arguments for the sake of portability. Implements recursive
mutexes and pthread_mutex_timedlock.
* critical-sections.c:
* events.c:
* handles.c:
* mutexes.c:
* semaphores.c:
* threads.c:
* timed-thread.c:
* wait.c: Use the mono-mutex wrapper portability functions/macros.
* pthread-compat.[c,h]: Replaced by mono-mutex.[c,h]
svn path=/trunk/mono/; revision=2376
* acconfig.h: #undef USE_MONO_MUTEX
* configure.in: If the system pthread implementation is lacking,
default to using mono-mutex.
svn path=/trunk/mono/; revision=2375
* jit.c (arch_allocate_var): Only assert that the alignment is
at least 32-bits aligned, not always 32-bits aligned (for I8 for example).
svn path=/trunk/mono/; revision=2371
* SerializationBinder.cs: Implemented.
* SerializationEntry.cs: Implemented.
* SerializationInfo.cs: Fixed the get portion of the AssemblyName
property. Implemented the FullTypename property.
svn path=/trunk/mcs/; revision=2361
* CultureInfo.cs: Added the Calendar property to make the TimeZone
class build. It's marked as MonoTODO.
2002-02-12 Duncan Mak <[email protected]>
* TimeZone.cs: Implemented and added to CVS.
svn path=/trunk/mcs/; revision=2357
* PathTooLongException.cs: put it in the correct namespace
* EndOfStreamException.cs: put it in the correct namespace
svn path=/trunk/mcs/; revision=2351
* hacks.h: check against redefining preprocessor symbol.
* interp.c: fix profile info to return more sensible results.
Tue Feb 12 14:03:42 CET 2002 Paolo Molaro <[email protected]>
* class.c: fix thinko in mono_class_from_type().
svn path=/trunk/mono/; revision=2348
echo"This is a list of pending classes, and links to their documentation on MSDN.Microsoft.com<p><p>" > pending-classes
for i in `cat pending-classes.in`;dox=`echo$$i | sed s/\\\.//g`;link=`echo http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrf@@@ClassTopic.asp | sed "s/@@@/$$x/"`;echo" <a href=\"$$link\">$$i</a><br>" >> pending-classes;done
pending-classes:
#pending-classes: pending-classes.in Makefile.am
# echo "This is a list of pending classes, and links to their documentation on MSDN.Microsoft.com<p><p>" > pending-classes
# for i in `cat pending-classes.in`; do x=`echo $$i | sed s/\\\.//g`; link=`echo http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrf@@@ClassTopic.asp | sed "s/@@@/$$x/"`; echo " <a href=\"$$link\">$$i</a><br>" >> pending-classes; done
something that would help tremendously would be to help with
small duties in the project that need to be addressed.
You can see what needs to be done in the class libraries <a href="class-status.html">here</a>
** To start contributing
As a programmer, you can contribute in three different scenarios to Mono:
<ul>
* If you only have Linux/Unix.
* If you only have Windows.
* If you have both Linux and Windows.
</ul>
You might also want to check our <a href="#setup">common
setups</a> section that describes some common setups that people
use while working on Mono.
*** Contributing to the class library, regression tests or the compiler
This only requires Windows currently.
To start developing classes or to contribute to the compiler,
you only need Windows and the .NET Framework 1.0 SDK. Please notice
that you do not need Visual Studio (although you can use it if
you want).
you want). The .NET Framework SDK requires some version of
Windows XP or Windows NT. If you are running Windows 98, 95
or Me, you could use instead the <a
href="http://msdn.microsoft.com/downloads/default.asp?url=/downloads/sample.asp?url=/msdn-files/027/001/829/msdncompositedoc.xml">.NET Redist package</a>, but it
lacks the documentation browser and the ildasm program (C#, VB, JScript and IL
assembler are included).
You can get it <a href="http://msdn.microsoft.com/downloads/default.asp?url=/downloads/sample.asp?url=/msdn-files/027/000/976/msdncompositedoc.xml&frame=true">here</a>
If you are new to .NET, writing regression tests is a good way
of starting to contribute: it will help you get used to C# as
well as getting comfortable with the .NET APIs.
This helps because at this point you might be the best
qualified person to fix a problem found by the regression
test, or you might have a new class to implement in the .NET
world that only has a test suite.
To get started writing tests see the <a href="testing.html">Test Suite</a>
section.
*** Contributing to the runtime engine
This only requires Linux, currently some tasks are easier if you
have access to Windows as well.
Here are a few things you can do:
<ul>
* Port the runtime to other architectures.
* Port the runtime to other operating systems.
* Finish the IL code verifier in the runtime.
* Hack the JIT, improve the code generator, add new
pattern rules, improve the register allocator.
* Implement the debugging interfaaces
</ul>
** Bug reporting
If you find bugs in Mono, please make sure you enter a bug
@@ -36,6 +87,8 @@
http://bugzilla.ximian.com</a> and enter bug reports against
your favorite component (Mono, Runtime, C# compiler).
You can review the list of current bugs by going <a href="http://bugzilla.ximian.com/buglist.cgi?product=Mono%2FClass+Libraries&product=Mono%2FMCS&product=Mono%2FRuntime&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&email1=&emailtype1=substring&emailassigned_to1=1&email2=&emailtype2=substring&emailreporter2=1&changedin=&chfieldfrom=&chfieldto=Now&chfieldvalue=&short_desc=&short_desc_type=substring&long_desc=&long_desc_type=substring&bug_file_loc=&bug_file_loc_type=substring&keywords=&keywords_type=anywords&op_sys_details=&op_sys_details_type=substring&version_details=&version_details_type=substring&cmdtype=doit&order=%27Importance%27&form_name=query">here</a>
** Small tasks
A few smaller tasks are here, dropped in no particular order:
@@ -71,7 +124,52 @@
http://www.oreally.com/catalog/dotnetfrmess</a>)
</ul>
* Special note
<a name="setup">
* Common Setups
People running both Linux and Windows while contributing to
Mono use a number of tricks to increase their productivity.
Scenarios:
<ul>
* <b>Linux host and Windows host</b>
The Windows file system is shared (right click on
your hard drive icon, and select sharing, allow this
to be shared).
The Windows machine has the required build tools
(cygwin, and the .NET framework). On the Windows
machine, you want to setup the ssh server (run the
ssh-host-config program to configure your ssh) and
run it (from a cygwin terminal, type: /usr/sbin/sshd).
From the Linux side, you want to mount the Windows
file system, using something like this:
<tt><pre>
mount -t smbfs -o uid=miguel,username="Miguel de Icaza" "//quack/c$" /mnt
</pre></tt>
In the above example, my Linux user name is
`miguel', and this will allow this user to have
read/write access to the share.
The host name is `quack', and the name of the share
is `c$' (that is the C: partition).
The file system is accessible on /mnt.
You can perform your cvs update and cvs commits from
the /mnt directory, and run Emacs or your favorite
Linux text editor on the Unix side in this way.
Then from another terminal, you can ssh into your
Windows box using ssh, like this: ssh "Miguel de Icaza@quack"
</ul>
* Special Note
If you have looked at Microsoft's implementation of .NET or
their shared source code, you may not be able to contribute
completely for the first time! The resulting image still contains
some errors, but the whole compiler process goes now. Later in the day
and a couple of small optimizations and bug fixes, the compile
speed was improved in 400%
We are very close to have a complete self hosting environment now.
Mono is temporarly using the Bohem GC garbage collector while
we deploy the more advanced ORP one.
** Mar 5, 2002
The CVS repository <a href="http://cvs.hispalinux.es/cgi-bin/cvsweb/?hidenonreadable=1&f=u&logsort=date&sortby=file&hideattic=1&cvsroot=Mono">can be browsed</a>
Jason has got an incredible amount of work on the Xml
classes during the weekend, and Gaurav is very close to have
the complete System.Web.UI.WebControls namespace implemented.
Martin and Duco have been killing bugs by using the recently
revamped regression test suite.
Piers has updated our <a href="class-status.html">class
status</a> page again, with even more information available.
The C# compiler has full constant folding implemented now and Ravi
killed bugs of bugs in the <a href="http://bugzilla.ximian.com/buglist.cgi?product=Mono%2FClass+Libraries&product=Mono%2FMCS&product=Mono%2FRuntime&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&email1=&emailtype1=substring&emailassigned_to1=1&email2=&emailtype2=substring&emailreporter2=1&changedin=&chfieldfrom=&chfieldto=Now&chfieldvalue=&short_desc=&short_desc_type=substring&long_desc=&long_desc_type=substring&bug_file_loc=&bug_file_loc_type=substring&keywords=&keywords_type=anywords&op_sys_details=&op_sys_details_type=substring&version_details=&version_details_type=substring&cmdtype=doit&order=%27Importance%27&form_name=query">Mono Bug List</a>
** Mar 1, 2002
RPMs of Mono 0.9 are available at <a href="http://mono.baselabs.org/#download">mono.baselabs.com</a>
The <a href="http://msdn.microsoft.com/net">Microsoft.NET site.
The <a href="http://msdn.microsoft.com/net">Microsoft.NET site.</a>
The Microsoft .NET Framework 1.0 can be downloaded <a href="http://msdn.microsoft.com/downloads/default.asp?url=/downloads/sample.asp?url=/msdn-files/027/000/976/msdncompositedoc.xml&frame=true">here</a>
@@ -86,38 +86,6 @@
You can also get this information if you install the Beta2
Loaded 100 of 2957 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.