* OperationMessageCollection.cs:
Some implementation of this class after consulting a
WSDL reference. Now validates the inputs.
svn path=/trunk/mcs/; revision=6185
* DateTimePickerFormat.cs
* Added values.
* The NAMESPACE NOW COMPILES under windows in Visual Studio using the Microsoft version of the classes.
* Verify.exe reports 600 errors.
svn path=/trunk/mcs/; revision=6184
* cs-parser.jay (CSharpParser): Added `Stack switch_stack'.
(switch_statement): Push the current_block to the switch_stack and
pop it again when we're done with the switch.
(switch_section): The new block is an implicit child of the
current_block. Fixes bug #24007, added test-152.cs.
svn path=/trunk/mcs/; revision=6181
* driver.cs: Rename --resource to --linkres, because that is what
we do currently, we dont support --resource yet.
* cs-tokenizer.cs: Fix test for reporting endif mismatches.
svn path=/trunk/mcs/; revision=6179
* class.cs (MethodData): New public class. This is a `method builder'
class for a method or one accessor of a Property/Indexer/Event.
(MethodData.GetMethodFlags): Moved here from MemberBase.
(MethodData.ApplyAttributes): Likewise.
(MethodData.ApplyObsoleteAttribute): Likewise.
(MethodData.ApplyConditionalAttribute): Likewise.
(MethodData.ApplyDllImportAttribute): Likewise.
(MethodData.CheckAbstractAndExternal): Likewise.
(MethodData.Define): Formerly knows as MemberBase.DefineMethod().
(MethodData.Emit): Formerly known as Method.Emit().
(MemberBase): Moved everything which was specific to a single
accessor/method to MethodData.
(Method): Create a new MethodData and call Define() and Emit() on it.
(Property, Indexer, Event): Create a new MethodData objects for each
accessor and call Define() and Emit() on them.
svn path=/trunk/mcs/; revision=6177
Made MethodCore derive from MemberBase to reuse the code from there.
MemberBase now also checks for attributes.
* class.cs (MethodCore): Derive from MemberBase, not MemberCore.
(MemberBase.GetMethodFlags): Moved here from class Method and marked
as virtual.
(MemberBase.DefineAccessor): Renamed to DefineMethod(), added
`CallingConventions cc' and `Attributes opt_attrs' arguments.
(MemberBase.ApplyAttributes): New virtual method; applies the
attributes to a method or accessor.
(MemberBase.ApplyObsoleteAttribute): New protected virtual method.
(MemberBase.ApplyConditionalAttribute): Likewise.
(MemberBase.ApplyDllImportAttribute): Likewise.
(MemberBase.CheckAbstractAndExternal): Likewise.
(MethodCore.ParameterTypes): This is now a property instead of a
method, it's initialized from DoDefineParameters().
(MethodCore.ParameterInfo): Removed the set accessor.
(MethodCore.DoDefineParameters): New protected virtual method to
initialize ParameterTypes and ParameterInfo.
(Method.GetReturnType): We can now simply return the MemberType.
(Method.GetMethodFlags): Override the MemberBase version and add
the conditional flags.
(Method.CheckBase): Moved some code from Define() here, call
DoDefineParameters() here.
(Method.Define): Use DoDefine() and DefineMethod() from MemberBase
here to avoid some larger code duplication.
(Property.Emit, Indexer.Emit): Call CheckAbstractAndExternal() to
ensure that abstract and external accessors don't declare a body.
* attribute.cs (Attribute.GetValidPieces): Make this actually work:
`System.Attribute.GetCustomAttributes (attr.Type)' does a recursive
lookup in the attribute's parent classes, so we need to abort as soon
as we found the first match.
(Attribute.Obsolete_GetObsoleteMessage): Return the empty string if
the attribute has no arguments.
* typemanager.cs (TypeManager.AddMethod): Now takes a MemberBase instead
of a Method.
svn path=/trunk/mcs/; revision=6175
* ProcessModelInfo.cs:
New class added
* HttpParseException.cs:
* HttpCompileException.cs:
* HttpUnhandledException.cs:
Internal constructors added to these
svn path=/trunk/mcs/; revision=6173
be assigned to before control leaves the current method."
[FIXME: Filed as bug #28186: MCS must report this error.]
svn path=/trunk/mcs/; revision=6172
* attribute.cs: fixed compilation. The error was:
"attribute.cs(571,17): error CS0177: The out parameter 'is_error' must
be assigned to before control leaves the current method."
svn path=/trunk/mcs/; revision=6161
* attribute.cs (Attribute.Conditional_GetConditionName): New static
method to pull the condition name ouf of a Conditional attribute.
(Attribute.Obsolete_GetObsoleteMessage): New static method to pull
the obsolete message and error flag out of an Obsolete attribute.
* class.cs (Method.GetMethodFlags): New public method to get the
TypeManager.MethodFlags for this method.
(Method.ApplyConditionalAttribute, Method.ApplyObsoleteAttribute): New
private methods.
(Method.Define): Get and apply the Obsolete and Conditional attributes;
if we're overriding a virtual function, set the new private variable
`parent_method'; call the new TypeManager.AddMethod().
* typemanager.cs (TypeManager.AddMethod): New static method. Stores
the MethodBuilder and the Method in a PtrHashtable.
(TypeManager.builder_to_method): Added for this purpose.
(TypeManager.MethodFlags): Added IsObsoleteError.
(TypeManager.GetMethodFlags): Added `Location loc' argument. Lookup
Obsolete and Conditional arguments in MethodBuilders. If we discover
an Obsolete attribute, emit an appropriate warning 618 / error 619 with
the message from the attribute.
svn path=/trunk/mcs/; revision=6160
* cs-tokenizer.cs: Eat up trailing whitespaces and one-line comments in
preprocessor directives, ensure that the argument to #define/#undef is
exactly one identifier and that it's actually an identifier.
Some weeks ago I did a `#define DEBUG 1' myself and wondered why this
did not work ....
svn path=/trunk/mcs/; revision=6159
* CodeIdentifier.cs:
* IXmlSerializable.cs:
* XmlSerializationCollectionFixupCallback.cs:
* XmlSerializationFixupCallback.cs:
* XmlSerializationReadCallback.cs:
* XmlSerializationReader.cs:
* XmlSerializationWriteCallback.cs:
Add new classes.
* XmlSchemas.cs
* CodeIdentifiers.cs:
Implement some of these classes
* XmlCodeExporter.cs:
Fix return type of a function
svn path=/trunk/mcs/; revision=6157
* statement.cs (Foreach.ForeachHelperMethods): Added `Type element_type',
initialize it to TypeManager.object_type in the constructor.
(Foreach.GetEnumeratorFilter): Set `hm.element_type' to the return type
of the `hm.get_current' method if we're using the collection pattern.
(Foreach.EmitCollectionForeach): Use `hm.element_type' as the source type
for the explicit conversion to make it work when we're using the collection
pattern and the `Current' property has a different return type than `object'.
Fixes#27713.
svn path=/trunk/mcs/; revision=6153
* delegate.cs (Delegate.VerifyMethod): Simply return null if the method
does not match, but don't report any errors. This method is called in
order for all methods in a MethodGroupExpr until a matching method is
found, so we don't want to bail out if the first method doesn't match.
(NewDelegate.DoResolve): If none of the methods in the MethodGroupExpr
matches, report the 123. Fixes#28070.
svn path=/trunk/mcs/; revision=6147
* ProtocolImporter.cs:
* ProtocolReflector.cs:
Some implementation of these classes. MonoTODO's begone!
* SoapProtocolImporter.cs:
Changed description to literal string "Soap"
* SoapProtocolReflector.cs:
Added a new class based on guesswork and conjecture.
svn path=/trunk/mcs/; revision=6145
* HttpCachePolicy.cs:
Added stubbs to this class.
* HttpCacheability.cs:
* HttpCacheRevalidation.cs:
* HttpValidationStatus.cs:
* ProcessShutdownReason.cs:
* ProcessStatus.cs:
* TraceMode.cs:
Reorder the enumerations (and in some cases make
one-based) in order to agree with the .NET
implementation, based on the class status page.
* ProcessInfo.cs:
Implementation of this class.
svn path=/trunk/mcs/; revision=6133
* marshal.c: added optimisations for blittable types
* class.c (mono_array_class_get): do not set blittable attribute on arrays
(mono_class_setup_mono_type): set blittable attribute for single
and double.
svn path=/trunk/mono/; revision=6131
* SoapException.cs: modified constructors to
call base class correctly.
* WebClientAsyncResult: some implementation
svn path=/trunk/mcs/; revision=6108
* unix.args: Added files from Remoting.Lifetime and
Remoting.Metadata.
* ChangeLog: Moved entries from System.Runtime.Remoting.Activation
and System.Runtime.Remoting.Proxy to their own ChangeLog.
* IsVolatile.cs: change visibility on the constructor.
* LeaseState.cs: Moved here from System.Runtime.Remoting.
* ClientSponsor.cs:
* LifetimeServices.cs: Stubbed out
* ILease.cs:
* ISponsor.cs: Added to CVS.
* OneWayAttribute.cs: Added to CVS.
* SoapAttribute.cs:
* SoapFieldAttribute.cs:
* SoapMethodAttribute.cs:
* SoapParameterAttribute.cs:
* SoapTypeAttribute.cs: Stubbed out.
* SoapOption.cs:
* XmlFieldOrderOption.cs: Moved here from System.Runtime.Remoting
* System.Runtime.Remoting.Proxies/ProxyAttribute.cs: This
implements IContextAttribute.
* LeaseState.cs: Moved to System.Runtime.Remoting.Lifetime.
* SoapMethodOption.cs:
* SoapOption.cs: Removed and merged into System.Runtime.Remoting.Metadata.SoapOption.
svn path=/trunk/mcs/; revision=6107
* expression.cs (ArrayAccess.EmitStoreOpcode): Moved the
TypeManager.TypeToCoreType() to the top of the method so the
following equality checks will work. Fixes#28107.
svn path=/trunk/mcs/; revision=6103
* cfold.cs (ConstantFold.DoConstantNumericPromotions): "If either
operand is of type uint, and the other operand is of type sbyte,
short or int, the operands are converted to type long." -
Actually do what this comment already told us. Fixes bug #28106,
added test-150.cs.
svn path=/trunk/mcs/; revision=6102
* class.cs (MethodBase): New abstract class. This is now a base
class for Property, Indexer and Event to avoid some code duplication
in their Define() and DefineMethods() methods.
(MethodBase.DoDefine, MethodBase.DefineAccessor): Provide virtual
generic methods for Define() and DefineMethods().
(FieldBase): Derive from MemberBase, not MemberCore.
(Property): Derive from MemberBase, not MemberCore.
(Property.DefineMethod): Moved all the code from this method to the
new MethodBase.DefineAccessor(), just call it with appropriate
argumetnts.
(Property.Define): Call the new Property.DoDefine(), this does some
sanity checks and we don't need to duplicate the code everywhere.
(Event): Derive from MemberBase, not MemberCore.
(Event.Define): Use the new MethodBase.DefineAccessor() to define the
accessors, this will also make them work with interface events.
(Indexer): Derive from MemberBase, not MemberCore.
(Indexer.DefineMethod): Removed, call MethodBase.DefineAccessor() insstead.
(Indexer.Define): Use the new MethodBase functions.
* interface.cs (InterfaceEvent.InterfaceEvent): Added `Location loc'
argument to the constructor.
(Interface.FindMembers): Added support for interface events.
(Interface.PopluateEvent): Implemented.
Added test-149.cs for this. This also fixes bugs #26067 and #24256.
svn path=/trunk/mcs/; revision=6101
* test-149.cs: New test.
* test-95.cs: .... and finally, another bug in MCS is fixed and
the syntax error in this test is caught.
svn path=/trunk/mcs/; revision=6098
* class.cs (MethodBase): New abstract class. This is now a base
class for Property, Indexer and Event to avoid some code duplication
in their Define() and DefineMethods() methods.
(MethodBase.DoDefine, MethodBase.DefineAccessor): Provide virtual
generic methods for Define() and DefineMethods().
(FieldBase): Derive from MemberBase, not MemberCore.
(Property): Derive from MemberBase, not MemberCore.
(Property.DefineMethod): Moved all the code from this method to the
new MethodBase.DefineAccessor(), just call it with appropriate
argumetnts.
(Property.Define): Call the new Property.DoDefine(), this does some
sanity checks and we don't need to duplicate the code everywhere.
(Event): Derive from MemberBase, not MemberCore.
(Event.Define): Use the new MethodBase.DefineAccessor() to define the
accessors, this will also make them work with interface events.
(Indexer): Derive from MemberBase, not MemberCore.
(Indexer.DefineMethod): Removed, call MethodBase.DefineAccessor() insstead.
(Indexer.Define): Use the new MethodBase functions.
* interface.cs (InterfaceEvent.InterfaceEvent): Added `Location loc'
argument to the constructor.
(Interface.FindMembers): Added support for interface events.
(Interface.PopluateEvent): Implemented.
svn path=/trunk/mcs/; revision=6097
* HttpGetClientProtocol.cs:
* HttpPostClientProtocol.cs
Implemented the GetWebRequest method
* HttpSimpleClientProtocol:
Some implementation of the EndInvoke method
* HttpWebClientProtocol.cs:
Set the UserAgent string appropriately
Implemented the GetWebRequest method
Implemented the GetWebResponse methods
* SoapHttpClientProtocol.cs:
Removed unused fields
Implemented the GetWebRequest method
* SoapMessage.cs:
Implemented the EnsureStage method
* WebClientProtocol.cs:
Added a static constructor to construct the cache
Implemented the Abort method
Implemented the AddToCache, GetFromCache methods
Implemented the GetWebRequest method
Implemented the GetWebResponse methods
svn path=/trunk/mcs/; revision=6095
* WebService.cs:
Change Description to WebServicesDescription
* WebServicesDescriptionAttribute.cs:
Add back constructor as MS build doesn't
seem to like it missing. Now calls base()
with the string. Also remove the sealed
modifier and change the attribute targets.
svn path=/trunk/mcs/; revision=6091
* LogicalMethodTypes.cs:
* SoapHeaderDirection.cs:
* SoapMessageStage.cs:
* SoapParameterStyle.cs:
* SoapServiceRoutingStyle.cs:
Explicitly define values in enum to match
.NET.
* SoapMessage.cs:
Removed constructor which should not be present.
* SoapException.cs:
Made protected fields private as they should
be.
* SoapHeaderException.cs:
Modifications to constructors to propertly
call base class constructor
svn path=/trunk/mcs/; revision=6087
* WebServicesDescriptionAttribute.cs:
Removed the "guts" because they are defined in
System.ComponentModel.DescriptionAttribute.
* WebService.cs:
Added attributes which were missing based on the
class status page. Also added an HttpApplication
object and modified the properties to use that
object.
svn path=/trunk/mcs/; revision=6084
* ServiceDescription.cs:
Add XmlIgnore attribute to ServiceDescriptions property
* OperationFlow.cs:
* ServiceDescriptionImportWarnings.cs:
Explicitly set values in enumeration to match
.NET.
svn path=/trunk/mcs/; revision=6083
* HttpCompileException.cs:
* HttpParseException.cs:
* HttpUnhandledException.cs:
New stubbs created.
* HttpApplication.cs:
* HttpBrowserCapabilities.cs:
Added missing methods stubbs and attributes based
on the class status page. Also reformatted some
source for consistency.
svn path=/trunk/mcs/; revision=6081
* HttpUtility.cs: Moved entities hashtable into main
class as a static object, so we don't instantiate
a new one every time. Also put the hashtable
building into a lock block.
svn path=/trunk/mcs/; revision=6080
* SoapFormatter.cs: This implements IFormatter and IRemoteFormatter.
* XmlSchemaException.cs: Partiall implement the ISerializable
methods. It's not clear now SourceSchemaObject should be deserialized.
* XmlConvert.cs: Implement the ToDateTime method. ToDateTime
(string, string []) is particularly strange.
* XmlException.cs: Remember to call the base serialization
constructor.
* XmlNodeReader.cs: Keep a new variable to store the Depth.
svn path=/trunk/mcs/; revision=6077
* emit-x86.c (enter_method): use arch_get_argument_info to get
stack layout.
* jit.c (mono_analyze_stack): use arch_get_argument_info to get
stack layout.
(mono_analyze_stack): removed unused code
* emit-x86.c (arch_allocate_arg): impl.
svn path=/trunk/mono/; revision=6076
* ComponentCollection.cs: Added reference to
ReadOnlyCollectionBase to make sure
that we inherit the appropriate methods.
Not sure why the Dispose() method is
required, but left for now.
svn path=/trunk/mcs/; revision=6055
* list.unix: Added files to the build for linux
System.ComponentModel.BindableAttribute.cs,
System.ComponentModel.BindableSupport.cs,
System.ComponentModel.ExpandableObjectConverter.cs,
System.ComponentModel.NotifyParentPropertyAttribute.cs,
System.ComponentModel.ToolboxItemAttribute.cs,
svn path=/trunk/mcs/; revision=6052
* list:
Added System.Security.Permission/ReflectionPermission.cs and
System.Security.Permission/EnvironmentPermission.cs and
svn path=/trunk/mcs/; revision=6046
* class.cs (TypeContainer.AddMethod): Adding methods do not use IsValid,
but this is required to check for a method name being the same as
the containing class.
Handle this now.
svn path=/trunk/mcs/; revision=6040
Implemented the IndexerName attribute in interfaces.
* class.cs (TypeContainer.DefineIndexers): Don't set the indexer
name if this is an explicit interface implementation.
(Indexer.InterfaceIndexerName): New public variable. If we're
implementing an interface indexer, this is the IndexerName in that
interface. Otherwise, it's the IndexerName.
(Indexer.DefineMethod): If we're implementing interface indexer,
set InterfaceIndexerName. Use the new Pending.IsInterfaceIndexer
and Pending.ImplementIndexer methods.
(Indexer.Define): Also define the PropertyBuilder if we're
implementing an interface indexer and this is neither an explicit
interface implementation nor do the IndexerName match the one in
the interface.
* pending.cs (TypeAndMethods): Added `MethodInfo [] need_proxy'.
If a method is defined here, then we always need to create a proxy
for it. This is used when implementing interface indexers.
(Pending.IsInterfaceIndexer): New public method.
(Pending.ImplementIndexer): New public method.
(Pending.InterfaceMethod): Added `MethodInfo need_proxy' argument.
This is used when implementing interface indexers to define a proxy
if necessary.
(Pending.VerifyPendingMethods): Look in the `need_proxy' array and
define a proxy if necessary.
* interface.cs (Interface.IndexerName): New public variable.
(Interface.PopulateIndexer): Set the IndexerName.
(Interface.DefineIndexers): New private method. Populate all the
indexers and make sure their IndexerNames match.
* typemanager.cs (IndexerPropertyName): Added support for interface
indexers.
svn path=/trunk/mcs/; revision=6033
* class/library.make: Oops, the deps weren't right -- touching a .cs
file didn't cause the libraries to be rebuilt.
svn path=/trunk/mcs/; revision=6029
* Control.cs:
(SaveViewState): save state even when control is not visible.
(SaveViewStateRecursive):
(LoadViewStateRecursive): made internal.
svn path=/trunk/mcs/; revision=6017
* codegen.cs (EmitContext.HasReturnLabel): New public variable.
(EmitContext.EmitTopBlock): Always mark the ReturnLabel and emit a
ret if HasReturnLabel.
(EmitContext.TryCatchLevel, LoopBeginTryCatchLevel): New public
variables.
* statement.cs (Do.Emit, While.Emit, For.Emit, Foreach.Emit): Save
and set the ec.LoopBeginTryCatchLevel.
(Try.Emit): Increment the ec.TryCatchLevel while emitting the block.
(Continue.Emit): If the ec.LoopBeginTryCatchLevel is smaller than
the current ec.TryCatchLevel, the branch goes out of an exception
block. In this case, we need to use Leave and not Br.
svn path=/trunk/mcs/; revision=6014
* System.Web.Services.build:
Added reference to new System.EnterpriseServices.dll
which is required for System.Web.Services.WebMethodAttribute
svn path=/trunk/mcs/; revision=6011
* WebMethodAttribute.cs:
Remove comments around TransactionOption bits
because I added that enum.
* WebServiceAttribute.cs:
* WebServiceBindingAttribute.cs:
Added "sealed" to protection level, which I missed
before.
svn path=/trunk/mcs/; revision=6010
* System.EnterpriseServices: New namespace created
to provide enum needed by Web Services
* System.EnterpriseServices.build: New file
* list: New file
svn path=/trunk/mcs/; revision=6007
* verify-1.cs: New test. The verify-XXX.cs tests must be
compiled and then verified - either with `pedump --verify code'
or with PEverify.
svn path=/trunk/mcs/; revision=6005
* statement.cs (Try.Emit): Emit an explicit ret after the end of the
block unless the block does not always return or it is contained in
another try { ... } catch { ... } block. Fixes bug #26506.
Added verify-1.cs to the test suite.
svn path=/trunk/mcs/; revision=6004
* daemon-messages.c: #include <sys/types.h> and <sys/sockets.h> -
these are needed for sendmsg() and also for struct msghdr (at
least on Solaris). Solaris still won't build because struct msghdr
doesn't have msg_flags, msg_control, or msg_controllen members.
(CMSG_SPACE): Define for systems that don't have it.
(CMSG_LEN): Same.
svn path=/trunk/mono/; revision=6002
* appdomain.c (ves_icall_System_Reflection_Assembly_LoadFrom): Use
mono_get_exception_file_not_found now.
* exception.c (mono_exception_from_name_two_strings): New version
that will call a constructor with two string arguments.
(mono_get_exception_file_not_found): New helper routine, used to
report file-not-found errors.
2002-07-21 Miguel de Icaza <[email protected]>
* exception.c (arch_handle_exception): Memory leak fix.
svn path=/trunk/mono/; revision=6001
* statement.cs (Switch.TableSwitchEmit): If we don't have a default,
then we do not always return. Fixes bug #24985.
svn path=/trunk/mcs/; revision=5999
* Page.cs: improved event raising to allow client postback for a wider
variety of actions (clicking an hyperlink, ...).
svn path=/trunk/mcs/; revision=5997
* expression.cs (Invocation.OverloadedResolve): Do the BetterFunction()
lookup on a per-class level; ie. walk up the class hierarchy until we
found at least one applicable method, then choose the best among them.
Fixes bug #24463 and test-29.cs.
svn path=/trunk/mcs/; revision=5994
* typemanager.cs (TypeManager.ArrayContainsMethod): Don't check the
return types of the methods. The return type is not part of the
signature and we must not check it to make the `new' modifier work.
Fixes bug bug #27999, also added test-147.cs.
(TypeManager.TypeToCoreType): Added TypeManager.type_type.
* expression.cs (Invocation.DoResolve): Call TypeManager.TypeToCoreType()
on the method's return type.
svn path=/trunk/mcs/; revision=5992
* makefile.gnu: Disable debugging, there's already the mcs-mono2.exe
target in the makefile for this. The makefile.gnu is primarily intended
for end-users who don't want to debug the compiler.
svn path=/trunk/mcs/; revision=5988
* assign.cs: Make this work if the rightmost source is a constant and
we need to do an implicit type conversion. Also adding a few more tests
to test-38.cs which should have caught this.
svn path=/trunk/mcs/; revision=5987
* daemon-messages.c: #include <sys/types.h> and <sys/sockets.h> -
these are needed for sendmsg() and also for struct msghdr (at
least on Solaris). Solaris still won't build because struct msghdr
doesn't have msg_flags, msg_control, or msg_controllen members.
svn path=/trunk/mono/; revision=5983
* test-38.cs: This test now passes with MCS. Added a few more
test cases to it.
* test-52.cs: The order of the elements returned by
`IDictionary.Keys' is unspecified.
* makefile: The following tests fail under linux and have been
moved to TEST_NOPASS: 45, 53, 91, 106, 107, 122, 132, 133.
(test-compiler-mono): Compile all the TEST_NOPASS tests, but
don't run them.
svn path=/trunk/mcs/; revision=5980
* assign.cs: Improved the Assign class so it can now handle embedded
assignments (X = Y = Z = something). As a side-effect this'll now also
consume less local variables. test-38.cs now passes with MCS, added
a few new test cases to that test.
svn path=/trunk/mcs/; revision=5979
* README.tests: Added (empty) list of all the test cases.
When you add any test cases, please add them to this file.
* test-146.cs: Added test for bug #27977 which is now fixed.
svn path=/trunk/mcs/; revision=5969
* class/library.make: Put $(MONO_PATH_PREFIX) in front of the MONO_PATH.
* class/*/makefile.gnu: Set MONO_PATH_PREFIX=../lib:
svn path=/trunk/mcs/; revision=5963
* Process.cs: Implement file handle redirection
2002-07-20 Dick Porter <[email protected]>
* MonoIO.cs: Added icall to CreatePipe
2002-07-20 Dick Porter <[email protected]>
* MonoIO.cs: Cut down copy of corlib/System.IO/MonoIO.cs, so it
can be used from the System assembly but still not be exposed to
users.
svn path=/trunk/mcs/; revision=5961
* System.Web.UI/AttributeCollection.cs:
(Add): handle 'style' through styleCollection.
* System.Web.UI/CssStyleCollection.cs:
(fillStyle): renamed to FillStyle and made it internal.
* System.Web.UI/Page.cs:
(GetViewStateString): fixed, broken after other recent changes.
(ProcessPostData): allow a second try for postback data after OnLoad.
(ProcessRequest): clear controls collection, removed call to
UnloadRecursive.
* System.Web.UI.HtmlControls/HtmlControl.cs: the attributes must use
ViewState as its StateBag, if not style values are lost between
postbacks.
* System.Web.UI.WebControls/TextBox.cs: default for Wrap is true.
(OnPreRender): don't save Text if there are no listeners on TextChanged.
svn path=/trunk/mcs/; revision=5954
* makefile.gnu: Added makefile for self-hosting compile on GNU/Linux.
Don't add this to the top-level makefile.gnu, this must be run after
everything is compiled.
svn path=/trunk/mcs/; revision=5952
* System.Web.UI/Control.cs: uncommented Dispose.
* System.Web.UI/Page.cs:
(DeterminePostBackMode): more checkings.
(GetPostBackClientHyperLink): implemented.
(GetPostBackEventReference): added some comments with the HTML that MS
generates for that.
(ProcessRequest): fixed processing order. The page is unloaded after
a request and regenerated from view state on subsequents posts.
* System.Web.UI.WebControls/DropDownList.cs:
(ToolTip): fixed.
* System.Web.UI.WebControls/ListItem.cs:
(LoadViewState): fixed.
* System.Web.UI.WebControls/ListItemCollection.cs:
(TrackViewState): use items instead of 'this' in foreach.
* System.Web.UI.WebControls/Style.cs:
(LoadViewState): more checking of parameters.
* System.Web.UI.WebControls/WebControl.cs: implemented LoadViewState
and SaveViewState.
svn path=/trunk/mcs/; revision=5945
* configure.in, Makefile.am, mono.pc.in: add a mono.pc file for use
with pkg-config.
* */Makefile.am: makefile overhaul to create a shared libmono library.
* */*.h: do not include config.h in headers that should be installed.
svn path=/trunk/mono/; revision=5937
* x86.brg: correctly align valuetype arguments on the stack
* jit.c (mono_analyze_stack): do not compute frame size here.
* x86.brg: use macros to avoid code duplication for CALL opcodes,
compute frame size in x86.brg
svn path=/trunk/mono/; revision=5929
Added the super-cool set of makefiles from Peter Williams which run on
GNU/Linux without NAnt. I named them `makefile.gnu' and not `GNUmakefile'
since this won't break the windows build.
To compile stuff on GNU/Linux, just do a `make -f makefile.gnu'.
* mcs-tool, */makefile.gnu, class/library.make: New files.
svn path=/trunk/mcs/; revision=5920
* expression.cs (Invocation.EmitParams): Use TypeManager.LookupType(),
not Type.GetType() to lookup the array type. This is needed when
we're constructing an array of a user-defined type.
(ArrayAccess.EmitDynamicInitializers): Only emit the Ldelema for
single-dimensional arrays, but also for single-dimensial arrays of
type decimal.
svn path=/trunk/mcs/; revision=5917
* expression.cs (New.DoEmit): Create a new LocalTemporary each time
this function is called, it's not allowed to share LocalBuilders
among ILGenerators.
svn path=/trunk/mcs/; revision=5916
* ILGenerator.cs (Emit (OpCode, LocalBuilder)): Throw an exception
when trying to emit a local that was defined in a different ILGenerator.
* LocalBuilder.cs (LocalBuilder): Added `ILGenetator' argument to
the constructor.
svn path=/trunk/mcs/; revision=5914
2002-07-15 Miguel de Icaza <[email protected]>
* expression.cs (MemberAccess.DoResolve): Do not reuse the field
`expr' for the temporary result, as that will fail if we do
multiple resolves on the same expression.
2002-07-05 Miguel de Icaza <[email protected]>
* ecore.cs (SimpleNameResolve): Use ec.DeclSpace instead of
ec.TypeContainer for looking up aliases.
* class.cs (TypeContainer): Remove LookupAlias from here.
* decl.cs (DeclSpace); Move here.
2002-07-01 Miguel de Icaza <[email protected]>
* class.cs (FindMembers): Only call filter if the constructor
bulider is not null.
Also handle delegates in `NestedTypes' now. Now we will perform
type lookups using the standard resolution process. This also
fixes a bug.
* decl.cs (DeclSpace.ResolveType): New type resolution routine.
This uses Expressions (the limited kind that can be parsed by the
tree) instead of strings.
* expression.cs (ComposedCast.ToString): Implement, used to flag
errors since now we have to render expressions.
(ArrayCreation): Kill FormElementType. Use ComposedCasts in
FormArrayType.
* ecore.cs (SimpleName.ToString): ditto.
* cs-parser.jay: Instead of using strings to assemble types, use
Expressions to assemble the type (using SimpleName, ComposedCast,
MemberAccess). This should fix the type lookups in declarations,
because we were using a different code path for this.
* statement.cs (Block.Resolve): Continue processing statements
even when there is an error.
svn path=/trunk/mcs/; revision=5898
* x86.brg (ARG_OBJ): allow zero sized ARG_OBJ
* marshal.c (mono_marshal_get_native_wrapper): we an now return value types
svn path=/trunk/mono/; revision=5895
* Color.cs: implemented SystemColors and NamedColors properties that
are used by ColorConverter, removed public constructor, use
SystemColors, and misc. fixes to make it behave as MS (ToString,
parsing names, FromKnownColor,...).
* ColorConverter.cs: use NamedColors and SystemColors from Color when
trying to get the color from its name.
* SystemColors.cs: new file.
svn path=/trunk/mcs/; revision=5888
* ConvertTest.cs: Commented out line 456 which contains a non-printable
character which mcs does not like. See also bug #27655.
svn path=/trunk/mcs/; revision=5880
* const.cs (Const.LookupConstantValue): Add support for constant
`unchecked' and `checked' expressions.
Also adding test case test-140.cs for this.
svn path=/trunk/mcs/; revision=5875
* statement.cs (Foreach.GetEnumeratorFilter): When compiling corlib,
check whether mi.ReturnType implements the IEnumerator interface; the
`==' and the IsAssignableFrom() will fail in this situation.
svn path=/trunk/mcs/; revision=5872
* Control.cs: fixed related to ViewState. Added RemovedControl.
* ControlCollection.cs: notify owner of control removal.
* CssStyleCollection.cs: almost rewritten to make it render the style
attribute after changes to it.
* Page.cs: follow the guidelines in 'Control execution lifecycle'.
Removed Xml code.
* StateBag.cs: don't use IDictionary.GetEnumerator on the
HybridDictionary: it makes the program give an InvalidCastException at
runtime. Why?
svn path=/trunk/mcs/; revision=5863
* Color.cs: changed static properties to use FromArgbNamed. Also
modified the program included in comments that get the values for
static properties.
(FromArgbNamed): build named colors.
(FromKnownColor): fixed.
(FromName): use a hash to look up colors by name.
(FillColorNames): create the hash of colors.
(Equals): compare values and name.
(ToString): improved.
* ColorTranslator.cs: implemented ToHtml.
svn path=/trunk/mcs/; revision=5831
* Iterator.cs:
- rename UnionIterator to MergedIterator,
- create new UnionIterator to implment uniqueness for '|' operator
- fix position bug in ArrayListIterator.Clone()
* Expression.cs: use new UnionIterator constructor syntax
svn path=/trunk/mcs/; revision=5817
* io.c: Removed bogus console_flush() method, that was just cut
and pasted from file_flush when I separated the two handle types.
svn path=/trunk/mono/; revision=5815
(mono_marshal_get_delegate_end_invoke):
(mono_marshal_get_delegate_invoke): generate a special name for
those methods (including the signature) and associate them whith
the delegate class.
svn path=/trunk/mono/; revision=5813
* AllTests.cs: New file.
* System.Configuration.Install/AllTests.cs: New file.
* System.Configuration.Install/ChangeLog: New file.
* System.Configuration.Install_test.build: modified randomly until it
works.
Fixes 'make test'.
svn path=/trunk/mcs/; revision=5805
* expression.cs (ParameterReference.AddressOf): Patch from Paolo
Molaro: when we are a ref, the value already contains a pointer
value, do not take the address of it.
svn path=/trunk/mcs/; revision=5801
* HttpResponse.cs: quick&dirty hack to make redirection work. Should
be out of there once we have SimpleWorkerRequest.
svn path=/trunk/mcs/; revision=5794
* FontUnit.cs: use a hashtable for mapping size name to value.
* HyperLink.cs: fixed a bug and a typo.
* Unit.cs: some fixes to internal constructor.
svn path=/trunk/mcs/; revision=5790
* ListControl.cs: fixed a couple of range checks.
* WebControl.cs: MS lies! Not all WebControls must be rendered inside
an HtmlForm (p.e., Label).
svn path=/trunk/mcs/; revision=5785
* reflection.[ch]:
(mono_reflection_type_from_name): now it has a MonoImage parameter
which is used as the default image to search the type in. If the image
is NULL or getting the type from it fails, it defaults to corlib.
* icall.c: changed 1 call to mono_reflection_type_from_name to match
new parameter.
svn path=/trunk/mono/; revision=5780
Currently the only class I've seen that belongs here is
System.Configuration.Install.UninstallAction, but there are sure to be more.
Set up NAnt build files to build System.Configuration.Install.Dll, Test cases.
svn path=/trunk/mcs/; revision=5778
* ecore.cs: fix for valuetype static readonly fields: when
initializing them, we need their address, not the address of a copy.
svn path=/trunk/mcs/; revision=5765
* String.cs: make ToLower (culture) and ToUpper (culture) use the
default ToLower and ToUpper and don't throw NotImplemented.
svn path=/trunk/mcs/; revision=5760
* TypeBuilder.cs: better IsValueType.
Sat Jul 13 15:09:01 CEST 2002 Paolo Molaro <[email protected]>
* Type.cs: make GettTypeCode an icall. Test implementation of
GetMember().
svn path=/trunk/mcs/; revision=5755
* expression.cs (ArrayCreation.EmitArrayArguments): use
Conv.Ovf.U4 for unsigned and Conv.Ovf.I4 for signed.
(ArrayAccess.LoadArrayAndArguments): Use Conv_Ovf_I and
Conv_Ovf_I_Un for the array arguments. Even if C# allows longs as
array indexes, the runtime actually forbids them.
* ecore.cs (ExpressionToArrayArgument): Move the conversion code
for array arguments here.
svn path=/trunk/mcs/; revision=5748
* System.Web.build: removed some more excludes.
* System.Web.Hosting/AppDomainFactory.cs:
* System.Web.Hosting/IAppDomainFactory.cs:
* System.Web.Hosting/IISAPIRuntime.cs:
* System.Web.Hosting/ISAPIRuntime.cs: make them compile.
* System.Web.UI/AttributeCollection.cs: added CssStyleCollection.
* System.Web.UI/CssStyleCollection.cs: use a StateBag instead of a
Hashtable. Added internal .ctor.
* System.Web.UI/DataBinding.cs: propertyType is a Type. Implemented
Equals and GetHashCode.
* System.Web.UI/DataBoundLiteralControl.cs:
(LoadViewState):
(SaveViewState): implemented.
* System.Web.UI/Page.cs: FileDependencies is not public.
* System.Web.UI/ParseChildrenAttribute.cs: give a value to Default.
(GetHashCode):
(Equals):
(IsDefaultAttribute): implemented.
svn path=/trunk/mcs/; revision=5743
* statement.cs (Unsafe): Ok, so I got the semantics wrong.
Statements *are* currently doing part of their resolution during
Emit.
Expressions do always resolve during resolve, but statements are
svn path=/trunk/mcs/; revision=5738
* acconfig.h:
* configure.in: Check the size of sockaddr_un.sun_path
2002-07-12 Dick Porter <[email protected]>
* wapi-private.h:
* handles.c:
* daemon.c: Use size of sockaddr_un.sun_path from config.h
svn path=/trunk/mono/; revision=5732
* processes.c (CreateProcess): Send stdin, stdout and stderr
handles if the startup info doesnt specify new ones
* io.c (GetStdHandle): Return the same handle when the same
standard handle is requested
* handles.c: Pass file descriptors when forking
* daemon.c: Use supplied file descriptors when forking a new
process
* daemon-messages.h:
* daemon-messages.c: Pass stdin, stdout and stderr file
descriptors to the daemon (used when forking)
svn path=/trunk/mono/; revision=5731
* debug-helpers.c (mono_method_full_name): print the type of the
runtime wrapper
* metadata.c (mono_signature_hash): better hash algorithm
svn path=/trunk/mono/; revision=5726
* metadata.c (mono_signature_hash): a hash function for signatures
* marshal.c (mono_marshal_get_delegate_invoke): cache methods by signature
svn path=/trunk/mono/; revision=5724
* debug-helpers.c (mono_method_full_name): this can now generate
method names with signatures
* marshal.c (mono_marshal_get_managed_wrapper): bug fix: unmanaged
method dont have this pointers.
svn path=/trunk/mono/; revision=5721
* driver.cs (CSCParseOption): Finish the /r: and /lib: support.
(LoadAssembly): Do not add the dll if it is already specified
svn path=/trunk/mcs/; revision=5714
* expression.cs (ArrayAccess.EmitLoadOpcode): I was using the
wrong opcode for loading bytes and bools (ldelem.i1 instead of
ldelem.u1) and using the opposite for sbytes.
This fixes Digger, and we can finally run it.
svn path=/trunk/mcs/; revision=5711
* libgda.cs: added new libgda functions and some enumerations.
* OleDbParameter.cs (IsNullable): removed explicit implementation
of the set method for this property.
* OleDbDataAdapter.cs (MissingMappingAction): implemented.
(MissingSchemaAction): implemented.
svn path=/trunk/mcs/; revision=5707
* ArrayTest.cs: Disable a test for now. Bugzilla'd this one.
* ConvertTest.cs: Make message unique for this mistaken duplicate.
svn path=/trunk/mcs/; revision=5696
* driver.cs (UnixParseOption): Move the option parsing here.
(CSCParseOption): Implement CSC-like parsing of options.
We now support both modes of operation, the old Unix way, and the
new CSC-like way. This should help those who wanted to make cross
platform makefiles.
The only thing broken is that /r:, /reference: and /lib: are not
implemented, because I want to make those have the same semantics
as the CSC compiler has, and kill once and for all the confussion
around this. Will be doing this tomorrow.
svn path=/trunk/mcs/; revision=5694
* statement.cs (Unsafe.Resolve): The state is checked during
resolve, not emit, so we have to set the flags for IsUnsfe here.
svn path=/trunk/mcs/; revision=5693
* expression.cs (MemberAccess.ResolveMemberAccess): Since we can
not catch the Error_ObjectRefRequired in SimpleName (as it is
possible to have a class/instance variable name that later gets
deambiguated), we have to check this here.
svn path=/trunk/mcs/; revision=5690
* class.cs (TypeContainer.GetFieldFromEvent): Move away from here,
make static and put into Expression.
(Event.Define): Register the private field of the event with the
TypeManager so that GetFieldFromEvent can get at it.
(TypeManager.RegisterPrivateFieldOfEvent): Implement to
keep track of the private field associated with an event which
has no accessors.
(TypeManager.GetPrivateFieldOfEvent): Implement to get at the
private field.
* ecore.cs (GetFieldFromEvent): RE-write to use the above methods.
svn path=/trunk/mcs/; revision=5687
* Activator.cs: some more intermediate results checking in
in CreateInstance and CreateInstanceFrom and use GetConstructor and
Invoke only with Type [] until the other overloaded versions work.
svn path=/trunk/mcs/; revision=5685
* shared.c:
* handles.c:
* daemon.c: Lots of documentation, some added error checking, and
code readability improvements.
* daemon-messages.h: Add the Error request type to improve error
checking.
* daemon-messages.c: Do a bit more error checking on send() and
recv(), and log errors with a higher severity level.
svn path=/trunk/mono/; revision=5683
* expression.cs (Binary.EmitBranchable): this routine emits the
Binary expression in a branchable context. This basically means:
we need to branch somewhere, not just get the value on the stack.
This works together with Statement.EmitBoolExpression.
* statement.cs (Statement.EmitBoolExpression): Use
EmitBranchable.
svn path=/trunk/mcs/; revision=5681
* statement.cs (Break): We can be breaking out of a Try/Catch
controlled section (foreach might have an implicit try/catch
clause), so we need to use Leave instead of Br.
svn path=/trunk/mcs/; revision=5672
2002-07-09 Miguel de Icaza <[email protected]>
* ecore.cs (FieldExpr.AddressOf): Fix for test-139 (augmented
now). If the instace expression supports IMemoryLocation, we use
the AddressOf method from the IMemoryLocation to extract the
address instead of emitting the instance.
This showed up with `This', as we were emitting the instance
always (Emit) instead of the Address of This. Particularly
interesting when This is a value type, as we dont want the Emit
effect (which was to load the object).
svn path=/trunk/mcs/; revision=5671
* statement.cs (Checked): Set the CheckedState during the resolve
process too, as the ConvCast operations track the checked state on
the resolve process, and not emit.
* cs-parser.jay (namespace_member_declaration): Flag that we have
found a declaration when we do. This is used to flag error 1529
svn path=/trunk/mcs/; revision=5662
* reflection.c (method_encode_code): use non-translated values to
compute finally_start, this fixes exception handling on ppc, yay!
svn path=/trunk/mono/; revision=5656
* reflection.c, reflection.h: handle full assembly info in type name.
Handle Type arguments when loading custom attributes.
* icall.c: updated to use new mono_reflection_type_from_name () method.
svn path=/trunk/mono/; revision=5648
* CheckBoxList.cs:
* DataGrid.cs:
* DataList.cs:
* DropDownList.cs:
* ListBox.cs:
* PlaceHolder.cs:
* RadioButton.cs:
* RadioButtonList.cs:
* TableRow.cs:
* WebControl.cs:
* Xml.cs: forgot to add using System.ComponentModel.
* BaseValidator.cs: use explicitly
System.ComponentModel.AttributeCollection as there is another class
with the same name under System.Web.UI.
svn path=/trunk/mcs/; revision=5642
* merged attribute.cs, class.cs, codegen.cs, ecore.cs, expression.cs,
modifiers.cs, namespace.cs, report.cs, rootcontext.cs, statement.cs and typemanager.cs from mcs/mcs, to resync
* changed driver.cs to follow mcs lead on error/warning counting and reporting
svn path=/trunk/mcs/; revision=5637
* Form.ControlCollection.cs
* ImageList.ImageCollection.cs
* LinkArea.LinkAreaConverter.cs
* deleted files. contents now in main class files
svn path=/trunk/mcs/; revision=5635
* XmlTextWriter: In WriteStartElement, if namespace is null and
prefix is null|empty do not write out xmlns=""
* XmlWriter: WriteStartElement calls the virtual method with null
argument instead of empty string.
svn path=/trunk/mcs/; revision=5617
* debug.c (mono_debug_add_method): Fix a bug in the `begin_scope' and
`end_scope' calculations when linear scan register allocation is disabled.
svn path=/trunk/mono/; revision=5612
* System.Web.UI/Page.cs:
(GetViewStateString): new function to give the server access to the
generated view state string.
(Validate): d'oh!
svn path=/trunk/mcs/; revision=5604
* list: updated. Currently mcs cannot compile System.Web because it
cannot find NameObjectCollectionBase.KeysCollection.
* System.Web.build: don't display unused event nor always default value
warnings by now.
* System.Web.UI/Control.cs:
(SaveViewstateRecursive): implemented.
(SaveViewState): fixed.
(IParserAccessor.AddParsedSubObject): don't use 'this'.
* System.Web.UI/Page.cs: added code to save view state to an xml file.
It's not being used right now.
* System.Web.UI.WebControls/AdRotator.cs:
(LoadAdFile): make the dictionary null after every iteration.
* System.Web.UI.WebControls/LinkButton.cs:
* System.Web.UI.WebControls/ListControl.cs:
* System.Web.UI.WebControls/ListItem.cs: fixed warnings.
svn path=/trunk/mcs/; revision=5603
* HtmlContainerControl.cs:
(CreateControlCollection): added. All containers must have a non-empty
control collection.
svn path=/trunk/mcs/; revision=5595
* BitVector32.cs: Implemented 'set' section indexer. Check for
overly large sections. Factored out some helper methods.
svn path=/trunk/mcs/; revision=5593
* XmlSeriailizer: Serialize method can serialize XmlSchema perfectly.
* XmlSerializerNamespaces: Reverted to use of a single Hashtable.
svn path=/trunk/mcs/; revision=5589
* cs-tokenizer.cs (define): We also have to track locally the
defines. AllDefines is just used for the Conditional Attribute,
but we also need the local defines for the current source code.
svn path=/trunk/mcs/; revision=5588
* threads.c (mono_thread_cleanup): Nasty kludge to get this to
compile on mingw. This will cause mingw builds to not wait for
subthreads to terminate after the main thread does. I've lodged a
bug with the mingw developers for them to wrap OpenThread().
svn path=/trunk/mono/; revision=5586
* DateTimeTest.cs: Made tests pass on ms.net. Well, they pass in
timezone JST. Need to test in others. Maybe I'll fly over to GMT
and see how they work. Supposed to be eaiser there.
svn path=/trunk/mcs/; revision=5585
* statement.cs (While, For, Do): These loops can exit through a
Break statement, use this information to tell whether the
statement is the last piece of code.
(Break): Flag that we break.
* codegen.cs (EmitContexts): New `Breaks' state variable.
svn path=/trunk/mcs/; revision=5583
* threads.c: Store thread IDs instead of handles, because
GetCurrentThread() returns a pseudohandle and therefore stores
useless values. mono_thread_cleanup() continues checking the
array of threads until it is empty, to cope with subthreads
spawning new threads after the main thread has finished.
* profiler.h:
* profiler.c:
* profiler-private.h: Pass the thread ID to thread profiler
functions, instead of a handle
2002-07-03 Dick Porter <[email protected]>
* threads.h:
* threads.c: Implement OpenThread(). Define access-control values
for thread handles.
* wapi.h:
* processes.h:
* access.h:
* Makefile.am: Added access.h, to hold shared access-control
definitions
svn path=/trunk/mono/; revision=5578
* ConvertTest.cs: Make the test generate the overflow exceptions on
mono on Linux.
* DecimalTest2.cs: Report exception thrown during subtraction.
svn path=/trunk/mcs/; revision=5576
* Decimal.cs (Divide): Short cut the case where the dividend is 0 (and
the divisor is not) and avoid the icall, which seems to have a bug.
svn path=/trunk/mcs/; revision=5575
* AssemblyBuilder.cs (corlib_object_type, corlib_value_type): Moved
these fields up after the last entry in MonoReflectionAssemblyBuilder
in reflection.h.
* TypeBuilder.cs (IsValueTypeImpl): Use the AssemblyBuilder's
`corlib_value_type' instead of `typeof (System.ValueType)'.
(DefineNestedType): Use the AssemblyBuilder's `corlib_object_type'
instead of `typeof (object)'.
svn path=/trunk/mcs/; revision=5573
* Double.cs (CompareTo): Correctly handle the case where the instance
is NaN. Also return 0 if the values are equal.
svn path=/trunk/mcs/; revision=5572
* class.cs (TypeContainer.MethodModifiersValid): Allow override
modifiers in method declarations in structs. Otherwise, you won't
be able to override things like Object.Equals().
svn path=/trunk/mcs/; revision=5570
* Application.cs
* ControlEventArgs.cs
* Form.cs
* merged changes made by miguel and hestilow in gkt# to system.windows.forms
svn path=/trunk/mcs/; revision=5568
* Button.cs
* ButtonBase.cs
* ContainerControl.cs
* Label.cs
* ScrollableControl.cs
* Copied changes made by miguel and hestilow in gkt# to system.windows.forms
svn path=/trunk/mcs/; revision=5566
* class.cs (Method, Property, Indexer): Do not allow the public
modifier to be used in explicit interface implementations.
(TypeContainer.MethodModifiersValid): Catch virtual, abstract and
override modifiers in method declarations in structs
2002-07-02 Andrew Birkett <[email protected]>
* cs-tokenizer.cs (adjust_int, adjust_real): Do not abort on
integer or real overflow, report an error
svn path=/trunk/mcs/; revision=5564
* Checked in for Richard Baumann ([email protected])
* StatusBar.cs
* StatusBarDrawItemEventArgs.cs
* StatusBarPanel.cs
* StatusBarPanelClickEventArgs.cs
* SystemInformation.cs
* Minor changes by Rich B
svn path=/trunk/mcs/; revision=5561
* class.cs (Method, Property, Indexer): Do not allow the public
modifier to be used in explicit interface implementations.
svn path=/trunk/mcs/; revision=5557
* typemanager.cs (TypeManager.InitCoreTypes): When compiling
corlib, dynamically call AssemblyBuilder.SetCorlibTypeBuilders()
to tell the runtime about our newly created System.Object and
System.ValueType types.
svn path=/trunk/mcs/; revision=5556
* AssemblyBuilder.cs (corlib_object_type, corlib_value_type): New
internal fields. When compiling corlib, they point to the newly
created System.Object and System.ValueType types.
(SetCorlibTypeBuilders): New public function. This will be
dynamically called from MCS when compiling corlib.
* TypeBuilder.cs (DefineInitializedData): Use the AssemblyBuilder's
`corlib_value_type' as parent type instead of `typeof (System.ValueType)'
to make it work when compiling corlib.
* ModuleBuilder.cs (assemblyb): Made this field internal, not private.
svn path=/trunk/mcs/; revision=5555
* expression.cs (ArrayAccess.EmitStoreOpcode): If the type is a
ValueType, call TypeManager.TypeToCoreType() on it.
(Invocations.EmitParams): Call TypeManager.TypeToCoreType() on
the OpCodes.Newarr argument.
svn path=/trunk/mcs/; revision=5551
* expression.cs (Invocation.EmitCall): When compiling corlib,
replace all calls to the system's System.Array type to calls to
the newly created one.
* typemanager.cs (TypeManager.InitCodeHelpers): Added a few more
System.Array methods.
(TypeManager.InitCoreTypes): When compiling corlib, get the methods
from the system's System.Array type which must be replaced.
svn path=/trunk/mcs/; revision=5548
* get.c (dis_stringify_object_with_class): New static function to
stringify an object when we already have its class.
(dis_stringify_object): Get the class and call dis_stringify_object().
(get_method): Call dis_stringify_object_with_class() since we already
have the object's class.
svn path=/trunk/mono/; revision=5546
* typemanager.cs: load unverifiable_code_ctor so we can build
corlib using the correct type. Avoid using GetTypeCode() with
TypeBuilders.
* rootcontext.cs: uses TypeManager.unverifiable_code_ctor and
TypeManager.object_type to allow building corlib.
svn path=/trunk/mcs/; revision=5545
* SortedList.cs: Constructors should use the capacity given regardless
how small. After a Clear() the Capacit should be 16. Since a Dictionary
might be used in the constructor, make sure we trap exceptions thrown
by the Comparer, like in Add().
svn path=/trunk/mcs/; revision=5538
* handles.c (shared_init): Make a second attempt to contact the
daemon if the shared memory attach succeeds, but the connect()
fails. (This copes with the daemon crashing without cleaning up
the shared memory.)
* Makefile.am:
* daemon-private.h:
* daemon.c:
* shared.c (_wapi_shm_attach): Don't exec() anything when we fork
the daemon, it's now built into the library.
svn path=/trunk/mono/; revision=5535
* class.cs: when we build structs without fields that implement
interfaces, we need to add the interfaces separately, since there is
no API to both set the size and add the interfaces at type creation
time.
svn path=/trunk/mcs/; revision=5514
* SortedListTest.cs: Fix some expected/actual value parameters in the
Assert()'s. Disable a part of test until the class is finished.
svn path=/trunk/mcs/; revision=5505
* Double.cs (CompareTo): Just see which is bigger. Don't use the
subtraction trick, it doesn't work when the values have a diference of
less than one.
* Single.cs (CompareTo): same
svn path=/trunk/mcs/; revision=5503
MCS now compiles corlib on GNU/Linux :-)
* attribute.cs (Attribute.ApplyAttributes): Treat Accessors like Method,
ie. check for MethodImplOptions.InternalCall.
* class.cs (TypeContainer.DefineType): When compiling corlib, both parent
and TypeManager.attribute_type are null, so we must explicitly check
whether parent is not null to find out whether it's an attribute type.
(Property.Emit): Always call Attribute.ApplyAttributes() on the GetBuilder
and SetBuilder, not only if the property is neither abstract nor external.
This is necessary to set the MethodImplOptions on the accessor methods.
(Indexer.Emit): Call Attribute.ApplyAttributes() on the GetBuilder and
SetBuilder, see Property.Emit().
* rootcontext.cs (RootContext.PopulateTypes): When compiling corlib, don't
populate "System.Object", "System.ValueType" and "System.Attribute" since
they've already been populated from BootCorlib_PopulateCoreTypes().
svn path=/trunk/mcs/; revision=5501
* System.Web/HttpContext.cs:
(Session): return null instead of throwing an exception.
* System.Web/HttpRequest.cs:
(HttpMethod): return RequestType if not set.
(GetRawContent): return QueryString if we don't have a
HttpWorkerRequest.
* System.Web/HttpUtility.cs: fixed Decode and Encode.
* System.Web.UI/Control.cs: reimplemented FindControls.
* System.Web.UI/Page.cs:
(.ctor): set the page for this control.
(IsPostBack): return valid value.
(DeterminePostBackMode): finished.
(OnFormRender): render __VIEWSTATE (uses GetTypeHashCode()).
(ProcessPostData): implemented. Raises change and postback events.
(ProcessRequest): changed to support reuse of the instance.
(RegisterRequiresPostBack): implemented.
* System.Web.UI/ValidatorCollection.cs: implemented all methods.
* System.Web.UI.WebControls/Button.cs:
(.ctor): fixed to render the correct tag.
(IPostBAckEventHandler.RaisePostBackEvent): fixed.
svn path=/trunk/mcs/; revision=5499
* AsymmetricAlgorithm.cs: Removed a duplicate semicolon to make it compile.
* *.cs (Create (string)): Don't call the non-args version of Create(),
duplicate their contents here. [FIXME: I was too lazy to hunt this bug down
in mcs and it was the last one which prevented us from compiling corlib.]
svn path=/trunk/mcs/; revision=5498
* ecore.cs (Expression.ImplicitReferenceConversionExists): If expr
is the NullLiteral, we also need to make sure that target_type is not
an enum type.
svn path=/trunk/mcs/; revision=5497
* rootcontext.cs (RootContext.ResolveCore): We must initialize
`TypeManager.multicast_delegate_type' and `TypeManager.delegate_type'
before calling BootstrapCorlib_ResolveDelegate ().
svn path=/trunk/mcs/; revision=5496
* MonoDwarfFileWriter.cs, MonoSymbolWriter.cs: Put all TAG_subprogram's into their
corresponding struct/class declarations.
svn path=/trunk/mcs/; revision=5493
* debug.c (debug_generate_method_lines, mono_debug_add_method): Make methods
start on the nop instruction to make single-stepping into an already-JITed
method work.
svn path=/trunk/mono/; revision=5492
* MonoDwarfFileWriter.cs: Use a TAG_string_type when we're using GNU extensions.
Make static struct/class fields actually work. Provide a TAG_typedef for struct's
and classes.
svn path=/trunk/mcs/; revision=5489
* statement.cs (Switch.TableSwitchEmit): Make this work with empty
switch blocks which contain nothing but a default clause.
svn path=/trunk/mcs/; revision=5482
* threads.c: Store the handle in both the parent thread and in the
subthread, to minimise the time between starting a new thread and
storing its ID.
svn path=/trunk/mono/; revision=5479
* ecore.cs (PropertyExpr.PropertyExpr): Call
TypeManager.TypeToCoreType() on the `pi.PropertyType'.
* typemanager.cs (TypeManager.TypeToCoreType): Return if the type
is already a TypeBuilder.
svn path=/trunk/mcs/; revision=5476
* UIntPtr.cs (UIntPtr.Zero): Use an explicit `u' suffix in the
constructor argument. [FIXME: The implicit conversion to an
unsigned integer doesn't work with mcs.]
svn path=/trunk/mcs/; revision=5474
* ecore.cs (Expression.SimpleNameResolve): If the expression is a
non-static PropertyExpr, set its InstanceExpression. This makes
the `ICollection.Count' property work in System/Array.cs.
svn path=/trunk/mcs/; revision=5473
* ecore.cs (Expression.SimpleNameResolve): If the expression is a
non-static PropertyExpr, set its InstanceExpression. This makes
the `ICollection.Count' property work in System/Array.cs.
svn path=/trunk/mcs/; revision=5472
* debug.c (mono_debug_source_location_from_address): Added
`guint32 *line_number' argument. If it's not NULL, store the line number
there and return the file name without the line number.
* exception.c (ves_icall_get_trace): Fill in `sf->filename' and `sf->line'.
(ves_icall_get_frame_info): Likewise.
svn path=/trunk/mono/; revision=5469
* debug-symfile.c (mono_debug_find_source_location): Added
`guint32 *line_number' argument. If it's not NULL, store the line number
there and return the file name without the line number.
svn path=/trunk/mono/; revision=5468
* DecimalFormatter.cs: Removed MSTEST stuff, use `System',
not `S = System'. This file now compiles with mcs.
* String.cs: Removed the already ifdef-outed __arglist Concat function
to make it compile with mcs.
svn path=/trunk/mcs/; revision=5466
* Process.cs: Process forking and waiting, and some support functions
* ProcessStartInfo.cs: Implemented the bits needed for basic
Process forking
* ProcessModule.cs: Implemented
* ProcessModuleCollection.cs: Mostly implemented
* FileVersionInfo.cs: Implemented
svn path=/trunk/mcs/; revision=5451
* handles.c:
* handles-private.h:
* daemon-messages.h:
* daemon.c: Process forking and handle data management
* processes.h:
* process-private.h:
* processes.c: Process forking and other support functions
2002-06-25 Dick Porter <[email protected]>
* icall.c:
* process.h:
* process.c: Process forking and other support functions
svn path=/trunk/mono/; revision=5450
* versioninfo.h: PE resource decoding
* unicode.c (_wapi_unicode_to_utf8): g_utf16_to_utf8 doesnt need
to be told the string length
* io.c: Removed the ACTUALLY_DO_UNICODE option. Fixed some leaks.
Moved _wapi_time_t_to_filetime and the WapiFileTime typedef to
timefuncs.c
2002-06-25 Dick Porter <[email protected]>
* image.c (do_mono_image_open): Set ref_count to 1, so that bad
things dont happen when the image is closed.
(mono_image_lookup_resource): Walk the resource section looking
for a particular entry
* cil-coff.h: PE resource section decoding
svn path=/trunk/mono/; revision=5449
* assembly.h:
* assembly.c:
(mono_assembly_foreach): Accessor functions to walk the list of
loaded assemblies
(mono_assembly_set_main):
(mono_assembly_get_main): Process methods need to know which
assembly is the "main" one
* object.c (mono_runtime_run_main): Record the main assembly
* debug-helpers.c: Fix typo
2002-06-25 Dick Porter <[email protected]>
* interp.c (ves_exec): Pass the assembly to mono_runtime_run_main
2002-06-25 Dick Porter <[email protected]>
* jit.c (mono_jit_exec): Pass the assembly to mono_runtime_run_main
svn path=/trunk/mono/; revision=5446
* Queue.cs (CopyTo): Fix logic for copying the circular array.
(Enqueue): Use actual length of array to determine when to grow
(QueueEnumerator) Fixed Current to use array length, not capacity, and
fixed off-by-one errror in MoveNext().
svn path=/trunk/mcs/; revision=5444
* System.Web.UI/Page.cs: implemented more properties using information
we already have in Context.
(OnFormRender):
(OnFormPostRender):
(VerifyRenderingInServerForm): implemented.
* System.Web.UI.HtmlControls/HtmlForm.cs:
(RenderChildren): use OnFormRender and OnFormPostRender.
* System.Web.UI.WebControls/WebControl.cs:
(AddAttributesToRender): call Page.VerifyRenderingInServerForm. All
WebControl derived classes should be rendered inside a HtmlForm.
svn path=/trunk/mcs/; revision=5434
* Socket.cs: Make SetSocketOption cope with boolean values (they
are passed as objects, not the ints the runtime was expecting)
svn path=/trunk/mcs/; revision=5427
* merged attribute.cs, class.cs, ecore.cs, rootcontext.cs, support.cs and typemanager.cs from mcs/mcs, to resync
* makefile makes csc reference a copy of Mono.GetOptions.dll (mbas.sln now compiles to mbas dir instead of mbas/bin/Debug)
svn path=/trunk/mcs/; revision=5422
* class.cs (TypeContainer.AddMethod, TypeContainer.AddIndexer,
TypeContainer.AddOperator): At the front of the list put the
explicit implementations, so they get resolved/defined first.
svn path=/trunk/mcs/; revision=5416
* Page.cs: changed InvokeEventMethod to use a GetMethod that works with
out runtime. Renamed Page_Init and Page_Load.
After this, we can load a dll and render HTML in linux.
svn path=/trunk/mcs/; revision=5414
* class.cs (TypeContainer.VerifyImplements): Verifies that a given
interface type is implemented by this TypeContainer. Used during
explicit interface implementation.
(Property.Define, Indexer.Define, Method.Define): Validate that
the given interface in the explicit implementation is one of the
base classes for the containing type.
Also if we are explicitly implementing an interface, but there is
no match in the pending implementation table, report an error.
svn path=/trunk/mcs/; revision=5407
* class.cs (Property.Define): Only define the property if we are
not explicitly implementing a property from an interface. Use the
correct name also for those properties (the same CSC uses,
although that is really not needed).
(Property.Emit): Do not emit attributes for explicitly implemented
properties, as there is no TypeBuilder.
(Indexer.Emit): ditto.
Hiding then means that we do not really *implement* a pending
implementation, which makes code fail.
svn path=/trunk/mcs/; revision=5403
* debug.c (mono_debug_source_location_from_address): Small fix, an
unsigned number can never be smaller than zero, make that check
actually work.
svn path=/trunk/mono/; revision=5398
* ecore.cs (Expression.Constantify): Call TypeManager.TypeToCoreType() on
the return value of Object.GetType(). [FIXME: we need to do this whenever
we get a type back from the reflection library].
svn path=/trunk/mcs/; revision=5397
* XmlQualifiedName: Name and Namespaces are never null. If null is passed
to the constructor, set them to empty strings.
Fixed the Operators.
svn path=/trunk/mcs/; revision=5392
* StringBuilder.cs: implemented AppendFormat methods using
String.Format. Thanks Paolo!
This makes xsp generate correct C# output in linux :-). I still need
to do more testing, though.
svn path=/trunk/mcs/; revision=5388
* class.cs (TypeContainer.GetClassBases): Use ExpandInterfaces on
the interface types found.
* interface.cs (Interface.GetInterfaceBases): Use ExpandInterfaces on the
interface types found.
* typemanager.cs (GetInterfaces): Make this routine returns alll
the interfaces and work around the lame differences between
System.Type and System.Reflection.Emit.TypeBuilder in the results
result for GetInterfaces.
(ExpandInterfaces): Given an array of interface types, expand and
eliminate repeated ocurrences of an interface. This expands in
context like: IA; IB : IA; IC : IA, IB; the interface "IC" to
be IA, IB, IC.
svn path=/trunk/mcs/; revision=5381
* typemanager.cs (TypeManager.TypeToCoreType): New function. When compiling corlib
and called with one of the core types, return the corresponding typebuilder for
that type.
* expression.cs (ArrayAccess.DoResolve): Call TypeManager.TypeToCoreType() on the
element type.
svn path=/trunk/mcs/; revision=5379
* StringConverter.cs: stubbed out.
* TypeConverter.cs: stubbed the rest out and added some implementation.
Five errors left when compiling System.Web in linux.
svn path=/trunk/mcs/; revision=5375
* interface.cs (Interface.PopulateIndexer): When creating the setter, we need to
add the "value" parameter to the parameter list.
* statement.cs (Fixed.Emit): Pass the return value of the child block's Emit()
to our caller.
svn path=/trunk/mcs/; revision=5372
* expression.cs (ArrayCreation.ExpressionToArrayArgument): Convert
the argument to an int, uint, long or ulong, per the spec. Also
catch negative constants in array creation.
svn path=/trunk/mcs/; revision=5366
* reflection.c: add all the custom attrs at the end to ensure the
ctors have been properly initialized when the attributes are defined
in the current assembly.
svn path=/trunk/mono/; revision=5361
* System.Web.UI/Control.cs:
(AddedControl): new function that is called whenever a control is
added to a collection of controls in a container. It sets the defaults
except for Page.
* System.Web.UI/ControlCollection.cs: call AddedControl in Add/AddAt.
* System.Web.UI/DataBoundLiteralControl.cs: implemented constructor,
Text, Render, SetStaticString and SetDataBoundString.
* System.Web.UI/Page.cs: removed SetDefaults.
* System.Web.UI.WebControls/Repeater.cs: implemented
CreateControlHierarchy. Fixed some event processing methods.
svn path=/trunk/mcs/; revision=5357
* System.Web.UI/CompiledTemplateBuilder.cs: new file. Used in the
code generated by xsp.
* System.Web.UI/Control.cs:
(BindingContainer): implemented.
(EnsureChildControls): avoid stack overflow.
* System.Web.UI/DataBinder.cs: implemented Eval and PropertyValue.
* System.Web.UI.WebControls/Repeater.cs:
(Controls):
(OnDataBinding): fixed stack overflow.
Still need more work in Repeater.cs to make it render.
svn path=/trunk/mcs/; revision=5345
* modifiers.cs: produce correct field attributes for protected
internal. Easy fix so miguel can work on ther harder stuff:-)
svn path=/trunk/mcs/; revision=5342
* verify.c: add check for System.Exception
* exception.c (ves_icall_get_trace): new method to get the stack
trace from a Exception.
* jit.c (check_inlining): do not inline functions containing
calls to stack query functions
svn path=/trunk/mono/; revision=5337
* checked in for Stefan Warnke ([email protected])
* UICuesEventArgs.cs
* UpDownBase.cs
* Better comments and formatting
svn path=/trunk/mcs/; revision=5332
* pending.cs: New file. Move the code from class.cs here.
Support clearning the pending flag for all methods (when not doing
explicit interface implementation).
svn path=/trunk/mcs/; revision=5331
* Added in a bunch of missing tests. Need to fix some of these
since we get more failures against ms.net. But let's not be shy.
svn path=/trunk/mcs/; revision=5327
* System.Web.UI/HtmlTextWriter.cs: fixed style attributes rendering
(almost the same bug as in regular attributes).
* System.Web.UI.WebControls/ListBox.cs: mono-stylized.
(AddAttributesToRender): also call parent class method.
svn path=/trunk/mcs/; revision=5326
* ArgumentException.cs: Use the message given in the constructor when
accessing the Message property. Thanks to Dietmar for the help with
"base".
svn path=/trunk/mcs/; revision=5323
* XmlSchema: The Read and Write methods are no more [MonoTODO] :)
* XmlSchemaAppInfo: Xml Markup is now being read.
* XmlSchemaDocumentation: Xml Markup is now being read.
* All: Unhandled attributes are being handled properly.
* All: Reordered the properties in all cs files to match with MS
Implementation. This was required since the order is importatnt
for the XmlSerializer.
svn path=/trunk/mcs/; revision=5322
* FileIOPermissionTest.cs: Use Unix paths if it looks like we are not
running the tests on Windows. Need to expand this when we run the
tests on Mac OS's (and others I suppose). Also consolidated some
redundant code.
svn path=/trunk/mcs/; revision=5321
* typemanager.cs (GetConstructor): Use DeclaredOnly to look the
constructor in the type, instead of any constructor in the type
hierarchy. Thanks to Paolo for finding this bug (it showed up as
a bug in the Mono runtime when applying the params attribute).
svn path=/trunk/mcs/; revision=5314
* get.h, get.c: get_marshal_info() to get a marshal descriptor.
* main.c, dump.h, dump.c: added code to dump the FieldMarshl table.
svn path=/trunk/mono/; revision=5310
* reflection.h, reflection.c: change order of nested type emission
to avoid table corruption. The NestedTypes table is sorted.
* icall.c: change order of GetConstructor results to workaround mcs bug.
svn path=/trunk/mono/; revision=5298
* Panel.cs: fixed stack overflow.
* Unit.cs: use Int32.Parse and Single.Parse instead of Int32Converter
and SingleConverter.
svn path=/trunk/mcs/; revision=5293
* TraceImpl.cs: Setting IndentLevel, IndentSize should change the
corresponding properties on all current TraceListeners.
Also, to answer the FIXME message: Yes, the properties in TraceListener
need to be [ThreadStatic] as well.
* TraceListenerCollection.cs: When adding a TraceListener, the TraceListener
should have its properties set to the current TraceImpl property values.
* TraceListener.cs: Make indentSize, lndentLevel [ThreadStatic].
svn path=/trunk/mcs/; revision=5291
* merged assign.cs, attribute.cs, enum.cs and namespace.cs from mcs/mcs, to resync
* namespace.cs needed some fixing, because CSharpParser isn�t available
svn path=/trunk/mcs/; revision=5287
* oops merged expression.cs from mcs/mcs is breaking my make
* driver.cs, assemblyinfo.cs wasn�t ready for prime time (offending lines were commented out)
svn path=/trunk/mcs/; revision=5285
* cs-parser.jay (enum_member_declaration): Pass in the attributes
attached.
* enum.cs (AddEnumMember): Add support to store the attributes associated
with each member too.
* attribute.cs (CheckAttribute, ApplyAttributes): Update to handle
field builders too - this takes care of the enum member case.
svn path=/trunk/mcs/; revision=5271
this patch in the first place ;-)
* typemanager.cs (MethodFlags): returns the method flags
(Obsolete/ShouldIgnore) that control warning emission and whether
the invocation should be made, or ignored.
* expression.cs (Invocation.Emit): Remove previous hack, we should
not do this on matching a base type, we should do this based on an attribute
Only emit calls to System.Diagnostics.Debug and
System.Diagnostics.Trace if the TRACE and DEBUG defines are passed
on the command line.
svn path=/trunk/mcs/; revision=5266
* RadioButton.cs: mono-stylized and some little fixes.
* TextBox.cs: mono-stylized.
(MaxLength): fixed typo.
(AddAttributesToRender): don't render the text between the tags for
SingleLine, use value attribute for it. Don't render the text for
Password.
(OnPreRender): don't throw exception and call base.OnPreRender.
(Render): for MultiLine, render the text between the opening and
closing tags encoded as HTML.
svn path=/trunk/mcs/; revision=5263
* ImageButton.cs:
(AddAttributesToRender): fixer another stack overflow.
* WebControl.cs:
(TagName): modified to use TagKey instead of tagKey as the property
can be overriden.
svn path=/trunk/mcs/; revision=5258
* System.Web.UI/Page.cs:
(Validators): if the collection is null, create one.
(GetPostBackEventReference 2): don't throw exception.
(GetPostBackClientEvent): return a string with containing the method
name, the control name and the argument.
* System.Web.UI.WebControls/LinkButton.cs: mono-stylized.
(AddParsedSubObject):
(RenderControls): little fixes.
* System.Web.UI.WebControls/WebControl.cs:
(AddAttributesToRender): fixed usage of IEnumerator.
svn path=/trunk/mcs/; revision=5256
* daemon.c:
* daemon-messages.c: Handle SIGPIPE in a non-stupid way in the
daemon, if MSG_NOSIGNAL isn't available. Thanks to Jaroslaw
Kowalski <[email protected]> for pointing out the bogosity.
svn path=/trunk/mono/; revision=5255
* System.Web.UI/Page.cs: SetPage is now called SetDefaults and also
sets a default ID for controls that don't have one yet.
* System.Web.UI.WebControls/Literal.cs: beautified.
svn path=/trunk/mcs/; revision=5252
* configure.in: added checks for MSG_NOSIGNAL
2002-06-10 Jaroslaw Kowalski <[email protected]>
* sockets.c, daemon-messages.c: Prevent SIGPIPE from being raised
when writing to a closed socket.
svn path=/trunk/mono/; revision=5251
* Label.cs: beautified and fixed a couple of 'classic' bugs.
* WebControl.cs: use Span as default tag when no other provided in
constructor. That is what MS renders.
svn path=/trunk/mcs/; revision=5249
* ConvertTest.cs: Punt bug in DateTime.Parse() over to that test.
* DateTimeTest.cs: Add test for date format of yyyy-mm-dd which mono
doesn't handle automagically like ms.net does. This smells like a
LAMESPEC, however.
svn path=/trunk/mcs/; revision=5248
* Marshal.c: stubbed out all the methods and filled in some
implementation.
* BINDPTR.cs, ComMemberType.cs, DESCKIND.cs, DISPPARAMS.cs,
EXCEPINFO.cs, INVOKEKIND.cs, TYPEKIND.cs, UCOMTypeInfo.cs,
UCOMTypeLib.cs: enums, interfaces and structs needed in Marshal class.
svn path=/trunk/mcs/; revision=5245
* System.Web.UI/Page.cs:
(GetPostBackClient):
(RegisterRequiresPostBack): don't throw NotImplementedException to
keep going.
(ProcessRequest): set the current page as the Page property for *all*
the controls, not just the direct children of the page.
* System.Web.UI.WebControls/Button.cs:
(AddAttributesToRender): fixed (classic) stack overflow.
* System.Web.UI.WebControls/CheckBox.cs: mono-stylized.
(AutoPostBack): fixed stack overflow.
(Render): fixed alignment issues. Also set the For attribute always
for the label.
svn path=/trunk/mcs/; revision=5239
* checked in for Stefan Warnke ([email protected])
* UICuesEventArgs.cs
* UpDownBase.cs
* Just stubbs
* New files, work in progress, needs cleanup and mono style
svn path=/trunk/mcs/; revision=5235
* System.Web.Caching/CacheDependency.cs: fixed a couple of typos and
don't throw NotImplementedException in constructors.
* System.Web.UI/Control.cs:
(MapPathSecure): until security is implemented, return the same path
received as argument.
(RenderControl): call OnPreRender before rendering the control. So
AdRotator can read its configuration file.Is there any other place
where this should be done?
* System.Web.UI/HtmlTextWriter.cs:
(AddAttribute): fixed. Now it really stores attributes.
(RenderBeginTag): fixed a couple of bugs (little ones but hard to find).
* System.Web.UI.WebControls/AdRotator.cs: GetData does not work as it
should, but now it returns useful data (only the first ad in the file).
Set the NavigateUrl property in the hyperlink if available.
* System.Web.UI.WebControls/HyperLink.cs: fixed constructor and a
couple of stack overflows.
* System.Web.UI.WebControls/Image.cs: added an attribute and fixed
stack overflow.
* System.Web.UI.WebControls/WebControl.cs:
(RenderBeginTag): fixed.
(TagName): don't call Enum.IsDefined twice.
svn path=/trunk/mcs/; revision=5230
* StringReaderTest.cs: Regression test for a bug that we had were
ReadLine() was not returning null when the string ended with newline.
svn path=/trunk/mcs/; revision=5227
* reflection.h, reflection.c: mono_image_get_memberref_token()
takes a type instead of a class, now. Added
mono_image_get_array_token() to create tokens for the special
multi-dim array methods.
svn path=/trunk/mono/; revision=5223
* DateTimeTest.cs: Remove RunTest override and put culture manipulation
in SetUp and TearDown like the other tests.
* TimeZoneTest.cs: Same.
svn path=/trunk/mcs/; revision=5218
* Convert.cs (ToType): Added null field in conversionTable to avoid
IndexOutOfRangeException. Changed what exceptions we throw to match
the spec.
svn path=/trunk/mcs/; revision=5211
* Int64.cs (Parse): Added unique strings to the messages where we throw
a FormatException. Needed these to debug, so just left them in since
they might be useful later. Fixed Currency parsing where we weren't
looking at CurrencyDecimalSeparator, etc.
svn path=/trunk/mcs/; revision=5204
* Int64Test.cs: Set the culture to en-US for testing.
* MathTest.cs: mono is more precise in Log2, so change test to compare
values within a slightly larger margin of error.
svn path=/trunk/mcs/; revision=5202
* XmlSchemaReader: A Wrapper class around XmlReader with customized
methods to suit reading a schema.
* General: Implemented Read() method for the schema. There are only
a few minor bugs remaining.
svn path=/trunk/mcs/; revision=5200
* interface.cs (Interface.PopulateIndexer): Add the indexer's
PropertyBuilder to the `property_builders' list.
* expression.cs (Indexers.GetIndexersForTypeOrInterface): New private method.
(Indexers.GetIndexersForType): Call GetIndexersForTypeOrInterface() on the
`lookup_type' and all its interfaces. Unfortunately, Type.FindMembers() won't
find any indexers which are inherited from an interface.
svn path=/trunk/mcs/; revision=5199
* XmlConstruct.cs : New Internal class with Helper methods for
Checking XmlConstructs
* XmlConvert.cs: Implemented most of the methods
svn path=/trunk/mcs/; revision=5198
* DecimalTest.cs: More culture indepenence. Fixes the problems we were
having with tests failing against MS.NET.
* Int64Test.cs: Same plus some formatting fixes.
* RandomTest.cs: Split Assert into two to figure out which one part is
failing.
svn path=/trunk/mcs/; revision=5197
* System.Web.UI/ControlCollection.cs:
(AddAt): if index is -1 behave as a plain Add.
* System.Web.UI.HtmlControls/HtmlSelect.cs:
(RenderAttributes): new -> override and fixes stack overflow.
(RenderChildren): only 1 option can be selected at any given time
except when Multiple property is true.
(Multiple): the attribute value is either "true" or "false", not
"multiple".
* System.Web.UI.HtmlControls/HtmlTable.cs:
(Add):
(AddAt): allow HtmlTableRow as children, not HtmlTableCell.
* System.Web.UI.HtmlControls/HtmlTableCell.cs:
(RenderEndTag): new -> override.
* System.Web.UI.HtmlControls/HtmlTableRow.cs:
(RenderChildren): fixed another stack overflow.
(RenderEndTag): new -> override.
* System.Web.UI.HtmlControls/HtmlTextArea.cs:
(RenderAttributes): new -> override.
svn path=/trunk/mcs/; revision=5193
* debug.c (mono_debug_open_image): For MONO_DEBUG_FORMAT_DWARF2_PLUS,
the `%s-debug.s' file is in the same directory than its assembly.
svn path=/trunk/mono/; revision=5190
* const.cs (Const.LookupConstantValue): Convert `Expr' to a literal of
the same type as the constant if necessary. There's also a test-130.cs
for this.
* enum.cs (Enum.ChangeEnumType): Moved to typemanager.cs and made public.
* typemanager.cs (TypeManager.ChangeType): Previously known as
Enum.ChangeEnumType().
svn path=/trunk/mcs/; revision=5189
if yy pattern then year values >= 30 are in 20th century
rfc1123 pattern is always in GMT, therefor useutc must be false
made GetNow() internal static so it can be called from TimeZone.
svn path=/trunk/mcs/; revision=5183
* mono-mutex.c (mono_once): New convenience function for my
previous fix.
* handles.c:
* error.c:
* critical-sections.c:
* threads.c:
* sockets.c:
* semaphores.c:
* processes.c:
* mutexes.c:
* io.c:
* events.c:
* atomic.c: Use mono_once() rather than pthread_once().
2002-06-06 Jeffrey Stedfast <[email protected]>
* handles.c (_wapi_handle_new): pthread_once() is not atomic, so
if multiple threads all try to call _wapi_handle_new() before the
shared data has been initialized, it is possible that we could get
into a condition where shared_init() is being executed and later
threads will pass by pthread_once() due to the fact that it has
already been called and so therefor will attempt to use the shared
data before it has been completely initialized. If we instead use
a standard mutex locking mechanism around shared_init(), we can
avoid the situation entirely. By wrapping the mutex locking in a
check to see if we've already initialized the data, we can even
avoid wasting resources by having to lock/unlock the mutex in any
later calls (the only time we'd have to worry about
locking/unlocking is the initial race to call shared_init() at
startup).
svn path=/trunk/mono/; revision=5177
* class.cs (Accessor): Hold attributes information so we can pass
it along.
* cs-parser.jay (get_accessor_declaration, set_accessor_declaration):
Modify to pass in attributes attached to the methods.
(add_accessor_declaration, remove_accessor_declaration): Ditto.
* attribute.cs (ApplyAttributes, CheckAttribute): Update accordingly
to handle the Accessor kind :-)
* class.cs (Property.Emit, Event.Emit): Apply attributes to the accessors
svn path=/trunk/mcs/; revision=5176
* enum.cs (Enum.LookupEnumValue): Don't report an error if the
name can't be found in the `defined_names' - the caller will do a
MemberLookup in this case and thus find methods in System.Enum
such as Enum.IsDefined().
svn path=/trunk/mcs/; revision=5172
* Enum.cs (IsDefined): `value' may be of the enum's type itself, it
doesn't necessarily need to be of the enum's underlying type.
svn path=/trunk/mcs/; revision=5170
* enum.cs (Enum.ChangeEnumType): This is a custom version of
Convert.ChangeType() which works with TypeBuilder created types.
(Enum.LookupEnumValue, Enum.Define): Use it here.
* class.cs (TypeContainer.RegisterRequiredImplementations): Added
`TypeBuilder.BaseType != null' check.
(TypeContainer.FindMembers): Only lookup parent members if we
actually have a parent.
(Method.EmitDestructor): Added `ec.ContainerType.BaseType != null' check.
(ConstructorInitializer.Resolve): Likewise.
* interface.cs (Interface.FindMembers): Added
`TypeBuilder.BaseType != null' check.
* rootcontext.cs (RootContext.ResolveCore): Added
"System.Runtime.CompilerServices.IndexerNameAttribute" to
classes_second_stage.
* typemanager.cs (TypeManager.InitCoreTypes): Don't initialize
debug_type and trace_type when compiling with --nostdlib.
svn path=/trunk/mcs/; revision=5169
* class.cs (TypeContainer): Added `have_nonstatic_fields' field.
(AddField): Set it to true when adding a non-static field.
(DefineType): Use `have_nonstatic_fields' to find out whether we
have non-static fields, not `Fields != null'.
svn path=/trunk/mcs/; revision=5162
* reflection.c (mono_image_get_type_info): Only add a class layout entry
if we actually have a `tb->class_size' (ie. it's not UnspecifiedTypeSize).
svn path=/trunk/mono/; revision=5161
* TypeBuilder.cs (TypeBuilder): Added `PackingSize packing_size' and
`int type_size' fields to the constructor.
(DefineNestedType): Pass packing_size and type_size to the constructor.
* ModuleBuilder.cs (DefineType): Pass the packing_size and type_size
fields to the TypeBuilder's constructor.
svn path=/trunk/mcs/; revision=5160
* TypeBuilder.cs (DefineNestedType): There is no overload for this
method which takes 5 args in the specs, removed it.
svn path=/trunk/mcs/; revision=5158
* HtmlInputHidden.cs: fixed constructor.
* HtmlInputRadioButton.cs:
(RenderAttributes): fixed stack overflow.
(Name):
(RenderedName): new -> override.
(Value): new property.
* HtmlInputText.cs:
(RenderAttributes): fixed the same kind of stack overflow and make
string comparison case insensitive.
svn path=/trunk/mcs/; revision=5155
* cil-coff.h, icall.c, image.c, reflection.c, reflection.h:
rewrote the PE/COFF writing code (our programs are understood by the
ms runtime, now).
svn path=/trunk/mono/; revision=5148
* HtmlForm.cs: fixed name of Enctype property and render enctype
enctype attribute.
* HtmlInputControl.cs: tag type is "input", not "type".
svn path=/trunk/mcs/; revision=5145
* System.Web.UI/Page.cs: for each child control to render, assign
Control.Page. Probably also needed in HtmlContainerControl derived
classes.
* System.Web.UI.HtmlControls/HtmlControl.cs: Render contents moved to
new RenderBeginTag method, defined in MS docs.
* System.Web.UI.HtmlControls/HtmlForm.cs: Render output when no IE
browser.
* System.Web.UI.HtmlControls/HtmlInputButton.cs: added constructor
without arguments. Xsp used it, though now it always use the other
.ctor.
* System.Web.UI.HtmlControls/HtmlInputControl.cs: cosmetic changes and
implemented set_Name.
svn path=/trunk/mcs/; revision=5135
* System.Web.UI/AttributeCollection.cs: don't need a Hastable. StateBag
now works fine and takes care of the details.
* System.Web.UI/Control.cs: added HasChildren property.
* System.Web.UI/StateBag.cs: fixed a couple of nasty bugs.
* System.Web.UI.HtmlControls/HtmlButton.cs: RenderAttributes is an
override, not new.
* System.Web.UI.HtmlControls/HtmlContainerControl.cs: use the new
Render method in HtmlControl.
* System.Web.UI.HtmlControls/HtmlControl.cs: added Render method to
render the tag and its attributes. Works for container and
non-containers.
* System.Web.UI.HtmlControls/HtmlImage.cs: RenderAttributes don't need
to be new. Implemented Height property.
svn path=/trunk/mcs/; revision=5130
* System.Web.build: added /debug flag. I wanna see line numbers in
exceptions thrown.
* System.Web.UI/Page.cs: run OnInit, OnLoad y PreRender before
rendering the page. Invoke Page_Init and/or Page_Load if the user
supplied them (though this should depend on AutoEventWireUp attribute
of Page directive)
* System.Web.UI.HtmlControls/HtmlContainerControl.cs: some formatting
and use HttpUtility.Encode instead of Page.Server to encode InnerText.
svn path=/trunk/mcs/; revision=5126
`/mcs/class/System/System.Diagnostics'.
I didn't know all the information for all the classes (e.g. % complete,
current maintainer), so this list isn't complete, but it should be easier to
update this information now that it's present.
svn path=/trunk/mono/; revision=5121
* copied methods MakeName and CheckDef from mcs\cs-parser.jay to GenericParser.cs
where they are inherited by mb-parser.jay/cs
* put some code on the Module rule in mb-parser.jay to at least generate a class in the assembly,
if I jump over the entry-point check code, while debugging
svn path=/trunk/mcs/; revision=5119
* System.Web.UI/Control.cs: don't throw exception in ControlID. By now,
it returns ID.
* System.Web.UI/Page.cs:
(ProcessRequest): implemented.
* System.Web.UI.HtmlControls/HtmlAnchor.cs:
(RenderAttributes): new -> override and fixed little bug that made
it cause an stack overflow.
* System.Web.UI.HtmlControls/HtmlContainerControl.cs: reformatted and
added tag and its attributes rendering.
* System.Web.UI.HtmlControls/HtmlGenericControl.cs: removed TagName,
which is already in HtmlControl.
* System.Web.UI.HtmlControls/HtmlTable.cs:
(RenderEndTag): new -> override.
svn path=/trunk/mcs/; revision=5117
* System.Web/HttpRequest.cs: implemented Browser property.
* System.Web.UI/Page.cs: finished stubbing out. Implemented some
methods.
* System.Web.SessionState/HttpSessionState.cs:
* System.Web.SessionState/SessionStateModule.cs: new files with some
implementation and the rest stubbed.
svn path=/trunk/mcs/; revision=5116
* Double.cs (Parse): Recognize the group separator string, but still we
don't check the format for the proper number of digits between
separators. Also throw OverflowException when we get Pos or Neg
Infinity from runtime.
svn path=/trunk/mcs/; revision=5109
* System.Web/HttpBrowserCapabilities.cs: stubbed out.
* System.Web.Configuration/HttpCapabilitiesBase.cs: New file.
* System.Web.Security/DefaultAuthenticationEventArgs.cs: New file.
* System.Web.SessionState/IReadOnlySessionState.cs: New file.
* System.Web.SessionState/IRequiresSessionState.cs: New file.
* System.Web.SessionState/SessionStateMode.cs: New file.
* System.Web.UI/Page.cs:
(FileDependencies): now is public public.
(EnableViewStateMAC): uncommented and made protected.
(GetTypeHashCode): added method.
* System.Web.UI.HtmlControls/HtmlForm.cs:
(RenderAttributes): changed new by override.
(Name): allow setting the property.
* System.Web.UI.WebControls/WebControl.cs: added attributes
PersistChildrenAttribute and ParseChildrenAttribute.
* System.Web.Configuration/ChangeLog:
* System.Web.Configuration/HttpCapabilitiesBase.cs:
* System.Web.Security/ChangeLog:
* System.Web.Security/DefaultAuthenticationEventArgs.cs:
* System.Web.SessionState/ChangeLog:
* System.Web.SessionState/IReadOnlySessionState.cs:
* System.Web.SessionState/IRequiresSessionState.cs:
* System.Web.SessionState/SessionStateMode.cs: new files.
Now we are able to compile some files generated by xsp with our
System.Web classes.
svn path=/trunk/mcs/; revision=5102
* Convert.cs (ToInt16): use Convert.ToInt16 (int) instead of a direct
cast from an int so that we throw OverFlowException correctly.
(ToInt64): Use a new 64bit version of ConvertToBase.
(ConvertToBase): Add checks for overflow (checks Int32.MinValue
and Int32.MaxValue).
(ConvertFromBase64): New 64-bit version of ConvertFromBase.
svn path=/trunk/mcs/; revision=5089
* Convert.cs (DBNull): Point it to DBNull.Value.
(IsDBNull): Instead of checking typecodes, just check to see if
it's the same as the DBNull field.
svn path=/trunk/mcs/; revision=5086
* ConvertTest.cs: Use en-US culture since that's all we support in our
corlib right now. Change constants accordingly. Also added a bunch of
try-catch blocks to show which Assert is failing.
svn path=/trunk/mcs/; revision=5085
Char.cs (Parse): Simplify the Exception handling.
* Convert.cs (ToDecimal): Remove call to Math.Round () when
converting from a float.
svn path=/trunk/mcs/; revision=5083
* libgda.cs: added new libgda API functions.
* OleDbConnection.cs (Provider): implemented.
(BeginTransaction): made it overload IDbConnection methods.
(ChangeDatabase): new stub, needs some work on libgda for being
implemented.
(Clone): new stub.
(Close): implemented.
(CreateCommand): implemented.
(GetOleDbSchemaTable): new stub, until I understand what to do here.
(Open): implemented basic stuff, which is just supporting connection
strings that represent a GDA data source name. More to come.
(InfoMessage, StateChange): added events.
* TestOleDb.cs: test program for System.Data.OleDb.
svn path=/trunk/mcs/; revision=5081
* corlib_test.build: Change the order of the builds. Just makes it a
bit faster for my testing since I need the linux dll.
svn path=/trunk/mcs/; revision=5080
* Makefile.am, mono-config.c, mono-config.h: configuration file
support routines.
* loader.c, loader.h: make Dll mapping configurable at runtime in the
config file. Export methods to insert and lookup mappings.
svn path=/trunk/mono/; revision=5042
* debug.c (mono_debug_address_from_il_offset): New public function.
(mono_debug_add_method): Improved local variable info: correctly handle
variables in registers and their start/end scopes.
svn path=/trunk/mono/; revision=5039
* codegen.cs (InitMonoSymbolWriter): Added `string[] args' argument
to take command line arguments. Use reflection to call the new
custom `Initialize' function on the symbol writer and pass it the
command line arguments.
* driver.cs (--debug-args): New command line argument to pass command
line arguments to the symbol writer.
svn path=/trunk/mcs/; revision=5037
* IMonoSymbolWriter (IMonoSymbolWriter): Added custom `Initialize' method.
* MonoSymbolWriter.cs (Initialize): The ISymbolWriter's `Initialize' method
is no longer supported and throws an exception.
(Initialize (string, string[])): New custom initialization function.
* MonoDwarfFileWriter.cs (DwarfFileWriter): Added `string[] args' argument
to the constructor to pass command line arguments.
* gdb-csharp-support.patch: Updated for GDB 5.2.
svn path=/trunk/mcs/; revision=5036
* ModuleBuilder.cs (ModuleBuilder): The constructor now get's the AssemblyBuilder's
`methods' array as third argument.
(OpenMethod): Use this array to get the method builder rather than using an
interncall for it.
(get_method_builder): Removed this interncall.
svn path=/trunk/mcs/; revision=5031
* AssemblyBuilder.cs (methods): Made this internal and don't
initialize it. It will be initialized by the ModuleBuilder's
GetSymbolWriter() method.
(get_next_table_index): Only store the method in the `methods'
array if it's not null.
* ModuleBuilder.cs (GetSymbolWriter): Initialize the AssemblyBuilder's
`methods' field if necessary and pass it as third argument to the
symbol writer's constructor.
svn path=/trunk/mcs/; revision=5030
* debug-dwarf2.c (dwarf2_write_string): Use "0x%lx" as fprintf() format,
not "%p" which seems to be broken on Windows/mingw32.
svn path=/trunk/mono/; revision=5029
* doc/ado-net: update the ado-net web page on go-mono.com
input parameters support, beginnings of Mono.Data.MySQL
and System.Data.OleDb, updated the sample source code,
and output from a PostgresTest
svn path=/trunk/mono/; revision=5024
* System.Data.SqlClient/SqlConnection.cs: modifed -
start to implement the interfaces properly and
properly doing a Close(), Dispose(), and
releasing resources
* Test/SqlSharpCli.cs: modified -
add support for MySQL in Mono.Data.MySql
and OleDb support in System.Data.OleDb. However,
the OleDb support is commented right now.
When the program starts up, a shorter help menu should
display the most important commands: help and quit
svn path=/trunk/mcs/; revision=5023
* Mono.Data.MySql.build: modified
need to copy Mono.Data.MySql.dll to mcs/class/System.Data/Test
so the SqlSharpCli test program can use MySql too
svn path=/trunk/mcs/; revision=5022
* invoke.cs: lookup P/Invoke method address only when needed.
Thu May 30 14:14:16 CEST 2002 Paolo Molaro <[email protected]>
* interp.c: lookup P/Invoke method addr only when needed.
Thu May 30 14:15:02 CEST 2002 Paolo Molaro <[email protected]>
* metadata.c, metadata.h: added mono_metadata_implmap_from_method()
to lookup the implmap row for a P/Invoke method.
* loader.c: added mono_lookup_pinvoke_call(): we only lookup a
P/Invoke method from the runtime on an as needed basis.
svn path=/trunk/mono/; revision=5020
* Test/TestMySqlInsert.cs: added test
to do an SQL INSERT to insert a row into table.
Works on cygwin compiled using mcs and mono and
runs on mint, but it fails running on mono.
* Mono.Data.MySql/MySqlCommand.cs
* Mono.Data.MySql/TODOAttribute.cs
* Mono.Data.MySql/MySqlConnection.cs: added
* list: added
so can build with mcs/mono on linux
I only tested it on Cygwin though.
To work on linux, the library name in the pinvokes
in MySql.cs will need to be changed.
* Mono.Data.MySql.build: modified
exclude files from build. also copy Mono.Data.MySql.dll
to Mono.Data.MySql so you can build and run Test.cs
* Mono.Data.MySql/MySql.cs: modified
tweaks to compile under mcs/mono and run under mint or mono.
Runs under mint, but not mono. Had to comment out
mysql_thread_begin/mysql_thread_end functions because they refused
to load in mono. Until this is fixed, a memory leak will occur.
Can not retrieve field data from MySQL because the PtrToStructure()
needs to be implemented in System.Runtime.InteropServices.Marshal class.
However, this will be very complicated to do. So, we connect to
MySQL and execute SQL Commands, but we can not do Queries yet.
* Mono.Data.MySql/Test.cs: modified
tweaks to test C# bindings with compiling mcs/mono and
running on mint and mono. Runs on mint, but not mono.
svn path=/trunk/mcs/; revision=5018
* libgda.cs: added static constructor.
(GdaClient): new static property to get the underlying GdaClient
object.
* OleDbConnection.cs: removed GDA initialization, which belongs to
the static 'libgda' class.
svn path=/trunk/mcs/; revision=5011
* assign.cs (DoResolve): Forgot to do the implicit conversion to
the target type for indexers and properties. Thanks to Joe for
catching this.
svn path=/trunk/mcs/; revision=5007
* DecimalTest.cs: Use AssertEquals to get nice error report, and mark
each one with a unique message string so we know which one failed.
svn path=/trunk/mcs/; revision=5003
Check in for Paul Osman <[email protected]>
* Menu.cs
* Menu.MenuItemCollection.cs
* MenuItem.cs
* MessageBox.cs
* MonthCalendar.cs
* Stubbed and commented out
* MonthCalendar.cs has bad extra byte from old skeleton, need new corrected version.
* MonthCalendar.HitTestInfo.cs needs to be incorporated into MonthCalendar.
* Menu.MenuItemCollection.cs needs to be incorporated into Menu.cs.
svn path=/trunk/mcs/; revision=4997
Check in for Paul Osman <[email protected]>
* NumericUpDown.cs
* OpacityConverter.cs
* OpenFileDialog.cs
* OSFeature.cs
* PageSetupDialog.cs
* PaintEventArgs.cs
* MonthCalendar.HitTestInfo.cs
* MouseEventArgs.cs
* NativeWindow.cs
* Stubbed and commented out
* NativeWindow.cs, MonthCalendar.HitTestInfo.cs, MouseEventArgs.cs,
* have bad extra byte from old skeleton, need new corrected version.
* MonthCalendar.HitTestInfo.cs needs to be incorporated into MonthCalendar.
svn path=/trunk/mcs/; revision=4996
* Mono.Data.MySql
* Mono.Data.MySql/Mono.Data.MySql: add directories
for the Mono.Data.MySql assembly and namespace. This
will contain the MySql .NET Data Provider which will use
C# bindings to libMySQL
* Mono.Data.MySql/Test.cs: added file to
test the C# bindings to MySQL
* Mono.Data.MySql/MySql.cs
* Mono.Data.MySql/Field.cs: added files
for the beginnings of C# bindings to MySQL
* Mono.Data.MySql/makefile: added file
to build the MySQL C# bindings on csc/Microsoft.NET
These C# bindings to the MySQL libMySQL.dll were created by
Brad Merrill <[email protected]>
and can be downloaded from
http://www.cybercom.net/~zbrad/DotNet/MySql/
and put into the Mono Class Library under the X11/MIT License
with Brad Merril's permission.
svn path=/trunk/mcs/; revision=4983
* XmlDocumentNavigator.cs: Added file to directory.
* XmlNode.cs (CreateNavigator): Implemented.
(InnerText): Implemented.
* XmlDocument.cs (NamespaceURI, Prefix): Return String.Empty instead of
throwing exception.
(Load(XmlReader)): Allow for namespace qualified attributes.
* XmlElement.cs: Implemented GetAttribute(string, string) and both
GetAttributeNode overloads.
(SetAttributeNode(XmlAttribute)): Implemented.
* XmlNamedNodeMap.cs: Fixed copy/paste bugs in GetNamedItem(string, string)
and RemoveNamedItem(string, string).
* XmlLinkedNode.cs (PreviousSibling): Implemented.
* XmlTextReader.cs: Added code to maintain the order of attributes as
they're parsed. XML doesn't require this but Microsoft's parser does it and
matching them makes testing easier so now we have it, too.
In Test:
* XPathNavigatorTests.cs: Added file to directory.
* AllTests.cs: Added XPathNavigatorTests to suite.
* XmlTextReaderTests.cs: Added test to make sure attributes are ordered
like Microsoft's parser does it.
svn path=/trunk/mcs/; revision=4971
* expression.cs (Invocation.Emit): Only emit calls to
System.Diagnostics.Debug and System.Diagnostics.Trace if the
TRACE and DEBUG defines are passed on the command line.
* rootcontext.cs: Global settings for tracing and debugging.
* cs-tokenizer.cs (define): New utility function to track
defines. Set the global settings for TRACE and DEBUG if found.
svn path=/trunk/mcs/; revision=4966
* jit.c (mono_cfg_new): reserve additional space to store ESP when
calling finally handlers.
* exception.c (arch_get_call_finally): save ESP before calling
finally handler.
svn path=/trunk/mono/; revision=4964
* ArrayList.cs (LastIndexOf): Return -1 if searching for null, also
fix check of parameters sent to make sure we don't search beyond the
beginning of the list.
(ListWrapper): Throw exception if called with null.
We now pass all unit tests.
svn path=/trunk/mcs/; revision=4962
* System.Data.SqlClient/SqlCommand.cs: typo
should be CommandBehavior.KeyInfo
* Test/SqlSharpCli.cs: refactored and added a few more
features.
svn path=/trunk/mcs/; revision=4961
* helpers.c (map_arg_type): move some generic helper function into
this file.
* mono.c (usage): new option --breakonex
* exception.c (arch_exc_is_caught): only return FALSE if really
unhandled.
* jit.c (mono_thread_abort): free jit_tls
svn path=/trunk/mono/; revision=4960
* interface.cs (Populate*): Pass in the TypeContainer as well as
the DeclSpace as parameters so that we can create EmitContexts and
then use that to apply attributes etc.
(PopulateMethod, PopulateEvent, PopulateProperty)
(PopulateIndexer): Apply attributes everywhere.
* attribute.cs (CheckAttribute): Include InterfaceMethod, InterfaceEvent
etc.
(ApplyAttributes): Update accordingly.
We now apply interface attributes for all members too.
svn path=/trunk/mcs/; revision=4950
* System.Data/DataRow.cs
* System.Data.Common/DbDataAdapter.cs: fix to
get Test/TestSqlDataAdapter.cs to work again
* Test/TestSqlDataAdapter.cs: removed comment
about SqlDataReader:NextResult() not being implemented; it
bas been implemented
svn path=/trunk/mcs/; revision=4947
* System.Data/DataRow.cs: modified
support setting of DBNull.Value
using the Item indexer this[DataColumn]
* System.Data.SqlClient/SqlCommand.cs: modified
tweaks to show TODO's for other CommandBehavior.
Set AllowDBNull column to true for IsKey row
in schema DataTable.
* System.Data.SqlClient/SqlConnection.cs: modified
if transaction is in progress when a Close() is called,
do a transaction Rollback.
svn path=/trunk/mcs/; revision=4946
* Test/SqlSharpCli.cs: added file
My new toy. SQL# is a command-line tool to enter
SQL commands and queries using Mono System.Data.
It also serves as a test for Mono System.Data.
* System.Data.SqlClient/SqlCommand.cs: modified
- ExecuteNonQuery(), ExecuteScalar(), and ExecuteReader()
should handle the results from SQL Commands and Queries.
- Internal class SqlResult should not create schema Table
for the result from a SQL Command. Also, set the RecordsRetrieved
property for SqlDataReader.
- Closing the SqlDataReader should Close() the SqlConnection for
a CommandBehavior.CloseConnection.
- Set defaults for SqlResult
* System.Data.SqlClient/SqlConnection.cs: modified -
when SqlDataReader is Close()
should Close() the SqlConnection for
a CommandBehavior.CloseConnection. Changed internal Property
from OpenReader get/set to IsReaderOpen get and created
internal methods OpenReader()/CloseReader() for SqlCommand to call.
SqlConnection needs to be prevented from doing while SqlDataReader
is being used.
* System.Data.SqlClient/SqlDataReader.cs: modified -
call SqlCommand's OpenReader() internal method. get
RecordsRetrieved from SqlResult. set/reset default
values for SqlDataReader.
* Test/PostgresTest.cs
* Test/TestExecuteScalar.cs
* Test/TestSqlDataReader.cs: modified
for the Execute...() methods in SqlCommand
to test SQL Queries and Commands
* Test/System.Data_test.build: modified
exclude new file Test/SqlSharpCli.cs from
test build
svn path=/trunk/mcs/; revision=4944
Wooooohooo!
2002-05-26 Miguel de Icaza <[email protected]>
* class.cs (Indexer.Define); Correctly check if we are explicit
implementation (instead of checking the Name for a ".", we
directly look up if the InterfaceType was specified).
Delay the creation of the PropertyBuilder.
Only create the PropertyBuilder if we are not an explicit
interface implementation. This means that explicit interface
implementation members do not participate in regular function
lookups, and hence fixes another major ambiguity problem in
overload resolution (that was the visible effect).
(DefineMethod): Return whether we are doing an interface
implementation.
svn path=/trunk/mcs/; revision=4941
* typemanager.cs: Temporary hack until we get attributes in
interfaces (Ravi is working on that) and we get IndexerName
support in interfaces.
* interface.cs: Register the indexers as properties.
svn path=/trunk/mcs/; revision=4940
* attribute.cs (Attribute.Resolve): Catch the error, and emit a
warning, I have verified that this is a bug in the .NET runtime
(JavaScript suffers of the same problem).
svn path=/trunk/mcs/; revision=4938
* typemanager.cs (MemberLookup): When looking up members for
interfaces, the parent of an interface is the implicit
System.Object (so we succeed in searches of Object methods in an
interface method invocation. Example: IEnumerable x; x.ToString
())
svn path=/trunk/mcs/; revision=4937
* typemanager.cs (MemberLookup); use the new GetInterfaces
method.
(GetInterfaces): The code used to lookup interfaces for a type is
used in more than one place, factor it here.
svn path=/trunk/mcs/; revision=4932
* attribute.cs (ApplyAttributes): Make this function filter out
the IndexerName attribute (as that attribute in reality is never
applied) and return the string constant for the IndexerName
svn path=/trunk/mcs/; revision=4927
* BUGS.txt: New file to keep track of bugs
* ALL: All classes are initialized exactly as in .NET except
1. inclusion of language attribute in schema
2. ComplexContent's Particle is initialized to null whereas .NET
to some internal implementation. IMO Null is more appropriate
* ALL: Changed the Compile methods to return the count of errors.
* ALL: Complile methods are almost complete. Pass 1453 of 3061 tests.
This number should shoot up if we write a parser to read the
Schema instead of using reflection (which is slower too)
svn path=/trunk/mcs/; revision=4926
handling. Now we should support it (modulo interfaces, which are being
worked on now by Ravi).
2002-05-24 Miguel de Icaza <[email protected]>
* attribute.cs (ApplyAttributes): Make this function filter out
the IndexerName attribute (as that attribute in reality is never
applied) and return the string constant for the IndexerName
attribute.
* class.cs (TypeContainer.Emit): Validate that all the indexers
have the same IndexerName attribute, and if so, set the
DefaultName attribute on the class.
* typemanager.cs: The return value might contain other stuff (not
only methods). For instance, consider a method with an "Item"
property and an Item method.
* class.cs: If there is a problem with the parameter types,
return.
svn path=/trunk/mcs/; revision=4921
* ecore.cs (ImplicitConversionExists): Wrapper function which also
looks at user defined conversion after making a call to
StandardConversionExists - we need this for overload resolution.
* expression.cs : Update accordingly the various method calls.
This fixes 2 bugs filed against implicit user defined conversions
svn path=/trunk/mcs/; revision=4912
* System.Data.Common/DbDataAdapter.cs: remove IDbCommands, except
for get accessors. These should be implemented in derived classes. See
SqlDataAdapter for clues.
* System.Data.SqlClient/SqlDataAdapter.cs: implement IDbDataAdapter
* System.Data.Common/DataAdapter.cs:
* System.Data.Common/DataTableMappingCollection.cs:
* System.Data.Common/DataTableMapping.cs:
* System.Data.Common/DataColumnMappingCollection.cs:
* System.Data.Common/DataColumnMapping.cs:
Properly (I hope!) implement all of the appropriate interfaces
for these classes.
svn path=/trunk/mcs/; revision=4908
* ModuleBuilder.cs (symwriter_define_local): New private variable.
(GetSymbolWriter): Look for a custom version of "DefineLocalVariable"
and store it in `symwriter_define_local'.
(SymWriter_DefineLocalVariable): New internal method to call the
symbol writer's custom DefineLocalVariable() method. It is safe to
call this method if there's no symbol writer.
* LocalBuilder.cs (SetLocalSymInfo): Use the MethodBuilder'snew
SymWriter_DefineLocalVariable().
* MethodBuilder.cs (GetParameters): Implemented.
svn path=/trunk/mcs/; revision=4902
* IMonoSymbolWriter.cs (ISourceMethod): Added `FullName' and `Parameters'.
(ITypeHandle): New interface.
* DwarfFileWriter.cs: Largely reorganized the type writing code. Types are
now represented by ITypeHandle objects which are stored in a per-dwarf-writer
hash table. At the moment, all types still need to be in one compile unit due
to lacking support in gdb - but this new type code here already supports this.
* MonoSymbolWriter.cs: Moved all the subclasses to the top-level and made them
public, cleaned up the code, put everything into one compile unit.
(DefineLocalVariable): Added a version of this function which takes useful args.
svn path=/trunk/mcs/; revision=4900
* System.Data.SqlClient/SqlCommand.cs: include
the BaseColumnName in the schema table. Was missed before.
* System.Data.Common/DbDataAdapter.cs: Use DataTable
mappings so that the DataSet and DataTable are more closely tied.
Get schema information from the DataTable using GetSchemaTable ()
Various other little fixes
* System.Data.Common/DataColumnMappingCollection.cs:
* System.Data.Common/DataTableMapping.cs:
* System.Data.Common/DataTableMappingCollection.cs: Some
implementation, enough to be used by DbDataAdapter.
svn path=/trunk/mcs/; revision=4891
* mono.c: remove generated code from hash when benchmarking/testing
method compilation.
* invoke.cs: special case string ctors.
svn path=/trunk/mono/; revision=4885
* exception.c (arch_handle_exception): Don't G_BREAKPOINT() if we get
an unhandled exception.
* jit.c (mono_thread_abort): G_BREAKPOINT() immediately before the
ExitThread().
svn path=/trunk/mono/; revision=4876
* delegate.c: move the thread pool to metadata/threadpool.c, code
cleanup.
* threadpool.[ch]: impl. a threadpool that can
be used by mint and mono.
svn path=/trunk/mono/; revision=4875
* System.Data.SqlClient/SqlCommand.cs: set
the "ProviderType" to the PostgreSQL type oid
* System.Data.SqlClient/SqlDataReader.cs: fix
for various properties and methods that
return meta data: Item indexers this[name] and this[index],
GetFieldType, GetName, and GetOrdinal. SqlDataAdapter
should work again.
svn path=/trunk/mcs/; revision=4873
* Convert.cs (ConvertFromBase): Added additional test for
checking if the digits are valid. Thanks to Miguel for coming
up with this test.
This fixes bug 25071.
svn path=/trunk/mcs/; revision=4872
* Convert.cs (ConvertToBase): Add new 64bit version.
(BuildConvertedString64): New 64bit version of
BuildConvertedString.
This fixes bug 25068.
svn path=/trunk/mcs/; revision=4870
* Convert.cs (ToType): Rearranged to fit the new layout of
conversionTable.
(conversionTable): Rearranged to fit the layout of the
System.TypeCode enum.
This should fix bug 25075.
svn path=/trunk/mcs/; revision=4867
* System.Data/DataRow.cs: change suggested
by tim: in Item indexer, do an EndEdit()
* System.Data.SqlClient/SqlCommand.cs: more
fixes to SqlResult. After setting each item in
the DataRow, do an AcceptChanges() to commit
the changes in the DataRow. For DataType, use a Type
of System.String since System.Type nor System.Object
seems to work.
* Test/TestSqlDataReader.cs
* Test/PostgresTest.cs: updated to to be on
the way schema table is suppose to work
svn path=/trunk/mcs/; revision=4863
* IMonoSymbolWriter.cs (IMonoSymbolWriter): Added `Sources' and `Methods'
properties.
* MonoDwarfFileWriter.cs (WriteSymbolTable): New public method. Moved the
code that writes the "mono_line_numbers" section here from the LineNumberEngine.
svn path=/trunk/mcs/; revision=4861
* reflection.h (MonoArrayList): New typedef.
(MonoReflectionAssemblyBuilder): Added `table_indexes' and `methods'.
* debug-symfile.c (ves_icall_Debugger_MonoSymbolWriter_method_from_token):
The first argument is now a `MonoReflectionModuleBuilder *', the return
value is a `MonoReflectionModuleBuilder *'. Use the AssemblyBuilder's
`methods' field to get the method builder. The `token' argument is the
unfixed token.
* unicode.c (iconv_get_length, iconv_convert): Silently ignore all
invalid characters instead of g_assert_not_reached()ing. This seems
to be the behaviour of mscorlib.
svn path=/trunk/mono/; revision=4860
* IMonoSymbolWriter.cs (IVariable): Replaced Token with `ISourceMethod Method'.
* MonoSymbolWriter.cs (MonoSymbolWriter): The constructor now has an additional
ModuleBuilder argument.
(OpenMethod): Immediately call the `get_method' interncall to get the MethodBase
from the token, then store the MethodBase instead of the token. The token may
still change during the metadata library's fixup process.
(DoFixups): When the image has been written to disk, call the GetToken () method
on all MethodBuilders and all ConstructorBuilders to get the final metadata tokens.
svn path=/trunk/mcs/; revision=4859
* AssemblyBuilder.cs (methods): New field.
(get_next_table_index): Record all methods and constructors
(table 0x06) in the `methods' array. This is read by the
Mono.CSharp.Debugger.MonoSymbolWriter::get_method interncall to
get the MethodBuilder / ConstructorBuilder back from the token.
* *Builder.cs (get_next_table_index): Added `object obj' argument.
(<constructors>): pass the this pointer to get_next_table_index ().
svn path=/trunk/mcs/; revision=4856
* ArrayList.cs: Made count, capacity and dataArray the first three
fields in the class. They're read by the reflection library.
svn path=/trunk/mcs/; revision=4855
* debug-dwarf2-plus.c (mono_debug_open_assembly_dwarf2_plus): Only run
the assembler if necessary, ie. the assembler file is newer than the
symbol file or the symbol file does not exist.
* debug.c: Added "update_on_exit" argument to recreate the symbol file
when the JIT exists.
svn path=/trunk/mono/; revision=4852
* AssemblerWriterI386.cs: Don't use GNU extensions and produce assembler
output which is free of comments and extra whitespaces so that it's suitable
for `as -f'.
svn path=/trunk/mcs/; revision=4851
* debug-dwarf2.c: Produce assembler code which is free of comments and
extra whitespaces so that it's suitable for `as -f'.
svn path=/trunk/mono/; revision=4850
* debug-dwarf2.c (dwarf2_write_section_end): Removed. This is not needed
and not supported by all assemblers.
(dwarf2_write_2byte): Use ".word" instead of ".2byte" since ".2byte" is a
GNU extension.
* mono.c (--debug): Small fix in the argument parsing.
svn path=/trunk/mono/; revision=4849
* monobitset.c: use our own bit_nth_lsf since the glib one is buggy.
Add more tests. mono_bitset_find_first (set, -1) will work correctly
now.
svn path=/trunk/mono/; revision=4848
* interp.c: fixed finally handling. In trace mode show
exception handling operations and the contents of the stack in the same
line as the executing instruction.
svn path=/trunk/mono/; revision=4847
* Convert.cs (ToByte)
(ToSByte): Fixed bug 25074. Added more bits to ConvertFromBase so
that we won't confuse FormatException with OverflowException.
svn path=/trunk/mcs/; revision=4841
* Convert.cs (ToString): Fixed the ToString methods. Previously I had
mixed up the two code paths, one for converting to a specific base
(this case), another from converting from a foreign base to base10
(used by ToInt16|32|64 (string, int)).
svn path=/trunk/mcs/; revision=4837
* debug.c: Added "dont_assemble" and "dont_precompile" argument for dwarf-plus.
* mono.c: Applied patch from Miguel:
(--debug): This is now a `--debug=[FORMAT]' argument where FORMAT defaults
to dwarf-plus.
svn path=/trunk/mono/; revision=4835
* IMonoSymbolWriter.cs (ISourceMethod): Replaced `MethodInfo MethodInfo' with
`MethodBase MethodBase' and added `Type ReturnType'. We're now correctly
dealing with constructors and not crashing anymore.
svn path=/trunk/mcs/; revision=4834
* debug-symfile.c (mono_debug_find_source_location): New function.
Looks up an IL offset in the line number table and returns the source
location as a string.
svn path=/trunk/mono/; revision=4829
* MonoDwarfFileWriter.cs: Write a special line number table which can be read
in by the metadata library to get line number information in backtraces.
svn path=/trunk/mcs/; revision=4828
* debug.c (mono_debug_source_location_from_address): New function.
(mono_debug_il_offset_from_address): New function.
* exception.c (arch_handle_exception): If we have debugging support, include
information about the source location and IL offset in the stack trace.
svn path=/trunk/mono/; revision=4824
* MathTest.cs:
(TestPow): Add try-catch to determine where we are throwing.
(TestLog): Re-enable failing test
(TestLog2): same although this test still fails on mono. Not
sure what the proper value to use here. It works on MS.NET
svn path=/trunk/mcs/; revision=4817
* debug-private.h (MonoDebugFlags): New enum typedef.
* debug.c (mono_debug_open): Added a few useful arguments. See the manpage
for details.
svn path=/trunk/mono/; revision=4811
* mono.1: Updated to reflect my latest changes and beautified this a bit.
(FIXME: There are still command line argument which aren't documented here.)
svn path=/trunk/mono/; revision=4809
* debug.c (mono_debug_open_file): Renamed to mono_debug_open(), now takes
a `MonoAssembly *' argument instead of a `char *filename' one. Also added
`const char **args' argument.
* mono.c (mono_jit_assembly): Renamed to mono_jit_compile_image(), added
`int verbose' argument and made it public.
(mono_jit_compile_class): New public function, moved the code to compile
all methods in a class here from main().
(--compile): The argument can now also be an image (in `@imagename' format).
Updated documentation for this command line argument.
(--precompile): New command line argument to precompile an image/class/method
before executing the main app. This argument can be given multiple times.
(--break): Renamed the "--debug" command line argument to "--break".
(--debug): New command line argument to specify the debugging format.
(--stabs, --dwarf, --dwarf-plus): Removed, obsoleted by "--debug".
(--debug-args): New command line argument. This is a comma-separated list of
additional arguments for the symbol writer.
(usage): Beautified the help text a bit.
* debug-dwarf2-plus.c (mono_debug_open_assembly_dwarf2_plus): Use the new
public mono_jit_compile_image() function rather than duplication this
functionality here.
svn path=/trunk/mono/; revision=4808
* System.Data.SqlClient/ParmUtil.cs: added file - to
provide utility for conversion of input parameters
* System.Data.SqlClient/PostgresTypes.cs: added file -
moved the PostgreHelper class to here. May eventually
move the internal class PostgresTypes that's inside the
SqlConnection to here as well.
Handling of PostgreSQL <-> .NET types need to be though
out more. Also, the PostgreHelper has a method to convert
from .NET types to a string which can be put into used in
an SQL statement to execute against a PostgreSQL database.
This is the beginnings of parameters support. It currently
only supports input parameters. Still need to do output,
input/output, and return parameters.
* Test/TestSqlParameters.cs: new test to test the input
parameters in System.Data.SqlClient against a
PostgreSQL db.
* System.Data.SqlClient/PostgresLibrary.cs: moved
PostgresHelper class to file PostgresTypes.cs. Also
moved struct PostgresType there too.
* System.Data.SqlClient/SqlCommand.cs: added input
parameters support
* System.Data.SqlClient/SqlParameter.cs: got
SqlParameter to work
* System.Data.SqlClient/SqlParameterCollection.cs: got
SqlParameterCollection to work
* Test/System.Data_test.build: added files to exclude
from test build
* System.Data.SqlClient/SqlConnection.cs: release resources
no longer used
svn path=/trunk/mcs/; revision=4805
* debug-dwarf2-plus.c: This is now working again :-)
* debug.c (mono_debug_open_file): When using MONO_DEBUG_FORMAT_DWARF2_PLUS,
we create two MonoDebugHandles: one for MONO_DEBUG_FORMAT_DWARF2_PLUS and
one for the fallback MONO_DEBUG_FORMAT_DWARF2.
svn path=/trunk/mono/; revision=4802
* jit.c (mono_debug_handle): Removed this global variable.
* debug.c (mono_debug_close): Removed.
(mono_debug_cleanup): New global function.
(mono_debug_add_image): New global function.
(mono_debug_handle_from_class): New global function.
(mono_debug_write_symbols): New global function.
(mono_debug_add_type): Removed `MonoDebugHandle *' argument.
(mono_debug_add_method): Likewise.
svn path=/trunk/mono/; revision=4800
Work around a hard-to-fix bug in GDB and create a single dwarf/stabs
file for all assemblies. Currently, the JIT doesn't put all methods
from a single assembly into a continuous region of memory. We were
previously creating valid DWARF 2 files for this, but unfortunately
GDB's symbol tables get messed up when it reads more than one such file.
* debug-private.h (AssemblyDebugInfo): Moved `f', `producer_name',
`next_idx', `methods', `type_hash', `source_files' and `format'
into the MonoDebugHandle.
* debug.c (mono_debug_get_type): This now operates on the MonoDebugHandle,
not on the AssemblyDebugInfo.
(mono_debug_open_file): Moved some stuff here from mono_debug_open_assembly().
* debug-dwarf2.c (mono_debug_write_assembly_dwarf2): Renamed into
mono_debug_write_dwarf2().
(mono_debug_open_assembly_dwarf2): Removed.
(mono_debug_close_assembly_dwarf2): Removed.
* debug-stabs.c (mono_debug_write_assembly_stabs): Renamed into
mono_debug_write_stabs().
(mono_debug_open_assembly_stabs): Removed.
(mono_debug_close_assembly_stabs).
* debug-dwarf2-plus.c: This is currently broken. :-(
svn path=/trunk/mono/; revision=4796
* debug.h (mono_debug_format): New global variable.
(MonoDebugFormat): Added MONO_DEBUG_FORMAT_NONE.
* debug-private.h (MonoDebugHandle): Added `objfiles' field which is
a whitespace separated list of symbol files.
(AssemblyDebugInfo): Added `objfile' filed which is the name of the
symbol file.
* mono.c (main): Pass the assembly file name to mono_debug_open_file().
* debug.c (mono_debug_make_symbols): Link all symbol files into a big
`<assemblyname>.o' symbol file.
svn path=/trunk/mono/; revision=4792
* debug.c (debug_load_method_lines): Check whether the assembly file
is newer than the IL file and recreate the IL file if necessary.
svn path=/trunk/mono/; revision=4791
* typemanager.cs (InitEnumUnderlyingTypes): New helper function
that splits out the loading of just the core types.
* rootcontext.cs (ResolveCore): Split the struct resolution in
two, so we can load the enumeration underlying types before any
enums are used.
svn path=/trunk/mcs/; revision=4789
* mono.c Updated copyright years.
2002-05-20 Miguel de Icaza <[email protected]>
* interp.c: Updated help display.
svn path=/trunk/mono/; revision=4787
* expression.cs (Is): Bandaid until we fix properly Switch (see
bug #24985 for details).
* typemanager.cs (ImplementsInterface): The hashtable will contain
a null if there are no interfaces implemented.
2002-05-18 Miguel de Icaza <[email protected]>
* cs-parser.jay (indexer_declarator): It is fine to have array
parameters
svn path=/trunk/mcs/; revision=4774
* doc/ado-net: updated page to include C# code snippets using
System.Data. Update status: handle reading NULL values, DataSet/DataAdapter
works, executing/reading multiple results, and stored procedures.
And other tweaks about the providers.
svn path=/trunk/mono/; revision=4771
* TypeBuilder.cs (DefineField): Call the new `create_internal_class'
interncall after adding the first field. This is used when creating
enum types to set `klass->enum_basetype'.
svn path=/trunk/mcs/; revision=4769
* reflection.c (mono_reflection_setup_internal_class): Don't crash
if `tb->parent == NULL'.
(mono_reflection_create_internal_class): New function. This is
called from TypeBuilder.CreateType() and sets `klass->enum_basetype'
for enum types.
* icall.c ("System.Reflection.Emit.TypeBuilder::create_internal_class"):
New interncall.
svn path=/trunk/mono/; revision=4768
* System.Xml: added directory for classes with namespace
System.Xml to go into the System.Data.dll assembly
* System.Xml/XmlDataDocument: added file
for stubbed concrete class XmlDataDocument which
inherits from XmlDocument. Its purpose is to provide
a W3C XML DOM Document for relational data and interacting
with a DataSet
svn path=/trunk/mcs/; revision=4754
* FromBase64Transform.cs (TransformFinalBlock): The return value of
`DoTransform' tells us the number of bytes actually written - if it's
smaller than `res', copy it to a smaller array.
svn path=/trunk/mcs/; revision=4752
* unicode.c (ves_icall_iconv_get_bytes): Actually use the `charCount'
argument to get the length, don't default to the array length.
svn path=/trunk/mono/; revision=4751
* Convert.cs (FromBase64CharArray): Convert the char array using
System.Text.UTF8Encoding, not UnicodeEncoding (which is UTF-16) to
a byte array.
svn path=/trunk/mcs/; revision=4750
* System.Data.SqlClient/SqlCommand.cs: handle CommandTypes
Text, TableDirect, and StoredProcedure
* Test/PostgresTest.cs: changed call to version()
stored procedure to use the CommandType of StoredProcedure
* Test/TestSqlDataReader.cs: test all the CommandTypes
svn path=/trunk/mcs/; revision=4743
* System.Data.build: took out all excluded
files except the ones in the Test directory
because all files compile now. It does not
mean they all work or have implementations
though.
* System.Data/DataRelationCollection.cs
* System.Data/DataTableRelationCollection.cs
* System.Data/InternalDataCollectionBase.cs
* System.Data.Common/DbDataPermission.cs
* System.Data.SqlClient/SqlInfoMessageEventArgs.cs
* System.Data.SqlClient/SqlClientPermission.cs
* System.Data.SqlClient/SqlClientPermissionAttribute.cs: changes
to get all System.Data* files to compile.
* System.Data.SqlClient/SqlCommand.cs: started coding
to prevent SqlConnection and SqlCommand from doing
anyting while fetching data using SqlDataReader. Also,
started coding to undo this prevention once the
SqlDataReader is closed.
* System.Data.SqlClient/SqlConnection.cs: get database server
version. Started coding to prevent connection from
doing anything while fetching data and undo once the reader
is closed. Include events SqlInfoMessage and StateChange.
* System.Data.SqlClient/SqlDataReader.cs: start coding to
prevent connection and command from doing anything while
fetching data, and undo when closed.
* Test/PostgresTest.cs: added test to get ServerVersion
property from SqlConnection
svn path=/trunk/mcs/; revision=4742
* System.Data/DataRow.cs: Try to reduce memory
usage by only creating the original and proposed
arrays as required in BeginEdit, and then destroying
proposed during EndEdit, and original during AcceptChanges.
* System.Data.Common/DbDataAdapter.cs: Make the
startRecord and maxRecords parameters work correctly.
svn path=/trunk/mcs/; revision=4736
* System.Data/DataRow.cs: Move the null check in
ItemArray set to above the Invalid Cast check, so
that we don't get null reference exceptions.
svn path=/trunk/mcs/; revision=4734
* System.Data.SqlClient/PostgresLibrary.cs: handle
data value from database being NULL
* System.Data.SqlClient/SqlCommand.cs: for ExecuteReader,
allow multiple result sets. Added new internal class
SqlResult to pass result set data from SqlCommand
to SqlDataReader.
* System.Data.SqlClient/SqlDataReader.cs: allow
multiple result sets.
* System.Data.SqlClient/SqlConnection.cs: moved
things around. Implement IDisposable.
* Test/TestSqlDataReader.cs: test for execution
of multiple result sets and display the results
of these multiple results sets
* Test/TestSqlDataAdapter.cs: tweaks
svn path=/trunk/mcs/; revision=4733
It still fails to compile it though
2002-05-17 Miguel de Icaza <[email protected]>
* typemanager.cs: (RegisterBuilder): New function used to register
TypeBuilders that implement interfaces. Since
TypeBuilder.GetInterfaces (as usual) does not work with lame
Reflection.Emit.
(AddUserType): register interfaces.
(ImplementsInterface): Use the builder_to_ifaces hash if we are
dealing with TypeBuilder. Also, arrays are showing up as
SymbolTypes, which are not TypeBuilders, but whose GetInterfaces
methods can not be invoked on them!
svn path=/trunk/mcs/; revision=4727
* ecore.cs (ExplicitReferenceConversionExists): Made public.
(ImplicitReferenceConversionExists): Split out from
StandardConversionExists.
* expression.cs (As): We were only implementing one of the three
cases for the as operator. We now implement them all.
(Is): Implement the various other cases for Is as well.
* typemanager.cs (CACHE): New define used to control if we want or
not the FindMembers cache. Seems to have a negative impact on
performance currently
(MemberLookup): Nested types have full acess to
enclosing type members
Remove code that coped with instance/static returns for events, we
now catch this in RealFindMembers.
(RealFindMembers): only perform static lookup if the instance
lookup did not return a type or an event.
svn path=/trunk/mcs/; revision=4724
* System.Data.Common/DbDataAdapter.cs:
- More implementation of Fill methods
- Get rid of isDirty flag, because we can just check
if the table exists
- Do *not* remove DataTables before Filling them
- Implicitly open the connection before doing a Fill
if it does not exist.
* System.Data.SqlClient/SqlDataAdapter.cs:
- Minor fixup
* System.Data/DataTableCollection.cs:
- Add DataSet to internal, undocumented constructor
- When a table is created, set its DataSet property
- Default table name for creation is "Table1" (see .NET)
- Inherit the ArrayList list from InternalDataCollecitonBase
and maintain a hashtable between table names and
DataTables
* System.Data/DataTable.cs:
- Add internal dataSet field. This is used by
DataTableCollection when the DataTable is constructed.
* System.Data/DataSet.cs:
- Pass a reference to the DataSet when constructing the
DataTableCollection.
svn path=/trunk/mcs/; revision=4722
* typemanager.cs (CACHE): New define used to control if we want or
not the FindMembers cache. Seems to have a negative impact on
performance currently
svn path=/trunk/mcs/; revision=4720
* emit-x86.c (enter_method): print method signature
* exception.c (arch_handle_exception): set trace info before we
call handlers.
svn path=/trunk/mono/; revision=4712
* UdpClient.cs and TcpClient.cs: modified disposable routines, added
checks for disposed state.
* UdpClient.cs: commented out GetHashCode and Equals as it's not
overriden in ms.net implementation.
2002-05-17 Jaroslaw Kowalski <[email protected]>
* TcpClient.cs: fixed SetTcpClient so that
TcpListener.AcceptTcpClient works and allows
you to call GetStream() on its result
svn path=/trunk/mcs/; revision=4711
* assign.cs (CompoundAssign): We pass more semantic information
now to Compound Assignments than we did before: now we have all
the information at hand, and now we resolve the target *before* we
do the expression expansion, which allows the "CacheValue" method
to have the effect we intended (before, a [x] += 1 would generate
two differen ArrayAccess expressions from the ElementAccess,
during the resolution process).
(CompoundAssign.DoResolve): Resolve target and original_source here.
svn path=/trunk/mcs/; revision=4710
* expression.cs (ArrayAccess): dropped debugging information.
* typemanager.cs: Small bug fix: I was always returning i_members,
instead of one of i_members or s_members (depending on which had
the content).
svn path=/trunk/mcs/; revision=4709
* TestSqlDataAdapter.cs: Added the foreach loop to iterate through
all of the DataRows in the DataSet table "Table", as the
GetEnumerator method of InternalDataCollectionBase has now been
implemented.
svn path=/trunk/mcs/; revision=4707
* System.Data.Common/DbDataAdapter.cs:
Use table.Rows.Add (itemArray) instead of
table.Rows.Add (thisRow) to provide better
abstraction.
* System.Data/DataRowCollection.cs:
Some implementation of this class.
* System.Data/InternalDataCollectionBase.cs:
Some implementation. Most notably, this now
has an enumerator so we can use foreach (DataRow row in table.Rows)
in the test classes.
* System.Data/DataTable.cs:
Since DataRowCollection now accepts a DataTable in
its internal constructor, we must pass one in.
svn path=/trunk/mcs/; revision=4706
* System.Data_test.build: Remove RunTests from the default build. We
can add this later, but it keeps the build from breaking for now.
* TestSqlDataAdapter.cs: Fix build breaker.
svn path=/trunk/mcs/; revision=4705
* assign.cs (IAssignMethod.CacheTemporaries): New method. This
method is invoked before any code generation takes place, and it
is a mechanism to inform that the expression will be invoked more
than once, and that the method should use temporary values to
avoid having side effects
(Assign.Emit): Call CacheTemporaries in the IAssignMethod.
* ecore.cs (Expression.CacheTemporaries): Provide empty default
implementation.
* expression.cs (Indirection, ArrayAccess): Add support for
CacheTemporaries in these two bad boys.
svn path=/trunk/mcs/; revision=4702
* Test/TestSqlDataAdapter.cs: added new test
for SqlDataAdapter, DataSet, DataTableCollection, DataTable,
DataRowCollection, and DataRow. It tests retrieving data
based on a SQL SELECT query. This test is based on Tim Coleman's
test he sent to me.
svn path=/trunk/mcs/; revision=4701
* ecore.cs (LoadFromPtr): figure out on our own if we need to use
ldobj or ldind_ref.
(StoreFromPtr): Handle stobj as well.
* expression.cs (UnaryMutator): Share more code.
svn path=/trunk/mcs/; revision=4699
* typemanager.cs (FindMembers): Thanks to Paolo for tracking this
down: I was not tracking the Filter function as well, which
was affecting the results of the cache.
svn path=/trunk/mcs/; revision=4698
* System.Data.Common/DbDataAdapter.cs:
Use table.Rows.Add (thisRow) instead of
table.ImportRow (thisRow)
* System.Data/DataRowCollection.cs:
Construct the ArrayList before using it
svn path=/trunk/mcs/; revision=4697
* System.Data/DataTable.cs:
Construct the DataRowCollection in the DataTable
constructor. Otherwise, it's a null reference.
svn path=/trunk/mcs/; revision=4692
* interp.c (ves_exec_method): use data.i instead of data.l in i32
case
(ves_exec_method): set type in I64 <--> I32 conversions
svn path=/trunk/mono/; revision=4691
* StreamWriter.cs: Implement buffering. Also implemented dispose
pattern as recommended by the MS docs. Must call Close() now
to ensure the buffer is flushed.
svn path=/trunk/mcs/; revision=4687
* System.Data.SqlClient/SqlDataReader.cs:
Modify GetValues to use Array.Copy() to copy
the results from fields to values, rather than
an assignment, which results in loss of data.
svn path=/trunk/mcs/; revision=4674
* System.Data/DataRow.cs:
More implementation and documentation. It should
work more like expected, although there is no way
to demonstrate this well yet. DataTable requires
more work.
svn path=/trunk/mcs/; revision=4673
* object.c (mono_unhandled_exception): new function to handle
unhandled exceptions.
(mono_unhandled_exception): call the UnhandledException event.
i * interp.c (ves_exec_method): use new mono_unhandled_exception()
svn path=/trunk/mono/; revision=4657
* metadata.h, metadata.c, class.c: mono_metadata_field_info ()
returns the RVA, not the direct pointer to the data. Handle the case
when the class size is fixed.
svn path=/trunk/mono/; revision=4652
* jit.c (mono_analyze_flow): try blocks are followed by handler
blocks, so we need to add all handler blocks as succesors.
* exception.c (arch_handle_exception): correctly save/restore caller
saved regs.
* emit-x86.c (arch_emit_prologue): correctly save/restore caller
saved regs.
* jit.c (mono_cfg_new): allocate space for caller saved registers.
svn path=/trunk/mono/; revision=4644
* System.Data/DataRow.cs:
* System.Data/DataRowBuilder.cs:
* System.Data/DataTable.cs:
More implementation of these classes. DataRow
can now (possibly) do some useful things.
Still not sure what DataRowBuilder is all about,
other than passing a DataTable in.
svn path=/trunk/mcs/; revision=4636
* interp.c: introduced new --noptr option to suppres pointer
address printing. I find this useful for comparing trace outputs
while porting to ppc
svn path=/trunk/mono/; revision=4632
* StreamReaderTest.cs:
* StreamWriterTest.cs:
Make sure invalid file name has invalid characters in it. These are
platform dependant.
svn path=/trunk/mcs/; revision=4627
* Path.cs (GetDirectoryName): Return String.Empty if there is no
directory
* StreamReader.cs: Add some parameter checking on file names.
* StreamWriter.cs: Add some parameter checking on file names.
svn path=/trunk/mcs/; revision=4626
* File.cs: Add parameter checks to most methods. Not completely done,
but all current unit tests pass.
* Path.cs: Implement GetTempFileName().
svn path=/trunk/mcs/; revision=4621
* FileTest.cs: Delete temporary files after each test method; Catch
unexpected exceptions and report them; Make some Assert messages
unique; Make sure temp files exist before trying Move and Delete, etc.
svn path=/trunk/mcs/; revision=4619
* jit.c: only use one TLS slot to store jit data
* exception.c (arch_handle_exception): print function signature,
use thread relative end_of_stack
svn path=/trunk/mono/; revision=4616
* attribute.cs (DoResolve): More uglyness, we now only try to
resolve the attribute partially, to extract the CharSet
information (only if we are a StructLayout attribute). Otherwise
(GetExtraTypeInfo): Add some code to conditionally kill in the
future this. I am more and more convinced that the .NET
framework has special code to handle the attribute setting on
certain elements.
* expression.cs (IsParamsMethodApplicable): Revert my previous
foreach change here, it was wrong.
svn path=/trunk/mcs/; revision=4612
* Double.cs (Parse): Reimplement by cleaning up the string first,
and then passing to strtof in the mono runtime.
* Single.cs (Parse): Use the Double implementation and cast to
float.
svn path=/trunk/mcs/; revision=4609
* ChangeLog: removed empty entry at the top of the file.
* Int32.cs: made static functions used by Parse internal.
* Int64.cs:
* UInt32.cs:
* UInt64.cs: removed static fucntions used by Parse and use the ones
in Int32.cs
svn path=/trunk/mcs/; revision=4607
relying on standard asynchronous delegate features. Added checks for
null strings.
* HttpWebResponse.cs: implemented properties
* FileWebResponse.cs: improved the way resources are disposed.
* FileWebRequest.cs: started implementation of asynchronous methods
* ServicePointManager.cs: implemented properties
svn path=/trunk/mcs/; revision=4604
* cs-tokenizer.cs: (pp_primary): Eat the ')' at the end.
(pp_expr): do not abort on unknown input, just return.
(eval): abort if there are pending chars.
svn path=/trunk/mcs/; revision=4598
* class.cs (DefineType): Call Attribute.GetExtraTypeInfo to fetch
the Ansi/Unicode/Auto information for the type.
(TypeContainer.DefineType): instantiate the EmitContext here, as
we will be using it during the type definition (to resolve
attributes) and during the emit phase.
* attribute.cs (Attribute.GetExtraTypeInfo): This routine is used
to pull type information out of the attributes
(Attribute.Resolve): track the constructor builder, and allow for
multiple invocations (structs and classes will use this).
svn path=/trunk/mcs/; revision=4594
* System.Data/DataTableCollection.cs:
Fix an issue when adding a DataTable and size == 0.
Now explicitly checks if size > 0 before doing Array.Copy ()
* System.Data.Common/DbDataAdapter.cs:
Move closer to a working implementation.
Make the IDbCommand fields protected so that they can
be inherited.
* System.Data.SqlClient/SqlDataAdapter.cs:
This should inherit the IDbCommands instead of having its
own. An explicit cast is used to force conversion between
IDbCommand and SqlCommand
svn path=/trunk/mcs/; revision=4588
* System.Data.build:
include SqlDataAdapter, SqlRowUpdatedEventArgs,
SqlRowUpdatingEventArgs, SqlRowUpdatedEventHandler,
SqlRowUpdatingEventHandler in the build.
svn path=/trunk/mcs/; revision=4583
* jit.c (mono_analyze_stack): we need to generate a temporary var for
SHL/SHR because the tree allocator can fail otherwise
svn path=/trunk/mono/; revision=4582
* exception.c (arch_handle_exception): EIP now points to the call
instruction, not to the instruction after the call. This fixes the
bug reported by Linus Upson (tests/exception8.cs)
svn path=/trunk/mono/; revision=4578
* ecore.cs (MemberLookupFinal): new version with all the
parameters customizable.
* expression.cs (New.DoResolve): Use MemberLookupFinal to locate
constructors. Return if the result value is null (as the error
would have been flagged already by MemberLookupFinal)
Do not allow instances of abstract classes or interfaces to be
created.
(Method.Emit): If the method is marked abstract and has a body,
emit an error.
svn path=/trunk/mcs/; revision=4577
* class.cs: (MethodSignature.InheritableMemberSignatureCompare):
We have to compare the assembly property here when dealing with
FamANDAssem and Assembly access modifiers, because we might be
creating an assembly from *modules* (that means that we are not
getting TypeBuilders for types defined in other modules that are
part of this assembly).
(TypeContainer.DefineMembers): If both the defined member and the
parent name match are methods, then do not emit any warnings: let
the Method.Define routine take care of flagging warnings. But if
there is a mismatch (method overrides something else, or method is
overriwritten by something, then emit warning).
(MethodSignature.MemberSignatureCompare): If the sig.ret_type is
set to null, this means `do not check for the return type on the
signature'.
(Method.Define): set the return type for the method signature to
null, so that we get methods with the same name and parameters and
different return types. This is used to flag warning 114 (you are
hiding a method, and you probably want to use the new/override
keywords instead).
* typemanager.cs (MemberLookup): Implemented proper access
control, closing a long standing set of bug reports. The problem
was that the Framework only has two bits: Public and NonPublic,
and NonPublic includes private and protected methods, but we need
to enforce the FamANDAssem, FamOrAssem and Family.
svn path=/trunk/mcs/; revision=4576
* System.Data.Common/DbDataAdapter.cs:
More implementation.
* System.Data.Common/DataAdapter.cs:
Correction of some of the stubbing, as well as a
little bit more implementation
svn path=/trunk/mcs/; revision=4575
* IComponent.cs
* ISite.cs: added using System
* MarshalByValueComponent.cs: changed all throwing of Not ImplementedException
to // TODOs and added using System. The throwing of the exceptions prevented
System.Data from running.
svn path=/trunk/mcs/; revision=4546
* System.Data.SqlClient/SqlDataAdapter.cs:
* System.Data.Common/DbDataAdapter.cs:
Moved methods that weren't supposed to
be in SqlDataAdapter out. They should be implemented
in DbDataAdapter.
svn path=/trunk/mcs/; revision=4545
* System.Data.SqlClient/SqlDataAdapter.cs:
some implementation of this class. Note
that none of the functionality has been
tested yet, but I felt it should be checked
in at this point as it compiles.
* System.Data.SqlClient/SqlRowUpdatingEventArgs.cs:
* System.Data.SqlClient/SqlRowUpdatedEventArgs.cs:
Modified so that they will compile properly.
Needed to include SqlDataAdapter in the build.
svn path=/trunk/mcs/; revision=4544
* System.Data.SqlClient/SqlDataAdapter.cs:
some implementation of this class. Note
that none of the functionality has been
tested yet, but I felt it should be checked
in at this point as it compiles.
* System.Data.SqlClient/SqlRowUpdatingEventArgs.cs:
* System.Data.SqlClient/SqlRowUpdatedEventArgs.cs:
Modified so that they will compile properly.
Needed to include SqlDataAdapter in the build.
* System.Data.build:
Add SqlDataAdapter, SqlRowUpdatingEventArgs,
SqlRowUpdatedEventArgs, SqlRowUpdatingEventHandler,
SqlRowUpdatedEventHandler to the build.
svn path=/trunk/mcs/; revision=4543
* System.Data/DataTable.cs (Clear): implemented.
(DataTable): removed repeated code in constructors, and call the
basic constructor from the others.
* System.Data/DataColumn.cs: some tweaks.
* System.Data/DataRow.cs (RowState): implemented.
(CancelEdit): set rowState property back to Unchanged.
(RejectChanges): call CancelEdit.
(Delete): set rowState to Deleted.
svn path=/trunk/mcs/; revision=4534
* System.Data.build: added copy of System.Data.dll to Test directory
for easy testing. Also, added clean for it too.
* System.Data.SqlClient/PostgresLibrary.cs: changed setting of boolean
svn path=/trunk/mcs/; revision=4533
* System.Data.build: added copy of System.Data.dll to Test directory
for easy testing. Also, added clean for it too.
* System.Data.SqlClient/PostgresLibrary.cs: changed setting of boolean
from PostgreSQL data type to .NET type.
* System.Data.SqlClient/SqlDataReader.cs: beginnings
handling of a NULL value from the database
* Test/PostgresTest.cs: added tests for NULL values retrieved
from the database
* Test/ReadPostgresData.cs
* Test/TestExecuteScalar.cs
* Test/TestSqlDataReader.cs
* Test/TestSqlException.cs
* Test/TestSqlIsolationLevel.cs: updated tests to use databas user
"postgres". These tests may eventually be removed since they
are not flexible.
svn path=/trunk/mcs/; revision=4529
* AllTests.cs: needed a using for System.Data and System.Data.SqlClient,
changed SqlTypes.AllTests.Suite to System.Data.SqlTypes.AllTests.Suite
* System.Data/DataColumnTest.cs: changed typeof to DataColumnTest
svn path=/trunk/mcs/; revision=4528
* doc/ado-net: added instructions for installing PostgreSQL on Linux
and for using nant to re-compile just the System.Data.dll assembly
on Windows.
svn path=/trunk/mono/; revision=4519
* statement.cs (GotoCase): Return true: Ammounts to giving up
knowledge on whether we return or not, and letting the other case
be responsible for it.
svn path=/trunk/mcs/; revision=4515
* ecore.cs: Report readonly assigns here as well, as we might have
been resolved only by MemberAccess.
(SimpleName.SimpleNameResolve): Also be useful for LValue
resolution. We need this to propagate assign to local readonly variables
svn path=/trunk/mcs/; revision=4509
* typemanager.cs: Use a ptrhashtable for the criteria, because we
do not want to reuse potential criteria memory.
* class.cs (MyEventBuilder): Set reflected_type;
* ecore.cs (Constantify): Added support for constifying bools.
(RootContext.LookupType): Added a cache for values looked up in
the declaration space.
svn path=/trunk/mcs/; revision=4504
* TestDataColumn.cs: removed.
* System.Data_test.build: removed reference to TestDataColumn.
* TheTests.cs: added RunDataColumnTest class.
(RunAllTests.AddAllTests): added test for RunDataColumnTest.
* System.Data/AllTests.cs: test suite for System.Data.
svn path=/trunk/mcs/; revision=4502
* System.build: don't exclude anymore excluded files in
System.ComponentModel. They compile on Linux, so they might also
on Windows.
svn path=/trunk/mcs/; revision=4501
* EventDescriptorCollection.cs (this[index]): call eventList[index],
not this[index], which issues an 'ambigous call' error on Linux.
svn path=/trunk/mcs/; revision=4499
* typemanager.cs (FindMembers): Now is a front-end to
RealFindMembers, and provides a two-level hashtable-based cache to
the request.
15% performance improvement: from 22.5 to 19.2 seconds.
svn path=/trunk/mcs/; revision=4493
* ValidatorCollection.cs: Fixed typo, ValidatedCollection to ValidatorCollection.
* Page.cs (Validators): return type should be ValidatorCollection,
not ValidatedCollection.
svn path=/trunk/mcs/; revision=4492
* HtmlTableCellCollection.cs (this): Updated the indexer to return
the right type, HtmlTableCell instead of HtmlTableRow.
* TagPrefixAttribute.cs: Added to CVS.
svn path=/trunk/mcs/; revision=4491
* CustomAttributeBuilder.cs: expose internal data for use in
reflection.
* FieldBuilder.cs, TypeBuilder.cs: special case FieldOffset and
StructLayout attributes.
svn path=/trunk/mcs/; revision=4489
* System.Web.build: Include the System.Web.UI.HtmlControls namespace.
* Page.cs:
* ValidatorCollection.cs: Stubs to make things compile for
now. Added one dummy method (RegisterClientScriptFile) that's used
in the existing codebase, but not in MS docs.
* HtmlInputImage.cs (OnServerClick): Commented out parts that
won't compile.
* HtmlForm.cs (RenderAttributes):
(RenderChildren): Commented out code that doesn't compile.
svn path=/trunk/mcs/; revision=4488
* HtmlSelect.cs (TrackViewState): Added 'new' keyword to avoid
clashing with the method defined in the parent class.
(OnDataBinding): Added missing casts.
* HtmlForm.cs (Render): Fixed call too SetAttribute, need to cast
'this' to IAttributeAccessor before calling interface method.
Also renamed some calls to reflect changes in the API.
* HtmlControl.cs (WriteOnClickAttribute): Made it not static and
fixed a typo.
svn path=/trunk/mcs/; revision=4485
* mono.c (usage): the option is called --nols, and it dissables
linear scan.
* x86.brg: better LDIND_R4, LDIND_R8, STIND_R4, STIND_R8
svn path=/trunk/mono/; revision=4472
* StreamWriterTest.cs: Use "resources" directory and use OS friendly
directory separator characters. This makes the tests run correctly
against MS.NET, but not yet in mono on Linux.
svn path=/trunk/mcs/; revision=4471
* FileNotFoundException.cs (ToString): Don't try to use the inner
exception, because it might be null. Use the message instead.
svn path=/trunk/mcs/; revision=4470
* expression.cs (IsParamsMethodApplicable): use foreach.
(Invocation.DoResolve): ditto.
(New.DoResolve): ditto.
(ArrayCreation.DoResolve): ditto.
* ecore.cs (FindMostEncompassingType): use foreach.
* delegate.cs (NewDelegate.DoResolve): Use foreach
* ecore.cs (Expression.FindMostSpecificSource): Use foreach.
(RemoveMethods): use foreach.
* expression.cs (Invocation.MakeUnionSet): Optimization: Use two
nested foreach statements instead of for, and also break out of
the inner loop once a match is found.
(Invocation.OverloadResolve): Use foreach, simplify the code.
svn path=/trunk/mcs/; revision=4469
* System.Data.SqlClient/PostgresLibrary.cs: got
PostgreSQL data types time, date, timestamp (DateTime like)
mapped to .NET System.DateTime working based
on ISO DateTime formatting "YYYY-MM-DD hh:mi:ss.ms"
Also mapped pg type boolean to .net Boolean
* SqlClient/SqlConnection.cs: run SQL command to set
Date style to ISO
* Test/PostgresTest.cs: added test for an UPDATE SQL command,
added tests for aggregates min(), max(), sum(), count(). could
not get avg() to work due to some formatting error; someone claimed
that it was my locale settings. added tests for SELECT of columns
of type boolean, float, double, date, time, and timestamp. They
have not been fully tested, but its a start.
svn path=/trunk/mcs/; revision=4457
* Single.cs: copied ToString() and Parse() methods from
Double to Single and modified a tiny bit for Single.
There is still a FIXME for Double and Single about
passing the format and provider info to the icall too.
svn path=/trunk/mcs/; revision=4456
* System.Data_test.build: exclude file TestDataColumn.cs
test.build files have two places where a file needs to
be excluded
svn path=/trunk/mcs/; revision=4442
* monobitset.c, monibitset.h: bit set data structure.
Not included in the build yet because the jit has some symbol clashes
with it.
svn path=/trunk/mono/; revision=4441
* System.Data.SqlTypes/SqlDecimal.cs: Implementations of
addition, subtraction, and multiplication for the
SqlDecimal type, as well as modification of some other
operations. More to come on this one.
svn path=/trunk/mcs/; revision=4434
Dennis Hayes <[email protected]>
Checking in new System.Windows.forms classe for Paul Osman <[email protected]>
* NavigateEventArgs.cs
* NodeLabelEditEventArgs.cs
* NotifyIcon.cs
Stubbed and commented out
svn path=/trunk/mcs/; revision=4433
Dennis Hayes <[email protected]>
Checking in new System.Windows.forms classe for John Rebbeck <[email protected]>
* UserControl.cs
Stubbed and commented out
svn path=/trunk/mcs/; revision=4432
* cfold.cs (BinaryFold): During an enumeration evaluation context,
we actually unwrap the expression to allow for extra information
to be extracted.
svn path=/trunk/mcs/; revision=4427
* ecore.cs (FindMostEncompass*): Fix trivial bug where the set of
applicable operators was not being considered correctly. This closes
the bug Miguel reported.
svn path=/trunk/mcs/; revision=4418
* interpreter.cs: Moved to an array-based stack representation
for faster captures.
* match.cs, collections.cs: Decoupled capture representation from
interpreter internals.
* cache.cs: Changed Key type from struct to class for speed.
svn path=/trunk/mcs/; revision=4415
* attribute.cs: check that the type derives from System.Attribute
and report the correct error in that case (moved the duplicate code to
its own method, too).
svn path=/trunk/mcs/; revision=4409
* attribute.cs: lookup attribute type name as the spec says: first the
bare attribute name and then name + "Attribute" (nant compiles with
mcs after this fix).
svn path=/trunk/mcs/; revision=4404
* FileTest.cs: Use "resources" directory and use OS friendly
directory separator characters. This makes the tests run correctly
against MS.NET, but not yet in mono on Linux.
svn path=/trunk/mcs/; revision=4403
* handles.c (shared_init): Disable SHM for now, people have too
many problems with this, and the diagnostics are not helping.
svn path=/trunk/mono/; revision=4389
* CompareInfo.cs: new basic stub (compiles on Linux, so I assume
it does not break the build on windows. Sorry if it does).
svn path=/trunk/mcs/; revision=4386
* parameter.cs (ParameterType): Make it a property for now although the
purpose really isn't anything immediate.
* expression.cs (Is*Applicable): Do better checking on the parameter type
of a ref/out parameter. The ones from the system assemblies are already
marked with the correct type so we don't need to do any correction.
* ecore.cs (StandardConversionExists): Conversion from Interface types to
the object type is standard too so include that.
svn path=/trunk/mcs/; revision=4382
* expression.cs (Unary.TryReduceNegative): Ah! Tricky! Tricky!
Because of the way we parse things, we should try to see if a
UIntConstant can fit in an integer.
svn path=/trunk/mcs/; revision=4379
(ConvertReferenceExplicit): When converting from Iface type S to Class
T make sure the rules are implemented as an OR.
svn path=/trunk/mcs/; revision=4378
* StreamWriter.cs: Wrap a try-catch around block of code to find out
what exception is being thrown when it shouldn't.
svn path=/trunk/mcs/; revision=4370
* FileTest.cs: Added TestOpen() from Mike Gray.
* AllTests.cs: Added missing FileTest.Suite as pointed out by Mike
as well.
svn path=/trunk/mcs/; revision=4367
* StreamReader.cs: return the number of chars read even if we diddn't
fill the whole buffer (makes Sergey's ilasm work with mono).
svn path=/trunk/mcs/; revision=4365
* rootcontext.cs (AddGlobalAttributes): Track attributes on the
typecontainer that they are declared, because the
typecontainer/namespace will have the list of using clauses that
need to be applied.
Assembly Attributes were escaping the normal registration
mechanism.
(EmitCode): Apply attributes within an EmitContext that represents
the container they were declared on.
svn path=/trunk/mcs/; revision=4350
* ecore.cs (FindMostEncompassingType, FindMostEncompassedType):
Revamp completely - make much cleaner as we now operate only
on a set of Types.
(FindMostSpecificSource, FindMostSpecificTarget): New methods
to implement the logic detailed in the spec more correctly.
(UserDefinedConversion): Update accordingly.
svn path=/trunk/mcs/; revision=4349
* cs-tokenizer.cs (adjust_real): Share code between LITERAL_DOUBLE
and the default.
(token): Do not consume an extra character before calling
decimal_digits.
svn path=/trunk/mcs/; revision=4338
* MonoSymbolWriter.cs (MonoSymbolWriter.Close): Use Assembly.LoadFrom (), not
AppDomain.Load () to load the assembly.
svn path=/trunk/mcs/; revision=4334
* System.Data.SqlTypes.SqlInt32Test.cs: missing
declaration for SqlInt32 z which was a test build blocker
* PostgresTest.cs: got rid of warning about missing e
* Test/PostgresTest.cs: exclude PostgresTest.cs
from test build
svn path=/trunk/mcs/; revision=4330
* class.cs (Constructor.Emit): Set the IsStatic flag in the
EmitContext during the instance constructor initializer
resolution, to stop access to instance variables.
This is mandated by the spec, last paragraph of the `constructor
initializers' section.
svn path=/trunk/mcs/; revision=4328
* doc/ado-net: i did not format it correctly earlier, i
tried added various tags where appropriate.
* doc/index: added news item for May 5, 2002 - ado.net able
to retrieve data now
svn path=/trunk/mono/; revision=4326
* doc/ado-net: updated to include installation of
PostgreSQL DBMS under cygwin. It is a TODO for Linux though.
Also included notes on running the System.Data/Test/PostgresTest.cs
that should work on a lot of Mono installations that have
PostgreSQL installed. If not please let me, rodrigo, or gonzalo
know.
svn path=/trunk/mono/; revision=4321
* Test/PostgresTest.cs: modified to run completely. There
are many TODOs in System.Data, so not all data types are
included in the SELECT SQL query. Also, I made it to where
it would connect
using "host=localhost;dbname=test;user=postgres"
instead of my userid and password. When more types are included,
update this test.
svn path=/trunk/mcs/; revision=4320
* test-28.cs: Improved test: before we were failing on abstract
indexers invoked in the same class (as the accessor would have no
body).
svn path=/trunk/mcs/; revision=4318
* cs-parser.jay, class.cs (Accessor): new class used to represent
an accessor (get or set). In the past we used `null' to represent
a missing accessor. But this is ambiguous because there was no
way to tell in abstract indexers/properties if one of them was
specified.
Now there is a way of addressing that.
* expression.cs (Indexers.GetIndexersForType): Use TypeManager.MemberLookup
instead of FindMembers.
svn path=/trunk/mcs/; revision=4317
* System.Data.SqlTypes/SqlBinary.cs:
* System.Data.SqlTypes/SqlBoolean.cs:
* System.Data.SqlTypes/SqlByte.cs:
* System.Data.SqlTypes/SqlDateTime.cs:
* System.Data.SqlTypes/SqlDecimal.cs:
* System.Data.SqlTypes/SqlDouble.cs:
* System.Data.SqlTypes/SqlGuid.cs:
* System.Data.SqlTypes/SqlInt16.cs:
* System.Data.SqlTypes/SqlInt32.cs:
* System.Data.SqlTypes/SqlInt64.cs:
* System.Data.SqlTypes/SqlMoney.cs:
* System.Data.SqlTypes/SqlSingle.cs:
* System.Data.SqlTypes/SqlString.cs:
More implementation, and code clean-up for consistency.
Also, I had implemented many conversions as explicit
that should have been implicit. This should remove
many of the red X's and green pluses from the
System.Data.SqlTypes namespace.
svn path=/trunk/mcs/; revision=4314
* class.cs (TypeContainer.EmitFieldInitializer): Do not typecast
the result of Assign.Resolve as Assign, but rather as ExpressionStatement.
* attribute.cs: Treat indexers and properties as the same in terms
of applying attributes
svn path=/trunk/mcs/; revision=4313
excluded from the current build
2002-05-05 Miguel de Icaza <[email protected]>
* System.Data/DataSet.cs: Remove [Serializable] attributes from
methods, those only apply to structs or classes.
Stub out ISerializable, ISupportInitialize, and IListSource methods
* System.Data/DataRowView.cs: Stub out interface methods for
IEditableObject, ICustomTypeDescriptor and IDataErrorInfo
* System.Data/DataView.cs: Comment out non-implemented
interfaces.
* System.Data/DataViewSettingsCollection.cs: Type cast variables
to the correct type to make it compile.
* System.Data/DataViewSettings.cs: remove reference to
non-existance type ApplyDefaultSort, it is a boolean.
svn path=/trunk/mcs/; revision=4310
build file above.
2002-05-05 Miguel de Icaza <[email protected]>
* DataTableMapping.cs, DataTableMappingCollection.cs: comment out
interfaces we do not implement yet.
* DbDataAdapter.cs: Stub IEnumerable, comment out interfaces
we do not implement yet.
* DbDataPermissionAttribute.cs: call base constructor.
svn path=/trunk/mcs/; revision=4309
* wapi-private.h:
* handles-private.h:
* io.c:
* io-private.h:
* mutexes.c:
* mutex-private.h:
* processes.c:
* process-private.h:
* semaphores.c:
* semaphore-private.h:
* sockets.c:
* socket-private.h:
* events.c:
* event-private.h: Simplify the WapiHandleOps struct: take out all
the file-specific entries, leaving just the items that operate on
handles themselves. Split the close operation into shared and
private parts: shared close is called by the daemon.
* handles.c: As above, but also pass handle allocation, ref and
unref operations to the daemon. Populate the handle_ops array at
compile time, because the daemon needs to call ops on handles too.
Don't bother to track open handle counts any more, the daemon does
that.
* threads.c:
* thread-private.h: As above, but also make the thread data
handle-private.
* shared.c: Fork a handle daemon if the calling process created
the shared memory segment.
* daemon.c:
* daemon-messages.c:
* daemon-messages.h:
* Makefile.am: Build a daemon to manage handle allocation and
destruction without needing to lock the shared memory
svn path=/trunk/mono/; revision=4306
* Test/PostgresTest.cs: added - ported
libgda postgres-test.c originally by
Gonzalo Paniagua Javier <[email protected]>
to C#.
svn path=/trunk/mcs/; revision=4305
* ArrayListTest.cs: Test for RankException when constructing from a
multi-dimensional array. Confirmed behavior from MS.NET
svn path=/trunk/mcs/; revision=4303
* ArrayList.cs: Throw RankException when constructing from a
multi-dimensional array. Confirmed behavior from MS.NET
svn path=/trunk/mcs/; revision=4302
bug:
2002-05-05 Miguel de Icaza <[email protected]>
* ecore.cs (FindMostEncompassedType): Use statically initialized
EmptyExpressions()s like we do elsewhere to avoid creating useless
objects (and we take this out of the tight loop).
(GetConversionOperators): Move the code to extract the actual
operators to a separate routine to clean things up.
svn path=/trunk/mcs/; revision=4291
* System.Data.SqlTypes/SqlBinary.cs:
* System.Data.SqlTypes/SqlBoolean.cs:
* System.Data.SqlTypes/SqlByte.cs:
* System.Data.SqlTypes/SqlDecimal.cs:
* System.Data.SqlTypes/SqlDouble.cs:
* System.Data.SqlTypes/SqlGuid.cs:
* System.Data.SqlTypes/SqlInt16.cs:
* System.Data.SqlTypes/SqlInt32.cs:
* System.Data.SqlTypes/SqlInt64.cs:
* System.Data.SqlTypes/SqlMoney.cs:
* System.Data.SqlTypes/SqlSingle.cs:
* System.Data.SqlTypes/SqlString.cs:
Various fixes, including adding the SqlNullValueException
when trying to retrieve the value of a null SqlType,
and when casting values, a Null of type A converts to a
Null of type B.
svn path=/trunk/mcs/; revision=4288
* ecore.cs (FieldExpr): Remove un-needed tests for null, since now
events are always registered FieldBuilders.
* class.cs (FieldBase): New class shared by Fields
svn path=/trunk/mcs/; revision=4287
* System.build: excluded EventDescriptor.cs,
EventDescriptorCollection.cs and ICustomTypeDescriptor.cs.
* System.ComponentModel/AttributeCollection.cs: added a cast to make it
compile
svn path=/trunk/mcs/; revision=4283
* System.Data.SqlClient/PostgresLibrary.cs
* System.Data.SqlClient/SqlCommand.cs
* System.Data.SqlClient/SqlConnection.cs
* System.Data.SqlClient/SqlDataReader.cs
oid should not be hard coded because they
can change from one version of PostgreSQL
to the next. Use the typname's instead.
The PostgreSQL type data retrieves
at database connection time. Any unimplemented
types just default to string. These were things
suggested by Gonzalo.
* Test/ReadPostgresData.cs - stuff
* Test/TestSqlDataReader.cs - stuff
* System.Data.SqlTypes/SqlInt32.cs - added a using
svn path=/trunk/mcs/; revision=4281
* delegate.cs: If we are a toplevel delegate, use our full name.
If we are a nested delegate, then only use our tail name.
svn path=/trunk/mcs/; revision=4279
* XmlSchemaUtil.cs: New file added.
* Parser.cs: New file Added. Unused at the moment.
* XmlSchemaObjectCollection: Fixed GetEnumerator
* General: Preprocessing for Attributes and SimpleTypes completed.
svn path=/trunk/mcs/; revision=4276
* StreamReaderTest.cs: Change location of sample file. Use memory
stream instead of file stream to eliminate reliance on file io
for now. That area is still a bit immature.
* resources: New directory to hold files open/read, etc. by unit
tests.
svn path=/trunk/mcs/; revision=4274
* StreamReader.cs: Throw exceptions where needed. Changed Null field to
use new internal class since null cannot be passed to constructor
anymore. Also, fix a coule of small bugs.
svn path=/trunk/mcs/; revision=4273
* appdomain.c, appdomain.h, assembly.c, assembly.h, image.h,
icall.c, reflection.h: separate assembly loading by pathname and by
assembly name. Use the MONO_PATH env var to search for assemblies.
svn path=/trunk/mono/; revision=4267
him only included four of the changed files. This touches the rest of
the System.Data.SqlTypes. This directory should actually compile (!)
now.
svn path=/trunk/mcs/; revision=4261
* System.Data.build: removed comments
* System.Data.SqlClient/PostgresLibrary.cs: changed
the hard-coded PostgreSQL oid type int's to using an
enum. Also, added PostgreSQL bpchar (character) type.
* Test/TestSqlDataReader.cs: updated test
to include new bpchar PostgreSQL type
svn path=/trunk/mcs/; revision=4260
* Moved then to System.Windows.Forms\System.Windows.Forms\*.cs.
* Bursted them out, puting each enums in its own file.
* used ennumcheck to set correct values.
* Ran Monostyle on them.
* ArrangeDirection.cs enum does not have values for left and right.
svn path=/trunk/mcs/; revision=4256
* x86.brg: use VAROFFSET macro
* emit-x86.c (tree_emit): allocate space for spilled regs in
activation frame instead of pushing them to the stack.
svn path=/trunk/mono/; revision=4249
* Test/TestExecuteScalar.cs: added test for
method ExecuteScalar in class SqlCommand.
* System.Data/DataColumnCollection.cs - it should
inherit properties from base InternalDataCollectionBase
and use them instead of overriding them, such as, List.
* System.Data/DataColumn.cs
* System.Data/DataTable.cs: tweaks to retrieve
meta data from the database
* System.Data.SqlClient/PostgresLibrary.cs -
added method OidToType to convert PostgreSQL oid type
to System.Type. Renamed method OidTypeToSystem
to ConvertPgTypeToSystem for converting the data value
from a PostgreSQL type to a .NET System type.
* System.Data.SqlClient/SqlCommand.cs: implemented
method ExecuteReader which returns a SqlDataReader
for a light forward only read only result set.
It works on types int4 ==> Int32 and
varchar ==> String. Other types
will come later.
* System.Data.SqlClient/SqlConnection.cs: added comment
* System.Data.SqlClient/SqlDataReader.cs: implemented
class. It works, but still lots to do.
* Test/ReadPostgresData.cs: stuff
* Test/TestSqlDataReader.cs: updated test for SqlDataReader
to display meta data and the data
svn path=/trunk/mcs/; revision=4247
* delegate.cs : Handle the case when we have more than one applicable
method. Flag an error only when we finish checking all.
svn path=/trunk/mcs/; revision=4233
* expression.cs (IsApplicable): Ensure that we add the "&" to
ref/out types before comparing it with the type of the argument.
(IsParamsMethodApplicable): Ditto.
(Argument.Type): Use TypeManager.LookupType instead of Type.GetType -
silly me ;-)
svn path=/trunk/mcs/; revision=4231
* MemoryStream.cs: Refrain from allocating array until the space is
really needed. This fixes a bug in the Length property when the
constructor without the byte array is used.
svn path=/trunk/mcs/; revision=4223
* assembly.c, image.h: add some support for assemblies
with multiple modules.
* class.c, class.h: export mono_class_from_typeref().
* loader.c: remove duplicated code and use mono_class_from_typeref(),
instead.
svn path=/trunk/mono/; revision=4221
* ArrayList.cs: make mcs compile again: it's allowed to
call arraylist.CopyTo(array, 0) when the length of the array
is also 0.
svn path=/trunk/mcs/; revision=4218
* System.Data.SqlClient/PostgresLibrary.cs: included new
internal class that will be a helper class in using
PostgreSQL. PostgresLibrary is used for the
pinvoke methods to the PostgreSQL Client
native C library libpq while the class PostgresHelper
is used for wrapper or helper methods. It currently only
has one static method OidTypeToSystem in converting
PostgreSQL types to .NET System.<type>s, such as,
a PostgreSQL int8 becomes a .NET System.Int64.
Only a few types have been added, such as, int2,
int4, int8, varchar, text, bool, and char. Other types
will come later.
* System.Data.SqlClient/SqlCommand.cs: implemented
method ExecuteScalar which allows us to do aggregate
functions, such as, count, avg, min, max, and sum. We
also are able to retrieve the result, convert it to the .NET type
as an object. The user of the returned object must explicitly cast.
* Test/ReadPostgresData.cs: updated sample
to help us learn to retrieve data in System.Data.SqlClient
classes
svn path=/trunk/mcs/; revision=4217
* System.Data.build: added /nowarn: nnnn arguments
so you will not get a ton of warnings. The warnings
being excluded are: 1595, 0067, 0109, 0169, and 0649
svn path=/trunk/mcs/; revision=4214
* PropertyDescriptorCollection.cs: Added the IList explicit
implementation methods.
lots of bug fixes to get the build to compile again.
svn path=/trunk/mcs/; revision=4209
2002-05-01 Miguel de Icaza <[email protected]>
* attribute.cs: Use proper cast for Events, since we use a MyEventBuilder.
* parameter.cs (ComputeParameterTypes,
ComputeAndDefineParameterTypes): Better error handling: now we
clear the `types' cache if we fail during any of the type lookups.
We also return the status code correctly to our caller
* delegate.cs: If we fail to define a delegate, abort the extra
steps.
svn path=/trunk/mcs/; revision=4208
* ListSortDirection.cs: new enumeration. Please, somebody run
EnumCheck on it, as I don't have a windows machine.
* PropertyDescriptorCollection.cs: new class.
* ITypedList.cs:
* IBindingList.cs: new interfaces.
svn path=/trunk/mcs/; revision=4200
* System.Data.SqlClient/SqlClientPermission.cs: added missing
'using's.
* System.Data/MergeFailedEventArgs.cs: new class, contributed
by John Dugaw <[email protected]>.
* System.Data.build: excluded new files from build.
svn path=/trunk/mcs/; revision=4198
* expression.cs (Binary.ResolveOperator): for
operator==(object,object) and operator !=(object, object) we also
have to verify that there is an implicit conversion from one to
the other.
svn path=/trunk/mcs/; revision=4196
* StreamReaderTest.cs:
* StreamWriterTest.cs: Catch and display exception info where it wasn't
being caught before.
svn path=/trunk/mcs/; revision=4192
* ArrayListTest.cs (TestCopyTo) : Make assert messages unique and
avoid possible MS.NET bug when test is run on .NET.
svn path=/trunk/mcs/; revision=4188
* FileLoadException.cs (constructors): Added missing (string,
string) ctor, as well as (string, string, Exception) ctor.
(Message): Added more info to the error message
(ToString): Added. We'll need to add the StackTrace stuff when
that works.
* FileShare.cs: Add a missing field, Inheritable.
* TextReader.cs: Renamed Synchronised method to Synchronized.
* TextWriter.cs: Renamed Synchronised method to Synchronized.
Renamed protected member coreNewLine to CoreNewLine.
svn path=/trunk/mcs/; revision=4182
* assign.cs (CompoundAssign): A new class used as a "flag" that
the assignment actually is happening as part of a compound
assignment operator.
During compound assignment, a few new rules exist to enable things
like:
byte b |= 1 + 2
From the spec:
x op= y can be evaluated as x = (T) (x op y) (ie, an explicit cast
to the type of x) if y is implicitly convertible to the type of x,
and the operator is a builtin operator and the return type of the
operator is explicitly convertible to the type of x.
* rootcontext.cs: Reset warning level to 2. 4 catches various
"interesting" features in mcs, we must clean this up at some
point, but currently am trying to kill other bugs ;-)
svn path=/trunk/mcs/; revision=4179
* icall.c
(ves_icall_System_CurrentTimeZone_GetTimeZoneData): Fixed for
systems that use 'timezone' rather than tm.tm_gmtoff. Also, not
all systems have tm.tm_zone, so use strftime() with %Z to print
the timezone abreviation into a temp string.
* object.c (mono_ldstr): Fixed to use mono_string_chars() macro
rather than mono_array_addr() on a MonoString on Big Endian
machines.
svn path=/trunk/mono/; revision=4176
* Thread.cs: If LocalDataStoreSlot already has data set, remove it
before adding a new one.
Use the Thread object destructor to tell the runtime to close the
thread handle.
svn path=/trunk/mcs/; revision=4171
* atomic.c: Changed to use a normal mutex rather than a spinlock
since a lot of platforms seem to not have them :\
svn path=/trunk/mono/; revision=4170
* ecore.cs (SimpleName.SimpleNameResolve): Perform member lookups
in container classes as well.
* expression.cs (Binary.ResolveOperator): Handle string case
before anything else (as operator overloading does emit an error
before doing anything else).
This code could go away when we move to a table driven model, but
i could not come up with a good plan last night.
svn path=/trunk/mcs/; revision=4169
* Completely rewrote the handle waiting code: removed the helper
thread and its attendant complexity. All handle waiting is now
abstracted into the WaitForSingleObject() and
WaitForMultipleObjects() functions.
* Implemented inter-process sharing of handles using sysv shared
memory. This makes handles even more opaque, with a handle now
just an index into an array.
2002-04-30 Dick Porter <[email protected]>
* socket-io.c: Cope with SOCKET being an integer rather than a
pointer now.
* threads.c: Added Thread_free_internal, to deal with thread
handle cleanup. Moved calls to handle_store() and handle_remove()
to start_wrapper(), so each can only be called once. Allocate
synchronisation blocks with GC_malloc(), and use GC finalisation
to close the handles.
* icall.c: added System.Threading.Thread::Thread_free_internal
2002-04-30 Dick Porter <[email protected]>
* acconfig.h:
* configure.in: Added option to disable using shared memory for
handles
2002-04-30 Dick Porter <[email protected]>
* shmdel.c:
* scratch.c:
* hps.c:
* Makefile.am: Some tools to help debug shared memory handles:
'hps' shows handle status, 'scratch' displays info about scratch
data (such as handle names), 'shmdel' deletes the shared memory
segment.
2002-04-30 Dick Porter <[email protected]>
* interp.c: Tell glib to not abort when g_log() etc print
recursively
2002-04-30 Dick Porter <[email protected]>
* mono.c (main): Tell glib to not abort when g_log() etc print
recursively
svn path=/trunk/mono/; revision=4166
* exception.c (arch_handle_exception): use ctx->SC_EBP in
end_of_stack check as suggested by Linus Upson <[email protected]>
svn path=/trunk/mono/; revision=4159
* typemanager.cs (CSharpName): reimplemented with Lupus
suggestion.
2002-04-28 Miguel de Icaza <[email protected]>
* statement.cs (If): correclty implement Resolve, because we were
not catching sem errors in there. The same process is needed
everywhere else.
(Return, StatementExpression, For, While, Do, Throw, Lock): Implement Resolve
(Statement.Warning_DeadCodeFound): Factorize code.
(While): Report dead code here too.
(Statement): Added Resolve virtual method to allow
for resolution split from the emit code.
svn path=/trunk/mcs/; revision=4158
* ArrayListTest.cs (TestTrimToSize): Change test so that it doesn't
rely on the specific timing of a capacity change. Our corlib doubles
capacity sooner than the reference system does.
svn path=/trunk/mcs/; revision=4156
* object.c, object.h: added mono_runtime_run_main () and
mono_runtime_get_main_args () for use in System.Environment.
svn path=/trunk/mono/; revision=4142
* Test/ReadPostgresData.cs: added - Uses the
PostgresLibrary to retrieve a recordset.
This is not meant to be used in Production, but as a
learning aid in coding
class System.Data.SqlClient.SqlDataReader.
This sample does work.
* Test/TestSqlDataReader.cs: added - used
to test SqlDataReader (does not work yet)
Forgot to add to ChangeLog on last commit.
svn path=/trunk/mcs/; revision=4129
* ArrayListTest.cs (): Remove test on unsorted array. Behavior is
undefined according to docs. Re-added test that was commented out.
svn path=/trunk/mcs/; revision=4125
* configure.in: fix for conditional "THREADS_PTHREAD" was never
defined problem under cygwin with latest version of automake and
autoconf. Patch from Jeroen Janssen <[email protected]>.
svn path=/trunk/mono/; revision=4117
2002-04-28 Miguel de Icaza <[email protected]>
* statement.cs (Statement): Added Resolve virtual method to allow
for resolution split from the emit code.
2002-04-26 Miguel de Icaza <[email protected]>
* statement.cs (EmitBoolExpression): No longer try to resolve the
expression here.
(MakeBoolean): New utility function that resolve, implicitly
converts to boolean and tags the expression.
(If, Do): Implement dead code elimination.
(While): Implement loop inversion
(Do, While, For, If): Resolve the expression prior to calling our
code generation.
svn path=/trunk/mcs/; revision=4116
* CollectionChangeAction.cs: Changed enum layout to fit the MS
implementation. Please use EnumCheck!
* UnauthorizedAccessException.cs: Added the missing
Serializable attribute.
svn path=/trunk/mcs/; revision=4114
* CollectionChangeAction.cs: new enumeration.
* CategoryAttribute.cs: moved the 'return' keyword to the
end of the method, to avoid compilation errors on Linux for
all CategoryAttribute properties.
svn path=/trunk/mcs/; revision=4107
* reflection.c (mono_reflection_setup_internal_class): remove g_assert_not_reached() to allow
mcs selfhosting again (build breaker) and did move the check to class instead. parent is
allowed to be null when it's System.Object class setup.
svn path=/trunk/mono/; revision=4102
* makefile: Make NAnt.exe dependant on all the *.cs in src and each sub
dir. Since we don't remove it on a 'make clean' it doesn't get rebuilt
when a new file is added or an existing one changed.
svn path=/trunk/mcs/; revision=4100
* StringTest.cs: Mark Assert() messages with unique identifiers.
* DecimalTest.cs: Write out more info in the Report method. Need this
to determine why op_Subtraction() is failing in the next line.
* MathTest.cs:
* DoubleTest.cs:
* UInt32Test.cs: Add try-catch blocks to find out where the test is
failing.
svn path=/trunk/mcs/; revision=4099
* System.Data/DataRelation.cs
* System.Data/ForeignKeyConstraint.cs
* System.Data/UniqueConstraint.cs: added more stubs
* System.Data/DataTableRelationCollection.cs: added back to cvs
and modified for compile errors. DataRelationCollection is an
abstract class and there must be a class that implements for
DataTable/DataSet. DataTableRelationCollection was changed
to an internal class.
* System.Data.build: modified - new files added
also wanted to include files/classes in the build
so we can get a compilable forward read only result set.
It compiles now using csc/nant with warnings, but this
is a start for adding functionality for the result set.
Classes associated with/and DataSet are still excluded.
* TODO: modified - updated to do list for System.Data
* System.Data/Constraint.cs
* System.Data/ConstraintCollection.cs
* System.Data/DataRelationCollection.cs
* System.Data/DataRow.cs
* System.Data/DataRowChangeEventArgs.cs
* System.Data/DataRowCollection.cs
* System.Data/DataTable.cs
* System.Data/DataTableCollection.cs
* System.Data/InternalDataCollectionBase.cs
* System.Data/PropertyCollection.cs: modified -
changes to compile SqlDataReader/DataTable and
dependencies
* System.Data/IDbCommand.cs
* System.Data.SqlClient/SqlCommand.cs: modified -
un-commented overloaded methods ExecuteReader
which returns a SqlDataReader
svn path=/trunk/mcs/; revision=4098
* jit.h (MonoFlowGrap): Renamed `epilogue_begin' to `epilogue_end',
there's already `epilog' so we don't need `epilogue_begin'.
* debug.c (mono_debug_add_method): Use `cfg->epilogue_end' to get the
size of the method's code.
svn path=/trunk/mono/; revision=4094
* reflection.c (mono_reflection_setup_internal_class): g_assert_not_reached()
if `tb->parent == NULL' rather than crashing.
svn path=/trunk/mono/; revision=4092
* sysmath.c (ves_icall_System_Math_Asin): Fix copy-paste error. Was
calling acos() where asin() should have been called.
svn path=/trunk/mono/; revision=4091
* corlib.build: Added new "mcs-build" target to compile corlib
with mcs. This doesn't work yet - it's just to test mcs to find
and fix the remaining bugs.
svn path=/trunk/mcs/; revision=4089
* Array.cs (IList.Contains): Should throw a RankException if this is
called on a Rank > 1 array. Not in the docs, but this is what the
MS.NET does.
svn path=/trunk/mcs/; revision=4087
* System.Data/DataTableCollection.cs: more implementation.
(Count): added 'override' keyword, as pointer out by Martin.
* System.Data.Common/DataColumnMappingCollection.cs (Add, AddRange):
only call Array.Copy when there is really stuff to be copied.
(CopyTo): don't create the temporary array, it's not needed.
* System.Data.build: excluded newly added file from build.
svn path=/trunk/mcs/; revision=4084
* System.Data/DataTableRelationCollection.cs: removed, it's not
on MS SDK documentation.
* System.Data/DataTableCollection.cs: new class.
svn path=/trunk/mcs/; revision=4082
* System.Data/DataRowChangeEventArgs.cs
* System.Data/DataRowCollection.cs
* System.Data/DataView.cs
* System.Data/PropertyCollection.cs: added new stubs
* System.Data.build: modified - added new files to exclude
from build
* TODO: modified - removed files from TODO list
that were stubbed above
* System.Data/DataColumn.cs
* System.Data/DataRow.cs: modified - various tweaks
and added internal method SetTable to set the reference
to a DataTable
* System.Data/DataSet.cs: modified - class was not
completely stubbed.
* System.Data/DataTable.cs: modified - temporarily commented
DataSet and DataView references - trying to compile a SqlDataReader,
DataTable, and dependencies for a forward read-only result set.
SqlDataAdapter, DataSet, and DataView will come later once we can get
a forward read only result set working.
* System.Data/IDataRecord.cs: modified - source code lines should
not be > 80
* System.Data/InternalDataCollectionBase.cs: modified - started
implementing this base class for collection of data rows,
columns, tables, relations, and constraints
* System.Data.SqlClient/SqlException.cs: modified -
call base(message) so a unhandled exception displays
the message of a SQL error instead of the
default SystemException message
* Test/TestSqlException.cs: modified -
handle the rollback properly for a SqlException on a
failure to connect
svn path=/trunk/mcs/; revision=4079
* MissingMemberException.cs: Made the message variable 'protected'
instead of 'private', so that we can see it in
MissingMethodException and MissingFieldException.
* MissingFieldException.cs:
* MissingMethodException.cs: Added missing (string, string)
constructor, and also the Message property.
svn path=/trunk/mcs/; revision=4077
2002-04-22 Lawrence Pit <[email protected]>
* class.cs:
- added method Report28 (warning: program has more than one entry point)
- added method IsEntryPoint, implements paragraph 10.1 of the spec
- modified method Method.Define, the part at the end of the method
* rootcontext.cs: added static public Location EntryPointLocation;
* ../errors/cs0028.cs : Add test case for the above warning.
* typemanager.cs:
- modified method CSharpName to allow arrays of primitive type to
be printed nicely (e.g. instead of System.Int32[][] it now prints
int[][])
- added method CSharpSignature: returns the signature of a method
in string format to be used in reporting errors, warnings, etc.
* support.cs: InternalParameters.ParameterDesc variable tmp initialized
with String.Empty.
svn path=/trunk/mcs/; revision=4076
* delegate.cs (Define): Fix extremely silly bug where I was
setting the type of the 'object' parameter of the BeginInvoke
method to System.IAsyncResult instead of System.Object ;-)
svn path=/trunk/mcs/; revision=4072
* class.cs (ConstructorInitializer.Resolve): Also use DeclaredOnly
here.
(Constructor.Emit): return if we fail to initialize the
constructor. Another door closed!
* expression.cs (New.DoResolve): Improve error message (from -6 to
1501). Use DeclaredOnly lookup to find the exact constructor.
* typemanager.cs (MemberLookup): If DeclaredOnly is set, do not
loop. This is useful.
svn path=/trunk/mcs/; revision=4070
* driver.cs (LoadAssembly): If `assembly' contains any characters
which are only valid in path names and not in assembly names
(currently slash, backslash and point), use Assembly.LoadFrom ()
instead of Assembly.Load () on the `assembly' (before iteration
over the link_paths).
svn path=/trunk/mcs/; revision=4067
* CompilerBase.cs (WriteOption): New virtual method. The default
implementation writes CSC-style command line options, but it can
be overridden in derived class to write mcs-style command line
arguments.
(ExecuteTask): Use the new virtual `WriteOption' method to write
options.
* CscTask.cs (WriteOptions): Use the new `WriteOption' method.
* McsTask.cs: New file.
svn path=/trunk/mcs/; revision=4064
* assembly.c (default_assembly_name_resolver): Use G_FILE_TEST_IS_REGULAR
instead of G_FILE_TEST_EXISTS - if you're in mcs/class/corlib/System/Test,
there's a subdirectory called `System', but we don't want to read that
subdirectory as an assembly.
svn path=/trunk/mono/; revision=4060
* gdb-csharp-support.patch: A patch for GDB (against the latest CVS version)
to implement C# support.
* csharp-lang.c, csharp-lang.h, csharp-mono-lang.c: Copy these into your GDB
source directory after applying the patch.
svn path=/trunk/mcs/; revision=4059
* class.cs (Property): use the new typemanager.MemberLookup
(TypeContainer.MemberLookup): Implement using the
TypeManager.MemberLookup now.
* typemanager.cs: Make MemberLookup a function of the TypeManager,
and return MemberInfos, so that these can be used without an
EmitContext (what we had before).
svn path=/trunk/mcs/; revision=4052
* rand.c, rand.h: instance method icalls need to have an explicit
this pointer as first argument in the C implementation.
svn path=/trunk/mono/; revision=4045
* 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
* expression.cs (BetterFunction): Catch hideous bug which was
preventing us from detecting ambiguous calls due to implicit casts i.e
cs0121.
svn path=/trunk/mcs/; revision=2331
* AllTests.cs: Removed entry for IPHostEntryTest.cs because Mads
removed it and included it in the new DnsTest.cs. This fixes
the build.
svn path=/trunk/mcs/; revision=2329
* exception.h, exception.c: added TypeLoadException.
* object.h, object.c: added mono_array_clone ().
* icall.c: handle throwOnError in AssemblyGetType().
Added Array.Clone().
* opcode.h, opcode.c: use a single value for the opcode val.
Compile fix for non-gcc compilers.
svn path=/trunk/mono/; revision=2318
* Array.cs: make Clone() an internal call.
Mon Feb 11 19:49:25 CET 2002 Paolo Molaro <[email protected]>
* ArrayList.cs: Dick's fix to contructor.
svn path=/trunk/mcs/; revision=2316
* interp.c: added "die on exception" command line argument.
When we segfault, set the message in the exception to "Segmentation
fault" so people can recognise what's going on.
svn path=/trunk/mono/; revision=2310
* Int64Test.cs: Various fixes to make tests work against the ms corlib.
Currency Symbol tests seem to be system dependant. Not sure if this
will work on other systems, so please test it if you can. The most
disturbing one is negative numbers. Should they be (n) or -n ?
svn path=/trunk/mcs/; revision=2305
+
+ * interp.c (ves_exec_method): Compare the element_class type token
+ in the class we got as well, instead of the element class vs the
+ toplevel class.
+
+ This fixes the invalid cast exceptions during unboxing
svn path=/trunk/mono/; revision=2297
* corlib_test.build: Remove duplicate excludes for
* AllTests.cs: Add System.Security.Policy tests. However, commented
this out because NUnit is throwing an exception. Need to figure
that out first.
svn path=/trunk/mcs/; revision=2294
* AllTests.cs: Add Int64Test to the Suite
* Int64Test.cs: Change static member to instance member. This was
causing NUnitConsole some grief. Should be instance member anyway.
svn path=/trunk/mcs/; revision=2293
* AllTests.cs: Remove StringBuilderTest suite. There's a major failure
when it's included and the test errors aren't displayed.
svn path=/trunk/mcs/; revision=2289
* emit-x86.c: make x86_magic_trampoline() handle call instructions
with an imm8 displacement. x86.brg not yet changed to take advantage
of it.
svn path=/trunk/mono/; revision=2288
hack for this to fully work.
2002-01-29 Miguel de Icaza <[email protected]>
* support.cs (Pair): Remove un-needed method. I figured why I was
getting the error in cs-parser.jay, the variable in a foreach loop
is readonly, and the compiler does not really treat this as a variable.
* cs-parser.jay (fixed_statement): Fix grammar. Use ASSIGN
instead of EQUALS in grammar.
* typemanager.cs (VerifyUnmanaged): Report correct error (208)
* expression.cs (Unary.DoResolve): Check whether the argument is
managed or not.
svn path=/trunk/mcs/; revision=2285
* ByteTest.cs:
* Int16Test.cs:
* Int32Test.cs:
* SByteTest.cs:
* UInt16Test.cs:
* UInt32Test.cs:
* UInt64Test.cs: Fixed tests where a "$" was hard coded. Change it to
use NumberFormatInfo.CurrentInfo.CurrencySymbol. Also used
NumberFormatInfo.InvariantInfo.CurrencySymbol where appropriate. These
tests all pass now with mscorlib.
svn path=/trunk/mcs/; revision=2278
* RuntimeArgumentHandle.cs: Added to CVS.
2002-02-08 Duncan Mak <[email protected]>
* UriFormatException.cs: Removed TODO attribute, the docs are
probably wrong here. In any case, this code compiles and should work.
2002-02-08 Duncan Mak <[email protected]>
* IsolatedStorage.cs: Looked at MemberInfo.cs, another fellow
abstract class. Oh, that's what it means! Removed unnesscessary
MonoTODO attributes.
svn path=/trunk/mcs/; revision=2276
* corlib_test.build: compile with mscorlib to test the tests. This
will be our "reference" check to make sure the tests work.
svn path=/trunk/mcs/; revision=2275
* FileIOPermissionTest.cs: Remove intersect test where it was trying
to intersect a permission with itself. This throws an exception
with mscorlib.
svn path=/trunk/mcs/; revision=2273
* FileCodeGroup.cs: New file. All done except for GetHashCode and
Resolve.
* CodeGroup.cs: Fix small bug in ToXml()
* Evidence.cs: Added method stub needed by FileCodeGroup.cs. Added
MonoTODO's too.
svn path=/trunk/mcs/; revision=2271
* MarshalByRefObject.cs: add ToString () method
(apparently needed by nunit).
* _AppDomain.cs: uncomment ToString(): dietmar fixed the bug triggered
by it in the runtime.
svn path=/trunk/mcs/; revision=2268
* NameObjectCollectionBase.cs, NameValueCollection.cs: tweaks to make
it compile and provide the constructor needed by nunitcore.
svn path=/trunk/mcs/; revision=2267
* RequiredFieldValidator.cs -- Oops! Forgot to add in previous commit.
* ChangeLog -- Needed to be updated for this.
svn path=/trunk/mcs/; revision=2257
* CodeGroup.cs: Went as far as I can for now. Need to look at
the (To|From)XML methods when I understand PolicyLevels better.
svn path=/trunk/mcs/; revision=2251
Back from a small vacation due to the exams...
* ListItem.cs, ListItemCollection.cs: Completed
* WebControl.cs -- Minor changes.
* TableStyle.cs, TargetConverter, TemplateColumn -- Fully implemented
* ListBox.cs -- Partial Implementation (See ChangeLog for details)
* ChangeLog -- Verbose details of the work done
* TODO -- Updated list for completed classes.
svn path=/trunk/mcs/; revision=2245
* DBNull.cs: This is my first crack at the DBNull class. I think I
actually got most of the IConvertible methods right, but I haven't
done the research to test whether or not this is the correct
behavior. IConvertible.ToType () is the most iffy of all, IMHO.
svn path=/trunk/mcs/; revision=2244
* interp.c (ves_exec_method): CEE_UNBOX: use element_class for
type check.
* x86.brg: use element_class for type check
* object.h (MONO_CHECK_ARG, MONO_CHECK_ARG_NULL): new macro for
icalls.
* class.c (class_compute_field_layout): set element_class for enums
(mono_class_create_from_typedef): set element_class for normal classes
* icall.c (ves_icall_System_Enum_get_value): impl.
* class.c (mono_class_create_from_typedef): do not set valuetype
flag for System.ValueType and System.Enum
svn path=/trunk/mono/; revision=2237
* serialize.cs: Added a new tool for serializing objects. It
can create new types dynamically, but can only handle
arguments that are of primitive types.
svn path=/trunk/mcs/; revision=2228
* interp.c: exception fixes. Use mono_method_pointer_get ()
to easy porting to other archs. Some support for overflow detection.
Fri Feb 1 16:03:00 CET 2002 Paolo Molaro <[email protected]>
* x86/tramp.c, ppc/tramp.c: implement mono_method_pointer_get ().
Fri Feb 1 16:13:20 CET 2002 Paolo Molaro <[email protected]>
* class.c: add asserts if we are ever going to scribble over memory.
* socket-io.c: not all systems have AF_IRDA defined.
svn path=/trunk/mono/; revision=2223
* configure.in: add some support/fixes for cross-compilation.
Fri Feb 1 15:14:16 CET 2002 Paolo Molaro <[email protected]>
* Makefile.am: support cross-compilation.
svn path=/trunk/mono/; revision=2220
* DataList.cs -- Done a hell lot of work today. I am tired now and will
go to library to study for the exams on Monday.
See ChangeLog for details of what I did today.
* ChangeLog -- Updated in accordance.
svn path=/trunk/mcs/; revision=2219
* TODO: Do I really need destructors? I have added a small description.
I don't think I need them. I am nowhere using any unmanaged code.
svn path=/trunk/mcs/; revision=2218
Microsoft assemblies in preference.)
Removed checksum from Perl regex trial descriptions. Now using a descriptive
string.
svn path=/trunk/mcs/; revision=2216
* RepeatInfo.cs -- Almost done. See ChangeLog for details.
* ChangeLog -- About what's status of RepeatInfo. Vertical direction rendering
is left.
* TODO -- "&" mark for RepeatInfo class.
svn path=/trunk/mcs/; revision=2201
** class.xml: Today's updates... All in WebControls namespace
See System.Web.UI.WebControls/ChangeLog for details.
svn path=/trunk/mono/; revision=2197
* PlaceHolder.cs -- The simplest class one can have!
* PlaceHolderControlBuilder.cs -- Not less simple.
* ChageLog, TODO -- Updates for these files.
svn path=/trunk/mcs/; revision=2196
* RadioButtonList.cs -- Almost done. One method left. See ChangeLog for details
* ChangeLog -- What's been done / left in RadioButton.cs
* TODO -- Marked RadioButtonList with an "&".
svn path=/trunk/mcs/; revision=2195
* _AppDomain.cs: remove ToString() method: it doesn't seem right
to have it in this interface and it screws up the method vtable setup.
svn path=/trunk/mcs/; revision=2191
* CodeGroup.cs: New file. Not nearly done with this, but saving it
in cvs just in case.
* PolicyLevel.cs: Sarted just a bit on this then relized i need CodeGroup
first (among others). Checking in for disaster recovery.
2002-01-29 Nick Drochak <[email protected]>
* PolicyStatementAttribute.cs: New file.
* PolicyException.cs: Use correct namespace
* PolicyLevel.cs: Add [Serializable] to class
svn path=/trunk/mcs/; revision=2189
* support.cs: Api for Pair to set a value. Despite the fact that
the variables are public the MS C# compiler refuses to compile
code that accesses the field if the variable is part of a foreach
statement.
* statement.cs (Fixed): Begin implementation of the fixed
statement.
(Block.AddVariable): Return the VariableInfo on success and null
on failure instead of true/false.
* cs-parser.jay (foreach): Catch errors on variables already
defined (we were ignoring this value before) and properly unwind
the block hierarchy
(fixed_statement): grammar for the fixed statement.
svn path=/trunk/mcs/; revision=2183
* TODO -- Updated
I counted.. and get that out of total 132 implementations, I am done
with 91 (100% status). 132 count includes, enumerations, interfaces,
classes and structs and so does 91 include.
IT'S ABOUT 2/3rd of TOTAL WORK IN WEBCONTROLS!
svn path=/trunk/mcs/; revision=2179
* RadioButton.cs -- Completed
* ChangeLog, TODO -- Updated
I've dropped the idea of going for another build. Too many dependencies
on other namespaces. I don't want to get involved right now. ;-)
svn path=/trunk/mcs/; revision=2172
* EnumCheckAssemblyCollection.cs, assemblies.xml -- Files related to EnumCheck tool
* EnumCheck.cs -- updated
* makefile -- build EnumCheck
Hey Nick, now you can use this tool very beautifully. Just modify the assemblies.xml file.
svn path=/trunk/mcs/; revision=2171
* EnumCheck.cs -- Did some modifications. At least not giving an exception, but
still fails to load or whatever be the problem. I'll try to debug it today.
svn path=/trunk/mcs/; revision=2168
A couple of things are missing, but I will get to that tomorrow.
2002-01-25 Miguel de Icaza <[email protected]>
* expression.cs (UnaryMutator.IsIncrementableNumber): Allow also
pointer types to be incretemented.
(SizeOf): Implement.
* cs-parser.jay (pointer_member_access): Implement
expr->IDENTIFIER production.
* expression.cs (IndexerAccess.DoResolve, ArrayAccess.DoResolve,
MemberAccess.DoResolve, Invocation.DoResolve): Check for pointers
on safe contexts.
(Unary): Implement indirection.
* ecore.cs (Expression.UnsafeError): Reports error 214 (pointer
use in non-unsafe context).
(SimpleName.DoResolve): Check for pointers in field access on safe
contexts.
(Expression.LoadFromPtr): Factor the load-indirect code in this
function. This was duplicated in UnboxCast and ParameterReference
svn path=/trunk/mcs/; revision=2166
* TableItemStyle.cs, Panel.cs -- Completed. :))
* ChangeLog, TODO -- Updated
Now I'd try to go for another build including these files. Hope I succeed soon.
svn path=/trunk/mcs/; revision=2165
* ResourceReader.cs: Finsished reading resource files with just strings
in them. Need to figure out other types, and also resources with
multiple types in the same file.
svn path=/trunk/mcs/; revision=2162
* expression.cs (ComposedCast): report an error if a pointer cast
is used in a safe region.
* ecore.cs (Expression.ConvertExplicit): Add rules for implicit
pointer type casts in unsafe context.
* codegen.cs (EmitContext): Set up IsUnsafe.
* cs-parser.jay (non_expression_type): Add productions for pointer
casts.
svn path=/trunk/mcs/; revision=2154
* expression.cs (Invocation.EmitCall): Remove chunk of buggy
code. We should not use force into static mode if the method is
not virtual. Fixes bug in MIS
svn path=/trunk/mcs/; revision=2153
* expression.cs (Invocation.EmitCall): Remove chunk of buggy
code. We should not use force into static mode if the method is
not virtual. Fixes bug in MIS
svn path=/trunk/mcs/; revision=2152
* statement.cs (Do.Emit, While.Emit, For.Emit,
Statement.EmitBoolExpression): Add support to Do and While to
propagate infinite loop as `I do return' semantics.
Improve the For case to also test for boolean constants.
* attribute.cs (Attribute.ApplyAttributes): Add ParameterBuilder
to the list of attributes we can add.
Remove `EmitContext' argument.
* class.cs (Method.Define): Apply parameter attributes.
(Constructor.Define): Apply parameter attributes.
(MethodCore.LabelParameters): Move here the core of labeling
parameters.
* support.cs (ReflectionParameters.ParameterModifier,
InternalParameters.ParameterModifier): Use IsByRef on the type and
only return the OUT bit for these parameters instead of in/out/ref
flags.
This is because I miss-understood things. The ParameterInfo.IsIn
and IsOut represent whether the parameter has the [In] and [Out]
attributes set.
svn path=/trunk/mcs/; revision=2151
* StructLayoutAttribute.cs: Flag attribute as targetting structs
or classes.
* InAttribute.cs: Flag attribute as targettting a paramter
* OutAttribute.cs: ditto.
* DllImportAttribute.cs: Flag attribute as targetting methods.
* MarshalAsAttribute.cs: Flag attribute as targetting fields,
parameters and returnvalues.
svn path=/trunk/mcs/; revision=2146
* x86/tramp.c (mono_create_trampoline): Do not try to create a
mono_string_new if the return value from the PInvoke code is
NULL.
2002-01-23 Miguel de Icaza <[email protected]>
* genwrapper.pl: Added wrappers for the mono_glob functions.
* glob.c: New file, with globing functions used by the Directory
code.
svn path=/trunk/mono/; revision=2139
* Unix/Errno.cs: Added
* Unix/Wrapper.cs: Updated to new Wrapper
2002-01-23 Miguel de Icaza <[email protected]>
* FileInfo.c (CopyTo, MoveTo): Implement.
* FileStream.cs: Add argument checking to the constructor.
* File.cs: Rewrote most of the file. Implement Copy, Open, Create,
OpenText, OpenWrite, Move. Made pending methods flagged as MonoTODO.
* Directory.cs (Delete): reimplement without using DirectoryInfo.
(Delete): Implement the recursive version.
(GetCreationTime, GetLastWriteTime, GetLastAccessTime): Implement.
(Move): Reimplement.
(getNames): dead code removal.
* Path.cs: define an internal DirectorySeparatorStr that we use in
a few spots.
* Wrapper.cs: Updated to new version.
* DirectoryInfo (Delete): Implement using the Directory API.
2002-01-23 Miguel de Icaza <[email protected]>
* DateTime.cs (UnixEpoch): The Begining of the Unix epoch.
svn path=/trunk/mcs/; revision=2138
* wrapper.c: Changed things so that we can propagate ERRNO back.
Include stdio.h and unistd.h to remove a couple of warnings.
svn path=/trunk/mono/; revision=2134
* genwrapper.pl: Added support for flagging non-CLS compliant
classes and structs with CLSCompliant(false).
Added mkdir, rmdir and rename wrappers.
svn path=/trunk/mono/; revision=2131
* ResourceReader.cs: Implemented constructors. Started on the
GetEnumerator() method. Not done yet, but comitting for
'disaster recovery' purposes.
svn path=/trunk/mcs/; revision=2130
* ResourceReaderTest.cs: Add new file. This test is not done yet.
Wanted to save it in cvs for 'disaster recovery' purposes.
Just in case.
svn path=/trunk/mcs/; revision=2129
* System.build: Start build System.Net.Sockets.Socket.cs,
TcpClient.cs and TcpListener.cs
2002-01-23 Dick Porter <[email protected]>
* SocketException.cs: Implemented
* Socket.cs: Implemented most methods
* LingerOption.cs: Made compile
* AddressFamily.cs: Removed empty auto-generated comments
2002-01-23 Dick Porter <[email protected]>
* SocketAddress.cs: Implemented.
* IPEndPoint.cs: Turned 'Address' field into a real property.
Implemented Create() and Serialize() methods.
* IPAddress.cs: Fixed class constructor, turned 'Address' field
into a real property. Removed undocumented "public
IPAddress(string)" constructor.
* EndPoint.cs: Implemented. All methods return
NotSupportedException to enforce subclass overriding.
* Dns.cs: Replaced fixed-layout Hostent struct and cygwin
P/Invokes with portable internal calls.
2002-01-23 Dick Porter <[email protected]>
* Win32Exception.cs: implement, with support for looking up
runtime errors.
2002-01-23 Dick Porter <[email protected]>
* Marshal.cs: Added GetLastWin32Error()
* ExternalException.cs: Implemented
2002-01-23 Dick Porter <[email protected]>
* System.Xml/XmlNode.cs: Fixed IndexerName attribute so it
compiles under .net 1.0
2002-01-23 Dick Porter <[email protected]>
* Linux.cs: GetFileTime and SetFileTime need to be static
2002-01-23 Dick Porter <[email protected]>
* ManualResetEvent.cs:
* AutoResetEvent.cs: Fixed DOS line endings
svn path=/trunk/mcs/; revision=2127
* socket-io.c:
* icall.c:
* Makefile.am: Added socket support
2002-01-23 Dick Porter <[email protected]>
* sockets.c: Networking support, mostly wrapping BSD socket APIs
with handle code, and translating errno into w32 error codes.
* macros.h: Some w32 macros used with the socket support
* error.c: Implemented GetLastError() and SetLastError()
* Makefile.am: Added sockets, with kludge to override some symbols
2002-01-23 Dick Porter <[email protected]>
* interp.c: Added some kludges to cope with CONV_OVF_I2,
CONV_OVF_I4 and ADD_OVF so that number formatting works. Also
initialise and cleanup the network support.
svn path=/trunk/mono/; revision=2126
* icall.c (ves_icall_appdomain_get_default_assemblies): put this
code back. This should return the assemblies that are loaded by
the runtime on behalf of an application domain.
The current implementation is still broken, it just returns every
assembly loaded, but until we get real applications domain this
will do.
svn path=/trunk/mono/; revision=2125
* AppDomain.cs (GetAssemblies): Use foreach construct instead of
manually getting the enumerator.
(AppDomain.AppDomain): Prime the loaded assemblies with the
assemblies loaded by the runtime in our behalf.
* AppDomainSetup.cs: Remove private keyword, that is the default.
Add a new property DisallowPublisherPolicy.
2002-01-23 Miguel de Icaza <[email protected]>
* Assembly.cs (Assembly.CodeBase): Implement.
(Assembly.FullName): simplistic and broken implementation. Gets
us where we were yesterday.
Code style fix.
svn path=/trunk/mcs/; revision=2124
* icall.c (ves_icall_appdomain_get_cur_domain): Cache the value of
the mono_class_from_name lookup.
(ves_icall_get_parameter_info): ditto.
(ves_icall_appdomain_get_assemblies, add_assembly): Implement new internal
method.
(ves_icall_System_Reflection_Assembly_get_code_base): Another new call.
svn path=/trunk/mono/; revision=2120
* ecore.cs (FieldExpr.Emit): Release temporaries.
* assign.cs (LocalTemporary.Release): new function.
* codegen.cs (EmitContext.GetTemporaryStorage,
EmitContext.FreeTemporaryStorage): Rework the way we deal with
temporary storage. Now we can "put back" localbuilders when we
are done with them
svn path=/trunk/mcs/; revision=2096
* IReflect.cs: corrected GetMember() return type.
* InterfaceMapping.cs, TypeDelegator.cs: implemented.
Tue Jan 22 23:01:11 CET 2002 Paolo Molaro <[email protected]>
* EnumBuilder.cs, TypeBuilder.cs: updates for changes in Type.cs.
* ModuleBuilder.cs: fix lookup of nested types.
Tue Jan 22 22:53:23 CET 2002 Paolo Molaro <[email protected]>
* DirectoryInfo.cs, FileInfo.cs: do not use Debug from the system
assembly in corlib.
Tue Jan 22 22:51:48 CET 2002 Paolo Molaro <[email protected]>
* MonoType.cs, Type.cs: many updates, corrected implementation,
completed stubs.
Tue Jan 22 22:50:29 CET 2002 Paolo Molaro <[email protected]>
* Linux.cs: comment out call to Debug.Assert(): stuff from the System
assembly cannot be used in corlib.
svn path=/trunk/mcs/; revision=2095
* class.c: load also nested classes on class init.
System.ValueType instance methods gets passed boxed
values, unless methods in derived classed that get a pointer to the
data.
* icall.c: use better name parsing code in GetType().
* image.c, image.h: add mono_image_loaded ().
* metadata.c, metadata.h: add mono_metadata_nesting_typedef ().
* reflection.c, reflection.h: added mono_reflection_parse_type().
svn path=/trunk/mono/; revision=2094
in mono/mono/metadata/
* icall.c : Added mapping of internal calls for Manual and Auto reset events
* threads.c : Added the implementation of internal calls for events
* threads.h : Added prototypes of internal calls for events
in mcs/class/corlib/System.Threading/
* NativeEventCalls : Class that contains internal calls shared by Auto
and Manual Reset Events
* AutoResetEvents.cs : Added class AutoResetEvents and its implementation
* ManualResetEvents.cs : Added class ManualResetEvents and its implementation
also added 2 tests in mono/mono/tests/
* autoresetevents.cs
* manualresetevents.cs
svn path=/trunk/mono/; revision=2091
in mono/mono/metadata/
* icall.c : Added mapping of internal calls for Manual and Auto reset events
* threads.c : Added the implementation of internal calls for events
* threads.h : Added prototypes of internal calls for events
in mcs/class/corlib/System.Threading/
* NativeEventCalls : Class that contains internal calls shared by Auto
and Manual Reset Events
* AutoResetEvents.cs : Added class AutoResetEvents and its implementation
* ManualResetEvents.cs : Added class ManualResetEvents and its implementation
also added 2 tests in mono/mono/tests/
* autoresetevents.cs
* manualresetevents.cs
svn path=/trunk/mcs/; revision=2091
* ecore.cs (FieldExpr.Emit): Handle initonly fields specially: we
need to make a copy of the variable to generate verifiable code.
svn path=/trunk/mcs/; revision=2085
* BitArrayTest.cs: wrapped try-catch blocks around several of the tests.
NUnit doesn't properly catch exception here anymore. Must be something
to do with upgrading to .NET.1.0.
svn path=/trunk/mcs/; revision=2075
* AllTests.cs: removed duplicate MemoryStream test
* MemoryStreamTest.cs: wrapped try-catch blocks around read/write/seek
tests. These were throwing exceptions that NUnit wasn't catching. I
don't think it used to behave this way before .NET.1.0.
svn path=/trunk/mcs/; revision=2074
* SerializableAttribute.cs: this attrib can be used on enums, structs,
and delegates too. Added the appropriate usage flags.
svn path=/trunk/mcs/; revision=2072
* ecore.cs (CopyNewMethods): reworked, exposed, made public.
Slower, but more generally useful. Used by the abstract
registering implementation.
* expression.cs (ResolveMemberAccess): Reorder the way we evaluate
the rules for the special rule on Type/instances. First check if
we have the same name, and if so, try that special static path
rather than the instance path.
2002-01-18 Miguel de Icaza <[email protected]>
* cs-parser.jay: Emit 642 (warning: possible empty statement) for
for, while and if.
* class.cs (TypeBuilder.DefineType): Do not allow inheritance from
Enum, ValueType, Delegate or Array for non-corlib compiles.
* cs-tokenizer.cs: Catch long identifiers (645)
* typemanager.cs (IndexerPropetyName): Ravi never tested this
piece of code.
* class.cs (TypeContainer.RegisterRequiredImplementations): Bug
fix, we were returning too early, so we were not registering
pending methods from abstract classes.
Do not register pending methods if the class is abstract.
* expression.cs (Conditional.DoResolve): Report circular implicit
conversions when we neecd to compute it for conditional
expressions.
(Is.DoResolve): If the expression is always of the provided type,
flag warning 183. If the expression can not ever be of the
provided type flag warning 184.
* class.cs: Catch 169 as well.
* ecore.cs (FieldExpr): For now in AddressOf mark as assigned and
read.
Also add more error test cases.
svn path=/trunk/mcs/; revision=2065
* makefile: corcompare works again now, so make xml of missing types
* CorCompare.cs: use exception that .NET v1 throws to get types in mono corlib
svn path=/trunk/mcs/; revision=2051
* TableCellCollection.cs, TableRowCollection.cs,
TableHeaderCell.cs, TableRow.cs -- Completed
* TODO -- Updated. Added a note on "Attributes" to be added to the classes.
svn path=/trunk/mcs/; revision=2046
* interface.cs (Interface.GetInterfaceTypeByName): Only lookup the
hashtable if there are classes or structs defined.
* expression.cs (LocalVariableReference.DoResolve): Simplify this
code, as the constant resolution moved.
* statement.cs (Block.EmitMeta): Resolve all constants as we emit
the metadata, so we can flag error 133.
svn path=/trunk/mcs/; revision=2042
* EnvironmentPermissionAttribute.cs:
* FileDialogPermissionAttribute.cs:
* FileIOPermissionAttribute.cs:
* IsolatedStorageAttribute.cs:
* IsolatedStorageFilePermissionAttribute.cs:
* PermissionSetAttribute.cs:
* PrinciplePermissionAttribute.cs:
* ReflectionPermissionAttribute.cs:
* RegistryPermissionAttribute.cs:
* SiteIdentityPermissionAttribute.cs:
* StrongNamePermissionAttribute.cs:
* UIPermissionAttribute.cs:
* UrlIdentityPermissionAttribute.cs:
* ZoneIdentityPermissionAttribute.cs: New files. Stubbed out with MonoTODOs
* Note: These are all the Attributes in the System.Security.Permissions
namespace. The only missing one is PublishIdentityPermissionAttribute.cs because
we don't have anything for the X509Certificate class.
svn path=/trunk/mcs/; revision=2039
* Environment.cs: Commented out references to
EnvironmentPermissionAttribute, because they're just
stubbed out right now and has no implementation.
svn path=/trunk/mcs/; revision=2038
* ResourceSet.cs: Implemented GetObject (string, bool) and GetString
(string, bool). ResourceSet has no more MonoTODOs! Also added in the
Serializable attribute.
svn path=/trunk/mcs/; revision=2029
of excludes, and now we actually build things.
2002-01-17 Miguel de Icaza <[email protected]>
* Win32Exception.cs: Add.
2002-01-17 Miguel de Icaza <[email protected]>
* TraceListenerCollection.cs: Remove Warnings.
2002-01-17 Miguel de Icaza <[email protected]>
* Dns.cs: Updated to API changes.
* IPAddress.cs: Updated API. Much left to implement.
* Dns.cs: Remove IPToString method
2002-01-17 Miguel de Icaza <[email protected]>
* SocketException.cs: Reimplemented.
svn path=/trunk/mcs/; revision=2023
* const.cs: Allow `unsafe'
* interface.cs: (PopulateMethod): Check for pointers being defined
only if the unsafe context is active.
(PopulateProperty): ditto.
(PopulateIndexer): ditto.
* class.cs (Method, Method.Define): Allow `unsafe' modifier to be
specified. If pointers are present, make sure that they are
present in an unsafe context.
(Constructor, Constructor.Define): ditto.
(Field, Field.Define): ditto.
(Property, Property.Define): ditto.
(Event, Event.Define): ditto.
* decl.cs (MemberCore.UnsafeOK): New function to test that a
pointer is being declared in an unsafe context.
2002-01-16 Miguel de Icaza <[email protected]>
* modifiers.cs (Modifiers.Check): Require a Location argument.
Report error 227 for Unsafe use.
* typemanager.cs: Remove IsPointerType, we should be using Type.IsPointer
svn path=/trunk/mcs/; revision=2014
* statement.cs (For.Emit): If the test is null, then report that
we do `return', as we wont reach anything afterwards.
(Switch.SwitchGoverningType): Track the expression that matched
the conversion.
* driver.cs: Allow negative numbers as an error code to flag.
svn path=/trunk/mcs/; revision=2011
* icall.h : Added the internal calls mapping for CreateMutex_internal
and ReleaseMutex_internal.
* threads.h : Added the prototype of mutexes internal calls.
* threads.c : Added the implementations of mutexes internal calls.
* WaitHandle.cs : Renamed handle to os_handle and make it protected
instead of private.
* Mutex.cs : Write the System.Threading.Mutex methods ( constructors
and the ReleaseMutex)
svn path=/trunk/mono/; revision=2010
* icall.h : Added the internal calls mapping for CreateMutex_internal
and ReleaseMutex_internal.
* threads.h : Added the prototype of mutexes internal calls.
* threads.c : Added the implementations of mutexes internal calls.
* WaitHandle.cs : Renamed handle to os_handle and make it protected
instead of private.
* Mutex.cs : Write the System.Threading.Mutex methods ( constructors
and the ReleaseMutex)
svn path=/trunk/mcs/; revision=2010
* ResourceManager.cs: Removed MonoTODO from GetNeutralResourcesLanguage (Assembly)
because Miguel just implemented the whole class, including the constructor that
I needed (CultureInfo (string)).
svn path=/trunk/mcs/; revision=2007
* ResourceManager.cs: After reading the tutorial from the SDK,
finished all the ResourceManager constructors and removed those
MonoTODO tags. Updated fields after reading the new docs from the
final SDK.
* ResXFileRef.cs, ResXResourceReader.cs: Removed. They are part of
Windows.Forms and require System.Xml, which we don't have access to.
2002-01-13 Duncan Mak <[email protected]>
* ResourceManager.cs: Added more MonoTODOs and cleaned up some
indenting.
svn path=/trunk/mcs/; revision=2005
* IFaceDisco.cs, XMLUtil.cs: Added new files for interface discovery tool.
* makefile: added target for IFaceDisco.exe and added to clean target for same
svn path=/trunk/mcs/; revision=2000
* typemanager.cs (IsPointerType): Utility method which we are going
to need a lot.
* ecore.cs (ImplicitReferenceConversion): A pointer type cannot be cast to
the object type, so we take care of that.
* expression.cs (FullMethodDesc): Also include the return type in descriptions.
* support.cs (ParameterDesc): Fix minor bug which was causing params tags to be
added to non-params parameters :-)
* typemanager.cs (CSharpName): Include 'void' type too.
(void_ptr_type): Include in the set of core types.
* ecore.cs (ConvertImplicit): Make use of ConvertImplicitStandard instead of
duplicating code.
(ConvertImplicitStandard): Handle standard implicit pointer conversions when we have
an unsafe context.
* cs-parser.jay (local_variable_pointer_type): Add support for 'void *' as I had
completely forgotten about it.
2002-01-10 Ravi Pratap <[email protected]>
* cs-parser.jay (pointer_type): Add. This begins our implementation
of parsing rules for unsafe code.
(unsafe_statement): Implement.
(embedded_statement): Modify to include the above.
* statement.cs (Unsafe): Implement new class for unsafe blocks.
* codegen.cs (EmitContext.InUnsafe): Add. This determines
if the current context is an unsafe one.
* cs-parser.jay (local_variable_pointer_type): Since local variable types
are handled differently, we need separate rules for them.
(local_variable_declaration): Update to use local_variable_pointer_type
to allow variable declarations of unmanaged pointer types.
* expression.cs (Unary.ResolveOperator): Ensure that the '&' operator is used only
in unsafe contexts.
* ../errors/cs0214.cs : Add.
svn path=/trunk/mcs/; revision=1998
* cs-parser.jay: Report 1524.
2002-01-14 Miguel de Icaza <[email protected]>
* typemanager.cs (RegisterMethod): drop checking if we have
svn path=/trunk/mcs/; revision=1994
* metaparse.h: removed unused file.
* reflection.c, reflection.h: added stream_data_align () function
to align data in streams and keep stream aligned. Add support for
exception support in method headers.
svn path=/trunk/mono/; revision=1993
* threads.c: Make the runtime's idea of infinite timeouts coincide
with the class library's
Fix a particularly egregious bug in mono_thread_cleanup(). That
code was so utterly bogus it must have been written on a Monday.
svn path=/trunk/mono/; revision=1989
* dump.c: more info in method table dump.
Mon Jan 14 17:01:03 CET 2002 Paolo Molaro <[email protected]>
* reflection.h: add subtypes field to TypeBuilder.
* reflection.c: encode constants for literal fields.
Handle subtypes. Fix user string token (and add a zero byte)
at the end.
svn path=/trunk/mono/; revision=1978
* String.cs: use IndexerName in index char accessor.
Mon Jan 14 17:07:32 CET 2002 Paolo Molaro <[email protected]>
* ModulerBuilder.cs: search also for subtypes in GetTypes().
* TypeBuilder.cs: bugfix in FullName. Implemented DefineNestedType().
svn path=/trunk/mcs/; revision=1977
* typemanager.cs (IsPointerType): Utility method which we are going
to need a lot.
* ecore.cs (ImplicitReferenceConversion): A pointer type cannot be cast to
the object type, so we take care of that.
* expression.cs (FullMethodDesc): Also include the return type in descriptions.
* support.cs (ParameterDesc): Fix minor bug which was causing params tags to be
added to non-params parameters :-)
* typemanager.cs (CSharpName): Include 'void' type too.
(void_ptr_type): Include in the set of core types.
* ecore.cs (ConvertImplicit): Make use of ConvertImplicitStandard instead of
duplicating code.
(ConvertImplicitStandard): Handle standard implicit pointer conversions when we have
an unsafe context.
* cs-parser.jay (local_variable_pointer_type): Add support for 'void *' as I had
completely forgotten about it.
2002-01-10 Ravi Pratap <[email protected]>
* cs-parser.jay (pointer_type): Add. This begins our implementation
of parsing rules for unsafe code.
(unsafe_statement): Implement.
(embedded_statement): Modify to include the above.
* statement.cs (Unsafe): Implement new class for unsafe blocks.
* codegen.cs (EmitContext.InUnsafe): Add. This determines
if the current context is an unsafe one.
* cs-parser.jay (local_variable_pointer_type): Since local variable types
are handled differently, we need separate rules for them.
(local_variable_declaration): Update to use local_variable_pointer_type
to allow variable declarations of unmanaged pointer types.
* expression.cs (Unary.ResolveOperator): Ensure that the '&' operator is used only
in unsafe contexts.
* ../errors/cs0214.cs : Add.
svn path=/trunk/mcs/; revision=1965
* class.cs (Method.EmitDestructor): Implement calling our base
destructor.
* statement.cs (Try.Emit): Fix to reset the InFinally to the old
value of InFinally.
* codegen.cs (EmitContext.EmitTopBlock): Destructors will call
this routine and will wrap the call in a try/catch block. Deal
with the case.
svn path=/trunk/mcs/; revision=1962
(FieldExpr): Added partial support for volatile fields. This does
not work for volatile fields exposed from assemblies, as I can not
figure out how to extract the modreq from it.
Updated all the source files to use this.
svn path=/trunk/mcs/; revision=1959
* reflection.c: don't try to output a code RVA for abstract methods.
Small fixes for method header format. Output parameter info to the
ParamDef table. Save method overriding info to MethodImpl table.
Fix property support. Allow typedef.extends to be a type in the
building assembly.
* verify.c: fix off-by-one error.
svn path=/trunk/mono/; revision=1957
* ecore.cs (Expression.MemberLookup): instead of taking a
parameter `same_type' that was used to tell whether we could
access private members we compute our containing type from the
EmitContext.
Updated all the source files to use this.
* codegen.cs (EmitContext): Compute ContainerType ahead of time,
because it is referenced by MemberLookup very often.
svn path=/trunk/mcs/; revision=1952
* ILGenerator.cs: handle type tokens (used for box opcode).
Thu Jan 10 21:05:23 CET 2002 Paolo Molaro <[email protected]>
* MonoType.cs: add rank to MonoTypeInfo and implement GetArrayRank.
* String.c: eliminate 64k+ method calls in search.
* Type.cs: handle byref and array types in ToString ().
svn path=/trunk/mcs/; revision=1951
* class.c: fix mono_class_from_mono_type () for szarray types.
Remove unused cache check in mono_class_from_type_spec().
* icall.c: *type_from_name () functions handle simple arrays and byref.
* reflection.c: handle byref and szarray types. Handle methods without
body (gets P/Invoke compilation working). Handle types and fields in
get_token ().
* reflection.h: add rank to MonoTypeInfo.
Thu Jan 10 20:59:59 CET 2002 Paolo Molaro <[email protected]>
* interp.c, interp.h: add a flag to mono_create_trampoline ()
to handle runtime methods.
Thu Jan 10 21:01:08 CET 2002 Paolo Molaro <[email protected]>
* x86/tramp.c: mono_create_trampoline (): the runtime argument is
needed to handle correctly delegates, the previous change in handling
the string return type broke them.
svn path=/trunk/mono/; revision=1950
* BufferedStream.cs: Initial implemenation. The synchronous
methods for both reading and writing are implemented. I'll do the
asynchronous methods in a bit.
svn path=/trunk/mcs/; revision=1949
* HyperLinkControlBuilder.cs, Table.cs, TableCell.cs, TableCellControlBuilder.cs, TableRowCollection.cs, TableCellCollection.cs --- Completed all except one. Don't recall which one. See TODO for details.
* HyperLinkColumn.cs, ButtonColumn.cs -- *Columns and *ControlBuilder are proving to be rather simple classes to be implemented. :))
* TODO -- Updated
* ChangeLog -- Oops! Not here.. Will update it :(
svn path=/trunk/mcs/; revision=1946
* typemanager.cs (IndexerPropertyName): If we have a TypeBuilder, use
TypeBuilder.GetCustomAttributes to retrieve what we need.
Get rid of redundant default_member_attr_type as this is the same as
default_member_type which already exists.
* interface.cs, attribute.cs : Update accordingly.
svn path=/trunk/mcs/; revision=1939
(string), as I believe it's correct. However, GetString
(string, CultureInfo) is definitely broken, so I'm marking it with
MonoTODO there. I also added MonoTODO to IntenalGetResourceSet().
svn path=/trunk/mcs/; revision=1935
* ResourceManager.cs: Fixed the GetSatelliteContractVersion()
method. It was missing a cast before. Removed MonoTODO
attribute. ;-) It was tested by John Barn, so this shouldn't
break the build.
svn path=/trunk/mcs/; revision=1934
* BinaryWriter.cs: Initial implementation. And it's all there.
* BinaryReader.cs: The constructor now uses the passed in encoding,
not UTF8 always.
svn path=/trunk/mcs/; revision=1933
* ILGenerator.cs: emit float and doubles.
* ModuleBuilder.cs: off-by-one error fix and GetType()
implementations.
* TypeBuilder.cs: AttributesImpl added.
* UnmanagedMarshal.cs: stubbed out class.
Wed Jan 9 19:37:14 CET 2002 Paolo Molaro <[email protected]>
* MonoMethod.cs: ToString () implementation.
Wed Jan 9 19:35:07 CET 2002 Paolo Molaro <[email protected]>
* MulticastDelegate.cs: add == and != operator stubs.
* String.cs: check for null in == operator.
* Type.cs: use a virtual method to get TypeAttributes.
svn path=/trunk/mcs/; revision=1930
* icall.c: initialize class in type_from_handle ().
Loop also in parent classes for get_method ().
* reflection.c: properly encode class and valuetype types.
Start on encoding TypeBuilder types. Handle fieldrefs.
Use correct length when registering a user string.
Handle ConstructorBuilder and MonoMethod in get_token ().
Make mono_type_get_object () aware of cached types.
* object.c: back out change to mono_string_new ().
svn path=/trunk/mono/; revision=1929
* x86/tramp.c: handle strings returned from functions in external
libraries by converting to a Mono string object after the pinvoke'd
function returns
svn path=/trunk/mono/; revision=1923
* typemanager.cs: Enable IndexerPropertyName again. It does not
work for TYpeBuilders though. Ravi, can you please fix this?
* cs-tokenizer.cs: Accept _ as a name in pp-expressions.
svn path=/trunk/mcs/; revision=1921
* expression.cs (Argument.Emit): Handle the case of ref objects
being passed to ref functions;
(ParameterReference.EmitLoad): Loads the content of the pointer
without dereferencing.
2002-01-07 Miguel de Icaza <[email protected]>
* cs-tokenizer.cs: Implemented the pre-processing expressions.
This also includes Matt Kimball's patch for LookupType.
svn path=/trunk/mcs/; revision=1918
* class.cs (Indexer.DefineMethod): Incorporate the interface
type in the name of the method if we are doing explicit interface
implementation.
* expression.cs (ConversionExists): Remove as it is completely obsolete.
(BetterConversion): Fix extremely trivial bug where we were referring to
ConversionExists instead of StandardConversionExists ! Hooray, things are fine
again !
* ../errors/bug16.cs : Add although we have fixed it.
svn path=/trunk/mcs/; revision=1911
* Environment.cs: Comment out Security attribute and put a MonoTODO
there as a reminder. We need mcs magic to handle security attributes in
corlib.
svn path=/trunk/mcs/; revision=1907
* expression.cs (BaseIndexer): Begin implementation.
* class.cs (TypeContainer.IsInterfaceMethod): Bug fix.
* cs-parser.jay (indexer_declarator): Use qualified_identifier
production directly to remove a shift/reduce, and implement
explicit interface implementation.
* cs-tokenizer.cs: Fix tokenizer, it was consuming one extra char
after a floating point suffix.
* expression.cs (DoNumericPromotions): Improved the conversion for
uint/uint. If we have a constant, we avoid doing a typecast to a
larger type.
* class.cs (Indexer): Implement explicit interface implementation
for indexers.
svn path=/trunk/mcs/; revision=1903
* Button.cs, ButtonColumn.cs, CheckBoxList.cs -- Completed. Uh!
* HyperLinkColumn.cs -- Started off. But feeling sleepy. Will do it
tomorrow. ;-)
* TODO, ChangeLog -- Properly Updated.
svn path=/trunk/mcs/; revision=1898
* EnumCheck.cs -- A very important tool added. Can list the actual
values of an enumeration. do "EnumCheck.exe --help" for details.
* ChangeLog, makefile -- updated
svn path=/trunk/mcs/; revision=1889
* icall.c: hack to make IsSubType work for TypeBuilders.
* reflection.c: emit constructors before methods.
Retrieve param names in mono_param_get_objects().
Sat Jan 5 15:45:14 CET 2002 Paolo Molaro <[email protected]>
* interp.c: allow classname:method name in --debug argument.
Fix box opcode for valuetypes. Fix a few opcode to take a 16 bit
index instead of 32 (stloc, ldloc, starg, etc.).
Sat Jan 5 15:51:06 CET 2002 Paolo Molaro <[email protected]>
* x86/tramp.c: handle short integer return types.
svn path=/trunk/mono/; revision=1852
* Hashtable.cs: the IDictionaryEnumerator returns DictionaryEntries.
Sat Jan 5 15:59:05 CET 2002 Paolo Molaro <[email protected]>
* ILGenerator.cs: fix emission of two-bytes opcodes.
Missing slot for locals array. Throw exceptions on unimplemented
methods.
* OpCode.cs: add a comment: the Value property is useless.
* OpCodes.cs: fix name of tail opcode (Tail -> Tailcall).
Sat Jan 5 15:53:50 CET 2002 Paolo Molaro <[email protected]>
* Enum.cs: dummy ToString impl.
* String.cs: dummy format implementations to get compiler errors
somewhat working.
* Type.cs: implemented filter delegates. FindMembers runs the filter, now.
svn path=/trunk/mcs/; revision=1851
* ArrayList.cs : Setting an index does not implicitly
extend the arraylist : remove FIXME.
Decorate incomplete elements with the TODO attribute.
* BitArray.cs : Insert TODO attributes where appropriate.
* CaseInsensitiveHashcodeProvider.cs: Ditto.
* Hashtable.cs, SortedList.cs : Ditto.
svn path=/trunk/mcs/; revision=1821
* corlib.build: Make new build of corlib_cmp.dll. This is the same
as corlib.dll without Object and ValueType. It is used by
/mcs/tools/corcompare.exe to compare with mscorlib.
svn path=/trunk/mcs/; revision=1819
* TODOAttribute.cs : Add. We use this attribute to tag all bits
in our class libraries that are incomplete.
* Array.cs : Apply attribute wherever we find a FIXME which says we need
something to be implemented there.
* Int32.cs : Ditto.
* MulticastDelegate.cs : Ditto.
* RuntimeFieldHandler.cs, RuntimeMethodHandle.cs, RuntimeTypeHandle.cs : Ditto.
* String.cs : Ditto.
* Type.cs : Ditto.
svn path=/trunk/mcs/; revision=1804
* interface.cs (EmitDefaultMemberAttr): Make this helper method static
so we can call it from elsewhere.
* class.cs (TypeContainer.Emit): Emit the attribute here too. The rule is that
we emit it internally if the class has a defined indexer; otherwise the user
emits it by decorating the class definition with the DefaultMemberAttribute.
* attribute.cs (ApplyAttributes): Perform checks to see that the DefaultMember
attribute is not used on a type which defines an indexer.
* cs-tokenizer.cs (get_cmd_arg): Ensure we trim whitespace and also include the tab
character when we skip whitespace.
* ../errors/cs0646.cs : Add.
svn path=/trunk/mcs/; revision=1800
* interp.c: temporary mul.ovf, mul.ovf.un, add.ovf.un implementations
to get the compiler going.
Thu Jan 3 23:17:17 CET 2002 Paolo Molaro <[email protected]>
* reflection.c: get token for a method ref. Set return type of
constructor to void.
* loader.c: debug message.
* class.c: typo fix.
svn path=/trunk/mono/; revision=1793
* class.cs (Property, Method, Indexer): Emit Final flag on the
method if we are an interface implementation and we are not
abstract.
* ecore.cs (PropertyExpr): New public field `IsBase', tells
whether this property is referencing a `base' method.
* expression.cs (Invocation.EmitCall): take an extra argument:
is_base, this is used to determine whether the `call' or
`callvirt' opcode should be used.
* delegate.cs: update EmitCall.
* class.cs (Method.Define): Set NewSlot for the cases where we are
not implementing an interface method.
(Property.Define): ditto.
svn path=/trunk/mcs/; revision=1790
* corlib.build: Put the linux target at the top. I keep changing the
build for windows 'cause it's at the top. Then when I do make, nothing
changes. It seems like it always takes me half a day to remember
that the linux target comes second. Old age I guess.
svn path=/trunk/mcs/; revision=1788
* HttpRuntime.cs: remove uneeded exception variable from catch and
initialize remaining instance members to avoid compile warnings
* DesignTimeParseData.cs: initialze static member to avoid compile
error
* PropertyConverter.cs: remove uneeded exception variables from
catch blocks.
* FileChangesMonitor.cs: remove redundant using statement; use int
for MAXLEN; capitalize correctly 'WebHashCodeProvider';
fix typo rsLock -> rwLock; Change IsRooted to IsPathRooted;
set out parameter value where needed
* FilePathParser.cs: qualify method GetPathRoot() with 'Path.'
* IISVersionInfo.cs: initialize static member to avoid compile error.
* WebEqualComparer.cs: static member defC shouldn't be readonly;
the string comparer had some typos (fixed)
* WebHashCodeProvider.cs: needed System.Globalization; static member
defHcp shouldn't be readonly; remove double equal typo.
* System.Web.build: don't exclude System.Web.UI anymore
svn path=/trunk/mcs/; revision=1778
* FileAction.cs: Use 0x7FFFFFFF as enum value for error. 0xFFFFFFFF
is too big for Int32.
* FileChangeEventHandler.cs: put missing 'void' return type on delegate
FileChangeEventHandler()
* FileChangedEventArgs.cs: ditto for FileChangedEvent()
* NativeFileChangeEventHandler.cs: ditto for NativeFileChangeEventHandler()
* FileChangesMonitor.cs: add needed namespaces and comment out imcomplete
code.
svn path=/trunk/mcs/; revision=1777
* expression.cs (ArrayCreation.num_automatic_initializers): Keep track
of the number of initializers that require the InitializeArray method.
(CheckIndices): Store the Expression in all cases - not the plain value. Also
update the above field where necessary.
(MakeByteBlob): Update accordingly.
(DoEmit): Call EmitStaticInitializers only if the number of initializers is
greater than 2.
(EmitDynamicInitializers): Update in accordance with the new optimization.
(ArrayAccess.EmitStoreOpcode): Include char type along with short and ushort - the
same OpCode applies.
* cs-parser.jay : Fix some glaring errors I introduced.
svn path=/trunk/mcs/; revision=1776
* parameters.cs (AddVariable, AddConstant): Pass in current_local_parameters
so that we can check for name clashes there too.
* typemanager.cs (default_member_attr_type): The attribute that we need to emit
for interface indexers.
* interfaces.cs (Define): Emit the default member attribute.
* expression.cs (MakeByteBlob): Fix extremely trivial bug where the wrong
variable was being referred to while setting the value ;-)
svn path=/trunk/mcs/; revision=1772
* expression.cs (MakeByteBlob): Optimize: we do not need to fill
byte-by-byte information when we know the data is zero.
Make the block always a multiple of 4, because
DefineInitializedData has a bug.
svn path=/trunk/mcs/; revision=1771
* assign.cs: Fix, we should assign from the temporary, not from
the source.
* expression.cs (MakeByteBlob): Fix my incorrect code.
svn path=/trunk/mcs/; revision=1768
* typemanager.cs (EnumToUnderlying): This function is used to get
the underlying type from an enumeration, because it does not
always work.
* constant.cs: Use the I4_S form for values between -128 and 127.
* statement.cs (Block.LookupLabel): Looks up a label.
(Block): Drop support for labeled blocks.
(LabeledStatement): New kind of statement that represents a label
only.
(Goto): Finally implement this bad boy.
* cs-parser.jay: Update to reflect new mechanism to implement
labels.
svn path=/trunk/mcs/; revision=1764
* codegen.cs (EmitContext.This): a codegen property that keeps the
a single instance of this instead of creating many different this
instances.
* delegate.cs (Delegate.DoResolve): Update to use the property;
* ecore.cs (SimpleName.SimpleNameResolve): Ditto
* expression.cs (BaseAccess.DoResolve): Ditto.
svn path=/trunk/mcs/; revision=1761
* typemanager.cs (methodimpl_attr_type): Add to hold the type
corresponding to System.Runtime.CompilerServices.MethodImplAttribute.
(InitCoreTypes): Update accordingly.
* attribute.cs (Resolve): Remember if the attribute is a MethodImplAttribute
so we can quickly store the state.
(ApplyAttributes): Set the current implementation flags
for InternalCall methods.
svn path=/trunk/mcs/; revision=1758
* PermissionSet.cs SecurityManager.cs: New Files
* CodeAccessPermission.cs: Add Skeleton code
* IPermission.cs: Make public and inherit from ISecurityEncodable
* ISecurityEncodable.cs: Make interface public
* ISecurityPolicyEncodable.cs: Ditto
* IStackWalk.cs: Ditto
svn path=/trunk/mcs/; revision=1754
* expression.cs (EmitCall): if a method is not virtual, then do
not use callvirt on it.
(ArrayAccess.EmitAssign): storing non-builtin value types (ie,
user defined stuff) requires the use of stobj, which takes an
address on the stack instead of an array and an index. So emit
the Ldelema operation for it.
(EmitStoreOpcode): Use stobj for valuetypes.
(UnaryMutator.EmitCode): Use the right 1 value depending on
whether we are dealing with int64/uint64, float or doubles.
* class.cs (TypeContainer.AddConstructor): Fix the logic to define
constructors that I implemented last night.
(Constructor.IsDefault): Fix to work properly for static
constructors.
* cs-parser.jay (CheckDef): report method signature errors.
Update error number 103 to be 132.
* decl.cs: New AdditionResult enumeration value: MethodExists.
Although we do this check for methods later on in the semantic
analysis, catching repeated default constructors is so easy that
we catch these here.
svn path=/trunk/mcs/; revision=1751
* expression.cs (ParameterReference.EmitAssign, Emit): handle
bools as bytes.
(ArrayAccess.EmitLoadOpcode): Handle bool type here.
(ArrayAccess.EmitStoreOpcode): ditto.
* cs-tokenizer.cs (is_punct): Eliminated empty computation.
* expression.cs (MakeByteBlob): Complete all the missing types
(uint, short, ushort, byte, sbyte)
* class.cs: Only init instance field initializers on instance
constructors.
Rename `constructors' to instance_constructors.
(TypeContainer.AddConstructor): Only add constructors to the list
if it is not static.
Make sure that we handle default_static_constructor independently
everywhere where we handle instance_constructors
svn path=/trunk/mcs/; revision=1744
* class.cs: Do not lookup or create a base initializer for a
static constructor.
(ConstructorInitializer.Resolve): use the proper type to lookup
for constructors.
* cs-parser.jay: Report error 1585 (modifiers between type and name).
* enum.cs, interface.cs: Remove CloseType, this is taken care by
in DeclSpace.
* decl.cs: CloseType is now an virtual method, the default
implementation just closes this type.
svn path=/trunk/mcs/; revision=1741
* attribute.cs (DefinePInvokeMethod): Set the implementation flags
to PreserveSig by default. Also emit HideBySig on such methods.
Basically, set the defaults to standard values.
* expression.cs (Invocation.BetterFunction): We need to make sure that for each
argument, if candidate is better, it can't be worse than the best !
(Invocation): Re-write bits to differentiate between methods being
applicable in their expanded form and their normal form - for params
methods of course.
Get rid of use_standard everywhere as only standard conversions are allowed
in overload resolution.
More spec conformance.
svn path=/trunk/mcs/; revision=1740
* FontUnit.cs -- GetTypeFromString <--- Function name changed from
IndexOf, which looked ugly. The function name is self-explanatory
svn path=/trunk/mcs/; revision=1736
* driver.cs: Add --timestamp, to see where the compiler spends
most of its time.
* ecore.cs (SimpleName.DoResolve): Do not create an implicit
`this' in static code.
(SimpleName.DoResolve): Implement in terms of a helper function
that allows static-references to be passed upstream to
MemberAccess.
(Expression.ResolveWithSimpleName): Resolve specially simple
names when called by MemberAccess to implement the special
semantics.
(Expression.ImplicitReferenceConversion): Handle conversions from
Null to reference types before others, as Null's type is
System.Object.
svn path=/trunk/mcs/; revision=1728
* expression.cs (Invocation.EmitCall): Handle the special case of
calling methods declared on a reference type from a ValueType
(Base classes System.Object and System.Enum)
(MemberAccess.Resolve): Only perform lookups on Enumerations if
the left hand side is a TypeExpr, not on every enumeration.
(Binary.Resolve): If types are reference types, then do a cast to
object on operators != and == of both arguments.
* typemanager.cs (FindMembers): Extract instance and static
members if requested.
* interface.cs (PopulateProperty): Use void_type instead of null
as the return type for the setter method.
(PopulateIndexer): ditto.
svn path=/trunk/mcs/; revision=1727
* support.cs (ReflectionParameters): Fix minor bug where we
were examining the wrong parameter for the ParamArray attribute.
Cope with requests for the type of the parameter at position
greater than the params parameter's. We now return the element
type of the params array as that makes more sense.
* expression.cs (Invocation.IsParamsMethodApplicable): Update
accordingly as we no longer have to extract the element type
ourselves.
(Invocation.OverloadResolve): Update.
svn path=/trunk/mcs/; revision=1726
* statement.cs (Foreach.GetEnumeratorFilter): Do not compare
against IEnumerator, test whether the return value is a descendant
of the IEnumerator interface.
* class.cs (Indexer.Define): Use an auxiliary method to implement
the other bits of the method definition. Begin support for
explicit interface implementation.
(Property.DefineMethod): Use TypeManager.void_type instead of null
for an empty return value.
svn path=/trunk/mcs/; revision=1720
* class.cs (Event.Define): Define the private field only if there
are no accessors defined.
* expression.cs (ResolveMemberAccess): If there is no associated
field with the event, that means we have an event defined with its
own accessors and we should flag error cs0070 since transforming
ourselves into a field is not valid in that case.
* ecore.cs (SimpleName.DoResolve): Same as above.
* attribute.cs (DefinePInvokeMethod): Set the default calling convention
and charset to sane values.
svn path=/trunk/mcs/; revision=1719
* assign.cs (DoResolve): Perform check on events only if they
are being accessed outside the declaring type.
* cs-parser.jay (event_declarations): Update rules to correctly
set the type of the implicit parameter etc.
(add_accessor, remove_accessor): Set current local parameters.
* expression.cs (Binary): For delegate addition and subtraction,
cast the return value from the method into the appropriate delegate
type.
svn path=/trunk/mcs/; revision=1714
* attribute.cs (ApplyAttributes): New method to take care of common tasks
of attaching attributes instead of duplicating code everywhere.
* everywhere : Update code to do attribute emission using the above method.
svn path=/trunk/mcs/; revision=1712
* interp.c: fix ldc.i8.
Mon Dec 24 17:18:10 CET 2001 Paolo Molaro <[email protected]>
* icall.c: fix array init with rank > 1. FindMembers
loops in parent class as well.
* image.c: do not insert nested types in name cache.
* reflection.c: warning fix.
* reflection.h: add override method (for interface impl).
svn path=/trunk/mono/; revision=1711
* typemanager.cs (RegisterDelegateData, GetDelegateData): Get rid
of these as the workaround is unnecessary.
* delegate.cs (NewDelegate.DoResolve): Get rid of bits which registered
delegate data - none of that is needed at all.
Re-write bits to extract the instance expression and the delegate method
correctly.
* expression.cs (Binary.ResolveOperator): Handle the '-' binary operator
on delegates too.
svn path=/trunk/mcs/; revision=1707
* test-19.cs : Augment to exercise tests on delegates
defined in mscorlib.
* test-57.cs : Update to exercise the -= operator
as well.
svn path=/trunk/mcs/; revision=1706
* expression.cs (IsParamsMethodApplicable): if there are not
parameters, return immediately.
* ecore.cs: The 0 literal can be implicity converted to an enum
type.
(SimpleName.DoResolve): First lookup the type, then lookup the
members.
(FieldExpr.Emit): If the InstanceExpression is a ValueType, we
svn path=/trunk/mcs/; revision=1705
* expression.cs (IsParamsMethodApplicable): if there are not
parameters, return immediately.
* ecore.cs: The 0 literal can be implicity converted to an enum
type.
(SimpleName.DoResolve): First lookup the type, then lookup the
members.
(FieldExpr.Emit): If the InstanceExpression is a ValueType, we
want to get its address. If the InstanceExpression is not
addressable, store the result in a temporary variable, then get
the address of it.
* codegen.cs: Only display 219 errors on warning level or above.
* expression.cs (ArrayAccess): Make it implement the
IMemoryLocation interface.
(Binary.DoResolve): handle the operator == (object a, object b)
and operator != (object a, object b) without incurring into a
BoxedCast (because 5 != o should never be performed).
Handle binary enumerator operators.
(EmitLoadOpcode): Use Ldelema if the object we are loading is a
value type, otherwise use Ldelem_ref.
Use precomputed names;
(AddressOf): Implement address of
* cs-parser.jay (labeled_statement): Fix recursive block
addition by reworking the production.
* expression.cs (New.DoEmit): New has a special case:
If we are dealing with a ValueType, we have a few
situations to deal with:
* The target of New is a ValueType variable, that is
easy, we just pass this as the variable reference
* The target of New is being passed as an argument,
to a boxing operation or a function that takes a
ValueType.
In this case, we need to create a temporary variable
that is the argument of New.
svn path=/trunk/mcs/; revision=1701
* typemanager.cs : Use PtrHashtable for Delegate data hashtable etc.
* assign.cs : Get rid of EventIsLocal everywhere.
svn path=/trunk/mcs/; revision=1695
* rootcontext.cs (LookupType): Check that current_type is not null before
going about looking at nested types.
* ecore.cs (EventExpr.EmitAddOrRemove): Rename from EmitAssign as we do
not implement the IAssignMethod interface any more.
* expression.cs (MemberAccess.ResolveMemberAccess): Handle EventExprs specially
where we tranform them into FieldExprs if they are being resolved from within
the declaring type.
* ecore.cs (SimpleName.DoResolve): Do the same here.
* assign.cs (DoResolve, Emit): Clean up code considerably.
* ../errors/bug10.cs : Add.
* ../errors/cs0070.cs : Add.
svn path=/trunk/mcs/; revision=1694
* typemanager.cs (GetAccessors): Make the return value consistent
(ie, 0 is always get, 1 is always set)
* ecore.cs (ConvertIntLiteral): finished the implementation.
* statement.cs (SwitchLabel): Convert the value we are using as a
key before looking up the table.
svn path=/trunk/mcs/; revision=1691
* codegen.cs (EmitTopBlock): Require a Location argument now.
* cs-parser.jay (constructor_declarator): We need to setup
current_local_parameters before we parse the
opt_constructor_initializer, to allow the variables to be bound
to the constructor arguments.
* rootcontext.cs (LookupType): First lookup nested classes in our
class and our parents before we go looking outside our class.
* expression.cs (ConstantFold): Extract/debox the values at the
beginnning.
* rootcontext.cs (EmitCode): Resolve the constants first before we
resolve the types. This is not really needed, but it helps debugging.
svn path=/trunk/mcs/; revision=1690
* expression.cs (CheckIndices): Fix minor bug where the wrong
variable was being referred to ;-)
(DoEmit): Do not call EmitStaticInitializers when the
underlying type is System.Object.
svn path=/trunk/mcs/; revision=1686
* test-19.cs : Augment to exercise code which fixed the bug
where we were not generating a This for the delegate's
instance expression - for the non-static methods ie.
svn path=/trunk/mcs/; revision=1685
* ecore.cs (EventExpr.Resolve): Implement to correctly set the type
and do the usual workaround for SRE.
* class.cs (MyEventBuilder.EventType): New member to get at the type
of the event, quickly.
* expression.cs (Binary.ResolveOperator): Handle delegate addition.
* assign.cs (Assign.DoResolve): Handle the case when the target
is an EventExpr and perform the necessary checks.
* ecore.cs (EventExpr.EmitAssign): Implement the IAssignMethod
interface.
(SimpleName.MemberStaticCheck): Include check for EventExpr.
(EventExpr): Set the type in the constructor itself since we
are meant to be born fully resolved.
(EventExpr.Define): Revert code I wrote earlier.
* delegate.cs (NewDelegate.Resolve): Handle the case when the MethodGroup's
instance expression is null. The instance expression is a This in that case
or a null, depending on whether it is a static method or not.
Also flag an error if the reference to a method is ambiguous i.e the MethodGroupExpr
refers to more than one method.
* assign.cs (DoResolve): Check whether the event belongs to the same Type container
and accordingly flag errors.
svn path=/trunk/mcs/; revision=1684
* Char.cs (Parse): Implement.
* Byte.cs (Parse): Implement a fast parser.
* SByte.cs (Parse): Implement a fast parser.
* UInt16.cs (Parse): Implement a fast parser.
* Int16.cs (Parse): Implement a fast parser.
* UInt32.cs (Parse): Implement a fast parser.
* Int32.cs (Parse): Implement a fast parser.
svn path=/trunk/mcs/; revision=1681
* location.cs (ToString): Provide useful rutine.
2001-12-21 Miguel de Icaza <[email protected]>
* ecore.cs (Expression.ConvertIntLiteral): Do not return Constant
objects, return the actual integral boxed.
* statement.cs (SwitchLabel): define an ILLabel for each
SwitchLabel.
(Switch.CheckSwitch): If the value is a Literal, extract
the underlying literal.
Also in the unused hashtable we had, add the SwitchLabel so we can
quickly look this value up.
* constant.cs: Implement a bunch of new constants. Rewrite
Literal based on this. Made changes everywhere to adapt to this.
* expression.cs (Expression.MakeByteBlob): Optimize routine by
dereferencing array only once, and also copes with enumrations.
bytes are two bytes wide, not one.
(Cast): Perform constant conversions.
* ecore.cs (TryImplicitIntConversion): Return literals instead of
wrappers to the literals here.
* expression.cs (DoNumericPromotions): long literals can converted
to ulong implicity (this is taken care of elsewhere, but I was
missing this spot).
* ecore.cs (Expression.Literalize): Make the return type Literal,
to improve type checking.
* rootcontext.cs: Lookup for nested classes in our class hierarchy.
svn path=/trunk/mcs/; revision=1678
* rawbuffer.cs: Added native Win32 implementation, avoids using
mmap on Cygwin. This patch is from Dan Lewis ([email protected])
svn path=/trunk/mono/; revision=1674
* System.Web/*.cs
* System.Web.Caching/*.cs
* System.Web.UI/*.cs
* System.Web.Utils/*.cs
* System.Web.UI.WebControls/*.cs
-- The ISP was down yesterday and today morning. So many files. See changelog for more details.
svn path=/trunk/mcs/; revision=1666
* literal.cs: Revert code from ravi that checked the bounds. The
bounds are sane by the definition of the type itself.
* typemanager.cs: Fix implementation of ImplementsInterface. We
need to actually look up in our parent hierarchy for interfaces
implemented.
svn path=/trunk/mcs/; revision=1662
* delegate.cs: Compute the basename for the delegate creation,
that should fix the delegate test case, and restore the correct
Type Lookup semantics in rootcontext
* rootcontext.cs: Revert Ravi's last patch. The correct way of
referencing a nested type with the Reflection API is using the "+"
sign.
svn path=/trunk/mcs/; revision=1655
* expression.cs (MemberAccess.ResolveMemberAccess): Add support for
the case when the member is an EventExpr.
* ecore.cs (EventExpr.InstanceExpression): Every event which is not
static has an associated instance expression.
* typemanager.cs (RegisterEvent): The usual workaround, now for events.
(GetAddMethod, GetRemoveMethod): Workarounds, as usual.
* class.cs (Event.Define): Register event and perform appropriate checks
for error #111.
We define the Add and Remove methods even if the use provides none because
in that case, we provide default implementations ourselves.
Define a private field of the type of the event. This is done by the CSC compiler
and we should be doing it too ;-)
* typemanager.cs (delegate_combine_delegate_delegate, delegate_remove_delegate_delegate):
More methods we use in code we generate.
(multicast_delegate_type, delegate_type): Two separate types since the distinction
is important.
(InitCoreTypes): Update accordingly for the above.
* class.cs (Event.Emit): Generate code for default accessors that we provide
(EmitDefaultMethod): Do the job in the above.
* delegate.cs (DefineDelegate): Use TypeManager.multicast_delegate_type in the
appropriate place.
svn path=/trunk/mcs/; revision=1654
* rootcontext.cs (LookupType): Concatenate type names with
a '.' instead of a '+' The test suite passes again.
* enum.cs (Enum.DefineEnum): Set RTSpecialName on the 'value__'
field of the enumeration.
svn path=/trunk/mcs/; revision=1649
* class.cs (Indexer.Define): Fix bug, we were setting both Get/Set
builders even if we were missing one.
* interface.cs, class.cs, enum.cs: When calling DefineNestedType
pass the Basename as our class name instead of the Name. The
basename will be correctly composed for us.
* parameter.cs (Paramters): Now takes a Location argument.
* decl.cs (DeclSpace.LookupType): Removed convenience function and
make all the code call directly LookupType in RootContext and take
this chance to pass the Location information everywhere.
* Everywhere: pass Location information.
2001-12-19 Miguel de Icaza <[email protected]>
* class.cs (Constructor.Define): Updated way of detecting the
length of the parameters.
(TypeContainer.DefineType): Use basename as the type name for
nested types.
(TypeContainer.Define): Do not recursively define types here, as
definition is taken care in order by the RootContext.
svn path=/trunk/mcs/; revision=1648
* tree.cs: Keep track of namespaces in a per-file basis.
* parameter.cs (Parameter.ComputeSignature): Update to use
DeclSpace.
(Parameters.GetSignature): ditto.
* interface.cs (InterfaceMethod.GetSignature): Take a DeclSpace
instead of a TypeContainer.
(Interface.SemanticAnalysis): Use `this' instead of our parent to
resolve names. Because we need to be resolve in our context, not
our parents.
* driver.cs: Implement response files.
* class.cs (TypeContainer.DefineType): If we are defined, do not
redefine ourselves.
(Event.Emit): Emit the code for add/remove handlers.
(Event.Define): Save the MethodBuilders for add/remove.
* typemanager.cs: Use pair here too.
* cs-parser.jay: Replaced use of DictionaryEntry for Pair because
DictionaryEntry requires the first argument to be non-null.
(enum_declaration): Compute full name for registering the
enumeration.
(delegate_declaration): Instead of using
formal_parameter_list, use opt_formal_parameter_list as the list
can be empty.
* cs-tokenizer.cs (PropertyParsing): renamed from `properties'
(EventParsing): New property that controls whether `add' and
`remove' are returned as tokens or identifiers (for events);
svn path=/trunk/mcs/; revision=1645
* class.cs (Event.Define): Revamp use of EventBuilder completely. We now
use MyEventBuilder only and let it wrap the real builder for us.
(MyEventBuilder): Revamp constructor etc.
Implement all operations that we perform on EventBuilder in precisely the same
way here too.
(FindMembers): Update to use the EventBuilder member.
(Event.Emit): Update accordingly.
2001-12-18 Ravi Pratap <[email protected]>
* class.cs (MyEventBuilder.Set*): Chain to the underlying builder
by calling the appropriate methods.
(GetCustomAttributes): Make stubs as they cannot possibly do anything
useful.
(Event.Emit): Use MyEventBuilder everywhere - even to set attributes.
2001-12-17 Ravi Pratap <[email protected]>
* delegate.cs (Delegate.Populate): Check that the return type
and various parameters types are indeed accessible.
* class.cs (Constructor.Define): Same here.
(Field.Define): Ditto.
(Event.Define): Ditto.
(Operator.Define): Check that the underlying Method defined itself
correctly - so it's MethodBuilder should not be null.
* delegate.cs (DelegateInvocation.DoResolve): Bale out if the type of the Instance
expression happens to be null.
* class.cs (MyEventBuilder): Workaround for SRE lameness. Implement various abstract
members but as of now we don't seem to be able to do anything really useful with it.
(FindMembers): Handle events separately by returning the MyEventBuilder of the event,
not the EventBuilder.
svn path=/trunk/mcs/; revision=1642
* UI.WebControls/*.cs
--> Got over 100 erros, 50+ warning (with /nowarn:1595). Trying to remove them for first build. Completing uncompleted. Creating new ones.
svn path=/trunk/mcs/; revision=1640
* cs-tokenizer.cs: Add support for defines.
Add support for #if, #elif, #else, #endif
(eval_var): evaluates a variable.
(eval): stubbed for evaluating functions.
* cs-parser.jay: Pass the defines information
* driver.cs: Add --define command line option.
svn path=/trunk/mcs/; revision=1638
* decl.cs: Move MemberCore here.
Make it the base class for DeclSpace. This allows us to catch and
report 108 and 109 for everything now.
* class.cs (TypeContainer.Define): Extract all the members
before populating and emit the warning 108 (new keyword required
to override) instead of having each member implement this.
(MemberCore.Define): New abstract method, we will be using this in
the warning reporting engine in Populate.
svn path=/trunk/mcs/; revision=1636
* System.Web.UI/*.cs
* System.Web.UI.WebControls/*.cs
--- Still working hard to make build succesfull. Lots of errors. Really, lots and lots. Not it's 6:00AM and I need to sleep :))
svn path=/trunk/mcs/; revision=1634
* class.cs (Method.Define): Allow the entry point to be in a
specific class.
* driver.cs: Rewrite the argument handler to clean it up a bit.
* rootcontext.cs: Made it just an auxiliary namespace feature by
making everything static.
* driver.cs: Adapt code to use RootContext type name instead of
instance variable.
* delegate.cs: Remove RootContext argument.
* class.cs: (Struct, TypeContainer, Class): Remove RootContext
argument.
* class.cs (Event.Define): The lookup can fail.
* cs-tokenizer.cs: Begin implementation of pre-procesor.
* expression.cs: Resolve the this instance before invoking the code.
svn path=/trunk/mcs/; revision=1631
* System.Web.UI/*.cs
* System.Web/*.cs -- Looks like I need to take control of this now. Build is otherwise failing
svn path=/trunk/mcs/; revision=1627
* class.c: fix mono_array_element_size() for objects.
* class.h, class.c: add properties to MonoClass and load them
at init time.
* icall.c: check with isinst() when assigning a value to an array
instead of requiring the classes to match exactly.
Implemented icall for System.Type::GetType().
Implemented icalls to get ParameterInfo, ProprtyInfo and info about
enums. Handle bindingflags when looking for methods and fields.
* metadata.h, metadata.c: implemented mono_metadata_properties_from_typedef()
and mono_metadata_methods_from_property().
* reflection.h, reflection.c: added structures for propreties,
parameters and enums. Implemented mono_property_get_object() and
mono_param_get_objects().
Tue Dec 18 18:48:00 CET 2001 Paolo Molaro <[email protected]>
* main.c: use mono_metadata_methods_from_property() and
mono_metadata_properties_from_typedef() from metadata instead of
custom code.
Tue Dec 18 18:48:50 CET 2001 Paolo Molaro <[email protected]>
* interp.c: make segv_handler static, handle runtime methods in stack
trace.
svn path=/trunk/mono/; revision=1626
* file-io.c: Use mono_string_to_utf16() instead of
mono_string_chars()
* object.c: Added mono_string_to_utf16(), which copies the non
NULL-terminated MonoString into a new double-null-terminated
buffer.
svn path=/trunk/mono/; revision=1622
* cs-tokenizer.cs: Begin implementation of pre-procesor.
* expression.cs: Resolve the this instance before invoking the code.
svn path=/trunk/mcs/; revision=1617
* cs-parser.jay: Add a production in element_access that allows
the thing to become a "type" reference. This way we can parse
things like "(string [])" as a type.
Note that this still does not handle the more complex rules of
casts.
svn path=/trunk/mcs/; revision=1613
* x86.brg, jit.c: Split up the nodes that we used to share on
CONV_OVF. They were sharing the nodes because they are the same
on 32-bit machines, but on 64-bit machines you need different
code for them.
svn path=/trunk/mono/; revision=1608
* emit-x86.c (arch_handle_exception): new code to handle
exceptions inside unmanaged code.
* x86.brg: impl. SAVE_LMF, RESTORE_LMF, pass implizit valuetype
address as first argument.
* x86.brg: pass exceptions on the stack
* jit.h (ISSTRUCT): new macro to check for real value types
(return false for enum types).
* unicode.c (_wapi_unicode_to_utf8): byteswap UTF16 strings before
passing them to iconv
* file-io.c: raise exceptions if handle is invalid.
svn path=/trunk/mono/; revision=1603
* delegate.cs (Delegate.Populate): Register the delegage constructor builder here.
* ecore.cs: (CopyNewMethods): new utility function used to
assemble the list of methods from running FindMembers.
(MemberLookup): Rework FindMembers so that
svn path=/trunk/mcs/; revision=1602
* class.cs (TypeContainer): Remove Delegates who fail to be
defined.
* delegate.cs (Populate): Verify that we dont get null return
values. TODO: Check for AsAccessible.
* cs-parser.jay: Use basename to emit error 574 (destructor should
have the same name as container class), not the full name.
svn path=/trunk/mcs/; revision=1598
* expression.cs (ArrayCreation.DoResolve): We need to do the
argument resolution *always*.
* decl.cs: Make this hold the namespace. Hold the root context as
well.
(LookupType): Move here.
* enum.cs, class.cs, interface.cs: Adapt to new hierarchy.
* location.cs (Row, Name): Fixed the code, it was always returning
references to the first file.
* interface.cs: Register properties defined through interfaces.
* driver.cs: Add support for globbing on the command line
* class.cs (Field): Make it derive from MemberCore as well.
(Event): ditto.
svn path=/trunk/mcs/; revision=1589
* class.cs (Event::Define): Check that the type of the event is a delegate
type else flag error #66.
Also, re-use TypeContainer.MethodModifiersValid here too as the rules are the
same.
* attribute.cs (DefinePInvokeMethod): Handle named arguments and process
values of EntryPoint, CharSet etc etc.
Pass in the values to TypeBuilder.DefinePInvokeMethod; determine Type etc neatly.
* class.cs (FindMembers): If a method is in transit, its MethodBuilder will
be null and we should ignore this. I am not sure if this is really clean. Apparently,
there's no way of avoiding hitting this because the call is coming from SimpleName.DoResolve,
which needs this to do its work.
* ../errors/cs0066.cs : Add.
svn path=/trunk/mcs/; revision=1586
* makefile : Include test-52.cs in the suite, it works fine!
(NO_PASS): It's test-51 which doesn't seem to pass.
* test-50.cs : Augment some more to set named arguments on
the DllImport attribute.
* test-57.cs : Add. This tests support for Events and does not
pass yet.
svn path=/trunk/mcs/; revision=1584
* typemanager.cs: (GetPropertyGetter, GetPropertyGetter): New
helper functions.
* class.cs: (MethodSignature.MethodSignature): Removed hack that
clears out the parameters field.
(MemberSignatureCompare): Cleanup
(MemberCore): New base class used to share code between MethodCore
and Property.
(RegisterRequiredImplementations) BindingFlags.Public requires
either BindingFlags.Instace or Static. Use instance here.
* parameter.cs (GetParameterInfo): Return an empty array instead
of null on error.
svn path=/trunk/mcs/; revision=1576
* parameter.cs (GetParameterInfo): return a zero-sized array.
* class.cs (TypeContainer.MethodModifiersValid): Move all the
method modifier validation to the typecontainer so we can reuse
this on properties.
(MethodCore.ParameterTypes): return an empty sized array of types.
(Property.Define): Test property modifier validity.
Add tests for sealed/override too.
(Method.Emit): abstract or extern methods have no bodies.
svn path=/trunk/mcs/; revision=1572
* class.cs (Method.IsPInvoke): Get rid of it as it is an expensive
thing.
(Method::Define, ::Emit): Modify accordingly.
* expression.cs (Invocation::OverloadResolve): Handle error # 121.
svn path=/trunk/mcs/; revision=1571
* class.cs (TypeContainer.Define): Correctly define explicit
method implementations (they require the full interface name plus
the method name).
* typemanager.cs: Deply the PtrHashtable here and stop using the
lame keys. Things work so much better.
svn path=/trunk/mcs/; revision=1570
* support.cs (PtrHashtable): A hashtable that avoid comparing with
the object stupid Equals method (because, that like fails all over
the place). We still do not use it.
* class.cs (TypeContainer.SetRequiredInterface,
TypeContainer.RequireMethods): Killed these two routines and moved
all the functionality to RegisterRequiredImplementations.
(TypeContainer.RegisterRequiredImplementations): This routine now
registers all the implementations required in an array for the
interfaces and abstract methods. We use an array of structures
which can be computed ahead of time to reduce memory usage and we
also assume that lookups are cheap as most classes will not
implement too many interfaces.
We also avoid creating too many MethodSignatures.
(TypeContainer.IsInterfaceMethod): Update and optionally does not
clear the "pending" bit if we find that there are problems with
the declaration.
(TypeContainer.VerifyPendingMethods): Update to report errors of
methods that look like implementations but are not.
(TypeContainer.Define): Add support for explicit interface method
implementation.
svn path=/trunk/mcs/; revision=1568
* assembly.c: yet another check for mscorlib.
* class.c, class.h: load nesting info for classes.
* icall.c: many new functions to support the Reflection classes.
* metadata.c, metadata.h: mono_metadata_nested_in_typedef() added.
* reflection.h, reflection.c: mono_image_create_token(),
mono_assembly_get_object(), mono_type_get_object(),
mono_method_get_object(), mono_field_get_object(): methods to return
objects that parallel the C representation of assemblies, types,
methods, fields.
Thu Dec 13 20:24:28 CET 2001 Paolo Molaro <[email protected]>
* interp.c: correctly handle exceptions generated in C code.
Install an handler for SIGSEGV. Bare-bones profiler and hook for the
verifier.
svn path=/trunk/mono/; revision=1567
* typemanager.cs: Keep track of the parameters here instead of
being a feature of the TypeContainer.
* class.cs: Drop the registration of parameters here, as
InterfaceMethods are also interface declarations.
* delegate.cs: Register methods with the TypeManager not only with
the TypeContainer. This code was buggy.
* interface.cs: Full registation here.
svn path=/trunk/mcs/; revision=1564
* Linux.cs: IO implemented with file handles with internal calls,
rather than casting file descriptors for C library p/invokes.
Implemented Get/Set Creation/LastAccess/LastWrite TimeFile
functions.
2001-12-11 Dick Porter <[email protected]>
* FileStream.cs: Use handles rather than casting file descriptors.
Added Handle property.
2001-12-11 Dick Porter <[email protected]>
* DateTime.cs: Implemented FromFileTime() and ToFileTime()
* Console.cs: Use handles rather than casting file descriptors
2001-12-11 Dick Porter <[email protected]>
* WaitHandle.cs: Implemented WaitAll(), WaitAny() and WaitOne() as
internal calls.
svn path=/trunk/mcs/; revision=1557
* icall.c:
* file-io.c: Internal calls for file IO.
2001-12-11 Dick Porter <[email protected]>
* io.c: Implement DeleteFile(), GetFileTime(), SetFileTime() and
FileTimeToSystemTime().
* unicode.c (unicode_len): Nasty way of finding length of unicode
string with embedded NULLs (counts until two NULLs together).
svn path=/trunk/mono/; revision=1556
* x86.brg: use position indepentent code if possible.
* x86.brg (EMIT_COND_EXCEPTION): new macro.
* emit-x86.c (mono_emit_cfg): impl. variable code buffer size
* jit.c (mono_analyze_flow): use g_malloc0 o allocate large bcinfo
blocks.
(mono_analyze_flow): use g_malloc0 o allocate large bblocks array.
svn path=/trunk/mono/; revision=1553
* statement.cs (Return.Emit): Report error 157 if the user
attempts to return from a finally block.
(Return.Emit): Instead of emitting a return, jump to the end of
the function.
* codegen.cs (EmitContext): ReturnValue, ReturnLabel: new
LocalBuilder to store the result of the function. ReturnLabel is
the target where we jump.
svn path=/trunk/mcs/; revision=1548
* cs-parser.jay: remember alias in current namespace
* ecore.cs (SimpleName::DoResolve): use aliases for types or
namespaces
* class.cs (LookupAlias): lookup alias in my_namespace
* namespace.cs (UsingAlias): add alias, namespace_or_type pair to
aliases hashtable
(LookupAlias): lookup alias in this and if needed in parent
namespaces
svn path=/trunk/mcs/; revision=1546
* support.cs:
* rootcontext.cs: (ModuleBuilder) Made static, first step into
making things static. I need this to avoid passing the
TypeContainer when calling ParameterType.
* support.cs (InternalParameters.ParameterType): Remove ugly hack
that did string manipulation to compute the type and then call
GetType. Use Parameter.ParameterType instead.
* cs-tokenizer.cs: Consume the suffix for floating values.
* expression.cs (ParameterReference): figure out whether this is a
reference parameter or not. Kill an extra variable by computing
the arg_idx during emission.
* parameter.cs (Parameters.GetParameterInfo): New overloaded
function that returns whether a parameter is an out/ref value or not.
(Parameter.ParameterType): The type of the parameter (base,
without ref/out applied).
(Parameter.Resolve): Perform resolution here.
(Parameter.ExternalType): The full type (with ref/out applied).
* statement.cs (Using.Emit, Using.EmitExpression): Implement
support for expressions on the using statement.
2001-12-07 Miguel de Icaza <[email protected]>
* statement.cs (Using.EmitLocalVariableDecls): Split the
localvariable handling of the using statement.
(Block.EmitMeta): Keep track of variable count across blocks. We
were reusing slots on separate branches of blocks.
(Try.Emit): Emit the general code block, we were not emitting it.
Check the type of the declaration to be an IDisposable or
something that can be implicity converted to it.
Emit conversions if required.
* ecore.cs (EmptyExpression): New utility class.
(Expression.ImplicitConversionExists): New utility function.
svn path=/trunk/mcs/; revision=1544
* ChangeLog: Add the change log to this directory
* System.XML.build: Add dependancy on linux target to test target.
Need to have the dll before we can test it, right? Plus it encourages
others to try 'make test'.
svn path=/trunk/mcs/; revision=1536
* ChangeLog: Add the change log to this directory
* System.build: Add dependancy on linux target to test target. Need to
have the dll before we can test it, right? Plus it encourages others
to try 'make test'.
svn path=/trunk/mcs/; revision=1535
* ChangeLog: Add the change log to this directory
* corlib.build: Add dependancy on linux target to test target. Need to have the dll before we can test it, right? Plus it encourages others to try 'make test'.
svn path=/trunk/mcs/; revision=1534
* statement.cs (Using): Implement.
* expression.cs (LocalVariableReference): Support read only variables.
* statement.cs: Remove the explicit emit for the Leave opcode.
(VariableInfo): Add a readonly field.
svn path=/trunk/mcs/; revision=1532
* makefile: added new target test-jit
* Double.cs: added the parse method from Bob Smith
* DateTime.cs: added an icall to GetNow()
svn path=/trunk/mcs/; revision=1529
* ecore.cs (ConvCast): new class used to encapsulate the various
explicit integer conversions that works in both checked and
unchecked contexts.
(Expression.ConvertNumericExplicit): Use new ConvCast class to
properly generate the overflow opcodes.
2001-12-04 Miguel de Icaza <[email protected]>
* statement.cs: The correct type for the EmptyExpression is the
svn path=/trunk/mcs/; revision=1527
* class.cs (Method::Define): Handle PInvoke methods specially
by using DefinePInvokeMethod instead of the usual one.
* attribute.cs (DefinePInvokeMethod): Implement as this is what is called
above to do the task of extracting information and defining the method.
svn path=/trunk/mcs/; revision=1525
* x86.brg: impl. UNBOX, NEWSTRUCT, removed VTYPE, bug fixes,
removed the locaddr nonterminal, reimplemented value types
* jit.c: reimplemented value type support, better support for
enumeration types.
* object.c (mono_object_allocate): removed static, so that the jit
can allocate value types.
* icall.c (ves_icall_System_DateTime_GetNow): impl.
svn path=/trunk/mono/; revision=1523
* expression.cs (ArrayCreation::EmitStaticInitializers): Get rid
of the condition for string type.
(Emit): Move that here.
(ArrayCreation::CheckIndices): Keep string literals in their expression
form.
(EmitDynamicInitializers): Handle strings appropriately.
svn path=/trunk/mcs/; revision=1522
* codegen.cs (EmitContext): Replace multiple variables with a
single pointer to the current Switch statement.
* statement.cs (GotoDefault, Switch): Adjust to cleaned up
EmitContext.
svn path=/trunk/mcs/; revision=1518
* attribute.cs (CheckAttribute): Handle system attributes by using
Attribute.GetAttributes to examine information we need.
(GetValidPlaces): Same here.
* class.cs (Method::Define): Catch invalid use of extern and abstract together.
* typemanager.cs (dllimport_type): Core type for System.DllImportAttribute.
* class.cs (Method.IsPinvoke): Used to determine if we are a PInvoke method.
(Method::Define): Set appropriate flags if we have a DllImport attribute.
(Method::Emit): Handle the case when we are a PInvoke method.
svn path=/trunk/mcs/; revision=1514
* class.c: init enum types right away and register the
token->MonoClass map in mono_class_create_from_typedef ().
* verify.h, verify.c: first cut of the verifier.
* pedump.c: add --verify switch to verify metadata tables.
* tabledefs.h: add some missing enums.
Mon Dec 3 17:16:36 CET 2001 Paolo Molaro <[email protected]>
* jit.c: call mono_init() after registering internal calls.
Mon Dec 3 17:15:44 CET 2001 Paolo Molaro <[email protected]>
* interp.c: call mono_init() after registering internal calls.
svn path=/trunk/mono/; revision=1509
* constant.cs (EmitConstant): Make sure we resolve the associated expression
before trying to reduce it.
* typemanager.cs (RegisterConstant, LookupConstant): Implement.
* constant.cs (LookupConstantValue): Implement.
(EmitConstant): Use the above in emitting the constant.
* expression.cs (MemberAccess::ResolveMemberAccess): Handle constants
that are user-defined by doing a LookupConstantValue on them.
(SimpleName::DoResolve): When we have a FieldExpr, cope with constants
too, like above.
svn path=/trunk/mcs/; revision=1504
* expression.cs (BaseAccess, BaseIndexer): Also split this out.
(BaseAccess.DoResolve): Implement.
(MemberAccess.DoResolve): Split this routine into a
ResolveMemberAccess routine that can be used independently
2001-11-28 Miguel de Icaza <[email protected]>
* expression.cs (Probe, Is, As): Split Probe in two classes Is and
As that share bits of the implementation. Is returns a boolean,
while As returns the Type that is being probbed.
svn path=/trunk/mcs/; revision=1500
* enum.cs (LookupEnumValue): Re-write various bits, return an object value
instead of a Literal - much easier.
(EnumInTransit): Remove - utterly useless :-)
(Populate): Re-write bits - remove duplicate code etc. The code is much neater now.
* expression.cs (MemberLookup): Cope with user-defined enums when they are in transit.
* enum.cs (LookupEnumValue): Auto-compute next values by going down the dependency
chain when we have no associated expression.
2001-11-30 Ravi Pratap <[email protected]>
* constant.cs (Define): Use Location while reporting the errror.
Also emit a warning when 'new' is used and there is no inherited
member to hide.
* enum.cs (EnumInTransit): Used to tell if an enum type is in the process of being
populated.
(LookupEnumValue): Implement to lookup an enum member's value and define it
if necessary.
(Populate): Re-write accordingly to use the above routine.
svn path=/trunk/mcs/; revision=1498
2001-11-30 Radek Doulik <[email protected]>
* mono-endian.h: reverted last change
added function prototypes
* Makefile.am (libmetadata_a_SOURCES): reverted my last change and
add mono-endian.c back
* mono-endian.c: returned back, as Paolo pointed out, it's needed
for unaligned access, I've mistaked it with endianess. I am
sorry.
(mono_read16): fix reverted endianess
(mono_read64): ditto
(mono_read32): ditto
svn path=/trunk/mono/; revision=1491
* metadata.h, metadata.c: remove params_size and locals_size and their
calculation from the metadata code: they are only usefult to the
interp.
Fri Nov 30 12:02:24 CET 2001 Paolo Molaro <[email protected]>
* x86.brg: rearrange fields to reduce struct size.
* jit.c: use signature->param_count, not signature->params_size.
* debug.c: off-by-one error fix.
Fri Nov 30 12:05:21 CET 2001 Paolo Molaro <[email protected]>
* interp.c: calculate locals and args offsets only once
per method call. Cache trampoline code as well.
svn path=/trunk/mono/; revision=1488
* DataSourceUtils.cs -- Internal class. Does the job of resolving data from the source based on a member element.
----- This function is required during the OnDataBinding(EventArgs) method in several of the UI.*, UI.WebControtrols.* classes
svn path=/trunk/mcs/; revision=1483
* object.c (mono_ldstr): swap bytes here, it's probably not the
best place, but works for me now, I'll redo it once I know mono
better, also note that I add PROT_WRITE and don't reset back, also
note that it's only affects big endians, so x86 should be OK
* mono-endian.h (read16): use just glib macros for both endians
* mono-endian.c: removed as glib macros are used in in
mono-endian.h so we don't need to care about endianess for read
macros as glib does that for us already
svn path=/trunk/mono/; revision=1480
* Makefile.am: build mono only for X86 architecture, compilation
fails for ppc now because of accessing registers in sigcontext
structure
svn path=/trunk/mono/; revision=1479
* class.h, class.h: take minimum alignment into consideration so
that the fields of a class remain aligned also when in an array.
svn path=/trunk/mono/; revision=1469
* debug.c: fix type handling. Position function position at start of
IL code. Output more fine-grained stepping information.
svn path=/trunk/mono/; revision=1465
* expression.cs (This): Fix prototype for DoResolveLValue to
override the base class DoResolveLValue.
* cs-parser.cs: Report errors cs574 and cs575 (destructor
declarations)
* ecore.cs (FieldExpr.EmitAssign): Handle value types specially
(we need to load the address of the field here). This fixes
test-22.
(FieldExpr.DoResolveLValue): Call the DoResolve
function to initialize the Instance expression.
* statement.cs (Foreach.Emit): Fix the bug where we did not invoke
correctly the GetEnumerator operation on a value type.
* cs-parser.jay: Add more simple parsing error catches.
* statement.cs (Switch): Add support for string switches.
Handle null specially.
* literal.cs (NullLiteral): Make NullLiteral objects singletons.
svn path=/trunk/mcs/; revision=1460
* cs-parser.jay (local_constant_declaration): Use declare_local_constant.
(declare_local_constant): New helper function.
* statement.cs (AddConstant): Keep a separate record of constants
(IsConstant): Implement to determine if a variable is a constant.
(GetConstantExpression): Implement.
* expression.cs (LocalVariableReference): Handle the case when it is a constant.
* statement.cs (IsVariableDefined): Re-write.
2001-11-27 Ravi Pratap <[email protected]>
* class.cs (TypeContainer::FindMembers): Look for constants
in the case when we are looking for MemberTypes.Field
* expression.cs (MemberAccess::DoResolve): Check that in the
case we are a FieldExpr and a Literal, we are not being accessed
by an instance reference.
* cs-parser.jay (local_constant_declaration): Implement.
(declaration_statement): Implement for constant declarations.
svn path=/trunk/mcs/; revision=1458
* Int16Test.cs Int32Test.cs SByteTest.cs: Surgically removed tests that
rely on culture of system. These need to be crafted a bit differently.
svn path=/trunk/mcs/; revision=1451
* main.c: output a marker for method (used in debug support).
Tue Nov 27 16:32:41 CET 2001 Paolo Molaro <[email protected]>
* debug.c, debug.h: added support for generating stabs.
Stabs can be compiled with as and the resulting object file can be
loaded in a gdb session with add-symbol-file object.o.
* jit.c, jit.h: add --stabs and --debug command line arguments. Keep track
where locals and arguments are stored in the stack. Add support for
passing command line arguments to CLR programs.
* emit-x86.c: insert a breakpoint at method invocation if needed.
Tue Nov 27 16:39:01 CET 2001 Paolo Molaro <[email protected]>
* loader.h, loader.c: add mono_method_get_param_names().
* class.c: 0-init class fields.
svn path=/trunk/mono/; revision=1449
* jit.c: exception support
* emit-x86.c (arch_emit_epilogue): bug fix: restore the regs in
the right order.
* mono/tests/exception3.cs: modified the test to show a bug in the
current exception handling implementation.
svn path=/trunk/mono/; revision=1446
* Thread.cs: DataSlot uses a single system TLS slot, and a
hashtable per thread. Some minor changes to reflect the new
internal calls using the new IO library, and the newly-supported
bool returns from internal calls.
* Monitor.cs: Use bool returns from internal calls now they are
supported by the runtime. Coalesce enter with the try_enter
internal call.
2001-11-26 Dick Porter <[email protected]>
* LocalDataStoreSlot.cs: No need to delete a system TLS slot in
the finalise routine any more
svn path=/trunk/mcs/; revision=1441
* icall.c:
* threads-types.h:
* threads.c: New file that handles System.Threading on all platforms
* object.c:
* object.h: Remove the synchronisation struct from MonoObject,
replace it with a pointer that gets initialised on demand
* Makefile.am: Replace all the system-specific threading code with
a single file that uses the new wrapper library
2001-11-26 Dick Porter <[email protected]>
* critical-sections.c:
* events.c:
* handles.c:
* io.c:
* mutexes.c:
* semaphores.c:
* threads.c:
* timed-thread.c:
* wait.c: turn off DEBUG messages
2001-11-26 Dick Porter <[email protected]>
* Makefile.am (mono_LDADD): Add io-layer library
svn path=/trunk/mono/; revision=1440
style elsewhere in class libraries. Comments added.
* TcpListener.cs: Same
* Socket.cs: Filled out methods and properties and commented most of
them.
svn path=/trunk/mcs/; revision=1439
* expression.cs (ArrayCreation): Get rid of ArrayExprs : we save
some memory.
(EmitDynamicInitializers): Cope with the above since we extract data
directly from ArrayData now.
(ExpectInitializers): Keep track of whether initializers are mandatory
or not.
(Bounds): Make it a hashtable to prevent the same dimension being
recorded for every element in that dimension.
(EmitDynamicInitializers): Fix bug which prevented the Set array method
from being found.
Also fix bug which was causing the indices to be emitted in the reverse
order.
svn path=/trunk/mcs/; revision=1436
* expression.cs (ArrayCreation): Implement the bits that Ravi left
unfinished. They do not work, because the underlying code is
sloppy.
2001-11-22 Miguel de Icaza <[email protected]>
* cs-parser.jay: Remove bogus fixme.
* statement.cs (Switch, SwitchSection, SwithLabel): Started work
on Switch statement.
svn path=/trunk/mcs/; revision=1434
* expression.cs (ArrayCreation::Emit): Handle string initialization separately.
(MakeByteBlob): Handle types more correctly.
* expression.cs (ArrayCreation:Emit): Write preliminary code to do
initialization from expressions but it is incomplete because I am a complete
Dodo :-|
svn path=/trunk/mcs/; revision=1430
* typemanager.cs (IsDelegateType, IsEnumType): Fix logic to determine
the same.
* expression.cs (ArrayCreation::CheckIndices): Get rid of the require_constant
parameter. Apparently, any expression is allowed.
(ValidateInitializers): Update accordingly.
(CheckIndices): Fix some tricky bugs thanks to recursion.
* delegate.cs (NewDelegate::DoResolve): Re-write large portions as
I was being completely brain-dead.
(VerifyMethod, VerifyApplicability, VerifyDelegate): Make static
and re-write acordingly.
(DelegateInvocation): Re-write accordingly.
svn path=/trunk/mcs/; revision=1428
* statement.cs (If.Emit): Fix a bug that generated incorrect code
on If. Basically, we have to return `true' (ie, we do return to
our caller) only if both branches of the if return.
* expression.cs (Binary.Emit): LogicalOr and LogicalAnd are
short-circuit operators, handle them as short circuit operators.
svn path=/trunk/mcs/; revision=1427
* expression.cs (Cast.DoResolve): Resolve type.
(Cast.Cast): Take an expression as the target type.
* cs-parser.jay (cast_expression): Remove old hack that only
allowed a limited set of types to be handled. Now we take a
unary_expression and we resolve to a type during semantic
analysis.
Use the grammar productions from Rhys to handle casts (this is
not complete like Rhys syntax yet, we fail to handle that corner
case that C# has regarding (-x), but we will get there.
svn path=/trunk/mcs/; revision=1425
* ecore.cs : The error message was correct, it's the variable's names that
were misleading ;-) Make the code more readable.
(MemberAccess::DoResolve): Fix the code which handles Enum literals to set
the correct type etc.
(ConvertExplicit): Handle Enum types by examining the underlying type.
svn path=/trunk/mcs/; revision=1424
* class.cs (EmitFieldInitializer): Take care of the case when we have a
field which is an array type.
* cs-parser.jay (declare_local_variables): Support array initialization too.
svn path=/trunk/mcs/; revision=1419
* expression.cs (Binary.ResolveOperator): Update the values of `l'
and `r' after calling DoNumericPromotions.
* ecore.cs: Fix error message (the types were in the wrong order).
* statement.cs (Foreach.ProbeCollectionType): Need to pass
BindingFlags.Instance as well
svn path=/trunk/mcs/; revision=1417
* ecore.cs (Expression.TryImplicitIntConversion): Wrap the result
implicit int literal conversion in an empty cast so that we
propagate the right type upstream.
svn path=/trunk/mcs/; revision=1413
* ecore.cs (UnboxCast): new class used to unbox value types.
(Expression.ConvertExplicit): Add explicit type conversions done
by unboxing.
(Expression.ImplicitNumericConversion): Oops, forgot to test for
the target type before applying the implicit LongLiterals to ULong
literal cast.
svn path=/trunk/mcs/; revision=1412
* cs-parser.jay (for_statement): Reworked the way For works: now
we declare manually any variables that are introduced in
for_initializer to solve the problem of having out-of-band code
emition (that is what got for broken).
(declaration_statement): Perform the actual variable declaration
that used to be done in local_variable_declaration here.
(local_variable_declaration): Do not declare anything, just pass
the information on a DictionaryEntry
svn path=/trunk/mcs/; revision=1408
* expression.cs (ArrayCreation::CheckIndices): The story continues :-) Complete
re-write of the logic to now make it recursive.
(UpdateIndices): Re-write accordingly.
Store element data in a separate ArrayData list in the above methods.
(MakeByteBlob): Implement to dump the array data into a byte array.
2001-11-19 Ravi Pratap <[email protected]>
* expression.cs (ArrayCreation): Factor out some code from ValidateInitializers
into CheckIndices.
* constant.cs (Define): Implement.
(EmitConstant): Re-write fully.
Pass in location info.
* class.cs (Populate, Emit): Call Constant::Define and Constant::EmitConstant
respectively.
* cs-parser.jay (constant_declarator): Use VariableDeclaration instead of
DictionaryEntry since we need location info too.
(constant_declaration): Update accordingly.
* expression.cs (ArrayCreation): Make ValidateInitializers simpler by factoring
code into another method : UpdateIndices.
svn path=/trunk/mcs/; revision=1395
* AssemblyBuilder.cs: add method to register a string in the "#US"
stream.
* EnumBuilder.cs, SignatureHelper.cs: added stubs.
* ILGenerator.cs: more stuff implemented.
* LocalBuilder.cs: keep track of local var index.
Mon Nov 19 13:56:55 CET 2001 Paolo Molaro <[email protected]>
* MethodBase.cs: add internal get_next_table_index() for use in
Reflection.Emit.
svn path=/trunk/mcs/; revision=1384
* class.c, class.h: add mono_install_trampoline() so that the runtime
can register a function to create a trampoline: removes the ugly
requirement that a runtime needed to export arch_create_jit_trampoline.
* object.h, object.c: added mono_install_handler() so that the runtime
can install an handler for exceptions generated in C code (with
mono_raise_exception()). Added C struct for System.Delegate.
* pedump.c: removed arch_create_jit_trampoline.
* reflection.c: some cleanups to allow registering user strings and
later getting a token for methodrefs and fieldrefs before the assembly
is built.
* row-indexes.h: updates and fixes from the new ECMA specs.
Mon Nov 19 11:36:22 CET 2001 Paolo Molaro <[email protected]>
* jit.c: use mono_install_trampoline (), instead of exporting
a function to a lower-level library.
Mon Nov 19 11:33:00 CET 2001 Paolo Molaro <[email protected]>
* interp.c: start adding support for handling exceptions across
managed/unmanaged boundaries. Cleanup Delegate method invocation.
Pass the correct target object in Delegate::Invoke and use the correct
'this' pointer in ldvirtftn (bugs pointed out by Dietmar).
Mon Nov 19 11:32:28 CET 2001 Paolo Molaro <[email protected]>
* main.c: remove arch_create_jit_trampoline().
svn path=/trunk/mono/; revision=1380
* expression.cs (ArrayCreation::ValidateInitializers): Update to perform
some type checking etc.
2001-11-17 Ravi Pratap <[email protected]>
* expression.cs (ArrayCreation::ValidateInitializers): Implement
bits to provide dimension info is user skips doing that.
Update second constructor to store the rank correctly.
2001-11-16 Ravi Pratap <[email protected]>
* expression.cs (ArrayCreation::ValidateInitializers): Poke around
and try to implement.
* ../errors/cs0150.cs : Add.
* ../errors/cs0178.cs : Add.
svn path=/trunk/mcs/; revision=1377
* statement.cs: Implement foreach on multi-dimensional arrays.
* parameter.cs (Parameters.GetParameterByName): Also lookup the
name of the params argument.
* expression.cs: Use EmitStoreOpcode to get the right opcode while
initializing the array.
(ArrayAccess.EmitStoreOpcode): move the opcode generation here, so
we can use this elsewhere.
* statement.cs: Finish implementation of foreach for single
dimension arrays.
* cs-parser.jay: Use an out-of-band stack to pass information
around, I wonder why I need this.
foreach_block: Make the new foreach_block the current_block.
* parameter.cs (Parameters.GetEmptyReadOnlyParameters): New
function used to return a static Parameters structure. Used for
empty parameters, as those are created very frequently.
* cs-parser.jay, class.cs: Use GetEmptyReadOnlyParameters
2001-11-16 Miguel de Icaza <[email protected]>
* test-34.cs: Improve this test to check if we are actually
walking over the arguments in foreach.
svn path=/trunk/mcs/; revision=1371
* x86.brg (STRING_ARG): impl. a way to marshal strings. This
will be extensible to handle all possible kinds of marshalling
requirements.
* jit.c (map_call_type): added MB_TERM_CALL_VOID
(mono_analyze_stack): impl. LDELEMA, reimplemented CALL
instructions to handle this arguments more effectively.
svn path=/trunk/mono/; revision=1369
* support.cs (ReflectionParameters): Fix logic to determine
whether the last parameter is a params one. Test 9 passes again.
* delegate.cs (Populate): Register the builders we define with
RegisterParameterForBuilder. Test 19 passes again.
* cs-parser.jay (property_declaration): Reference $6 instead
of $$ to get at the location.
(indexer_declaration): Similar stuff.
(attribute): Ditto.
* class.cs (Property): Register parameters for the Get and Set methods
if they exist. Test 23 passes again.
* expression.cs (ArrayCreation::Emit): Pass null for the method in the
call to EmitArguments as we are sure there aren't any params arguments.
Test 32 passes again.
* suppor.cs (ParameterDesc, ParameterModifier): Fix trivial bug causing
IndexOutOfRangeException.
* class.cs (Property::Define): Register property using TypeManager.RegisterProperty
Test 33 now passes again.
svn path=/trunk/mcs/; revision=1366
* cs-parser.jay: Kill horrendous hack ($??? = lexer.Location) that
broke a bunch of things. Will have to come up with a better way
of tracking locations.
svn path=/trunk/mcs/; revision=1364
* Makefile.am (mono_SOURCES): renamed testjit to mono
* x86.brg: added debugging support
* testjit.c: added support for value types, CFG improvements
* emit-x86.c (enter_method): handle value types
(tree_allocate_regs): impl. a better way to handle chain rules
svn path=/trunk/mono/; revision=1363
* enum.cs (Enum.Emit): Delay the lookup of loc until we run into
an error. This removes the lookup from the critical path.
* cs-parser.jay: Removed use of temporary_loc, which is completely
broken.
svn path=/trunk/mcs/; revision=1357
* support.cs (ReflectionParameters.ParameterModifier): Report
whether the argument is a PARAMS argument or not.
* class.cs: Set the attribute `ParamArrayAttribute' on the
parameter argument.
* typemanager.cs: Define param_array_type (ParamArrayAttribute)
and cons_param_array_attribute (ConstructorInfo for
ParamArrayAttribute).,
* codegen.cs: Emit the return using the `Return' statement, that
way we can report the error correctly for missing return values.
* class.cs (Method.Emit): Clean up.
* expression.cs (Argument.Resolve): Take another argument: the
location where this argument is used. Notice that this is not
part of the "Argument" class as to reduce the size of the
structure (we know the approximate location anyways).
Test if the argument is a variable-reference, if not, then
complain with a 206.
(Argument.Emit): Emit addresses of variables.
(Argument.FullDesc): Simplify.
(Invocation.DoResolve): Update for Argument.Resolve.
(ElementAccess.DoResolve): ditto.
svn path=/trunk/mcs/; revision=1356
* delegate.cs (DelegateInvocation.Emit): Invocation of Invoke
method should be virtual, as this method is always virtual.
svn path=/trunk/mcs/; revision=1353
* x86/tramp.c: handle boolean as a return value.
* x96/x86-codegen.c: x86_widen_memindex() added.
Wed Nov 14 19:23:00 CET 2001 Paolo Molaro <[email protected]>
* interp.c: move the stack frame dumping code to a function so it can
be called from the debugger. Fix virtual method lookup for interfaces.
Throw exceptions instead of aborting in more places.
Print also the message in an exception. Updates for field renames in
corlib.
Wed Nov 14 19:26:06 CET 2001 Paolo Molaro <[email protected]>
* class.h, class.c: add a max_interface_id to MonoClass.
* icall.c: rename my_mono_new_object() to my_mono_new_mono_type()
since it's used to do that. Added mono_type_type_from_obj().
Make GetType() return NULL instead of segfaulting if the type was not
found. Handle simple arrays in assQualifiedName.
* object.h: add a struct to represent an Exception.
* reflection.c: output call convention in method signature.
Add code to support P/Invoke methods and fixed offsets for fields.
svn path=/trunk/mono/; revision=1352
* statement.cs (Foreach.Emit): Use EmitAssign instead of Store.
* expression.cs (ParameterReference): Drop IStackStorage and implement
IAssignMethod instead.
(LocalVariableReference): ditto.
* ecore.cs (FieldExpr): Drop IStackStorage and implement
IAssignMethod instead.
2001-11-13 Miguel de Icaza <[email protected]>
* parameter.cs, expression.cs, class.cs, ecore.cs: Made all
enumerations that are used in heavily used structures derive from
byte in a laughable and pathetic attempt to reduce memory usage.
This is the kind of pre-optimzations that you should not do at
home without adult supervision.
* expression.cs (UnaryMutator): New class, used to handle ++ and
-- separatedly from the other unary operators. Cleans up the
code, and kills the ExpressionStatement dependency in Unary.
(Unary): Removed `method' and `Arguments' from this class, making
it smaller, and moving it all to SimpleCall, so I can reuse this
code in other locations and avoid creating a lot of transient data
strucutres when not required.
* cs-parser.jay: Adjust for new changes.
2001-11-11 Miguel de Icaza <[email protected]>
* enum.cs (Enum.Populate): If there is a failure during
definition, return
* cs-parser.jay (opt_enum_base): we used to catch type errors
here, but this is really incorrect. The type error should be
catched during semantic analysis.
svn path=/trunk/mcs/; revision=1347
* cs-parser.jay (operator_declarator, conversion_operator_declarator): Set
current_local_parameters as expected since I, in my stupidity, had forgotten
to do this :-)
* attribute.cs (GetValidPlaces): Fix stupid bug.
* class.cs (Method::Emit): Perform check on applicability of attributes.
(Constructor::Emit): Ditto.
(Field::Emit): Ditto.
(Field.Location): Store location information.
(Property, Event, Indexer, Operator): Ditto.
* cs-parser.jay (field_declaration): Pass in location for each field.
* ../errors/cs0592.cs : Add.
2001-11-12 Ravi Pratap <[email protected]>
* typemanager.cs (attribute_usage_type): New static member for System.AttributeUsage.
(InitCoreTypes): Update accordingly.
(RegisterAttrType, LookupAttr): Implement.
* attribute.cs (Attribute.Targets, AllowMultiple, Inherited): New fields to hold
info about the same.
(Resolve): Update to populate the above as necessary.
(Error592): Helper.
(GetValidPlaces): Helper to the above.
(CheckAttribute): Implement to perform validity of attributes on declarative elements.
* class.cs (TypeContainer::Emit): Update attribute emission code to perform checking etc.
svn path=/trunk/mcs/; revision=1343
* threads.c: Implement TLS. Implement GetCurrentThreadId(), and
GetCurrentThread() by maintaining a hash of thread handles.
* threads.h: Define thread and process creation flags
svn path=/trunk/mono/; revision=1340
* 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)
svn path=/trunk/mono/; revision=1339
* semaphores.c: Implement semaphores
* wait.c (wait_for_item): Maintain a wait count rather than count
signalled booleans.
* threads.c (thread_wait_multiple): Don't lock the wait item, that
will block other wait threads
2001-11-11 Dick Porter <[email protected]>
* Makefile.am: Rename some automake variables
(from Nick Drochak <[email protected]>)
svn path=/trunk/mono/; revision=1329
* decimal.c, decimal.h: mono_double2decimal() get the sign bit from
the value.
* icall.c: use mono_array_addr instead of array->vector: fixes the
reflection image writing.
* reflection.c: init call convention byte to 0 in method signature.
Encode the property signature. Don't output property-related methods
twice. Really process the properties for a type (don't cast a field to
a property, my mom always told me that).
Fix 64 bit issues in pointer alignment in a different and more
readable way.
svn path=/trunk/mono/; revision=1328
* CLSCompliant.cs: Marked with AttributeUsage attribute.
* Decimal.cs: Fixed CLSCompliant attributes.
* Type.cs: changed _impl to internal (needs to be accessable by
subclasses).
(TypeHandle): Marked as abstract, implementation removed.
(IsNotPublic, IsPublic, GetMethods, GetPropery, GetConstructor,
GetMethod): Added stub implementations so NUnit would link against
corlib
* FileNotFoundException.cs: Added some constructors
* Path.cs (GetFullPath): Fixed implementation
* Assembly.cs: Filled in some stub implementations
* ConstructorInfo.cs: Added some stub functions for NUnit
* TypeBuilder.cs: Added implementation for TypeHandle.
svn path=/trunk/mcs/; revision=1326
* loader.c: Loaded MonoType, removed loading of Type
* icall.c (my_mono_new_object): Now returns a System.MonoType,
and fills in System.Type._impl with a RuntimeTypeHandle rather
than the actual MonoClass *
(ves_icall_type_from_handle): change from type_class to
monotype_class
(ves_icall_System_Runtime_InteropServices_Marshal_ReadIntPtr):
implemented
(ves_icall_System_Runtime_InteropServices_Marshal_PtrToStringAuto):
implemented
(ves_icall_System_Reflection_Assembly_LoadFrom): implemented
(ves_icall_System_Reflection_Assembly_GetType): implemented
(ves_icall_System_MonoType_assQualifiedName): implemented
(ves_icall_System_PAL_OpSys_GetCurrentDirecotry): implemented
svn path=/trunk/mono/; revision=1325
* enum.cs (Emit): Rename to Populate to be more consistent with what
we expect it to do and when exactly it is called.
* class.cs, rootcontext.cs : Update accordingly.
* typemanager.cs (RegisterField, GetValue): Workarounds for the fact that
FieldInfo.GetValue does not work on dynamic types ! S.R.E lameness strikes again !
* enum.cs (Populate): Register fields with TypeManager.RegisterField.
* expression.cs (MemberAccess.DoResolve): Adjust code to obtain the value
of a fieldinfo using the above, when dealing with a FieldBuilder.
2001-11-10 Ravi Pratap <[email protected]>
* ../errors/cs0031.cs : Add.
* ../errors/cs1008.cs : Add.
* ../errrors/cs0543.cs : Add.
* enum.cs (DefineEnum): Check the underlying type and report an error if not a valid
enum type.
(FindMembers): Implement.
* typemanager.cs (FindMembers): Re-write to call the appropriate methods for
enums and delegates too.
(enum_types): Rename to builder_to_enum.
(delegate_types): Rename to builder_to_delegate.
* delegate.cs (FindMembers): Implement.
svn path=/trunk/mcs/; revision=1324
* Calendar.cs Added some functions, provided skeleton to some more
* BaseCompareValidator.cs Still wondering how to implement this
svn path=/trunk/mcs/; revision=1321
* main.c, dump, dump.c: decode the customattr table.
* dump.c: handle also field signature when dumping the memberref
table.
svn path=/trunk/mono/; revision=1318
* pthread-compat.c: added some include files to make it compile on
linux.
* x86.brg (INITOBJ): bug fix: initialize data before use,
simplified the code.
svn path=/trunk/mono/; revision=1316
* testjit.c (mono_analyze_stack): Remove compiler warning by
testing against NULL.
2001-11-09 Miguel de Icaza <[email protected]>
* assembly.c (mono_assembly_open): Implement a cache for the
assemblies.
(mono_assembly_close): only destroy the assembly when the last
reference is gone.
svn path=/trunk/mono/; revision=1312
* typemanager.cs (IsEnumType): Implement.
* enum.cs (Emit): Re-write parts to account for the underlying type
better and perform checking etc.
(GetNextDefaultValue): Helper to ensure we don't overshoot max value
of the underlying type.
* literal.cs (GetValue methods everywhere): Perform bounds checking and return
value
* enum.cs (error31): Helper to report error #31.
* cs-parser.jay (enum_declaration): Store location of each member too.
* enum.cs (member_to_location): New hashtable.
(AddEnumMember): Update location hashtable.
(Emit): Use the location of each member while reporting errors.
svn path=/trunk/mcs/; revision=1311
* 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-11-08 Dick Porter <[email protected]>
* Initial checkin.
This is a library emulating the win32 threading and IO API.
2001-11-09 Dick Porter <[email protected]>
* Makefile.am (mint_LDADD): Don't need THREAD_LIBS any more
2001-11-09 Dick Porter <[email protected]>
* Makefile.am (testjit_LDADD): Don't need THREAD_LIBS any more
2001-11-09 Dick Porter <[email protected]>
* Makefile.am (pedump_LDADD): Don't need THREAD_LIBS any more
svn path=/trunk/mono/; revision=1310
* testjit.c (mono_analyze_stack): finished array support
2001-11-08 Dietmar Maurer <[email protected]>
* testjit.c (MAKE_STELEM, MAKE_LDELEM): we build a tree which
represents the address of the element. This way we can emit highly
optimized x86 instructions to access elements (using base+index+offset
adressing mode)
svn path=/trunk/mono/; revision=1305
* cs-parser.jay: A for_initializer if is a
local_variable_declaration really ammount to have an implicit
block with the variable declaration and no initializer for for.
* statement.cs (For.Emit): Cope with null initializers.
This fixes the infinite loop on for initializers.
svn path=/trunk/mcs/; revision=1303
* UrlUtils.cs Added the following functions:
GetProtocol(string) -> Returns the protocol used (before ://)
IsRootUrl(string) -> Is the url supplied is RootUrl
IsValidProtocol(string)
-> Can the protocol represent a valid protocol
RegionMatches(...) -> Matches an inner part of a string
svn path=/trunk/mcs/; revision=1302
* x86/tramp.c: Include stdlib to kill warning.
2001-11-07 Miguel de Icaza <[email protected]>
* main.c (dis_property_methods): Added missing colon which avoided
setting loc.t
2001-11-07 Miguel de Icaza <[email protected]>
* interp.c: Include stdlib to kill warning.
(check_corlib): Adjust format encodings to remove warnings.
2001-11-07 Miguel de Icaza <[email protected]>
* reflection.c (build_compressed_metadata): Eliminates warnings
and uses 64-bit clean code.
* metadata.c (mono_type_hash): Change signature to eliminate warnings.
(mono_type_equal): Change signature to eliminate warnings.
2001-11-07 Miguel de Icaza <[email protected]>
* monoburg.y: Include string.h, stdlib.h to kill warnings.
* sample.brg: Include string.h to remove warnings.
svn path=/trunk/mono/; revision=1298
* class.cs (Property): Emit attributes.
(Field): Ditto.
(Event): Ditto.
(Indexer): Ditto.
(Operator): Ditto.
* enum.cs (Emit): Ditto.
* rootcontext.cs (ResolveTree, EmitCode, CloseTypes): Do the same for
Enums too.
* class.cs (Field, Event, etc.): Move attribute generation into the
Emit method everywhere.
* enum.cs (Enum): Revamp to use the same definition semantics as delegates so
we have a DefineEnum, CloseEnum etc. The previous way of doing things was not right
as we had no way of defining nested enums !
* rootcontext.cs : Adjust code accordingly.
* typemanager.cs (AddEnumType): To keep track of enum types separately.
2001-11-07 Ravi Pratap <[email protected]>
* expression.cs (EvalConstantExpression): Move into ecore.cs
* enum.cs (Enum): Rename some members and make them public and readonly
according to our convention.
* modifiers.cs (EnumAttr): Implement as we need to set only visibility flags,
nothing else.
* enum.cs (Enum::Define): Use the above instead of TypeAttr.
(Enum::Emit): Write a simple version for now which doesn't try to compute
expressions. I shall modify this to be more robust in just a while.
* class.cs (TypeContainer::Emit): Make sure we include Enums too.
(TypeContainer::CloseType): Create the Enum types too.
* attribute.cs (Resolve): Use the new Reduce method instead of EvalConstantExpression.
* expression.cs (EvalConstantExpression): Get rid of completely.
* enum.cs (Enum::Emit): Use the new expression reducer. Implement assigning
user-defined values and other cases.
(IsValidEnumLiteral): Helper function.
* expression.cs (ExprClassfromMemberInfo): Modify to not do any literalizing
out there in the case we had a literal FieldExpr.
(MemberAccess:DoResolve): Do the literalizing of the FieldExpr here.
(Literalize): Revamp a bit to take two arguments.
(EnumLiteral): New class which derives from Literal to wrap enum literals.
2001-11-06 Ravi Pratap <[email protected]>
* cs-parser.jay (compilation_unit): Remove extra opt_attributes for now.
* expression.cs (ArrayCreation::ValidateInitializers): Implement.
(Resolve): Use the above to ensure we have proper initializers.
2001-11-05 Ravi Pratap <[email protected]>
* expression.cs (Expression::EvalConstantExpression): New method to
evaluate constant expressions.
* attribute.cs (Attribute::Resolve): Modify bits to use the above function.
svn path=/trunk/mcs/; revision=1293
* makefile(s): add 'test' target, so now you can do 'make test'
and something useful will happen.
* *.build: link NUnit test dll's with the mono assembly they are
supposed to test, and suppress 1595 warnings.
svn path=/trunk/mcs/; revision=1291
* corlib.build: put /norwarn in for 0169 and 0649 since most of the
classes have unused fields, but it's really an problem right now
because we know the class isn't finished. 'make' should be a lot
quieter now!
svn path=/trunk/mcs/; revision=1288
* expression.cs (ArrayCreation.Emit): Some bits to initialize data
in an array.
(Binary.ResolveOperator): Handle operator != (object a, object b)
and operator == (object a, object b);
(Binary.DoNumericPromotions): Indicate whether the numeric
promotion was possible.
(ArrayAccess.DoResolve, ArrayAccess.Emit, ArrayAccess.EmitAssign):
Implement.
Made the ArrayAccess implement interface IAssignMethod instead of
IStackStore as the order in which arguments are passed reflects
this.
svn path=/trunk/mcs/; revision=1284
* corlib.build: build a corlib that can be linked against the nunit
test dll's when linux is the target (just like windows).
Added /nowarn 0649 and 0169 to cut down on the compiler noise for
all the unused fields we have in the stubs.
svn path=/trunk/mcs/; revision=1283
* icall.c, loader.c: remove the internalcall array constructors.
Changes to match the new MonoArray structure.
* object.h, object.c: an array object doesn't allocate an extra
vector. Add mono_array_new_full () to create jagged arrays easily.
Mon Nov 5 19:51:06 CET 2001 Paolo Molaro <[email protected]>
* metadata.h, metadata.c: add mono_metadata_field_info () to
retreive all the info about a field from vairous tables.
* icall.c: implement S.Runtime.CServices::InitializeArray () icall.
* class.h, class.c: augment MonoClassField with more info.
Implemented mono_ldtoken for fields. Implemented ExplicitLayout
policy and load a field's RVA if needed.
Wed Nov 7 15:47:36 CET 2001 Paolo Molaro <[email protected]>
* interp.c: updates for changes in array code.
Fri Nov 2 19:06:54 CET 2001 Paolo Molaro <[email protected]>
* interp.c: hanlde field refs. Throw an exception on NULL references.
Check consistency of corlib types with the C struct representation.
svn path=/trunk/mono/; revision=1280
* emit-x86.c (enter_method): print out all method arguments
(x86_magic_trampoline): impl.
(arch_create_simple_jit_trampoline): we use different trampolines
for static methods (no need to write the address back into to
vtable).
svn path=/trunk/mono/; revision=1278
* expression.cs (ArrayCreation.Emit): Some bits to initialize data
in an array.
* typemanager.cs: Load InitializeArray definition.
* rootcontext.cs (RootContext.MakeStaticData): Used to define
static data that can be used to initialize arrays.
svn path=/trunk/mcs/; revision=1277
* expression.cs: Handle operator== and operator!= for booleans.
(Conditioal.Reduce): Implement reducer for the ?: operator.
(Conditional.Resolve): Implement dead code elimination.
(Binary.Resolve): Catch string literals and return a new
concatenated string.
(Unary.Reduce): Implement reduction of unary expressions.
* ecore.cs: Split out the expression core handling here.
(Expression.Reduce): New method used to perform constant folding
and CSE. This is needed to support constant-expressions.
* statement.cs (Statement.EmitBoolExpression): Pass true and false
targets, and optimize for !x.
svn path=/trunk/mcs/; revision=1274
Tue Nov 6 09:11:43 CET 2001 Paolo Molaro <[email protected]>
* AppDomain.cs: use an internal constructor for AssemblyBuilder.
Tue Nov 6 09:13:45 CET 2001 Paolo Molaro <[email protected]>
* AssemblyBuilder.cs: define an internal constructor.
svn path=/trunk/mcs/; revision=1272
* interp.c: hanlde field refs. Throw an exception on NULL references.
Check consistency of corlib types with the C struct representation.
Fri Nov 2 19:37:51 CET 2001 Paolo Molaro <[email protected]>
* class.h, class.c: include name in MonoClassField.
* class.c: fix fundamental type of System.Object and System.String.
Set the right fundamental type for SZARRAY, too. Handle TypeSpec
tokens in ldtoken.
* icall.c: remove internalcalls for the Reflection stuff that is now
done in C# code.
* loader.c: mono_field_from_memberref () implementation.
* mono-endian.c: thinko (s/struct/union/g).
* object.c, object.h: make the mono_string_* prototypes actually use
MonoString instead of MonoObject.
* reflection.c, reflection.h: updates for changes in the reflection
code in corlib: we use C structures that map to the actual C# classes.
Handle SZARRAYs when encoding types. Handle locals in methods. Use a
fat method header if needed and use the info from the ILGenerator for
methods. Handle fields in types. Misc fixes.
svn path=/trunk/mono/; revision=1262
* String.cs: fix a couple of bugs.
* AppDomain.cs: use new AppBuilder constructor.
* Buffer.cs, GC.cs, NonSerializedAttribute.cs,
NotImplementedException.cs, ObjectDisposedException.cs,
UnauthorizedAccessException.cs: add implementation.
* OverflowException.cs: fix class name.
Fri Nov 2 18:29:36 CET 2001 Paolo Molaro <[email protected]>
* AmbiguousMatchException.cs,
* Assembly.cs, Module.cs: updates.
* FieldInfo.cs: better compliance to the spec.
* MethodBase.cs: move call_conv out of the way.
* AssemblyBuilder.cs: don't use internalcalls, more stuff supported.
* FieldBuilder.cs: implemented.
* ILGenerator.cs: implemented some opcode handling.
* Label.cs: add constructor.
* LocalBuilder.cs: implemented.
* MethodBuilder.cs: don't use internalcalls, more implemented stuff.
* ModuleBuilder.cs: don't use internalcalls, more meat here, too.
* ParameterBuilder.cs: implemented.
* PropertyBuilder.cs: implemented.
* TypeBuilder.cs: don't use internalcalls, more stuff working.
Fri Nov 2 18:27:58 CET 2001 Paolo Molaro <[email protected]>
* DirectoryNotFoundException.cs: implemented.
svn path=/trunk/mcs/; revision=1260
* attribute.cs (Attribute::Resolve): Implement guts. Note that resolution
of an attribute gives us a CustomAttributeBuilder which we use accordingly to
set custom atttributes.
* literal.cs (Literal::GetValue): New abstract method to return the actual
value of the literal, cast as an object.
(*Literal): Implement GetValue method.
* cs-parser.jay (positional_argument_list, named_argument_list): Add not just plain
expressions to the arraylist but objects of type Argument.
* class.cs (TypeContainer::Emit): Emit our attributes too.
(Method::Emit, Constructor::Emit): Ditto.
* cs-parser.jay (constructor_declaration): Set attributes too, which we seemed
to be ignoring earlier.
2001-11-03 Ravi Pratap <[email protected]>
* attribute.cs (AttributeSection::Define): Implement to do the business
of constructing a CustomAttributeBuilder.
(Attribute): New trivial class. Increases readability of code.
* cs-parser.jay : Update accordingly.
(positional_argument_list, named_argument_list, named_argument): New rules
(attribute_arguments): Use the above so that we are more correct.
2001-11-02 Ravi Pratap <[email protected]>
* expression.cs (Invocation::IsParamsMethodApplicable): Implement
to perform all checks for a method with a params parameter.
(Invocation::OverloadResolve): Update to use the above method and therefore
cope correctly with params method invocations.
* support.cs (InternalParameters::ParameterDesc): Provide a desc for
params too.
* class.cs (ConstructorInitializer::Resolve): Make sure we look for Non-public
constructors in our parent too because we can't afford to miss out on
protected ones ;-)
* attribute.cs (AttributeSection): New name for the class Attribute
Other trivial changes to improve readability.
* cs-parser.jay (opt_attributes, attribute_section etc.): Modify to
use the new class names.
2001-11-01 Ravi Pratap <[email protected]>
* class.cs (Method::Define): Complete definition for params types too
(Indexer::Define): Ditto.
* support.cs (InternalParameters::ParameterType, ParameterDesc, ParameterModifier):
Cope everywhere with a request for info about the array parameter.
svn path=/trunk/mcs/; revision=1257
* Queue.cs: Fixed small syntax errors that were preventing the compile.
I changed the build file to include Queue.cs as well.
svn path=/trunk/mcs/; revision=1251
* RandomTest.cs: Add message to Assert() in TestDouble.
Double.ToString() is not implemented yet, so this doesn't
help.
svn path=/trunk/mcs/; revision=1250
* ArrayList.cs: Fixed "off by one" error when shifting left the array when
items are removed.
* CollectionBase.cs: Added OnValidate(), OnRemove() and OnRemoveComplete()
hook methods to the RemoveAt() method.
svn path=/trunk/mcs/; revision=1248
* emit-x86.c (enter_method): new debugging code
(leave_method): new debbuging code, this functions are called
when you use the new option --trace-calls
svn path=/trunk/mono/; revision=1246
* tree.cs (RecordNamespace): Fix up to check for the correct key.
* cs-parser.jay (GetQualifiedIdentifier): New Helper method used in
local_variable_type to extract the string corresponding to the type.
(local_variable_type): Fixup the action to use the new helper method.
* codegen.cs : Get rid of RefOrOutParameter, it's not the right way to
go.
* expression.cs : Clean out code which uses the above.
svn path=/trunk/mcs/; revision=1239
* typemanager.cs (RegisterMethod): Check if we already have an existing key
and bale out if necessary by returning a false.
(RegisterProperty): Ditto.
* class.cs (everywhere): Check the return value from TypeManager.RegisterMethod
and print out appropriate error messages.
* interface.cs (everywhere): Ditto.
* cs-parser.jay (property_declaration, event_declaration, indexer_declaration): Pass
location to constructor.
* class.cs (Property, Event, Indexer): Update accordingly.
* ../errors/cs111.cs : Added.
* expression.cs (Invocation::IsApplicable): New static method to determine applicability
of a method, as laid down by the spec.
(Invocation::OverloadResolve): Use the above method.
svn path=/trunk/mcs/; revision=1234
* support.cs (InternalParameters): Get rid of crap taking in duplicate info. We
now take a TypeContainer and a Parameters object.
(ParameterData): Modify return type of ParameterModifier method to be
Parameter.Modifier and not a string.
(ReflectionParameters, InternalParameters): Update accordingly.
* expression.cs (Argument::GetParameterModifier): Same here.
* support.cs (InternalParameters::ParameterType): Find a better way of determining
if we are a ref/out parameter. Actually, the type shouldn't be holding the '&'
symbol in it at all so maybe this is only for now.
svn path=/trunk/mcs/; revision=1232
* support.cs (InternalParameters): Constructor now takes an extra argument
which is the actual Parameters class.
(ParameterDesc): Update to provide info on ref/out modifiers.
* class.cs (everywhere): Update call to InternalParameters to pass in
the second argument too.
* support.cs (ParameterData): Add ParameterModifier, which is a method
to return the modifier info [ref/out etc]
(InternalParameters, ReflectionParameters): Implement the above.
* expression.cs (Argument::ParameterModifier): Similar function to return
info about the argument's modifiers.
(Invocation::OverloadResolve): Update to take into account matching modifiers
too.
* class.cs (Indexer::Define): Actually define a Parameter object and put it onto
a new SetFormalParameters object which we pass to InternalParameters.
svn path=/trunk/mcs/; revision=1230
* expression.cs (NewArray): Merge into the ArrayCreation class.
2001-10-29 Ravi Pratap <[email protected]>
* expression.cs (NewArray): Merge classes NewBuiltinArray and
NewUserdefinedArray into one as there wasn't much of a use in having
two separate ones.
* expression.cs (Argument): Change field's name to ArgType from Type.
(Type): New readonly property which returns the proper type, taking into
account ref/out modifiers.
(everywhere): Adjust code accordingly for the above.
* codegen.cs (EmitContext.RefOrOutParameter): New field to determine
whether we are emitting for a ref or out parameter.
* expression.cs (Argument::Emit): Use the above field to set the state.
(LocalVariableReference::Emit): Update to honour the flag and emit the
right stuff.
* parameter.cs (Attributes): Set the correct flags for ref parameters.
* expression.cs (Argument::FullDesc): New function to provide a full desc.
* support.cs (ParameterData): Add method ParameterDesc to the interface.
(ReflectionParameters, InternalParameters): Implement the above method.
* expression.cs (Invocation::OverloadResolve): Use the new desc methods in
reporting errors.
(Invocation::FullMethodDesc): Ditto.
svn path=/trunk/mcs/; revision=1229
* cs-parser.jay: Add extra production for the second form of array
creation.
* expression.cs (ArrayCreation): Update to reflect the above
change.
svn path=/trunk/mcs/; revision=1228
* StringBuilder.cs: Throw exceptions when constructor paramter(s) are
invalid. Just like MS does (as best as I can tell).
Tests for these exceptions are now added to the unit tests as well.
svn path=/trunk/mcs/; revision=1225
* typemanager.cs (ImplementsInterface): interface might be null;
Deal with this problem;
Also, we do store negative hits on the cache (null values), so use
this instead of calling t.GetInterfaces on the type everytime.
svn path=/trunk/mcs/; revision=1222
* typemanager.cs (IsBuiltinType): New method to help determine the same.
* expression.cs (New::DoResolve): Get rid of array creation code and instead
split functionality out into different classes.
(New::FormArrayType): Move into NewBuiltinArray.
(Invocation::EmitArguments): Get rid of the MethodBase argument. Appears
quite useless.
(NewBuiltinArray): New class to handle creation of built-in arrays.
(NewBuiltinArray::DoResolve): Implement guts of array creation. Also take into
account creation of one-dimensional arrays.
(::Emit): Implement to use Newarr and Newobj opcodes accordingly.
(NewUserdefinedArray::DoResolve): Implement.
* cs-parser.jay (local_variable_type): Fix up to add the rank to the variable too.
* typemanager.cs (AddModule): Used to add a ModuleBuilder to the list of modules
we maintain inside the TypeManager. This is necessary to perform lookups on the
module builder.
(LookupType): Update to perform GetType on the module builders too.
* driver.cs (Driver): Add the ModuleBuilder to the list maintained by the TypeManager.
* exprssion.cs (NewUserdefinedArray::Emit): Implement.
svn path=/trunk/mcs/; revision=1221
* Delegate.cs (Delegate.CombineImpl): Implement.
(Delegate.Combine): Implement.
* MulticastDelegate.cs (MulticastDelegate.Equals): Implement.
(MulticastDelegate.CombineImpl): This was not as trivial as I
thought.
* ContextStaticAttribute.cs: Added AttributeUsage to
ContextStaticAttribute.
* FlagsAttribute.cs: Add AttributeUsage to FlagsAttribute
svn path=/trunk/mcs/; revision=1216
* expression.cs:
(Expression.Resolve): Report a 246 error (can not resolve name)
if we find a SimpleName in the stream.
(Expression.ResolveLValue): Ditto.
(Expression.ResolveWithSimpleName): This function is a variant of
ResolveName, this one allows SimpleNames to be returned without a
warning. The only consumer of SimpleNames is MemberAccess
svn path=/trunk/mcs/; revision=1213
* expression.cs (Invocation::DoResolve): Catch SimpleNames that
might arrive here. I have my doubts that this is correct.
* statement.cs (Lock): Implement lock statement.
* cs-parser.jay: Small fixes to support `lock' and `using'
* cs-tokenizer.cs: Remove extra space
* driver.cs: New flag --checked, allows to turn on integer math
checking.
* typemanger.cs: Load methodinfos for Threading.Monitor.Enter and
Threading.Monitor.Exit
svn path=/trunk/mcs/; revision=1207
interpreter (although new warning are now there, we need to get the
Decimal internalcalls in place).
Implement some bits of CultureInfo, but it is yet far from finished.
svn path=/trunk/mcs/; revision=1205
* StringBuilder.cs: Throw exception if they try to make a StringBuilder
whose capacity is greater than the MaxCapacity.
I added some tests for the constructors and the above exception. More
coming soon.
svn path=/trunk/mcs/; revision=1198
* StringBuilder.cs: Refactored constructor code into just one
constructor. All the other construtors call it. Also supplied missing
constructors so the class has all those in the spec.
Added the MaxCapacity property as well, however this needs to be
completed to return a value is related to the available system memory.
svn path=/trunk/mcs/; revision=1197
* typemanager.cs (ImplementsInterface): New method to determine if a type
implements a given interface. Provides a nice cache too.
* expression.cs (ImplicitReferenceConversion): Update checks to use the above
method.
(ConvertReferenceExplicit): Ditto.
* delegate.cs (Delegate::Populate): Update to define the parameters on the
various methods, with correct names etc.
* class.cs (Operator::OpType): New members Operator.UnaryPlus and
Operator.UnaryNegation.
* cs-parser.jay (operator_declarator): Be a little clever in the case where
we have a unary plus or minus operator.
* expression.cs (Unary): Rename memebers of Operator enum to UnaryPlus and
UnaryMinus.
* everywhere : update accordingly.
* everywhere : Change Negate and BitComplement to LogicalNot and OnesComplement
respectively.
* class.cs (Method::Define): For the case where we are implementing a method
inherited from an interface, we need to set the MethodAttributes.Final flag too.
Also set MethodAttributes.NewSlot and MethodAttributes.HideBySig.
svn path=/trunk/mcs/; revision=1194
* makefile : New target 'verify' which uses the verifier to check
that executables produced by us are identical to the MS' produced ones.
* test-7.cs : Update to exercise more overloadable operators.
svn path=/trunk/mcs/; revision=1193
* interface.cs (FindMembers): Implement to work around S.R.E
lameness.
* typemanager.cs (IsInterfaceType): Implement.
(FindMembers): Update to handle interface types too.
* expression.cs (ImplicitReferenceConversion): Re-write bits which
use IsAssignableFrom as that is not correct - it doesn't work.
* delegate.cs (DelegateInvocation): Derive from ExpressionStatement
and accordingly override EmitStatement.
* expression.cs (ConvertReferenceExplicit): Re-write similary, this time
using the correct logic :-)
svn path=/trunk/mcs/; revision=1188
* assign.cs (Assign::Resolve): Resolve right hand side first, and
then pass this as a hint to ResolveLValue.
* expression.cs (FieldExpr): Add Location information
(FieldExpr::LValueResolve): Report assignment to readonly
variable.
(Expression::ExprClassFromMemberInfo): Pass location information.
(Expression::ResolveLValue): Add new method that resolves an
LValue.
(Expression::DoResolveLValue): Default invocation calls
DoResolve.
(Indexers): New class used to keep track of indexers in a given
Type.
(IStackStore): Renamed from LValue, as it did not really describe
what this did. Also ResolveLValue is gone from this interface and
now is part of Expression.
(ElementAccess): Depending on the element access type
* typemanager.cs: Add `indexer_name_type' as a Core type
(System.Runtime.CompilerServices.IndexerNameAttribute)
* statement.cs (Goto): Take a location.
svn path=/trunk/mcs/; revision=1185
System.build: Fixed clean target
System.XML.build: Output changed to System.Xml.dll not from System.XML
corlib.build: More things excluded from testing corlib
HashtableTest.cs: Don't print extra debug info during tests
Windows.cs: Added code to read/write/open/close files
svn path=/trunk/mcs/; revision=1181
* delegate.cs (Delegate::VerifyDelegate): New method to verify
if two delegates are compatible.
(NewDelegate::DoResolve): Update to take care of the case when
we instantiate a delegate from another delegate.
* typemanager.cs (FindMembers): Don't even try to look up members
of Delegate types for now.
svn path=/trunk/mcs/; revision=1180
* delegate.cs (NewDelegate): New class to take care of delegate
instantiation.
* expression.cs (New): Split the delegate related code out into
the NewDelegate class.
* delegate.cs (DelegateInvocation): New class to handle delegate
invocation.
* expression.cs (Invocation): Split out delegate related code into
the DelegateInvocation class.
svn path=/trunk/mcs/; revision=1178
* expression.cs (New::DoResolve): Implement delegate creation fully
and according to the spec.
(New::DoEmit): Update to handle delegates differently.
(Invocation::FullMethodDesc): Fix major stupid bug thanks to me
because of which we were printing out arguments in reverse order !
* delegate.cs (VerifyMethod): Implement to check if the given method
matches the delegate.
(FullDelegateDesc): Implement.
(VerifyApplicability): Implement.
* expression.cs (Invocation::DoResolve): Update to accordingly handle
delegate invocations too.
(Invocation::Emit): Ditto.
* ../errors/cs1593.cs : Added.
* ../errors/cs1594.cs : Added.
* delegate.cs (InstanceExpression, TargetMethod): New properties.
2001-10-16 Ravi Pratap <[email protected]>
* typemanager.cs (intptr_type): Core type for System.IntPtr
(InitCoreTypes): Update for the same.
(iasyncresult_type, asynccallback_type): Ditto.
* delegate.cs (Populate): Fix to use System.Intptr as it is indeed
correct.
* typemanager.cs (AddDelegateType): Store a pointer to the Delegate class
too.
* delegate.cs (ConstructorBuilder, InvokeBuilder, ...): New members to hold
the builders for the 4 members of a delegate type :-)
(Populate): Define the BeginInvoke and EndInvoke methods on the delegate
type.
* expression.cs (New::DoResolve): Implement guts for delegate creation.
* ../errors/errors.txt : Update for an error (-11) which only we catch :-)
svn path=/trunk/mcs/; revision=1175
* statement.cs (Break::Emit): Implement.
(Continue::Emit): Implement.
(For::Emit): Track old being/end loops; Set Begin loop, ack end loop
(While::Emit): Track old being/end loops; Set Begin loop, ack end loop
(Do::Emit): Track old being/end loops; Set Begin loop, ack end loop
(Foreach::Emit): Track old being/end loops; Set Begin loop, ack
end loop
* codegen.cs (EmitContext::LoopEnd, EmitContext::LoopBegin): New
properties that track the label for the current loop (begin of the
loop and end of the loop).
svn path=/trunk/mcs/; revision=1169
* delegate.cs (Emit): Get rid of it as there doesn't seem to be any ostensible
use of emitting anything at all.
* class.cs, rootcontext.cs : Get rid of calls to the same.
* delegate.cs (DefineDelegate): Make sure the class we define is also sealed.
(Populate): Define the constructor correctly and set the implementation
attributes.
* typemanager.cs (delegate_types): New hashtable to hold delegates that
have been defined.
(AddDelegateType): Implement.
(IsDelegateType): Implement helper method.
* delegate.cs (DefineDelegate): Use AddDelegateType instead of AddUserType.
* expression.cs (New::DoResolve): Check if we are trying to instantiate a delegate type
and accordingly handle it.
* delegate.cs (Populate): Take TypeContainer argument.
Implement bits to define the Invoke method. However, I still haven't figured out
how to take care of the native int bit :-(
* cs-parser.jay (delegate_declaration): Fixed the bug that I had introduced :-)
Qualify the name of the delegate, not its return type !
* expression.cs (ImplicitReferenceConversion): Implement guts of implicit array
conversion.
(StandardConversionExists): Checking for array types turns out to be recursive.
(ConvertReferenceExplicit): Implement array conversion.
(ExplicitReferenceConversionExists): New method to determine precisely that :-)
2001-10-12 Ravi Pratap <[email protected]>
* cs-parser.jay (delegate_declaration): Store the fully qualified
name as it is a type declaration.
* delegate.cs (ReturnType, Name): Rename members to these. Make them
readonly.
(DefineDelegate): Renamed from Define. Does the same thing essentially,
as TypeContainer::DefineType.
(Populate): Method in which all the definition of the various methods (Invoke)
etc is done.
(Emit): Emit any code, if necessary. I am not sure about this really, but let's
see.
(CloseDelegate): Finally creates the delegate.
* class.cs (TypeContainer::DefineType): Update to define delegates.
(Populate, Emit and CloseType): Do the same thing here too.
* rootcontext.cs (ResolveTree, PopulateTypes, EmitCode, CloseTypes): Include
delegates in all these operations.
svn path=/trunk/mcs/; revision=1167
* class.c (mono_class_metadata_init): interface offset table now
contains pointers into the vtable - this is more efficient for the jit
* class.c (mono_class_metadata_init): use a temporary vtable (the
old algorithm only worked for the interpreter, but not for the jit)
* loader.c (method_from_memberref): use mono_class_get to get the
class of an array instead of using System.Array directly.
(mono_get_method): also add MEMBERREF methods to the method cache
which usefull for arrays.
* pedump.c (arch_compile_method): added to compute vtable entry
* interp.c: removed newobj()
* interp.c (get_virtual_method): use the vtable
(arch_compile_method): added to compute vtable entry
* x86.brg: added some experimental code for CALL
instructions - still not found the optimal way to do it.
* testjit.c (map_stind_type): add support for value types with
a size of 1, 2 or 4 bytes, implemented CEE_UNBOX, CEE_LDOBJ,
CEE_LDSTR, CEE_LDFLD, CEE_LDFLDA, CEE_STFLD, CEE_NEWOBJ, CEE_CEQ
(ctree_create_newobj): impl.
* emit-x86.c (tree_allocate_regs): removed allocation code for
addr nonterminal.
(get_address): use a simple, but bug free search instead of the
buggy binary search.
* testjit.c: support virtual functions
svn path=/trunk/mono/; revision=1166
* expression.cs: LocalTemporary: a new expression used to
reference a temporary that has been created.
* assign.cs: Handle PropertyAccess back here, so that we can
provide the proper semantic access to properties.
svn path=/trunk/mcs/; revision=1165
* expression.cs (Expression::ConvertReferenceExplicit): Implement
a few more explicit conversions.
* modifiers.cs: `NEW' modifier maps to HideBySig.
* expression.cs (PropertyExpr): Make this into an
ExpressionStatement, and support the EmitStatement code path.
Perform get/set error checking, clean up the interface.
* assign.cs: recognize PropertyExprs as targets, and if so, turn
them into toplevel access objects.
svn path=/trunk/mcs/; revision=1164
* expression.cs: PropertyExpr::PropertyExpr: use work around the
SRE.
* typemanager.cs: Keep track here of our PropertyBuilders again to
work around lameness in SRE.
svn path=/trunk/mcs/; revision=1158
* expression.cs (LValue::LValueResolve): New method in the
interface, used to perform a second resolution pass for LValues.
(This::DoResolve): Catch the use of this in static methods.
(This::LValueResolve): Implement.
(This::Store): Remove warning, assigning to `this' in structures
is
svn path=/trunk/mcs/; revision=1157
* expression.cs (Invocation::Emit): Deal with invocation of
methods on value types. We need to pass the address to structure
methods rather than the object itself. (The equivalent code to
emit "this" for structures leaves the entire structure on the
stack instead of a pointer to it).
(ParameterReference::DoResolve): Compute the real index for the
argument based on whether the method takes or not a `this' pointer
(ie, the method is static).
* codegen.cs (EmitContext::GetTemporaryStorage): Used to store
value types returned from functions when we need to invoke a
method on the sturcture.
svn path=/trunk/mcs/; revision=1147
* class.cs (TypeContainer::DefineType): Method to actually do the business of
defining the type in the Modulebuilder or Typebuilder. This is to take
care of nested types which need to be defined on the TypeBuilder using
DefineNestedMethod.
(TypeContainer::GetClassBases): Implement. Essentially the code from the
methods in RootContext, only ported to be part of TypeContainer.
(TypeContainer::GetInterfaceOrClass): Ditto.
(TypeContainer::LookupInterfaceOrClass, ::MakeFQN): Ditto.
* interface.cs (Interface::DefineInterface): New method. Does exactly
what RootContext.CreateInterface did earlier, only it takes care of nested types
too.
(Interface::GetInterfaces): Move from RootContext here and port.
(Interface::GetInterfaceByName): Same here.
* rootcontext.cs (ResolveTree): Re-write.
(PopulateTypes): Re-write.
* class.cs (TypeContainer::Populate): Populate nested types too.
(TypeContainer::Emit): Emit nested members too.
* typemanager.cs (AddUserType): Do not make use of the FullName property,
instead just use the name argument passed in as it is already fully
qualified.
(FindMembers): Check in the Builders to TypeContainer mapping instead of the name
to TypeContainer mapping to see if a type is user-defined.
* class.cs (TypeContainer::CloseType): Implement.
(TypeContainer::DefineDefaultConstructor): Use Basename, not Name while creating
the default constructor.
(TypeContainer::Populate): Fix minor bug which led to creating default constructors
twice.
(Constructor::IsDefault): Fix up logic to determine if it is the default constructor
* interface.cs (CloseType): Create the type here.
* rootcontext.cs (CloseTypes): Re-write to recursively close types by running through
the hierarchy.
Remove all the methods which are now in TypeContainer.
2001-10-10 Ravi Pratap <[email protected]>
* delegate.cs (Define): Re-write bits to define the delegate
correctly.
svn path=/trunk/mcs/; revision=1145
* interp.c (get_virtual_method): use the vtable
* metadata.c (mono_metadata_interfaces_from_typedef): also return the
number of interfaces.
* class.h: merged MonoArrayClass into MonoClass
* class.c (mono_class_create_from_typedef): compute the vtable size and
allocate space to include the vtable inside MonoClass
(mono_class_metadata_init): initialize the vtable
svn path=/trunk/mono/; revision=1128
* makefile: Renamed the compiler to `mcs.exe' instead of compiler.exe
* expression.cs (ImplicitReferenceConversion): handle null as well
as a source to convert to any reference type.
* statement.cs (Return): Perform any implicit conversions to
expected return type.
Validate use of return statement.
* codegen.cs (EmitContext): Pass the expected return type here.
* class.cs (Method, Constructor, Property): Pass expected return
type to EmitContext.
2001-10-09 Miguel de Icaza <[email protected]>
* expression.cs: Make DoResolve take an EmitContext instead of a
TypeContainer.
Replaced `l' and `location' for `loc', for consistency.
(Error, Warning): Remove unneeded Tc argument.
* assign.cs, literal.cs, constant.cs: Update to new calling
convention.
* codegen.cs: EmitContext now contains a flag indicating whether
code is being generated in a static method or not.
* cs-parser.jay: DecomposeQI, new function that replaces the old
QualifiedIdentifier. Now we always decompose the assembled
strings from qualified_identifier productions into a group of
memberaccesses.
2001-10-08 Miguel de Icaza <[email protected]>
* rootcontext.cs: Deal with field-less struct types correctly now
by passing the size option to Define Type.
* class.cs: Removed hack that created one static field.
2001-10-07 Miguel de Icaza <[email protected]>
* statement.cs: Moved most of the code generation here.
svn path=/trunk/mcs/; revision=1126
* expression.cs (New::DoResolve): Revert changes for array creation, doesn't
seem very right.
(ElementAccess): Remove useless bits for now - keep checks as the spec
says.
svn path=/trunk/mcs/; revision=1123
* configure.in: define NO_UNALIGNED_ACCESS for platforms that
can't read on unaligned boundaries
Mon Oct 8 16:12:38 CEST 2001 Paolo Molaro <[email protected]>
* metadata.c, metadata.h: use MonoArrayType to describe the shape of an array.
Guard against calling bsearch with a NULL pointer (pointed out by Laurent Rioux, smoux).
* image.c: endian fixes by Laurent Rioux.
* object.h, object.c: rename MonoStringObject to MonoString and
MonoArrayObject to MonoArray. Change some function names to conform to
the style mono_<object>_<action>. mono_string_new_utf16 () takes a
guint16* as first argument, so don't use char*.
Provide macros to do the interesting things on arrays in a portable way.
* threads-pthread.c: updates for the API changes and #include <sched.h>
(required for sched_yield()).
* icall.c: updates for the API changes above.
* Makefile.am, mono-endian.c. mono-endian.h: include unaligned read routines for
platforms that need them.
Mon Oct 8 16:13:55 CEST 2001 Paolo Molaro <[email protected]>
* get.c, get.h: MonoArray changed in MonoArrayType.
* main.c: guard against calling bsearch with a NULL pointer
(pointed out by Laurent Rioux, smoux).
Mon Oct 8 16:13:07 CEST 2001 Paolo Molaro <[email protected]>
* x86/tramp.c: remove mono_get_ansi_string () and use
mono_string_to_utf8 () instead.
Mon Oct 8 16:14:40 CEST 2001 Paolo Molaro <[email protected]>
* interp.c: use the accessors provided in object.h to deal with
MonoArrays. Updates for API renames in metadata. Throw exception
in ldelema if index is out of bounds.
svn path=/trunk/mono/; revision=1122
* cs-parser.jay (type_suffix*): Remove - they are redundant. Use
rank_specifiers instead.
(rank_specifiers): Change the order in which the rank specifiers are stored
(local_variable_declaration): Use opt_rank_specifier instead of type_suffixes.
* expression.cs (ElementAccess): Implement the LValue interface too.
2001-10-06 Ravi Pratap <[email protected]>
* expression.cs (ConvertExplicitStandard): Add. Same as ConvertExplicit
except that user defined conversions are not included.
(UserDefinedConversion): Update to use the ConvertExplicitStandard to
perform the conversion of the return type, if necessary.
(New::DoResolve): Check whether we are creating an array or an object
and accordingly do the needful.
(New::Emit): Same here.
(New::DoResolve): Implement guts of array creation.
(New::FormLookupType): Helper function.
svn path=/trunk/mcs/; revision=1121
* class.c: set the correct type for all the fundamental
type when loading the class.
Mon Oct 8 10:44:25 CEST 2001 Paolo Molaro <[email protected]>
* interp.c: fixes for changes in metadata.
svn path=/trunk/mono/; revision=1118
* codegen.cs: Added support for try/catch/finalize and throw.
* cs-parser.jay: Added support for try/catch/finalize.
svn path=/trunk/mcs/; revision=1117
2001-10-07 Miguel de Icaza <[email protected]>
* Exception.cs: Implement bits of serialization.
* RuntimeFieldHandle.cs: Implement Serialization features.
* Type.cs: Implement TypeHandle property.
2001-10-07 Miguel de Icaza <[email protected]>
* AssemblyBuilder.cs: Reformatted.
Added override keywords to those that needed them.
Removed methods that we do not override, but just inherit
2001-10-07 Miguel de Icaza <[email protected]>
* Encoding.cs, UTF8Encoding.cs, UTF7Encoding.cs, ASCIIEncoding.cs,
UnicodeEncoding.cs: Corrected API.
* UTF8Encoding.cs: Checked in changes from Rafael.
svn path=/trunk/mcs/; revision=1113
* expression.cs (UserCast): This user cast was not really doing
what it was supposed to do. Which is to be born in fully resolved
state. Parts of the resolution were being performed at Emit time!
Fixed this code.
svn path=/trunk/mcs/; revision=1109
* expression.cs: Implicity convert the result from UserCast.
Include the test from Ravi that exhibits the bug.
New classes from Toelen.
svn path=/trunk/mcs/; revision=1102
* expression.cs (Expression::FindMostEncompassingType): Fix bug which
prevented it from working correctly.
(ConvertExplicit): Make the first try, a call to ConvertImplicitStandard, not
merely ConvertImplicit.
svn path=/trunk/mcs/; revision=1100
* test-16.cs : Update to exercise the code which selects the best
conversion operator based on "most encompassing/encompassed type"
* test-7.cs : Update here too.
svn path=/trunk/mcs/; revision=1099
* expression.cs (Expression::ImplicitUserConversion): Rename to
UserDefinedConversion.
(Expression::UserDefinedConversion): Take an extra argument specifying
whether we look for explicit user conversions too.
(Expression::ImplicitUserConversion): Make it a call to UserDefinedConversion.
(UserDefinedConversion): Incorporate support for user defined explicit conversions.
(ExplicitUserConversion): Make it a call to UserDefinedConversion
with the appropriate arguments.
* cs-parser.jay (cast_expression): Record location too.
* expression.cs (Cast): Record location info.
(Expression::ConvertExplicit): Take location argument.
(UserImplicitCast): Change name to UserCast. Take an extra constructor argument
to determine if we are doing explicit conversions.
(UserCast::Emit): Update accordingly.
(Expression::ConvertExplicit): Report an error if everything fails.
* ../errors/cs0030.cs : Add.
svn path=/trunk/mcs/; revision=1091
* class.cs (TypeContainer::RegisterRequiredImplementations):
Record methods we need.
(TypeContainer::MakeKey): Helper function to make keys for
MethodBases, since the Methodbase key is useless.
(TypeContainer::Populate): Call RegisterRequiredImplementations
before defining the methods.
Create a mapping for method_builders_to_methods ahead of time
instead of inside a tight loop.
(::RequireMethods): Accept an object as the data to set into the
hashtable so we can report interface vs abstract method mismatch.
svn path=/trunk/mcs/; revision=1080
* class.c: MonoTypes stored in MonoClass are stored as
fundamental MonoTypes when the class represents a
fundamental type (System.Int32, ...).
The TypeHandle return by ldtoken is a MonoType*.
* icall.c: ves_icall_get_data_chunk () write out all the
PE/COFF stuff. Implement ves_icall_define_method (),
ves_icall_set_method_body (), ves_icall_type_from_handle ().
* image.c: properly skip unknown streams.
* loader.h, loader.c: add type_class to mono_defaults.
* metadata.c, metadata.h: export compute_size () as
mono_metadata_compute_size () with a better interface.
Typo and C&P fixes.
* pedump.c: don't try to print the entry point RVA if there is no entry point.
* reflection.c, reflection.h: many cleanups, fixes, output method
signatures and headers, typedef and typeref info, compress the metadata
tables, output all the heap streams, cli header etc.
* row-indexes.h: typo fixes.
Thu Oct 4 19:09:13 CEST 2001 Paolo Molaro <[email protected]>
* x86/tramp.c: allow marshalling valuetypes if they are
4 bytes long.
Thu Oct 4 19:05:56 CEST 2001 Paolo Molaro <[email protected]>
* dis-cil.c: fix printing of exception stuff.
* dump.c: display some more info in the typedef table dump.
* main.c: typo fix and method list fix.
svn path=/trunk/mono/; revision=1071
* configure.in: Do some deeper checks on pthreads for some of the
more interesting functions
2001-10-04 Dick Porter <[email protected]>
* object.h: Add a synchronisation mutex struct to MonoObject
* object.c (mono_new_object): Initialise the object
synchronisation mutexes
* icall.c: System.Threading.Monitor internal calls
* threads-pthread.h:
* threads-pthread.c: System.Threading.Monitor internal calls
* threads-types.h: New file, includes the system-specific thread
structures
* threads-pthread-types.h:
* threads-pthread-types.c: New files, handle pthread-specific
synchronisation types
* threads-dummy-types.h:
* threads-dummy-types.c: New files of dummy support for
thread-specific types
* metadata.c:
* image.c:
* pedump.c: include mono-endian.h not endian.h
* Makefile.am: More threads files.
Name mono-endian.h not endian.h
2001-10-04 Dick Porter <[email protected]>
* meta.h: include mono-endian.h not endian.h
2001-10-04 Dick Porter <[email protected]>
* interp.c (ves_runtime_method): init_class() the
mono_defaults.delegate_class
Include mono-endian.h not endian.h
2001-10-04 Dick Porter <[email protected]>
* testjit.c:
* emit-x86.c: include mono-endian.h not endian.h
svn path=/trunk/mono/; revision=1069
* expression.cs (Binary::DoNumericPromotions): Fix the case when
we do a forcible conversion regardless of type, to check if
ForceConversion returns a null.
(Binary::error19): Use location to report error.
(Unary::error23): Use location here too.
* ../errors/cs0019.cs : Check in.
* ../errors/cs0023.cs : Check in.
* expression.cs (Expression.MemberLookup): Return null for a rather esoteric
case of a non-null MethodInfo object with a length of 0 !
(Binary::ResolveOperator): Flag error if overload resolution fails to find
an applicable member - according to the spec :-)
Also fix logic to find members in base types.
(Unary::ResolveOperator): Same here.
(Unary::report23): Change name to error23 and make first argument a TypeContainer
as I was getting thoroughly confused between this and error19 :-)
* expression.cs (Expression::ImplicitUserConversion): Re-write fully
(::FindMostEncompassedType): Implement.
(::FindMostEncompassingType): Implement.
(::StandardConversionExists): Implement.
(UserImplicitCast): Re-vamp. We now need info about most specific
source and target types so that we can do the necessary conversions.
(Invocation::MakeUnionSet): Completely re-write to make sure we form a proper
mathematical union with no duplicates.
svn path=/trunk/mcs/; revision=1065
* Makefile.am, reflection.h, reflection.c: move here the reflection related
stuff and implement a few more bits.
* icall.c: a field needs to be dereferenced twice. Do not use the same
name for two variables in the same scope.
* image.c, image.h: cleanups.
svn path=/trunk/mono/; revision=1059
* testjit.c (ctree_create_dup): really duplicate the tree.
attach the arguments to the CALL node. Added a neiw macro to
make argument order configurable (ARCH_ARGS_RIGHT_TO_LEFT).
svn path=/trunk/mono/; revision=1053
* expression.cs (Unary::ResolveOperator): Find operators on base type
too - we now conform exactly to the spec.
(Binary::ResolveOperator): Same here.
* class.cs (Operator::Define): Fix minor quirk in the tests.
* ../errors/cs0215.cs : Added.
* ../errors/cs0556.cs : Added.
* ../errors/cs0555.cs : Added.
svn path=/trunk/mcs/; revision=1050
* icall.c: implemented some of the Reflection internalcalls.
* image.c, image.h: start writing out the PE/COFF image.
* metadata.h, metadata.c: implement mono_metadata_encode_value ()
that does the reverse than decode_blob_size ().
* object.c: use mono_metadata_encode_value (). Move here
temporary implementation of mono_string_to_utf8 ().
* rawbuffer.c: make malloc_map static.
svn path=/trunk/mono/; revision=1045
needs a _file_ handle).
Idem, avoid corruption calling fseek on a file handle (use lseek instead).
This file should be reworked to be 64 bits clean.
svn path=/trunk/mcs/; revision=1043
* expression.cs (Expression::ImplicitUserConversion): Use location
even in the case when we are examining True operators.
* class.cs (Operator::Define): Perform extensive checks to conform
with the rules for operator overloading in the spec.
* expression.cs (Expression::ImplicitReferenceConversion): Implement
some of the other conversions mentioned in the spec.
* typemanager.cs (array_type): New static member for the System.Array built-in
type.
(cloneable_interface): For System.ICloneable interface.
* driver.cs (Driver::Driver): Initialize TypeManager's core types even before
we start resolving the tree and populating types.
* ../errors/errors.txt : Update for error numbers -7, -8, -9, -10
svn path=/trunk/mcs/; revision=1041
* expression.cs (Expression::ExprClassFromMemberInfo,
Expression::Literalize): Create literal expressions from
FieldInfos which are literals.
(ConvertNumericExplicit, ImplicitNumericConversion): Fix a few
type casts, because they were wrong. The test suite in tests
caught these ones.
(ImplicitNumericConversion): ushort to ulong requires a widening
cast.
Int32 constant to long requires widening cast as well.
* literal.cs (LongLiteral::EmitLong): Do not generate i4 constants
for integers because the type on the stack is not i4.
svn path=/trunk/mcs/; revision=1038
* expression.cs (report118): require location argument.
* parameter.cs: Do not dereference potential null value.
* class.cs: Catch methods that lack the `new' keyword when
overriding a name. Report warnings when `new' is used without
anything being there to override.
* modifiers.cs: Handle `NEW' as MethodAttributes.NewSlot.
svn path=/trunk/mcs/; revision=1036
* class.cs: Only add constructor to hashtable if it is non-null
(as now constructors can fail on define).
(TypeManager, Class, Struct): Take location arguments.
Catch field instance initialization in structs as errors.
accepting_filter: a new filter for FindMembers that is static so
that we dont create an instance per invocation.
(Constructor::Define): Catch errors where a struct constructor is
parameterless
* cs-parser.jay: Pass location information for various new
constructs.
* delegate.cs (Delegate): take a location argument.
* driver.cs: Do not call EmitCode if there were problesm in the
Definition of the types, as many Builders wont be there.
* decl.cs (Decl::Decl): Require a location argument.
* cs-tokenizer.cs: Handle properly hex constants that can not fit
into integers, and find the most appropiate integer for it.
* literal.cs: Implement ULongLiteral.
* rootcontext.cs: Provide better information about the location of
failure when CreateType fails.
2001-09-29 Miguel de Icaza <[email protected]>
* rootcontext.cs (RootContext::PopulateTypes): Populates structs
as well.
* expression.cs (Binary::CheckShiftArguments): Add missing type
computation.
(Binary::ResolveOperator): Add type to the logical and and logical
or, Bitwise And/Or and Exclusive Or code paths, it was missing
before.
(Binary::DoNumericPromotions): In the case where either argument
is ulong (and most signed types combined with ulong cause an
error) perform implicit integer constant conversions as well.
svn path=/trunk/mcs/; revision=1035
* expression.cs (UserImplicitCast): Method should always be
non-null.
(Invocation::BetterConversion): Simplified test for IntLiteral.
(Expression::ImplicitNumericConversion): Split this routine out.
Put the code that performs implicit constant integer conversions
here.
(Expression::Resolve): Become a wrapper around DoResolve so we can
check eclass and type being set after resolve.
(Invocation::Badness): Remove this dead function
(Binary::ResolveOperator): Do not compute the expensive argumnets
unless we have a union for it.
svn path=/trunk/mcs/; revision=1031
* expression.cs (Probe::Emit): Is needs to do an isinst and then
compare against null.
(::CanConvert): Added Location argument. If the Location argument
is null (Location.Null), then we do not report errors. This is
used by the `probe' mechanism of the Explicit conversion. We do
not want to generate an error for something that the user
explicitly requested to be casted. But the pipeline for an
explicit cast first tests for potential implicit casts.
So for now, if the Location is null, it means `Probe only' to
avoid adding another argument. Might have to revise this
strategy later.
(ClassCast): New class used to type cast objects into arbitrary
classes (used in Explicit Reference Conversions).
Implement `as' as well.
Reverted all the patches from Ravi below: they were broken:
* The use of `level' as a mechanism to stop recursive
invocations is wrong. That was there just to catch the
bug with a strack trace but not as a way of addressing
the problem.
To fix the problem we have to *understand* what is going
on and the interactions and come up with a plan, not
just get things going.
* The use of the type conversion cache that I proposed
last night had an open topic: How does this work across
protection domains. A user defined conversion might not
be public in the location where we are applying the
conversion, a different conversion might be selected
(ie, private A->B (better) but public B->A (worse),
inside A, A->B applies, but outside it, B->A will
apply).
* On top of that (ie, even if the above is solved),
conversions in a cache need to be abstract. Ie, `To
convert from an Int to a Short use an OpcodeCast', not
`To convert from an Int to a Short use the OpcodeCast on
the variable 5' (which is what this patch was doing).
svn path=/trunk/mcs/; revision=1029
* metadata.c: fix type comparison for arrays.
* loader.h, loader.c: half-assed fix to get more tests work in cygwin.
Added a couple of new classes to monodefaults.
* icall.c: added a couple of Reflection-related internalcalls.
* class.h, class.c: implemented mono_ldtoken () for RuntimeTypeHandles.
Added a byval_arg MonoType to MonoClass.
Fri Sep 28 19:43:12 CEST 2001 Paolo Molaro <[email protected]>
* x86/tramp.c: marshal valuetypes that are enums.
Fri Sep 28 19:37:46 CEST 2001 Paolo Molaro <[email protected]>
* interp.c: Implemented ldtoken, conv.ovf.i. Use MonoClass->byval_arg
(and remove related kludges). Don't choke on access to arrays of
references. Throw an exception when an internalcall or P/Invoke
function don't have an implementation. Throw and EngineException
for unimplemented opcodes.
svn path=/trunk/mono/; revision=1027
* icall.c:
* threads-pthread.h:
* threads-pthread.c: Implemented internal calls for
LocalDataStoreSlot operations. Applied mutexes around all shared
data. Reworked the thread creation and Start() operations to
avoid a race condition.
* threads-dummy.h:
* threads-dummy.c: Dummy calls for the LocalDataStoreSlot operations
svn path=/trunk/mono/; revision=1026
* expression.cs (Invocation::ConversionExists): Re-write to use
the conversion cache
(Expression::ConvertImplicit): Automatic bailing out if level != 0. Also
cache all conversions done, not just user-defined ones.
(Invocation::BetterConversion): The real culprit. Use ConversionExists
to determine if a conversion exists instead of acutually trying to
perform the conversion. It's faster too.
(Expression::ConvertExplicit): Modify to use ConversionExists to check
and only then attempt the implicit conversion.
svn path=/trunk/mcs/; revision=1023
* typemanager.cs (string_concat_string_string, string_concat_object_object):
Export standard methods that we expect for string operations.
* statement.cs (Block::UsageWarning): Track usage of variables and
report the errors for not used variables.
* expression.cs (Conditional::Resolve, ::Emit): Implement ?:
operator.
svn path=/trunk/mcs/; revision=1018
* expression.cs: Fix the order in which implicit conversions are
done.
The previous fixed dropped support for boxed conversions (adding a
test to the test suite now)
(UserImplicitCast::CanConvert): Remove test for source being null,
that code is broken. We should not feed a null to begin with, if
we do, then we should track the bug where the problem originates
and not try to cover it up here.
Return a resolved expression of type UserImplicitCast on success
rather than true/false. Ravi: this is what I was talking about,
the pattern is to use a static method as a "constructor" for
objects.
Also, do not create arguments until the very last minute,
otherwise we always create the arguments even for lookups that
will never be performed.
(UserImplicitCast::Resolve): Eliminate, objects of type
UserImplicitCast are born in a fully resolved state.
svn path=/trunk/mcs/; revision=1013
* expression.cs (LValue): Add new method AddressOf to be used by
the `&' operator.
Change the argument of Store to take an EmitContext instead of an
ILGenerator, because things like FieldExpr need to be able to call
their children expression to generate the instance code.
(Expression::Error, Expression::Warning): Sugar functions for
reporting errors.
(Expression::MemberLookup): Accept a TypeContainer instead of a
Report as the first argument.
(Expression::ResolvePrimary): Killed. I still want to improve
this as currently the code is just not right.
(Expression::ResolveMemberAccess): Simplify, but it is still
wrong.
(Unary::Resolve): Catch errors in AddressOf operators.
(LocalVariableReference::Emit, ::Store, ::AddressOf): typecast
index to a byte for the short-version, or the compiler will choose
the wrong Emit call, which generates the wrong data.
(ParameterReference::Emit, ::Store): same.
(FieldExpr::AddressOf): Implement.
* typemanager.cs: TypeManager: made public variable instead of
property.
* driver.cs: document --fatal.
* report.cs (ErrorMessage, WarningMessage): new names for the old
Error and Warning classes.
* cs-parser.jay (member_access): Turn built-in access to types
into a normal simplename
svn path=/trunk/mcs/; revision=1009
* class.c, loader.c: warn and return NULL instead of erroring out.
* icall.c: added System.AppDomain::getCurDomain().
* loader.c: we don't need to lookup the typedef again for p/invoke calls.
svn path=/trunk/mono/; revision=1004
* testjit.c: impl. LDIND/STIND/LDLOCA, use g_malloc to alloc static
data.
(map_stind_type): support enum types
(map_ldind_type): support enum types
* emit-x86.c (tree_allocate_regs): added code to support
register allocation for addressing modes trees.
(tree_emit): bug fix: we have to emit all mono_burg_functins. The
previous impl. did not work for chain rules.
(compute_branches): support for SWITCH statements
* x86.brg: added rules to model x86 addressing modes
svn path=/trunk/mono/; revision=997
* class.cs (TypeContainer::AddConstructor): Fix a stupid bug
I had introduced long ago (what's new ?).
* expression.cs (UserImplicitCast::CanConvert): Static method to do
the work of all the checking.
(ConvertImplicit): Call CanConvert and only then create object if necessary.
(UserImplicitCast::CanConvert, ::Resolve): Re-write.
(Unary::Operator): Rename Add and Subtract to Addition and Subtraction because
that is the right way.
(Invocation::MakeUnionSet): Convenience function to make unions of sets for
overloading resolution. Use everywhere instead of cutting and pasting code.
(Binary::ResolveOperator): Use MakeUnionSet.
(UserImplicitCast::CanConvert, ::Resolve): Update to take care of the case when
we have to convert to bool types. Not complete yet.
svn path=/trunk/mcs/; revision=994
* typemanager.cs (TypeManager::CSharpName): support ushort.
* expression.cs (Expression::TryImplicitIntConversion): Attempts
to provide an expression that performsn an implicit constant int
conversion (section 6.1.6).
(Expression::ConvertImplicitRequired): Reworked to include
implicit constant expression conversions.
(Expression::ConvertNumericExplicit): Finished.
(Invocation::Emit): If InstanceExpression is null, then it means
that we perform a call on this.
svn path=/trunk/mcs/; revision=992
* cs-parser.jay: Update operator constants.
* parameter.cs (Parameters::GetParameterInfo): Hook up VerifyArgs
(Parameters::GetSignature): Hook up VerifyArgs here.
(Parameters::VerifyArgs): Verifies that no two arguments have the
same name.
* class.cs (Operator): Update the operator names to reflect the
ones that the spec expects (as we are just stringizing the
operator names).
* expression.cs (Unary::ResolveOperator): Fix bug: Use
MethodInfo's ReturnType instead of LookupMethodByBuilder as the
previous usage did only work for our methods.
(Expression::ConvertImplicit): Handle decimal implicit numeric
conversions as well.
(Expression::InternalTypeConstructor): Used to invoke constructors
on internal types for default promotions.
(Unary::Emit): Implement special handling for the pre/post
increment/decrement for overloaded operators, as they need to have
the same semantics as the other operators.
(Binary::ResolveOperator): ditto.
(Invocation::ConversionExists): ditto.
(UserImplicitCast::Resolve): ditto.
svn path=/trunk/mcs/; revision=988
* expression.cs (Unary::Emit and Binary::Emit): If we have an overloaded
operator, return after emitting body. Regression tests pass again !
* expression.cs (ConvertImplicit): Take TypeContainer as first argument
(Unary::ForceConversion, Binary::ForceConversion): Ditto.
(Invocation::OverloadResolve): Ditto.
(Invocation::BetterFunction, BetterConversion, ConversionExists): Ditto.
* everywhere : update calls to the above methods accordingly.
svn path=/trunk/mcs/; revision=968
* emit-x86.c (arch_compile_method): more documentation.
* testjit.c: moved the architecture specific things to emit-x86.c
and x86.brg. Added more documentation. code cleanup.
svn path=/trunk/mono/; revision=966
* x86.brg: we now have different types of addresses: ADDR_L for local
values, ADDR_A for arguments and ADDR_G for global addresses. We
also use LDIND_XX token to load values from a specific address
instead of LDLOC/STLOC.
* testjit.c: use the new adressing scheme everywhere:
LDIND _XX (ADDR_X), and STIND_XX (ADDR_X, tree)
svn path=/trunk/mono/; revision=957
* expression.cs (Binary::ResolveOperator): Had forgottten to set
the type of the expression to the return type of the method if
we have an overloaded operator match ! The regression tests pass again !
(Unary::ResolveOperator): Ditto.
* expression.cs (Invocation::ConversionExists): Correct the member lookup
to find "op_Implicit", not "implicit" ;-)
(UserImplicitCast): New class to take care of user-defined implicit conversions.
(ConvertImplicit, ForceConversion): Take TypeContainer argument
* everywhere : Correct calls to the above accordingly.
* expression.cs (UserImplicitCast::Resolve, ::Emit): Implement.
(ConvertImplicit): Do user-defined conversion if it exists.
svn path=/trunk/mcs/; revision=952
* String.cs: don't access the string array out of bounds in LastIndexOf.
* Type.cs: fix return type of the Assembly property.
svn path=/trunk/mcs/; revision=951
* assign.cs: track location.
(Resolve): Use implicit conversions on assignment.
* literal.cs: Oops. Not good, Emit of short access values should
pass (Bytes) or the wrong argument will be selected.
* expression.cs (Unary::Emit): Emit code for -expr.
(Unary::ResolveOperator): Handle `Substract' for non-constants
(substract from zero from the non-constants).
Deal with Doubles as well.
(Expression::ConvertImplicitRequired): New routine that reports an
error if no implicit conversion exists.
(Invocation::OverloadResolve): Store the converted implicit
expressions if we make them
svn path=/trunk/mcs/; revision=945
* x86/tramp.c: don't change a MONO_TYPE_STRING to a char*
when it's an argument to an internalcall.
Mon Sep 24 18:56:59 CEST 2001 Paolo Molaro <[email protected]>
* object.c, object.h: added mono_ldstr (), mono_string_is_interned () and
mono_string_intern () to implement the semantics of the ldstr opcode
and the interning of System.Strings.
* icall.c: provide hooks to make String::IsIntern and String::Intern
internalcalls.
Mon Sep 24 18:50:25 CEST 2001 Paolo Molaro <[email protected]>
* interp.c: catch a few more error conditions with exceptions instead of
erroring out.
Don't use g_print() in stack traces because it doesn't work with
some float values.
When we call an instance method of a valuetype class, unbox the 'this'
argument if it is an object.
Use mono_ldstr () to implement the ldstr opcode: it takes care of
interning the string if necessary.
Implemented new opcodes: ckfinite, cgt.un, clt.un, ldvirtftn, ldarga.
Fixes to handle NaNs when comparing doubles.
Make sure the loaded assembly has an entry point defined.
Fixed portability bugs in neg and not opcodes.
svn path=/trunk/mono/; revision=943
* class.cs (ConstructorInitializer): Take a Location argument.
(ConstructorBaseInitializer): Same here.
(ConstructorThisInitializer): Same here.
* cs-parser.jay : Update all calls accordingly.
* expression.cs (Unary, Binary, New): Take location argument.
Update accordingly everywhere.
* cs-parser.jay : Update all calls to the above to take a location
argument.
* class.cs : Ditto.
svn path=/trunk/mcs/; revision=939
* threads-dummy.c:
* threads-dummy.h: New files of dummy threading routines
* Makefile.am (THREAD_SOURCE): Arrange to compile different thread
support code based on system specifics
Rename PTHREAD_LIBS to THREAD_LIBS
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]>
* Makefile.am (testjit_LDADD): rename PTHREAD_LIBS to THREAD_LIBS
2001-09-23 Dick Porter <[email protected]>
* Makefile.am (mint_LDADD): rename PTHREAD_LIBS to THREAD_LIBS
svn path=/trunk/mono/; revision=934
* threads-pthread.c: Implement the System.Threading.Thread::Sleep,
Schedule (called when asked to Sleep for 0 ms) and CurrentThread
internal calls.
(mono_thread_init): Set up a Thread object instance to return when
the main thread calls Thread.CurrentThread
(mono_thread_cleanup): Wait for all subthreads to exit
* icall.c: New internal calls for System.Threading.Thread::Sleep
(including Schedule) and CurrentThread
* threads.h: New file, to insulate thread-specific stuff from the
rest of the code
2001-09-23 Dick Porter <[email protected]>
* interp.c (main): Do some thread setup and cleanup around the
call to ves_exec()
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
svn path=/trunk/mono/; revision=933
* testjit.c: use the memory pool to avoid memory leaks
monoburg.c: add a macro MBALLOC_STATE to define the allocation
function for MBState. Added an additional user data argument to
mono_burg_label - the data can be used in the cost functions. The
type can be defined with MBCOST_DATA macro.
(emit_cost_func): inline cost functions
svn path=/trunk/mono/; revision=928
* expression.cs (OverloadResolve): Improve some more to catch errors 1502 and 1503
Also take an additional TypeContainer argument.
* All over : Pass in TypeContainer as argument to OverloadResolve.
* typemanager.cs (CSharpName): Update to check for the string type and return
that too.
* expression.cs (Invocation::FullMethodDesc): New static method to return a string fully describing
a given method.
svn path=/trunk/mcs/; revision=925
* threads-pthread.h:
* threads-pthread.c: New file, for handling pthreads-style
threading support. Start() now starts a new thread and executes
the ThreadStart delegate instance.
* icall.c: Added the internalcall for
System.Threading.Thread::Start_internal
* Makefile.am: Added new files, and PTHREADS_LIBS to the link line
2001-09-21 Dick Porter <[email protected]>
* Makefile.am (testjit_LDADD): Added PTHREAD_LIBS to the link line
2001-09-21 Dick Porter <[email protected]>
* Makefile.am (mint_LDADD): Added PTHREAD_LIBS to the link line
2001-09-21 Dick Porter <[email protected]>
* configure.in: Check for libpthread
svn path=/trunk/mono/; revision=914
* expression.cs (Invocation::OverloadResolve): Re-write to conform more to the spec.
(Invocation::BetterFunction): Implement.
(Invocation::BetterConversion): Implement.
(Invocation::ConversionExists): Skeleton, no implementation yet.
Okay, things work fine !
svn path=/trunk/mcs/; revision=912
* x86.brg: implemented long MUL/DIV
* testjit.c (tree_allocate_regs): added a way to prevent EDX usage
for operations like idiv. it is also possible to assign specific registers.
svn path=/trunk/mono/; revision=907
* typemanager.cs: declare and load enum_type, delegate_type and
void_type.
* expression.cs (Expression::Emit): Now emit returns a value that
tells whether a value is left on the stack or not. This strategy
might be reveted tomorrow with a mechanism that would address
multiple assignments.
(Expression::report118): Utility routine to report mismatches on
the ExprClass.
(Unary::Report23): Report impossible type/operator combination
utility function.
(Unary::IsIncrementableNumber): Whether the type can be
incremented or decremented with add.
(Unary::ResolveOperator): Also allow enumerations to be bitwise
complemented.
(Unary::ResolveOperator): Implement ++, !, ~, ++ and --.
(Unvocation::Emit): Deal with new Emit convetion.
* All Expression derivatives: Updated their Emit method to return
whether they leave values on the stack or not.
* codegen.cs (CodeGen::EmitStatement): Pop values left on the
stack for expressions that are statements.
2001-09-20 Miguel de Icaza <[email protected]>
* expression.cs (LValue): New interface. Must be implemented by
LValue objects.
(LocalVariableReference, ParameterReference, FieldExpr): Implement
LValue interface.
* assign.cs (Assign::Emit, Assign::Resolve): Use new LValue
interface for generating code, simplifies the code.
svn path=/trunk/mcs/; revision=906
* interp.c: implemented some more opcodes: calli, rem.un,
shr.un, conv.u, cpobj, stobj, conv.r.un, conv.ovf.i1.un,
conv.ovf.i2.un, conv.ovf.i4.un, conv.ovf.i8.un, conv.ovf.i.un,
conv.ovf.u1.un, conv.ovf.u2.un, conv.ovf.u4.un, conv.ovf.u8.un,
conv.ovf.u.un.
Fix some 64 bit issues in the array element access code and a small bug.
Throw an exception on index out of range instead of asserting.
Throw an exception on a NULL array instead of dying.
Stomped a memory corruption bug (.cctor methods were freed after
executing them, but they are stores in MonoClass now...).
Added a simple facility to invoke the debugger when a named
function is entered (use the cmdline option --debug method_name).
* interp.h: fix 64 bit issue.
svn path=/trunk/mono/; revision=904
* loader.c: work around the different signatures for delegates
constructors csc generates in compiled code vs the ones compiled in mscorlib.
svn path=/trunk/mono/; revision=902
* driver.cs (parse): Report error 2001 if we can not open the
source file.
* expression.cs (SimpleName::ResolveSimpleName): Error if we can
not resolve it.
svn path=/trunk/mcs/; revision=893
* statement.cs (Block::EmitMeta): Reuse the count across all the variables,
otherwise nested blocks end up with the same index.
* codegen.cs (CodeGen::EmitTopBlock): Pass initial sequence
svn path=/trunk/mcs/; revision=891
* expression.cs: Instead of having FIXMEs in the Resolve
functions, throw exceptions so it is obvious that we are facing a
bug.
* cs-parser.jay (invocation_expression): Pass Location information.
* codegen.cs (CodeGen::Save, CodeGen::CodeGen, CodeGen::Basename):
Use a basename for those routines because .NET does not like paths
on them.
* class.cs (TypeContainer::AddMethod): Do not call DefineName if the name was
already defined.
2001-09-19 Miguel de Icaza <[email protected]>
* typemanager.cs (TypeManager::CoreLookupType): A function to make sure that we
are loading the correct data types (throws an exception if not).
(TypeManager::InitCoreTypes): Use CoreLookupType
* expression.cs (Unary::ResolveOperator): return the child
expression for expressions which are just +expr.
(Unary::ResolveOperator): Return negative literals for -LITERAL
expressions (otherwise they are Unary {Literal}).
(Invocation::Badness): Take into account `Implicit constant
expression conversions'.
* literal.cs (LongLiteral): Implement long literal class.
(IntLiteral): export the `Value' of the intliteral.
svn path=/trunk/mcs/; revision=890
* x86.brg: added more floating point grammar
* testjit.c (mono_compile_method): make local offsets negative
* mono/tests/test-ops.cs: added more tests
svn path=/trunk/mono/; revision=883
* expression.cs (Binary::Emit): Finally get the emission right ! Woo!
* class.cs (Operator::Define): Change the methodname prefix to 'op_'
instead of 'Operator'
* expression.cs (Binary::ResolveOperator): Update accordingly.
(Unary::Operator): Change names to 'Add' and 'Subtract' instead 'Plus'
and 'Minus'
* cs-parser.jay (unary_expression): Update to use the new names.
* gen-treedump.cs (GetUnary): Same here.
* expression.cs (Unary::Resolve): Implement.
(Binary::ResolveOperator): Re-write bits to quietly continue if no overloaded
operators are found instead of making noise ;-)
(Unary::ResolveOperator): New method to do precisely the same thing which
Binary::ResolveOperator does for Binary expressions.
(Unary.method, .Arguments): Add.
(Unary::OperName): Implement.
(Unary::ForceConversion): Copy and Paste !
* class.cs (Operator::Define): Fix a small bug for the case when we have
a unary operator.
* expression.cs (Unary::Emit): Implement. Need to find the right Opcodes
for the inbuilt operators. Only overloading works for now ;-)
svn path=/trunk/mcs/; revision=882
* testjit.c (mono_compile_method): arguments on the runtime
stack are at least 4 bytes
* x86.brg: partly implemented 8,16 bit integers
* testjit.c (get_address): mark basic blocks
svn path=/trunk/mono/; revision=880
* expression.cs (This::Emit): Implement.
(This::Resolve): Implement.
(TypeOf:Resolve): Implement.
(Expression::ResolveSimpleName): Add an implicit this to instance
field references.
(MemberAccess::Resolve): Deal with Parameters and Fields.
Bind instance variable to Field expressions.
(FieldExpr::Instance): New field used to track the expression that
represents the object instance.
(FieldExpr::Resolve): Track potential errors from MemberLookup not
binding
(FieldExpr::Emit): Implement.
* codegen.cs (EmitIf, EmitStatement, EmitBlock): Propagate whether
the last instruction contains a return opcode to avoid generating
the last `ret' instruction (this generates correct code, and it is
nice to pass the peverify output).
* class.cs (TypeContainer::EmitFieldInitializers): Implement field
initializer for static and instance variables.
(Constructor::Emit): Allow initializer to be null in the case of
static constructors. Only emit initializer for instance
constructors.
(TypeContainer::FindMembers): Return a null array if there are no
matches.
Also fix the code for the MemberTypes.Method branch, as it was not
scanning that for operators (or tried to access null variables before).
* assign.cs (Assign::Emit): Handle instance and static fields.
* TODO: Updated.
* driver.cs: Stop compilation if there are parse errors.
* cs-parser.jay (constructor_declaration): Provide default base
initializer for non-static constructors.
(constructor_declarator): Do not provide a default base
initializers if none was specified.
Catch the fact that constructors should not have parameters.
* class.cs: Do not emit parent class initializers for static
constructors, that should be flagged as an error.
svn path=/trunk/mcs/; revision=869
* class.cs (TypeContainer::AddConstructor): Fix the check to
compare against Name, not Basename.
(Operator::OpType): Change Plus and Minus to Add and Subtract.
* cs-parser.jay : Update accordingly.
* class.cs (TypeContainer::FindMembers): For the case where we are searching
for methods, don't forget to look into the operators too.
(RegisterMethodBuilder): Helper method to take care of this for
methods, constructors and operators.
(Operator::Define): Completely revamp.
(Operator.OperatorMethod, MethodName): New fields.
(TypeContainer::Populate): Move the registering of builders into
RegisterMethodBuilder.
(Operator::Emit): Re-write.
* expression.cs (Binary::Emit): Comment out code path to emit method
invocation stuff for the case when we have a user defined operator. I am
just not able to get it right !
svn path=/trunk/mcs/; revision=867
* x86.brg: added some rules to optimize code
* testjit.c (get_address): use a binary search to get the address
(main): added an option to debug the jit (-d)
svn path=/trunk/mono/; revision=866
* expression.cs (Expression::OverloadResolve): Drop TypeContainer
argument.
(Expression::MemberLookup): Provide a version that allows to
specify the MemberTypes and BindingFlags.
* statement.cs (Block::GetVariableInfo): Forgot to recurse here,
so it was not fetching variable information from outer blocks.
* modifiers.cs: (Modifiers::TypeAttr): Invert condition on
Beforefieldinit as it was buggy.
* rootcontext.cs (::LookupInterfaceOrClass): Removed an Error -200
that Ravi put here.
* class.cs (Constructor::Emit): Only emit if block is not null.
(TypeContainer::EmitDefaultConstructor): Removed routine, now we
deal with this by semantically definining it as if the user had
done it.
(TypeContainer::FindMembers): Removed ad-hoc hack to deal with
constructors as we now "emit" them at a higher level.
(TypeContainer::DefineDefaultConstructor): Used to define the
default constructors if none was provided.
(ConstructorInitializer): Add methods Resolve and Emit.
* expression.cs: Cast to ConstructorInfo instead of MethodInfo
svn path=/trunk/mcs/; revision=857
* class.cs (TypeContainer::EmitDefaultConstructor): Register
the default constructor builder with our hashtable for methodbuilders
to methodcores.
* expression.cs (Invocation::OverloadResolve): Add a check for pd == null
and argument_count is 0 in which case we have a match.
(Binary::ResolveOperator): More null checking and miscellaneous coding
style cleanup.
svn path=/trunk/mcs/; revision=852
* rootcontext.cs (IsNameSpace): Compare against null.
* everywhere : Correct spelling to 'Greater' and to 'Subtract'
* class.cs (Operator::OpType): Change names to match the ones in Binary::Operator
and Unary::Operator.
* cs-parser.jay (operator_declaration, CheckBinaryOperator, CheckUnaryOperator): Update
accordingly.
* expression.cs (Binary::method): New member to hold the MethodBase for the case when
we have overloaded operators.
(Binary::ResolveOperator): Implement the part which does the operator overload
resolution.
* class.cs (Operator::Emit): Implement.
(TypeContainer::Emit): Emit the operators we have too.
* expression.cs (Binary::Emit): Update to emit the appropriate code for
the case when we have a user-defined operator.
svn path=/trunk/mcs/; revision=843
* x86.brg: emit real code for calls
* testjit.c (create_jit_trampoline): creates a function to trigger jit
compilation.
(mono_compile_method): reversed argument order
svn path=/trunk/mono/; revision=842
* class.cs (EmitStaticFieldInitializers, EmitFieldInitializers): Make public.
(TypeContainer::EmitConstructor): Remove and move code into Contructor::Emit.
(Constructor::Emit): Implement.
(EmitStaticFieldInitializers, EmitFieldInitializers): Ensure we return immediately
if we have no work to do.
(TypeContainer::Emit): Pass in TypeContainer as argument to the constructor's
Emit method.
* interface.cs (Interface::InterfaceAttr): Re-write to be more correct and complete.
(Interface::IsTopLevel): Add. Same as TypeContainer::IsTopLevel.
* class.cs (TypeContainer::IsTopLevel): Modify to use parent.Parent instead
of parent.parent.
svn path=/trunk/mcs/; revision=832
* tree.cs (Tree::namespaces): New hashtable to keep track of namespaces
in the source.
(Tree::RecordNamespace): Method to do what the name says ;-)
(Tree::Namespaces): Property to get at the namespaces hashtable.
* cs-parser.jay (namespace_declaration): Call RecordNamespace to
keep track.
* rootcontext.cs (IsNamespace): Fixed it :-)
svn path=/trunk/mcs/; revision=827
* class.cs (TypeContainer::FindMembers): Add support for
constructors.
(MethodCore): New class that encapsulates both the shared aspects
of a Constructor and a Method.
(Method, Constructor): Factored pieces into MethodCore.
* driver.cs: Added --fatal which makes errors throw exceptions.
Load System assembly as well as part of the standard library.
* report.cs: Allow throwing exceptions on errors for debugging.
* modifiers.cs: Do not use `parent', instead use the real type
container to evaluate permission settings.
* class.cs: Put Ravi's patch back in. He is right, and we will
have to cope with the
svn path=/trunk/mcs/; revision=826
* class.cs: Reveted lsat change from Ravi to IsTopLevel. That is
incorrect. IsTopLevel is not used to tell whether an object is
root_types or not (that can be achieved by testing this ==
root_types). But to see if this is a top-level *class* (not
necessarly our "toplevel" container).
svn path=/trunk/mcs/; revision=823
* x86.brg: branch addresses are now resolved
* testjit.c (compute_branches): compute address of branches
* x86.brg: emit real x86 instructions
* testjit.c: call objdump to disassemble the output
svn path=/trunk/mono/; revision=822
* class.cs (TypeContainer::TypeAttr): Remove property code and move it into
Modifiers.TypeAttr. This should just be a call to that method.
* modifiers.cs (TypeAttr): Re-write and take an extra argument, the TypeContainer
object so that we can determine if we are top-level or not.
* delegate.cs (Delegate::Define): Update call to TypeAttr method to pass in the
TypeContainer too.
* enum.cs (Enum::Define): Ditto.
* modifiers.cs (FieldAttr): Re-write.
* class.cs (TypeContainer::IsTopLevel): Change accessibility to public.
(TypeContainer::HaveStaticConstructor): New property to provide access
to precisely that info.
* modifiers.cs (MethodAttr): Re-write.
(EventAttr): Remove altogether as there seems to be no ostensible use for it.
* class.cs (TypeContainer::IsTopLevel): Re-write. root_types doesn't seem to be the parent
of top-level types as claimed.
svn path=/trunk/mcs/; revision=816
* /mcs/class/makefile:
/mcs/class/corlib/makefile:
/mcs/mcs/makefile:
/toos/makefile:
use /cygdrive/ instead of //. Old method of
accessing drives under cygwin is now obsolete with version
1.3.3 of the cygwin DLL
* /mcs/System/System.Collections.Specialized/ChangeLog:
Forgot to commit this for a while. Sorry 'bout that.
svn path=/trunk/mcs/; revision=815
* expression.cs (MemberLookup): Fruitless attempt to lookup
constructors. Maybe I need to emit default constructors? That
might be it (currently .NET emits this for me automatically).
(Invocation::OverloadResolve): Cope with Arguments == null.
(Invocation::EmitArguments): new function, shared by the new
constructor and us.
(Invocation::Emit): Handle static and instance methods. Emit
proper call instruction for virtual or non-virtual invocations.
(New::Emit): Implement.
(New::Resolve): Implement.
(MemberAccess:Resolve): Implement.
(MethodGroupExpr::InstanceExpression): used conforming to the spec
to track instances.
(FieldExpr::Resolve): Set type.
* support.cs: Handle empty arguments.
* cs-parser.jay (CompositeLookup, QualifierIdentifier,
SimpleLookup): Auxiliary routines to help parse a qualifier
identifier.
Update qualifier_identifier rule.
* codegen.cs: Removed debugging messages.
* class.cs: Make this a global thing, this acts just as a "key" to
objects that we might have around.
(Populate): Only initialize method_builders_to_methods once.
* expression.cs (PropertyExpr): Initialize type from the
PropertyType.
svn path=/trunk/mcs/; revision=814
* codegen.cs (EmitContext::EmitBoolExpression): Use propper
Resolve pattern. Attempt to implicitly convert value to boolean.
Emit code.
* expression.cs: Set the type for the int32/int32 argument case.
(Binary::ResolveOperator): Set the return type to boolean for
comparission operators
* typemanager.cs: Remove debugging print code.
(Invocation::Resolve): resolve type.
svn path=/trunk/mcs/; revision=806
* class.cs: Allocate a MemberInfo of the correct size, as the code
elsewhere depends on the test to reflect the correct contents.
(Method::) Keep track of parameters, due to System.Reflection holes
(TypeContainer::Populate): Keep track of MethodBuilders to Method
mapping here.
(TypeContainer::FindMembers): Use ArrayList and then copy an array
of the exact size and return that.
(Class::LookupMethodByBuilder): New function that maps
MethodBuilders to its methods. Required to locate the information
on methods because System.Reflection bit us again.
* support.cs: New file, contains an interface ParameterData and
two implementations: ReflectionParameters and InternalParameters
used to access Parameter information. We will need to grow this
as required.
* expression.cs (Invocation::GetParameterData): implement a cache
and a wrapper around the ParameterData creation for methods.
(Invocation::OverloadResolve): Use new code.
svn path=/trunk/mcs/; revision=805
* x86.brg: use the right offsets to access local variables
and arguments.
* emit-x86.c: only save/restore callee saved registers if they are
really modified.
* testjit.c (tree_allocate_regs): use the new MonoRegSet to
allocate registers.
(mono_compile_method): changed the tree for mothod calls
* regset.h: impl.
* regset.c: impl.
svn path=/trunk/mono/; revision=803
* class.cs (TypeContainer::EmitField): Remove and move into
(Field::Define): here and modify accordingly.
(Field.FieldBuilder): New member.
(TypeContainer::Populate): Update accordingly.
(TypeContainer::FindMembers): Implement.
svn path=/trunk/mcs/; revision=799
* parameter.cs (GetParameterInfo): Use a type cache to compute
things only once, and to reuse this information
* expression.cs (LocalVariableReference::Emit): Implement.
(OpcodeCast::Emit): fix.
(ParameterReference::Resolve): Implement.
(ParameterReference::Emit): Implement.
* cs-parser.jay: Fix bug introduced by Ravi, variable initializers
that are expressions need to stay as Expressions.
* typemanager.cs (CSharpName): Returns the C# name of a type if
possible.
* expression.cs (Expression::ConvertImplicit): New function that
implements implicit type conversions.
svn path=/trunk/mcs/; revision=797
* expression.cs (LocalVariableReference::Emit): Implement.
(OpcodeCast::Emit): fix.
* cs-parser.jay: Fix bug introduced by Ravi, variable initializers
that are expressions need to stay as Expressions.
svn path=/trunk/mcs/; revision=796
* typemanager.cs (CSharpName): Returns the C# name of a type if
possible.
* expression.cs (Expression::ConvertImplicit): New function that
implements implicit type conversions.
(Expression::ImplicitReferenceConversion): Implements implicit
reference conversions.
(EmptyCast): New type for transparent casts.
(OpcodeCast): New type for casts of types that are performed with
a sequence of bytecodes.
(BoxedCast): New type used for casting value types into reference
types. Emits a box opcode.
(Binary::DoNumericPromotions): Implements numeric promotions of
and computation of the Binary::Type.
(Binary::EmitBranchable): Optimization.
(Binary::Emit): Implement code emission for expressions.
* typemanager.cs (TypeManager): Added two new core types: sbyte
and byte.
svn path=/trunk/mcs/; revision=795
* class.cs (TypeContainer::FindMembers): Method which does exactly
what Type.FindMembers does, only we don't have to use reflection. No
implementation yet.
* typemanager.cs (typecontainers): New hashtable to hold the corresponding
typecontainer objects as we need to get at them.
(TypeManager::AddUserType): Overload to take an extra argument, the TypeContainer.
* rootcontext.cs : Correspondingly modify called to AddUserType to pass the
typecontainer object.
* expression.cs (MemberLookup): Modify signature to take a RootContext object instead
of just a Report object.
svn path=/trunk/mcs/; revision=793
* class.cs (Event::Define): Go back to using the prefixes "add_" and
"remove_"
(TypeContainer::Populate): Now define the delegates of the type too.
(TypeContainer.Delegates): Property to access the list of delegates defined
in the type.
* delegates.cs (Delegate::Define): Implement partially.
* modifiers.cs (TypeAttr): Handle more flags.
svn path=/trunk/mcs/; revision=791
* Makefile.am: get it to work on platforms that insist on having
a weird extension at the end of an executable name.
svn path=/trunk/mono/; revision=790
* class.cs (Indexer::Define): Fix for loop iteration condition to be just <
and not <=
(Operator::Define): Re-write logic to get types by using the LookupType method
instead of blindly doing a Type.GetType ! How stupid can I get ;-) ?
(Indexer::Define): Ditto.
(Event::Define): Ditto.
(Property::Define): Ditto.
svn path=/trunk/mcs/; revision=789
* x86.brg: Use Unix assembly syntax.
* emit-x86.c: support code, should be moved
* testjit.c: Use GPtrArrays instead of GLists, as those are very
inefficient at appends.
svn path=/trunk/mono/; revision=788
* testjit.c: Use GPtrArrays instead of GLists, as those are very
inefficient at appends.
* Renamed `create_new_leave' to `create_new_leaf'
svn path=/trunk/mono/; revision=787
* class.cs (TypeContainer::Populate): Now define operators too.
(TypeContainer.Operators): New property to access the list of operators
in a type.
(Operator.OperatorMethodBuilder): New member to hold the method builder
for the operator we are defining.
(Operator::Define): Implement.
svn path=/trunk/mcs/; revision=786
* class.cs (Event::Define): Make the prefixes of the accessor methods
addOn_ and removeOn_
* genericparser.cs (GenericParser::error): Overloaded method to handle the case
of the location being passed in too. Ideally, this should go later since all
error reporting should be done through the Report object.
* class.cs (TypeContainer.Indexers): New property to access the list of indexers.
(Populate): Iterate thru the indexers we have and define them too.
(Indexer.GetMethodBuilder, .SetMethodBuilder): New members to hold the method builders
for the get and set accessors.
(Indexer::Define): Implement.
svn path=/trunk/mcs/; revision=785
* configure.in: check for sizeof(void*) and for the architecture.
Mon Sep 10 17:26:06 CEST 2001 Paolo Molaro <[email protected]>
* Makefile.am, x86/Makefile.am: conditional compile logic
to make porting to different targets easier.
Mon Sep 10 17:24:45 CEST 2001 Paolo Molaro <[email protected]>
* Makefile.am: make it work for make distcheck.
Mon Sep 10 20:21:34 CEST 2001 Paolo Molaro <[email protected]>
* endian.h, assembly.c: fix some endianness issues.
Mon Sep 10 20:20:36 CEST 2001 Paolo Molaro <[email protected]>
* interp.c: endian fixes, comments.
svn path=/trunk/mono/; revision=783
* BooleanSwitch.cs: Make this class use it's parent class's features.
Namely, use SwitchSetting so that we can get OnSwitchSettingChanged()
to fire for free.
svn path=/trunk/mcs/; revision=774
* ChangeLog: added this file
* Switch.cs: call OnSwitchSettingChanged() when the switch setting is,
yes you gessed it, changed.
svn path=/trunk/mcs/; revision=773
* Makefile.am: change CLEANFILES line to use just '=' instead of '+='
some versions of automake complain if you try to '+=' before you '='
svn path=/trunk/mono/; revision=772
* expression.cs (Binary::Resolve): Beginning of it. I scratched
my previous implementation, did not work.
* typemanager.cs: Add a couple of missing types (the longs).
* literal.cs: Use TypeManager.bool_type instead of getting it.
* expression.cs (EventExpr): New kind of expressions.
(Expressio::ExprClassFromMemberInfo): finish
svn path=/trunk/mcs/; revision=770
* String.cs (TrimStart): Don't keep looping through the trimchars
once we've found a match.
(TrimEnd): Same here.
(Trim): And finally here.
svn path=/trunk/mcs/; revision=767
* Merge in changes and adjust code to tackle conflicts. Backed out my
code in Assign::Resolve ;-)
2001-09-08 Ravi Pratap <[email protected]>
* cs-parser.jay (CheckAttributeTarget): Modify call to error to use
instead Report.Error and also pass in the location.
(CSharpParser::Lexer): New readonly property to return the reference
to the Tokenizer object.
(declare_local_variables): Use Report.Error with location instead of plain
old error.
(CheckDef): Ditto.
* class.cs (Operator::CheckUnaryOperator): Move into cs-parser.jay.
(Operator.CheckBinaryOperator): Ditto.
* cs-parser.jay (operator_declarator): Update accordingly.
* cs-parser.jay (CheckUnaryOperator): Modify to use Report.Error
(CheckBinaryOperator): Same here.
* rootcontext.cs (LookupType): Add an extra lookup which simply does a lookup
on the name without any prefixes of namespace names etc. This is because we
already might have something already fully qualified like
'System.Console.WriteLine'
* assign.cs (Resolve): Begin implementation. Stuck ;-)
2001-09-07 Ravi Pratap <[email protected]>
* cs-tokenizer.cs (location): Return a string which also contains
the file name.
* expression.cs (ElementAccess): New class for expressions of the
type 'element access.'
(BaseAccess): New class for expressions of the type 'base access.'
(CheckedExpr, UnCheckedExpr): New classes for Checked and Unchecked expressions
respectively.
* cs-parser.jay (element_access): Implement action.
(base_access): Implement actions.
(checked_expression, unchecked_expression): Implement.
* cs-parser.jay (local_variable_type): Correct and implement.
(type_suffixes, type_suffix_list, type_suffix): Implement actions.
* cs-tokenizer.cs (real_type_suffix): Comment out the extra getchar.
* cs-parser.jay (rank_specifiers): Remove space while concatenating the type's
name and the specifiers.
* interface.cs (InterfaceAttr): New property to return the corresponding TypeAttributes
* rootcontext.cs (CreateInterface): Use the InterfaceAttr property instead of
making them all public ;-)
* cs-parser.jay (error): Remove entirely as we have an implementation in the base
class anyways.
svn path=/trunk/mcs/; revision=765
* Char.cs (IsLetterOrDigit): Implement.
(IsLower): Implement, but we need to be Unicode aware.
(IsNumber): Implement.
(IsPunctuation): Implement.
(IsWhiteSpace): Implement.
(ToUpper): Fix to subtract 32 from the ASCII value, not 33 :)
(ToLower): Same here.
svn path=/trunk/mcs/; revision=764
* x86/x86-codegen.h: fixes and x86_mov_membase_imm ().
* x86/tramp.c: implemented mono_create_method_pointer ():
creates a native pointer to a method implementation that can be
used as a normal C callback.
Fri Sep 7 18:45:38 CEST 2001 Paolo Molaro <[email protected]>
* interp.c, interp.h: make ves_exec_method () and stackval_from_data ()
non static. Implement a couple of runtime methods needed to
use delegates (ves_runtime_method ()).
Implemented ldftn opcode.
svn path=/trunk/mono/; revision=745
* Makefile.am: Use '=' to set CLEANFILES instead of '+=' since
it's the first assignment.
* ChangeLog: added this file.
svn path=/trunk/mono/; revision=740
* expression.cs (ExprClassFromMemberInfo): Return FieldExpr and
PropertyExprs.
(FieldExpr, PropertyExprs): New resolved expressions.
(SimpleName::MemberStaticCheck): Perform static checks for access
to non-static fields on static methods. Maybe this should be
generalized for MemberAccesses.
(SimpleName::ResolveSimpleName): More work on simple name
resolution.
* cs-parser.jay (primary_expression/qualified_identifier): track
the parameter index.
* codegen.cs (CodeGen::Save): Catch save exception, report error.
(EmitContext::EmitBoolExpression): Chain to expression generation
instead of temporary hack.
(::EmitStatementExpression): Put generic expression code generation.
* assign.cs (Assign::Emit): Implement variable assignments to
local variables, parameters and fields.
2001-09-06 Miguel de Icaza <[email protected]>
* statement.cs (Block::GetVariableInfo): New method, returns the
VariableInfo for a variable name in a block.
(Block::GetVariableType): Implement in terms of GetVariableInfo
* literal.cs (IntLiteral::Emit, FloatLiteral::Emit,
DoubleLiteral::Emit, CharLiteral::Emit, BoolLiteral::Emit): Implement
svn path=/trunk/mcs/; revision=736
* x86/x86-codegen.h: added x86_rdtsc() and fixes.
* x86/tramp.c: create trampolines to call pinvoke methods.
* x86/Makefile.am: create a libmonoarch convenience library.
Thu Sep 6 15:41:24 CEST 2001 Paolo Molaro <[email protected]>
* Makefile.am: link to libmonoarch.
* interp.h, interp.c: use mono_create_trampoline ().
Pass the command line arguments to Main (String[]) methods.
svn path=/trunk/mono/; revision=728
* cs-parser.jay (CheckAttributeTarget): Update to use the right error number.
* ../tests/cs0658.cs : New file to demonstrate error 0658.
* attribute.cs (Attributes): New class to encapsulate all attributes which were
being passed around as an arraylist.
(Attributes::AddAttribute): Method to add attribute sections.
* cs-parser.jay (opt_attributes): Modify actions to use the new Attributes class.
(struct_declaration): Update accordingly.
(constant_declaration): Update.
(field_declaration): Update.
(method_header): Update.
(fixed_parameter): Update.
(parameter_array): Ditto.
(property_declaration): Ditto.
(destructor_declaration): Ditto.
* class.cs (Struct::Struct): Update constructors accordingly.
(Class::Class): Ditto.
(Field::Field): Ditto.
(Method::Method): Ditto.
(Property::Property): Ditto.
(TypeContainer::OptAttribute): update property's return type.
* interface.cs (Interface.opt_attributes): New member.
(Interface::Interface): Update to take the extra Attributes argument.
* parameter.cs (Parameter::Parameter): Ditto.
* constant.cs (Constant::Constant): Ditto.
* interface.cs (InterfaceMemberBase): New OptAttributes field.
(InterfaceMemberBase::InterfaceMemberBase): Update constructor to take
the attributes as a parameter.
(InterfaceProperty): Update constructor call.
(InterfaceEvent): Ditto.
(InterfaceMethod): Ditto.
(InterfaceIndexer): Ditto.
* cs-parser.jay (interface_indexer_declaration): Update call to constructor to
pass the attributes too.
(interface_event_declaration): Ditto.
(interface_property_declaration): Ditto.
(interface_method_declaration): Ditto.
(interface_declaration): Ditto.
svn path=/trunk/mcs/; revision=726
* class.cs (Method::Define): Track the "static Main" definition to
create an entry point.
* rootcontext.cs (RootContext::EntryPoint): MethodInfo that holds the
EntryPoint if we find it.
* codegen.cs (EmitContext::EmitInvocation): Emit invocations.
(EmitContext::ig): Make this variable public.
* driver.cs: Make the default output file be the first file name
with the .exe extension.
Detect empty compilations
Handle various kinds of output targets. Handle --target and
rename -t to --dumper.
* expression.cs, literal.cs, assign.cs, constant.cs: All `Resolve'
methods inherited from Expression return now an Expression. This
will is used during the tree rewriting as we resolve them during
semantic analysis.
(Expression::MemberLookup): Implements the MemberLookup (7.3) from
the spec. Missing entirely is the information about
accessability of elements of it.
(Expression::ExprClassFromMemberInfo): New constructor for
Expressions that creates a fully initialized Expression based on
a MemberInfo that is one of Eventinfo, FieldINfo, PropertyInfo or
a Type.
(Invocation::Resolve): Begin implementing resolution of invocations.
* literal.cs (StringLiteral): Implement Emit.
svn path=/trunk/mcs/; revision=721
* autogen.sh: Fixed the section that adds $ACLOCAL_FLAGS to the
aclocal invocation, so putting aclocal files in /usr/local works
svn path=/trunk/mono/; revision=718
* cs-parser.jay (error): Add new modifier because we are hiding an inherited
member.
2001-09-04 Ravi Pratap <[email protected]>
* cs-parser.jay (attribute_arguments): Implement actions.
(attribute): Fix bug in production. Implement action.
(attribute_list): Implement.
(attribute_target): Implement.
(attribute_target_specifier, opt_target_specifier): Implement
(CheckAttributeTarget): New method to check if the attribute target
is valid.
(attribute_section): Implement.
(opt_attributes): Implement.
* attribute.cs : New file to handle attributes.
(Attribute): Class to hold attribute info.
* cs-parser.jay (opt_attribute_target_specifier): Remove production
(attribute_section): Modify production to use 2 different rules to
achieve the same thing. 1 s/r conflict down !
Clean out commented, useless, non-reducing dimension_separator rules.
* class.cs (TypeContainer.attributes): New member to hold list
of attributes for a type.
(Struct::Struct): Modify to take one more argument, the attribute list.
(Class::Class): Ditto.
(Field::Field): Ditto.
(Method::Method): Ditto.
(Property::Property): Ditto.
* cs-parser.jay (struct_declaration): Update constructor call to
pass in the attributes too.
(class_declaration): Ditto.
(constant_declaration): Ditto.
(field_declaration): Ditto.
(method_header): Ditto.
(fixed_parameter): Ditto.
(parameter_array): Ditto.
(property_declaration): Ditto.
* constant.cs (Constant::Constant): Update constructor similarly.
Use System.Collections.
svn path=/trunk/mcs/; revision=715
Updates the enumerations to contain [Flags] (Sergey)
Updated enumerations to have the same values as ECMA (Sergey).
Added various new methods to Type.cs
Added all the classes that were not being compiled in the past to the build.
Fix various small typos to get things compiling
Miguel
svn path=/trunk/mcs/; revision=702
* class.cs (TypeContainer::AddDelegate): New method to add a delegate.
(TypeContainer.delegates): New member to hold list of delegates.
* cs-parser.jay (delegate_declaration): Implement the action correctly
this time as I seem to be on crack ;-)
svn path=/trunk/mcs/; revision=699
* rootcontext.cs (RootContext::IsNamespace): new function, used to
tell whether an identifier represents a namespace.
* expression.cs (NamespaceExpr): A namespace expression, used only
temporarly during expression resolution.
(Expression::ResolveSimpleName, ::ResolvePrimary, ::ResolveName):
utility functions to resolve names on expressions.
2001-09-01 Miguel de Icaza <[email protected]>
* codegen.cs: Add hook for StatementExpressions.
* class.cs: Fix inverted test for static flag in methods.
svn path=/trunk/mcs/; revision=698
* class.cs (Operator::CheckUnaryOperator): Correct error number used
to make it coincide with MS' number.
(Operator::CheckBinaryOperator): Ditto.
* ../errors/errors.txt : Remove error numbers added earlier.
* ../errors/cs1019.cs : Test case for error # 1019
* ../errros/cs1020.cs : Test case for error # 1020
* cs-parser.jay : Clean out commented cruft.
(dimension_separators, dimension_separator): Comment out. Ostensibly not
used anywhere - non-reducing rule.
(namespace_declarations): Non-reducing rule - comment out.
* enum.cs (Enum::AddEnum): Rename to AddEnumMember as I was getting confused
with TypeContainer::AddEnum.
* delegate.cs : New file for delegate handling classes.
(Delegate): Class for declaring delegates.
* makefile : Update.
* cs-parser.jay (delegate_declaration): Implement.
svn path=/trunk/mcs/; revision=696
* class.cs (Event::Define): Implement.
(Event.EventBuilder): New member.
* class.cs (TypeContainer::Populate): Update to define all enums and events
we have.
(Events): New property for the events arraylist we hold. Shouldn't we move to using
readonly fields for all these cases ?
2001-08-31 Ravi Pratap <[email protected]>
* class.cs (Property): Revamp to use the convention of making fields readonly.
Accordingly modify code elsewhere.
* class.cs : Apply patch from Mr. Mandar <[email protected]> for implementing
the Define method of the Property class.
* class.cs : Clean up applied patch and update references to variables etc. Fix
trivial bug.
(TypeContainer::Populate): Update to define all the properties we have. Also
define all enumerations.
* enum.cs (Define): Implement.
svn path=/trunk/mcs/; revision=694
Added support for enums;
Removed duplicated checks in Compare.Parameters;
Now has option to ignore missing types instead of reporting fatal-erros;
svn path=/trunk/mcs/; revision=691
* cs-parser.jay (overloadable_operator): The semantic value is an
enum of the Operator class.
(operator_declarator): Implement actions.
(operator_declaration): Implement.
* class.cs (Operator::CheckUnaryOperator): New static method to help in checking
validity of definitions.
(Operator::CheckBinaryOperator): Static method to check for binary operators
(TypeContainer::AddOperator): New method to add an operator to a type.
* cs-parser.jay (indexer_declaration): Added line to actually call the
AddIndexer method so it gets added ;-)
* ../errors/errors.txt : Update to include new error numbers. Are these numbers
already taken care of by the MS compiler ?
2001-08-29 Ravi Pratap <[email protected]>
* class.cs (Operator): New class for operator declarations.
(Operator::OpType): Enum for the various operators.
svn path=/trunk/mcs/; revision=688
* loader.c (mono_get_method): use pinvoke for internal call
* icall.c: use pinvoke for internal call
* loader.c (method_from_memberref): set the method name
* interp.c (ves_array_set): moved from icall.c
(ves_array_get): moved from icall.c
* icall.c: moved to metadata/icall.c
svn path=/trunk/mono/; revision=674
* interp.c: some small optimizations. Fixes to do signed
compares when needed. Change C++ comments into C.
Implemented cgt, clt. Added --opcode-count cmdline switch.
svn path=/trunk/mono/; revision=673
* class.cs (TypeContainer::AddIndexer): Remove FIXME comment. We
ostensibly handle this in semantic analysis.
* cs-parser.jay (general_catch_clause): Comment out
(specific_catch_clauses, specific_catch_clause): Ditto.
(opt_general_catch_clause, opt_specific_catch_clauses): Ditto
(catch_args, opt_catch_args): New productions.
(catch_clause): Rewrite to use the new productions above
(catch_clauses): Modify accordingly.
(opt_catch_clauses): New production to use in try_statement
(try_statement): Revamp. Basically, we get rid of one unnecessary rule
and re-write the code in the actions to extract the specific and
general catch clauses by being a little smart ;-)
* ../tests/try.cs : Fix. It's not 'finalize' my friend, it's 'finally' !
Hooray, try and catch statements parse fine !
2001-08-28 Ravi Pratap <[email protected]>
* statement.cs (Block::GetVariableType): Fix logic to extract the type
string from the hashtable of variables.
* cs-parser.jay (event_accessor_declarations): Trivial fix. Man, how did
I end up making that mistake ;-)
(catch_clauses): Fixed gross error which made Key and Value of the
DictionaryEntry the same : $1 !!
svn path=/trunk/mcs/; revision=667
* NameObjectCollectionBase.cs: Add stub implementation
* common.src: Add NameObjectCollectionBase to the build
* NameValueCollection.cs: add 'override' to CopyTo(). Maybe
this code actually belongs in the superclass.
svn path=/trunk/mcs/; revision=664
* interp.c (ves_exec_method): better check for value types (get
the class to detect if we have a value type), implemented CEE_CONV_U1,
CEE_CONV_U2, CEE_CEQ
* class.c (mono_class_metadata_init): delayed computing of the
class size to mono_class_metadata_init ()
* mono/tests/console.cs: impl.
* mono/tests/box.cs: impl.
* mono/tests/stream-writer.cs: impl.
svn path=/trunk/mono/; revision=655
* main.c, dump.c, dump.h, get.c: added dump_table_interfaceimpl ().
Output info about interfaces when disassembling a type. Many small
changes to make the output correct assembler.
svn path=/trunk/mono/; revision=653
* class.c, class.h: add an interfaces member to MonoClass.
* image.c, image.h: add assembly_name field to MonoImage
from the assembly table.
* metadata.c, metadata.h: add mono_metadata_interfaces_from_typedef ().
svn path=/trunk/mono/; revision=652
* cs-tokenizer.cs (initTokens): Add keywords 'add' and 'remove'
* cs-parser.jay (event_declaration): Correct to remove the semicolon
when the add and remove accessors are specified.
svn path=/trunk/mcs/; revision=651
* cs-parser.jay (IndexerDeclaration): New helper class to hold
information about indexer_declarator.
(indexer_declarator): Implement actions.
(parsing_indexer): New local boolean used to keep track of whether
we are parsing indexers or properties. This is necessary because
implicit_parameters come into picture even for the get accessor in the
case of an indexer.
(get_accessor_declaration, set_accessor_declaration): Correspondingly modified.
* class.cs (Indexer): New class for indexer declarations.
(TypeContainer::AddIndexer): New method to add an indexer to a type.
(TypeContainer::indexers): New member to hold list of indexers for the
type.
2001-08-27 Ravi Pratap <[email protected]>
* cs-parser.jay (add_accessor_declaration): Implement action.
(remove_accessor_declaration): Implement action.
(event_accessors_declaration): Implement
(variable_declarators): swap statements for first rule - trivial.
* class.cs (Event): New class to hold information about event
declarations.
(TypeContainer::AddEvent): New method to add an event to a type
(TypeContainer::events): New member to hold list of events.
* cs-parser.jay (event_declaration): Implement actions.
svn path=/trunk/mcs/; revision=650
* 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.
svn path=/trunk/mono/; revision=645
* interp.c: merge isinst/castclass handling. Hopefully implement
the right semantics for handling callvirt correctly (changes
here and there to support it). Integrate bugfix from Dietmar quickly
so he needs to handle the cvs conflict:-)
svn path=/trunk/mono/; revision=644
* dis-cil.c, get.c: some endian fixes.
* main.c: colon-separate version numbers. Print also namespace
when outputting class information.
svn path=/trunk/mono/; revision=643
* class.c, loader.c, loader.h: More types handled in mono_class_from_mono_type ().
* metadata.c: fix small problem introduced with the latest commit.
svn path=/trunk/mono/; revision=640
* loader.c, metadata.c, metadata.h: Export mono_metadata_type_equal().
We don't need a MonoMetadata pointer anymore to compare signatures in
mono_metadata_signature_equal (), update callers.
Reduced memory usage an number of allocations for MonoMethodHeader and
MonoMethodSignature.
Mon Aug 27 12:20:32 CEST 2001 Paolo Molaro <[email protected]>
* interp.c: fix compilation and updates for changes in metadata/.
svn path=/trunk/mono/; revision=639
* cs-parser.jay (dim_separators): Implement. Make it a string
concatenating all the commas together, just as they appear.
(opt_dim_separators): Modify accordingly
(rank_specifiers): Update accordingly. Basically do the same
thing - instead, collect the brackets here.
(opt_rank_sepcifiers): Modify accordingly.
(array_type): Modify to actually return the complete type string
instead of ignoring the rank_specifiers.
(expression_list): Implement to collect the expressions
(variable_initializer): Implement. We make it a list of expressions
essentially so that we can handle the array_initializer case neatly too.
(variable_initializer_list): Implement.
(array_initializer): Make it a list of variable_initializers
(opt_array_initializer): Modify accordingly.
* expression.cs (New::NType): Add enumeration to help us
keep track of whether we have an object/delegate creation
or an array creation.
(New:NewType, New::Rank, New::Indices, New::Initializers): New
members to hold data about array creation.
(New:New): Modify to update NewType
(New:New): New Overloaded contructor for the array creation
case.
* cs-parser.jay (array_creation_expression): Implement to call
the overloaded New constructor.
2001-08-26 Ravi Pratap <[email protected]>
* class.cs (TypeContainer::Constructors): Return member
constructors instead of returning null.
svn path=/trunk/mcs/; revision=637
* typemanager.cs (InitCoreTypes): Initialize the various core
types after we have populated the type manager with the user
defined types (this distinction will be important later while
compiling corlib.dll)
* expression.cs, literal.cs, assign.cs, constant.cs: Started work
on Expression Classification. Now all expressions have a method
`Resolve' and a method `Emit'.
* codegen.cs, cs-parser.jay: Fixed the bug that stopped code
generation from working. Also add some temporary debugging
code.
svn path=/trunk/mcs/; revision=632
* interp.c: get in a dummy virtual method dispatch.
Added support for int64, native int and native uint as arguments.
Added debug enter/leave for icall and pinvoke methods, too.
Implement opcodes conv.i, conv.i8, ldelema.
svn path=/trunk/mono/; revision=630
* interp.h, interp.c: load also a MonoClass pointer when we load
an address on the stack. Implemented conv.i1, conv.i2, con.i4,
conv.u4, conv.r4, conv.r8. Print the arguments in the stack trace
and the name of the exception.
svn path=/trunk/mono/; revision=623
* class.h, class.c, loader.h, loader.c: export mono_class_from_mono_type ()
and add a couple more types to it and mono_defaults. Give an hint on
classes that need implementing in our corlib and are referenced
in mscorlib.
svn path=/trunk/mono/; revision=622
* class.h, class.c: keep track if a class is also an Enum.
* loader.c: Implement a couple more types for use in libffi
marshalling. Gives better diagnostics when failing to dlopen
a library. Set method->klass for P/Invoke methods, too.
svn path=/trunk/mono/; revision=618
* added support for non-public types;
* fixed types comparison bug,
types must be compared by-hand, Equals won't work;
* now methods also compared by their access modifiers and inheritance options;
* more extensive error reporting;
* minor internal changes;
svn path=/trunk/mcs/; revision=617
* codegen.cs: Lots of code generation pieces. This is only the
beginning, will continue tomorrow with more touches of polish. We
handle the fundamentals of if, while, do, for, return. Others are
trickier and I need to start working on invocations soon.
* gen-treedump.cs: Bug fix, use s.Increment here instead of
s.InitStatement.
* codegen.cs (EmitContext): New struct, used during code
emission to keep a context. Most of the code generation will be
here.
* cs-parser.jay: Add embedded blocks to the list of statements of
this block. So code generation proceeds in a top down fashion.
svn path=/trunk/mcs/; revision=616
* (common.src): Removed IAsyncResult as it is not on CVS yet.
* UIntPtr.cs: Removed CLSCompliant attribute before the namespace,
as it breaks the build.
svn path=/trunk/mcs/; revision=610
* class.c, class.h: add a MonoType this_arg to MonoClass that
represents a pointer to an object of the class' type that
can be used by the interpreter and later the type cache.
Add best guess alignment info for valuetype objects.
Fri Aug 24 19:34:04 CEST 2001 Paolo Molaro <[email protected]>
* interp.h, interp.c: add support for valuetypes.
svn path=/trunk/mono/; revision=603
* metadata.h, metadata.c, class.h, class.c: squeezed MonoParam
into MonoType: one less level of indirection and allocation and
simplifies quite a bit of code. Added cache for MonoTypes that are
used frequently, so that we don't need to allocate them all the time.
Fri Aug 24 16:09:20 CEST 2001 Paolo Molaro <[email protected]>
* interp.c: updates for merge of MonoParam in MonoType.
Fri Aug 24 16:10:12 CEST 2001 Paolo Molaro <[email protected]>
* get.c, main.c, get.h: updates for MonoParam merge in MonoType.
svn path=/trunk/mono/; revision=602
* SingleTagSectionHandler.cs: Added.
* DictionarySectionHandler.cs: Added.
* NameValueSectionHandler.cs: Compile errors are now fixed.
* IgnoreSectionHandler.cs: Compile errors are now fixed.
* ConfigurationSettings.cs: Added Implementation code for the entire class.
Note the LAMESPEC: in GetConfig().
svn path=/trunk/mcs/; revision=601
* class.c (mono_class_create_from_typedef): System.Enum is also a
value type, although it does not derive from System.ValueType
(maybe a bug in the ms compiler?)
* metadata.c (mono_type_size): return the right size for value types
* loader.c (mono_get_method): only initialize method header if not abstract
svn path=/trunk/mono/; revision=599
for errors because the status line that says No Errors found "lies"
Fixed the compiler errors and vow to be more careful with copy/paste
svn path=/trunk/mcs/; revision=583
* codegen.cs (EmitCode): New function, will emit the code for a
Block of code given a TypeContainer and its ILGenerator.
* statement.cs (Block): Standard public readonly optimization.
(Block::Block constructors): Link children.
(Block::Child): Child Linker.
(Block::EmitVariables): Emits IL variable declarations.
* class.cs: Drop support for MethodGroups here, delay until
Semantic Analysis.
(Method::): Applied the same simplification that I did before, and
move from Properties to public readonly fields.
(Method::ParameterTypes): Returns the parameter types for the
function, and implements a cache that will be useful later when I
do error checking and the semantic analysis on the methods is
performed.
(Constructor::GetCallingConvention): Renamed from CallingConvetion
and made a method, optional argument tells whether this is a class
or a structure to apply the `has-this' bit.
(Method::GetCallingConvention): Implement, returns the calling
convention.
(Method::Define): Defines the type, a second pass is performed
later to populate the methods.
(Constructor::ParameterTypes): implement a cache similar to the
one on Method::ParameterTypes, useful later when we do semantic
analysis.
(TypeContainer::EmitMethod): New method. Emits methods.
* expression.cs: Removed MethodGroup class from here.
* parameter.cs (Parameters::GetCallingConvention): new method.
svn path=/trunk/mcs/; revision=573
* interp.c: simplified init_class (). Make sure a class
is fully initialized before executing a method in the class.
Search for the class constructor only on beforefieldinit classes.
Implement a bunch of opcodes: br, brfalse, brtrue, beq, bge,
bgt, blt, ble, bne.un, bge.un, bgt.un, ble.un, blt.un, stind.i,
ldflda, ldsflda, ldelem.i8, stelem.i8, leave.
svn path=/trunk/mono/; revision=564
* metadata.c, loader.h, loader.c, image.h, image.c, class.h, class.c:
MonoClass now has the name and name_space fields.
MonoMethod has a pointer to its MonoClass, instead of MonoImage.
mono_get_method () takes and optional MonoClass as argument.
Removed mono_typedef_from_name() and added mono_class_token_from_name()
instead that takes advantage of a map from class names to typedef
tokens in MonoImage.
Wed Aug 22 16:34:03 CEST 2001 Paolo Molaro <[email protected]>
* interp.c: Updates for changes in metadata/. Better output in debug mode
and in the stack trace. Completed rethrow handling
svn path=/trunk/mono/; revision=559
Added implementations in Unix.cs and Windows.cs for retrieving
environment variables in a platform specific manner.
Implementations are called from Environment.cs
svn path=/trunk/mcs/; revision=554
* class.cs (TypeContainer::Populate): Drop RootContext from the
argument.
(Constructor::CallingConvention): Returns the calling convention.
(Constructor::ParameterTypes): Returns the constructor parameter
types.
(TypeContainer::AddConstructor): Keep track of default constructor
and the default static constructor.
(Constructor::) Another class that starts using `public readonly'
instead of properties.
(Constructor::IsDefault): Whether this is a default constructor.
(Field::) use readonly public fields instead of properties also.
(TypeContainer::TypeAttr, TypeContainer::AddConstructor): Keep
track of static constructors; If none is used, turn on
BeforeFieldInit in the TypeAttributes.
* cs-parser.jay (opt_argument_list): now the return can be null
for the cases where there are no arguments.
(constructor_declarator): If there is no implicit `base' or
`this', then invoke the default parent constructor.
* modifiers.cs (MethodAttr): New static function maps a set of
modifiers flags into a MethodAttributes enum
(FieldAttr): renamed from `Map'. So now we have FieldAttr,
MethodAttr, TypeAttr to represent the various mappings where the
modifiers are used.
(FieldAttr): Map also `readonly' to `FieldAttributes.InitOnly'
svn path=/trunk/mcs/; revision=544
* mono/tests/exceptions*: enhanced and added more tests for
exceptions.
Tue Aug 21 18:54:58 CEST 2001 Paolo Molaro <[email protected]>
* metadata.c: zero is not a valid alignment boundary.
Merge MONO_TYPE_VOID in default decoding code.
Tue Aug 21 18:56:19 CEST 2001 Paolo Molaro <[email protected]>
* interp.c: new macro INIT_FRAME() to properly
initialize a MonoInvocation. Fixed a couple of buglets in exception code:
increase stack pointer when pushing the exception for catch blocks,
initialize frame->ex_handler to NULL, correctly try all the
catch blocks (don't incorrectly fallback on filter handling).
Added a couple more checks where we may need to throw an
exception. Added more exception creation functions.
Changed stackval_from_data() to take the target stackval as
argument. Implemented a couple more opcodes.
* interp.h: prepare stackval for value type code.
svn path=/trunk/mono/; revision=539
* 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.
svn path=/trunk/mono/; revision=527
* Implemented ConditionalAttribute.cs and DebuggableAttribute.cs
* Forgot to cvs add them before I commited (cvs-newbie error, sorry)
svn path=/trunk/mcs/; revision=518
* util.c: add a space when decoding multiple flags.
* dump.c, dump.h, main.c: decode the property map and
methodsemantics tables. Disassemble property information
to .property IL directives.
* get.c: allow passing a NULL as method in dis_stringify_method ()
if a methoddef_row is given.
Mon Aug 20 19:39:00 CEST 2001 Paolo Molaro <[email protected]>
* blob.h: fix MONO_TYPE_TYPEDBYREF value.
* cil-coff.h: split MonoMSDOSHeader and add size info.
* image.c: add some consistency checks.
* metadata.c: fix row size computation: one programmer
error and one LAMESPEC. Handle MONO_TYPE_TYPEDBYREF.
add explanation for the locator routine.
Fix decoding of size in method header.
svn path=/trunk/mono/; revision=511
* assembly.c (g_concat_dir_and_file): Bring g_concat_dir_and_file
function from gnome-libs. This uses the right path separator
based on the OS, and also works around a bug in some systems where
a double slash is not allowed.
(default_assembly_name_resolver): Use g_concat_dir_and_file
(mono_assembly_open): ditto.
svn path=/trunk/mono/; revision=508
* Component.cs: Eliminated compile errors by removing redundant fields and
using the ISite member instead. Also raised the Disposed event, but not
sure if it's correct now. Look for FIXME in the comments.
svn path=/trunk/mcs/; revision=504
* mono/tests/stream.cs: new tests for the Stream class
* configure.in: I really need LIBTOOL for libmonowrapper.so, so I
added it again.
* class.h: replaced 'struct MonoMethod' with 'MonoMethod'
* cli.h: removed #include <mono/cli/object.h>
* icall.c: changed everything to support the new calling convention
* hacks.h: added some macros for FreeBSD
* interp.c (get_named_exception): use mono_object_new instead of
newobj, initialize the stack before we call the constructor.
* metadata.c (mono_metadata_signature_equal): impl.
* *: void is now a realy MonoType (instead of using NULL)
* metadata.c (do_mono_metadata_parse_type): use
mono_metadata_parse_type to parse void value.
svn path=/trunk/mono/; revision=502
* parameter.cs (GetParameterInfo): Fix bug where there would be no
method arguments.
* interface.cs (PopulateIndexer): Implemented the code generator
svn path=/trunk/mcs/; revision=496
* x86/x86-codegen.h: fix a couple of buglets and add x86_regp_emit().
Sat Aug 18 12:42:26 CEST 2001 Paolo Molaro <[email protected]>
* class.c, class.h: load also the methods when loading a class.
Sat Aug 18 12:43:38 CEST 2001 Paolo Molaro <[email protected]>
* interp.c, interp.h: added support code to create exceptions.
Changed interncal calling convnetion over to MonoInvocation, to support
exceptions, walking the stack back and forward and passing the 'this'
pointer separately (remove the cludges required before to pass this on the
stack). Use alloca heavily for both local vars and a copy of the incoming
arguments. Init local vars to zero.
Simplify stackval_from_data() and stackval_to_data() to only take a pointer
instead of pointer + offset.
Implement a few exceptions-related opcodes and the code to run finally, fault and
catch blocks as well as a stack trace if no handler is found.
Sat Aug 18 12:51:28 CEST 2001 Paolo Molaro <[email protected]>
* metadata.c, metadata.h: in the signature and method header store
only the space required for holding the loca vars and incoming arguments.
svn path=/trunk/mono/; revision=493
* dump.c, get.c, get.h, main.c: dis_stringify_method_signature()
gets an optional methodef_row index instead of a name, so it
can figure out also the names and attributes of params.
parse_method_signature() and free_method_signature() removed as
they are useless now.
svn path=/trunk/mono/; revision=492
* interface.cs (InterfaceMemberBase): Now we track the new status
here.
(PopulateProperty): Implement property population. Woohoo! Got
Methods and Properties going today.
Removed all the properties for interfaces, and replaced them with
`public readonly' fields.
svn path=/trunk/mcs/; revision=487
* libffi/include/fficonfig.h: Remove as this is auto generated.
* Makefile.am: Only generate libffi.a.
* configure.in: replace A[CM]_PROG_LIBTOOL with AC_PROG_RANLIB.
2001-08-16 Alex Graveley <[email protected]>
* Makefile.am (mono_int_LDADD): Link with ../../libffi/libffi.a
instead of ../../libffi/.libs/libffi.a.
svn path=/trunk/mono/; revision=483
* Added myself as maintainer of System.Attribute which is 95% done.
* Made myself maintainer of System.ConditionalAttribute
svn path=/trunk/mono/; revision=480
* Attribute.cs: implemented all methods except GetHashCode()
* common.src: added Attribute.cs so it would compile in
svn path=/trunk/mcs/; revision=479
* class.cs (MakeConstant): Code to define constants.
* rootcontext.cs (LookupType): New function. Used to locate types
svn path=/trunk/mcs/; revision=469
* common.src: removed UriFormatException.cs because the file is
not there.
* RuntimeTypeHandle.cs: replaced IntrPtr with IntPtr
* Char.cs: replaced byte with char
* Array.cs: make it work with the mono interpreter
svn path=/trunk/mcs/; revision=458
* implemented arrays, but you will need a modified version of
Array.cs to get arrays working (will commit soon)
* interp.c (ves_icall_array_Set): impl.
(ves_icall_array_Get): impl.
(ves_icall_array_ctor): impl.
(ves_icall_System_Array_GetRank): impl.
(ves_icall_System_Array_GetLength): impl.
(ves_icall_System_Array_GetLowerBound): impl.
(mono_lookup_internal_call): impl.
* object.c (mono_new_szarray): impl.
* loader.c (mono_typedef_from_name): return the token, not the index
(mono_get_corlib): impl.
(mono_get_array_class_info): impl.
(method_from_memberref): add array support
(mono_get_method): support INTERNAL_CALL
* class.c (mono_class_create_from_typedef): Array support,
code cleanup, store the token_type, not the token index, added
flag for value types.
(mono_type_to_tydedef): impl.
(mono_class_create_from_typespec): impl.
(mono_array_class_get): impl.
(mono_class_get): support TYPE_SPEC token.
svn path=/trunk/mono/; revision=452
* rootcontext.cs: OH MY! My trick works! It is amazing how nice
this System.Reflection code is. Kudos to Microsoft
* typemanager.cs: Implement a type cache and avoid loading all
types at boot time. Wrap in LookupType the internals. This made
the compiler so much faster. Wow. I rule!
* driver.cs: Make sure we always load mscorlib first (for
debugging purposes, nothing really important).
* Renamespaced things that were on `CSC' to `CIR'. Maybe I should
have moved to `CSC' rather than `CIR'. Oh man! The confussion!
* rootcontext.cs: Lookup types on their namespace; Lookup types
on namespaces that have been imported using the `using' keyword.
svn path=/trunk/mcs/; revision=433
* class.cs (TypeContainer::TypeAttr): Virtualize.
(Class::TypeAttr): Return attributes suitable for this bad boy.
(Struct::TypeAttr): ditto.
Handle nested classes.
(TypeContainer::) Remove all the type visiting code, it is now
replaced with the rootcontext.cs code
* rootcontext.cs (GetClassBases): Added support for structs.
svn path=/trunk/mcs/; revision=429
* interface.cs, statement.cs, class.cs, parameter.cs,
rootcontext.cs, gen-treedump.cs, enum.cs, cs-parse.jay:
Drop use of TypeRefs, and use strings instead.
svn path=/trunk/mcs/; revision=420
* Uri.cs: Initial Implementation. Parsing needs to be fixed to take
into account IPv6 addresses, url encoding needs to be implemented, and
various minor methods need to be written, but this is a decent start.
svn path=/trunk/mcs/; revision=408
* object.h: added MonoArrayObject and MonoStringObject
* loader.c (mono_typedef_from_name):
s/typedef_from_name/(mono_typedef_from_name and made it public.
* class.c (class_compute_field_layout): skip the FIELD signature
(mono_class_create_from_typedef): bug fix: field.last was wrong
(class_compute_field_layout): added some code to make it work for
classes with EXPLICIT_LAYOUT but no offsets specified (I observed
that behaviour on System.Array)
* interp.c (ves_exec_method): impl. NEWARR
(ves_exec_method): impl. most LDELEM/STELEM opcodes, LDLEN
(newarr): impl.
(mono_get_ansi_string): impl.
* mono/tests/pinvoke.cs: we can now print strings ;-)
* mono/tests/array.cs: new test for arrays
svn path=/trunk/mono/; revision=406
* rootcontext.cs:
* class.cs (Struct::Struct): set the SEALED flags after
checking the modifiers.
(TypeContainer::TypeAttr): new property, returns the
TypeAttributes for a class.
* cs-parser.jay (type_list): Oops, list production was creating a
new list of base types.
* rootcontext.cs (StdLib): New property.
(GetInterfaceTypeByName): returns an interface by type name, and
encapsulates error handling here.
(GetInterfaces): simplified.
(ResolveTree): Encapsulated all the tree resolution here.
(CreateClass, GetClassBases, GetInterfaceOrClass): Create class
types.
* driver.cs: Add support for --nostdlib, to avoid loading the
default assemblies.
(Main): Do not put tree resolution here.
* rootcontext.cs: Beginning of the class resolution.
svn path=/trunk/mcs/; revision=404
* metadata.h, metadata.c: add mono_metadata_decode_row_col () to
decode a single column from a row in a metadata table and changes
to take advantage of it in the typedef locator (gives a nice speed up).
Store offset info for function params.
Sat Aug 4 12:36:54 CEST 2001 Paolo Molaro <[email protected]>
* get.c, get.h, main.c, dump.c: implement dis_stringify_method_signature().
More magic constants replaced by enum values (spotted at least 3 real bugs
doing this). Print usage information if an unknown option is given.
Print the full signature when dumping the method table.
Changed method and field table dumps to show the typedef name the field
or method belongs to.
svn path=/trunk/mono/; revision=403
* rootcontext.cs (CloseTypes): Routine to flush types at the end.
(CreateInterface): Track types.
(GetInterfaces): Returns an array of Types from the list of
defined interfaces.
* typemanager.c (AddUserType): Mechanism to track user types (puts
the type on the global type hash, and allows us to close it at the
end).
svn path=/trunk/mcs/; revision=395
* 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).
svn path=/trunk/mono/; revision=383
* DateTime.cs: Cleaned up a bit. Added the Add* family members.
Added exceptions. Added IConvertible. Still needs some platform
dependend stuff, the Parse and ToString members
svn path=/trunk/mcs/; revision=382
* tree.cs: Removed RecordType, added RecordClass, RecordStruct and
RecordInterface instead.
* cs-parser.jay: Updated to reflect changes above.
* decl.cs (Definition): Keep track of the TypeBuilder type that
represents this type here. Not sure we will use it in the long
run, but wont hurt for now.
* driver.cs: Smaller changes to accomodate the new code.
Call ResolveInterfaceBases, Call ResolveClassBases, Save assembly
when done.
* rootcontext.cs (CreateInterface): New method, used to create
the System.TypeBuilder type for interfaces.
(ResolveInterfaces): new entry point to resolve the interface
hierarchy.
(CodeGen): Property, used to keep track of the code generator.
svn path=/trunk/mcs/; revision=381
* interp.c (ves_exec_method): found a way to do unordered
compares, implemented CEE_BNE_UN_S, CEE_BGE_UN_S, CEE_BGT_UN_S,
CEE_BLE_UN_S, CEE_BLT_UN_S
* loader.c(mono_map_dll): impl.
(mono_get_method): bug fix: pass index - 1 to fill_pinvoke_info
* mono/tests/pinvoke.cs: impl.
svn path=/trunk/mono/; revision=380
if it is System.String instead of using magic numbers.
* class.c (mono_class_create_from_typedef): do a strcmp to check
if it is System.Object instead of using magic numbers.
* image.h (MONO_IMAGE_IS_CORLIB): removed
svn path=/trunk/mono/; revision=379
* dis-cil.c: properly decode the switch opcode.
Wed Aug 1 22:48:29 CEST 2001 Paolo Molaro <[email protected]>
* class.c, class.h: mono_field_type_size () moved to metadata.
Take correctly into account alignment when laying out
class fields. Fix 5 to 0 magc number (to check for System.Object).
Wed Aug 1 22:54:08 CEST 2001 Paolo Molaro <[email protected]>
* assembly.c: how could mono_assembly_close () had ever worked?
* metadata.c, metadata.h: provide offset info for local vars.
Implement mono_type_size () to take care of alignment as well
as size (it was mono_field_type_size in cli/class.c before).
Wed Aug 1 22:51:38 CEST 2001 Paolo Molaro <[email protected]>
* interp.c: handle also MONO_TYPE_CLASS to/from the stack.
Change locals to be a memory blob, instead of the structured
(but wrong) stackval. Implement bne.un.s opcode. Make the program
exit with the error code from Main().
svn path=/trunk/mono/; revision=369
* assembly.c (mono_assembly_open): set the corlib before we continue.
(mono_assembly_open): replaced strcmp() with !strcmp()
svn path=/trunk/mono/; revision=364
* interp.c (GET_NATI): Switched from using nati_t to cli/types.h
m_i type. Maybe we should rename the types to be m_i_t instead of
m_i alone.
Make the code compile after I broke it.
svn path=/trunk/mono/; revision=361
we override it in SyncStack anyway.
*Stack.cs: Pop() now shrinks the array if we drop below 1/4 full, to
avoid using massive amounts of memory that are not necessary. We only
drop to half the current size, which i hope will avoid the 'ping-pong'
effect.
*Stack.cs: SyncStack.IsReadOnly should return stack.IsReadOnly
instead of just returning false, since we may have a ReadOnly wrapper
in the future (although i can't imagine why). Thanks to David
Menestrina <[email protected]> for pointing this out.
svn path=/trunk/mcs/; revision=350
* metadata.h, metadata.c: decode exception clauses when parsing method header.
Mon Jul 30 20:08:37 CEST 2001 Paolo Molaro <[email protected]>
* dis-cil.c, dis-cil.h, main.c: changes to disassemble also
the information about try/catch/finally blocks.
Mon Jul 30 20:05:23 CEST 2001 Paolo Molaro <[email protected]>
* cli.h, loader.c: usa a char *name field in MonoMethod instead
of the name_idx token.
Mon Jul 30 20:09:58 CEST 2001 Paolo Molaro <[email protected]>
* interp.c: update to use mono_method->name.
svn path=/trunk/mono/; revision=344
* class.h, class.c: add inited field to MonoClass.
Fri Jul 27 20:54:00 CEST 2001 Paolo Molaro <[email protected]>
* interp.c: start implementing callvirt. Classes with
class constructors are properly initialized when needed.
Fix error introduced in version 1.17.
svn path=/trunk/mono/; revision=336
Fri Jul 27 14:03:19 CEST 2001 Paolo Molaro <[email protected]>
* interp.c: implement static field loading and storing.
Fri Jul 27 13:51:11 CEST 2001 Paolo Molaro <[email protected]>
* class.h, class.c: add a class_size member to MonoClass. We store
the static fields after the other class data. Offsets for static
fields are offsets from the MonoClass pointer.
Properly initialize class->instance_size and deal with static
fields when layouting them.
svn path=/trunk/mono/; revision=333
* cs-parser.jay: Add a second production for delegate_declaration
with `VOID'.
(enum_body): Put an opt_comma here instead of putting it on
enum_body or enum_member_declarations so we can handle trailing
commas on enumeration members. Gets rid of a shift/reduce.
(type_list): Need a COMMA in the middle.
(indexer_declaration): Tell tokenizer to recognize get/set
* Remove old targets.
* Re-add the parser target.
svn path=/trunk/mcs/; revision=330
* loader.c: implemented lookup of methods in a different MonoImage
(needed to call the Syste.Object constructor, for example). Fixed the cache
code to only check for methods defined in the image.
Fri Jul 27 11:49:19 CEST 2001 Paolo Molaro <[email protected]>
* interp.c: Removed some debugging printouts. Made stackval_to_data
static. Handle also instance methods in CALL opcode. Fix ret to properly
deal with void functions. Fixed constructor to leave the object on
the stack.
svn path=/trunk/mono/; revision=328
* metadata.h, row_indexes.h: added header with enumerations to use
to index in the columns from tables in metadata and to decode coded
tokens: we should start using this instead of embedding magic numbers
all over the code.
svn path=/trunk/mono/; revision=327
* assembly.c, cil-coff.h, image.c, image.h, pedump.c, typedef.c:
Move metadata_t info from cli_image_info_t to MonoImage, where
it's easily accessible. Changed all the uses accordingly.
Added the method and class caches to MonoImage.
* metadata.c, metadata.h: Changed mono_metadata_decode_blob_size ()
and mono_metadata_decode_value () signature to be more consistent
with the other parse functions (and simplify code). Taken advantage
of zero-length array allocation with GCC. Removed reduntant (and
wrong) MonoFieldType struct and use MonoParam instead. Changed
mono_metadata_parse_field_type () to use common code for parsing.
Added mono_metadata_typedef_from_field () and
mono_metadata_typedef_from_method () to lookup a typedef index from a
field or method token.
Pack the MonoRetType structure more tightly (fits in 8 bytes now).
Thu Jul 26 13:17:22 CEST 2001 Paolo Molaro <[email protected]>
* class.c: updates to match changes in metadata.
Fix off by one errors. Implement creation of classes by typeref.
Remove custom cache and use the class cache in MonoImage.
* cli.h, loader.c: add MonoImage field to MonoMethod. Fill method cache
in MonoImage. Updates to match changes in metadata.
Thu Jul 26 13:22:28 CEST 2001 Paolo Molaro <[email protected]>
* dis-cil.c, dump.c, get.c, main.c: updates to match changes in metadata.
Removed dead code.
Thu Jul 26 13:24:51 CEST 2001 Paolo Molaro <[email protected]>
* interp.c: ves_exec_method () doesn't take a MonoImage arg
anymore. Use the method cache in MonoImage. Updates to
mache recent changes in metadata.
Fix newobj code to use new metadata features. Call the class
constructor after allocationg the object. Implemented load field
and store field opcodes (the support functions need to be finished).
svn path=/trunk/mono/; revision=325
text, I changed the main links a bit, so they are now pretty orange when
you mouseover them.
Turned out the thing was a mozilla bug afterwards, though the new color
stuff looks pretty cute, so I left it in.
Doh.
Tuomas
svn path=/trunk/mono/; revision=321
* NumberStyles.cs: Added ECMA values for Allow types and default
styles.
2001-07-24 Derek Holden <[email protected]>
* Boolean.cs: Formatted to code style standard. Added GetTypeCode
which is really an IConvertible defined method.
* Byte.cs: Added a missing Parse method. Put in Parse and ToString
behavior, still need to do the main Parse and ToString.
* Char.cs: Added a bunch of missing ECMA methods. Commented a
specification discrepency. Still didn't any unicode stuff, though
every IsFoo(char c) method has an IsFoo(string, index)
counterpart, added wrappers for those.
* Convert.cs: Fixed NaN/Inf checking and double/float
rounding. Added ToType for IConvertible classes
* Double.cs: Fixed ECMA min and max values. Added IsInfinity /
IsNaN methods. Changed Inf/NaN internals.
* IConvertible.cs: Added comments for using
Convert.ToType. Changed return values to draft base values.
* Int16.cs: Added a missing Parse statement. Put in behavior for
overloaded ToString and Parse methods.
* Int32.cs: Added a missing Parse statement. Put in behavior for
overloaded ToString and Parse methods.
* Int64.cs: Added a missing Parse statement. Put in behavior for
overloaded ToString and Parse methods.
* Single.cs: Put in ECMA epsilon value. Added IsInfinity / IsNaN
methods. Changed Inf/NaN internals.
* SByte.cs: Added a missing Parse method. Put in Parse and
ToString behavior, still need to do the main Parse and ToString.
* UInt16.cs: Added a missing Parse statement. Put in behavior for
overloaded ToString and Parse methods.
* UInt32.cs: Added a missing Parse statement. Put in behavior for
overloaded ToString and Parse methods.
* UInt64.cs: Added a missing Parse statement. Put in behavior for
overloaded ToString and Parse methods.
svn path=/trunk/mcs/; revision=320
* class.c (mono_class_create_from_typedef): Take into account
parent classes for the size of a structure.
Still not ideal, but better than before.
For the case of the interpreter, Paolo is right, there is not much
use for a Field Map, as the way the Fields are located is through
a token.
(mono_class_init): Remove, initialize automatically.
(mono_class_get_field): new function, returns the information
about a field given a class and its token.
2001-07-23 Miguel de Icaza <[email protected]>
* interp.c (newobj): Added function to handle newobj opcode.
2001-07-23 Miguel de Icaza <[email protected]>
* metadata.c (mono_metadata_parse_field_type): Implement.
(do_mono_metadata_parse_type): Split engine from
mono_metadata_parse_type, so that we can create smaller structures
for things that just have one pointer to the MonoType (look at
the MonoFieldType)
svn path=/trunk/mono/; revision=315
* Hashtable.cs: Fixed bug in Clear(), the Count wasn't zeroed.
From now, Clear() increases modification count.
Fixed HCP bug in GetHash(object) - hcp.GetHashCode() was used
instead of hcp.GetHashCode(key). This was resulted in the
insanely long lookup times when HashCodeProvider was used to
construct Hashtable. Added thread-safe wrapper.
svn path=/trunk/mcs/; revision=313
* interp.c (newobj): Added function to handle newobj opcode.
2001-07-23 Miguel de Icaza <[email protected]>
* object.h, object.c, class.h, class.c: Implemented the beginning
of the object system. x
2001-07-23 Miguel de Icaza <[email protected]>
* metadata.c (mono_metadata_parse_field_type): Implement.
(do_mono_metadata_parse_type): Split engine from
mono_metadata_parse_type, so that we can create smaller structures
for things that just have one pointer to the MonoType (look at
the MonoFieldType)
svn path=/trunk/mono/; revision=312
* Char.cs: Made ToUpper and ToLower public methods.
* String.cs: Lots and lots of compile fixes - just need to write
DateTime.cs and this should build completely now.
svn path=/trunk/mcs/; revision=260
* System.IO.MemoryStream.cs: Added. Had quite a few cases of
"LAMESPEC", but the tests work against the MS implementation so
the major functions are right (ie. Read/Write/Seek). Some more
tests required for the various constructors and exceptions.
svn path=/trunk/mcs/; revision=245
* StringCollection.cs:
Implemented and working according to spec.
* StringIterator.cs:
(ADDED) Implemented and working according to spec.
* StringCollectionTest.cs:
(ADDED) Initial revision contains 17 tests; all of 'em
run correctly. More complicated tests to follow.
svn path=/trunk/mcs/; revision=241
* assembly.c: Implement asssembly loading. This loads an image
and loads all the referenced assemblies. Come to think of it, we
could always do lazy loading of the assemblies.
* image.c (mono_image_open): Keep loaded images in a hashtable.
* image.h (MonoImage): Add reference count.
svn path=/trunk/mono/; revision=233
* String.cs (IndexOf): Slight optimization that allows skipping
over a few chars here and there. This isn't as good as using my
Boyer-Moore implementation, however, Boyer-Moore is only really
good for long strings (I plan on making the code decide which
string search algorithm it should use on-the-fly at some point).
(LastIndexOf): Fix to work correctly.
(BoyerMoore): Took out some unneeded code and fixed an edge-case.
svn path=/trunk/mcs/; revision=226
* interp.c (ves_exec_method): Make the interpreter abort with more
information than it currently does.
Enable the slow processor, as it is easier to debug.
svn path=/trunk/mono/; revision=219
* metadata.h: Fixed Paolo's quick hack. Put the documnentation
from get.c here.
2001-07-17 Miguel de Icaza <[email protected]>
* main.c (usage): Print out all the arguments.
* get.c, main.c, dump.c: Remove `expand', `get_encoded_value',
`get_blob_encoded_size' and replaced with the proper functions
from metadata.c
:
svn path=/trunk/mono/; revision=218
* tree.cs: moved IGenerator interface and renamed it to ITreeDump
and put it here.
Get rid of old crufty code.
* rootcontext.cs: Use this to keep track of the parsed
representation and the defined types available to the program.
* gen-treedump.cs: adjust for new convention.
* type.cs: Split out the type manager, and the assembly builder
from here.
* typemanager.cs: the type manager will live here now.
svn path=/trunk/mcs/; revision=206
* StringReader.cs, StringWriter.cs, TextReader.cs, TextWriter.cs:
New class implemenations.
* StringReaderTest.cs, StringWriterTest.cs: Test suite for the above.
2001-07-16 Marcin Szczepanski <[email protected]>
* StringBuilder.cs (Text): Fixed.
* StringBuilderTest.cs: Implement Test suite.
svn path=/trunk/mcs/; revision=184
* ByNamespace.cs: Generates html by namespace..
* ByMaintainer.xsl: Needed by ByMaintainer.cs.
* ByMaintainer.cs: Generates html by maintainer.
* class.xml: Class maintainers go here.
* maintainers.xml: Only maintaining email/name pairs here.
* compare-assembly.cs: Started refactoring to give what Migee
wants.
svn path=/trunk/mono/; revision=180
* main.c (dis_code): Only display .entrypoint when we are dealing
with a module that contains an entry point. This removes a bunch
of warnings for .dll dumping
svn path=/trunk/mono/; revision=179
# 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>
* IRC Channel
Many developers get together on the <b>#mono</b> irc channel
on the <b>irc.gnome.org</b> server.
** 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). 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. <a href="mono-contribution-howto.html">Here</a> there is a good All-In-One introduction to the art of writing tests.
*** 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
report so we can keep track of problems in Mono.
To enter bug reports go to <a href="http://bugzilla.ximian.com">
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:
<ul>
* <b>MCS compilation process:</b> Currently MCS does
not build with a single `make' command. This should
be fixed (this being part of the `Joel Test' that
software has to pass).
* <b>Mono/doc and web site:</b> They need to be
packaged up in the official `distribution'
* <b>Enthusiasts: </b>
* Adding serialization support to all the classes.
We have many classes, but we have not implemented in
many cases the serialization and re-incarnation support in
them (this is pretty straight forward code, and simple,
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>
New methods that are not documented in 1.0, are documented <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/framewrkaddend.asp">here</a>
** IRC
Various Mono contributors get together on channel #mono on
Another implementation of the CLI and C# compiler.
* A Free (GFDL) tutorial on C# in Spanish with examples, slides, and extras (under development). Get it <a href="http://geneura.ugr.es/~jaime/csharp/">here</a>.
</ul>
** GNOME Documentation
Documnetation on GNOME, and the GNOME APIs is available from
Documentation on GNOME, and the GNOME APIs is available from
the <a href="http://developer.gnome.org">developer</a> site at
* <a href="http://research.microsoft.com/copyright/accept.asp?path=http://www.research.microsoft.com/~drh/pubs/iburg.pdf&pub=ACM">Engineering efficient code generators using tree matching and dynamic programming.</a>
* VCODE.
</ul>
** Future plans
We are evaluating the future directions for the JIT engine:
both from our needs (optimizations like inlining, better register allocation,
instruction scheduling, and porting to other CPUs).
We have not yet decided how we will evolve the JIT engine. We
might just upgrade our current architecture, and provide optimizations as
an extra layer.
** Garbage Collection
We have decided to implement a generational tracing garbage
collector, which is very similar to the one being used by
.NET. For an introduction to the garbage collection system
used by Microsoft's CLR implementation, you can read this book
Loaded 100 of 5184 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.