mono.git
22 years ago2001-09-17 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Tue, 18 Sep 2001 01:58:47 +0000 (01:58 -0000)]
2001-09-17  Miguel de Icaza  <miguel@ximian.com>

* 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

22 years ago2001-09-17 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Mon, 17 Sep 2001 20:53:35 +0000 (20:53 -0000)]
2001-09-17  Miguel de Icaza  <miguel@ximian.com>

* testjit.c (mono_compile_method): Provide better error reporting.

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

22 years agoUnfinished work
Miguel de Icaza [Mon, 17 Sep 2001 20:52:42 +0000 (20:52 -0000)]
Unfinished work

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

22 years agoPlata
Miguel de Icaza [Mon, 17 Sep 2001 15:26:31 +0000 (15:26 -0000)]
Plata

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

22 years agoGigante
Miguel de Icaza [Mon, 17 Sep 2001 15:22:09 +0000 (15:22 -0000)]
Gigante

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

22 years ago2001-09-17 Ravi Pratap <ravi@ximian.com>
Ravi Pratap M [Mon, 17 Sep 2001 14:38:01 +0000 (14:38 -0000)]
2001-09-17  Ravi Pratap  <ravi@ximian.com>

* 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

22 years agoInclude Calendar.cs to the build
Miguel de Icaza [Mon, 17 Sep 2001 14:34:30 +0000 (14:34 -0000)]
Include Calendar.cs to the build

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

22 years agoUpdated sources file
Miguel de Icaza [Mon, 17 Sep 2001 14:30:29 +0000 (14:30 -0000)]
Updated sources file

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

22 years agoAdd new files from Wictor Wilen
Miguel de Icaza [Mon, 17 Sep 2001 14:29:52 +0000 (14:29 -0000)]
Add new files from Wictor Wilen

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

22 years agoMore updates
Miguel de Icaza [Mon, 17 Sep 2001 14:26:41 +0000 (14:26 -0000)]
More updates

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

22 years agoUpdate
Miguel de Icaza [Mon, 17 Sep 2001 14:15:24 +0000 (14:15 -0000)]
Update

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

22 years agoAdd the CVS download information
Miguel de Icaza [Mon, 17 Sep 2001 13:18:30 +0000 (13:18 -0000)]
Add the CVS download information

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

22 years ago(tree_get_address): make sure that we can only jump to the first
Dietmar Maurer [Mon, 17 Sep 2001 12:31:44 +0000 (12:31 -0000)]
(tree_get_address): make sure that we can only jump to the first
instruction of a tree.

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

22 years ago2001-09-17 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Mon, 17 Sep 2001 11:42:03 +0000 (11:42 -0000)]
2001-09-17  Dietmar Maurer  <dietmar@ximian.com>

* testjit.c (tree_get_address): impl. to fix address bug

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

22 years ago2001-09-17 Ravi Pratap <ravi@ximian.com>
Ravi Pratap M [Mon, 17 Sep 2001 09:24:42 +0000 (09:24 -0000)]
2001-09-17  Ravi Pratap  <ravi@ximian.com>

* 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

22 years ago2001-09-17 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Mon, 17 Sep 2001 09:10:44 +0000 (09:10 -0000)]
2001-09-17  Dietmar Maurer  <dietmar@ximian.com>

* 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

22 years ago2001-09-17 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Mon, 17 Sep 2001 07:18:11 +0000 (07:18 -0000)]
2001-09-17  Dietmar Maurer  <dietmar@ximian.com>

* x86/x86-codegen.h (x86_alu_reg_reg): replaced src/dest

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

22 years agoChecked in updates from Gaurav Vaish
Miguel de Icaza [Mon, 17 Sep 2001 00:39:57 +0000 (00:39 -0000)]
Checked in updates from Gaurav Vaish

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

22 years ago2001-09-17 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Mon, 17 Sep 2001 00:32:53 +0000 (00:32 -0000)]
2001-09-17  Miguel de Icaza  <miguel@ximian.com>

* rootcontext.cs: Fix bug: tree.Namespaces might be null.

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

22 years agoAdd news item on Gtk#
Miguel de Icaza [Mon, 17 Sep 2001 00:25:19 +0000 (00:25 -0000)]
Add news item on Gtk#

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

22 years ago * Added a bunch of Token structs (all are generated from template).
Sergey Chaban [Sun, 16 Sep 2001 11:29:38 +0000 (11:29 -0000)]
 * Added a bunch of Token structs (all are generated from template).
 * common.src: added new structs to the build and fixed a small typo.

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

22 years ago2001-09-16 Ravi Pratap <ravi@ximian.com>
Ravi Pratap M [Sun, 16 Sep 2001 09:56:36 +0000 (09:56 -0000)]
2001-09-16  Ravi Pratap  <ravi@ximian.com>

* 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

22 years ago * common.src: added PackingSize.cs;
Sergey Chaban [Sun, 16 Sep 2001 09:04:23 +0000 (09:04 -0000)]
 * common.src: added PackingSize.cs;

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

22 years ago * PackingSize.cs: Initial check-in.
Sergey Chaban [Sun, 16 Sep 2001 08:55:27 +0000 (08:55 -0000)]
 * PackingSize.cs: Initial check-in.

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

22 years ago2001-09-15 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Sat, 15 Sep 2001 08:27:41 +0000 (08:27 -0000)]
2001-09-15  Dietmar Maurer  <dietmar@ximian.com>

* x86.brg (stmt): don't emit unnecessary register moves

* testjit.c (tree_allocate_regs): free registers earlier

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

22 years agoadded more ideas
Dietmar Maurer [Sat, 15 Sep 2001 07:58:08 +0000 (07:58 -0000)]
added more ideas

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

22 years ago2001-09-15 Ravi Pratap <ravi@ximian.com>
Ravi Pratap M [Sat, 15 Sep 2001 03:47:14 +0000 (03:47 -0000)]
2001-09-15  Ravi Pratap  <ravi@ximian.com>

* 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

22 years ago2001-09-14 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Fri, 14 Sep 2001 19:06:23 +0000 (19:06 -0000)]
2001-09-14  Miguel de Icaza  <miguel@ximian.com>

* 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

22 years ago2001-09-14 Ravi Pratap <ravi@ximian.com>
Ravi Pratap M [Fri, 14 Sep 2001 15:16:12 +0000 (15:16 -0000)]
2001-09-14  Ravi Pratap  <ravi@ximian.com>

* modifiers.cs (TypeAttr, MethodAttr, FieldAttr): Map protected internal to
FamORAssem, not FamANDAssem.

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

22 years ago2001-09-14 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Fri, 14 Sep 2001 14:01:44 +0000 (14:01 -0000)]
2001-09-14  Miguel de Icaza  <miguel@ximian.com>

* driver.cs: Added --parse option that only parses its input files
and terminates.

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

22 years ago2001-09-14 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Fri, 14 Sep 2001 13:57:23 +0000 (13:57 -0000)]
2001-09-14  Miguel de Icaza  <miguel@ximian.com>

* 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

22 years ago2001-09-14 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Fri, 14 Sep 2001 12:40:14 +0000 (12:40 -0000)]
2001-09-14  Dietmar Maurer  <dietmar@ximian.com>

* 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

22 years ago2001-09-14 Dick Porter <dick@ximian.com>
Dick Porter [Fri, 14 Sep 2001 12:03:33 +0000 (12:03 -0000)]
2001-09-14  Dick Porter  <dick@ximian.com>

* class.xml: Added System.Threading classes

* maintainers.xml: Added myself

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

22 years ago2001-09-14 Ravi Pratap <ravi@ximian.com>
Ravi Pratap M [Fri, 14 Sep 2001 12:00:53 +0000 (12:00 -0000)]
2001-09-14  Ravi Pratap  <ravi@ximian.com>

* enum.cs (Enum::Define): Modify to call the Lookup method on the
parent instead of a direct call to GetType.

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

22 years agoMostly stubs.
Paolo Molaro [Fri, 14 Sep 2001 11:16:30 +0000 (11:16 -0000)]
Mostly stubs.

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

22 years agoFri Sep 14 16:12:08 CEST 2001 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Fri, 14 Sep 2001 10:14:48 +0000 (10:14 -0000)]
Fri Sep 14 16:12:08 CEST 2001 Paolo Molaro <lupus@ximian.com>

* MethodBase.cs, MethodInfo.cs: added.

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

22 years agoUpdates.
Paolo Molaro [Fri, 14 Sep 2001 10:05:58 +0000 (10:05 -0000)]
Updates.

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

22 years ago2001-09-14 Ravi Pratap <ravi@ximian.com>
Ravi Pratap M [Fri, 14 Sep 2001 03:53:33 +0000 (03:53 -0000)]
2001-09-14  Ravi Pratap  <ravi@ximian.com>

* 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

22 years ago2001-09-14 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Fri, 14 Sep 2001 01:57:07 +0000 (01:57 -0000)]
2001-09-14  Nick Drochak  <ndrochak@gol.com>
* /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

22 years ago2001-09-13 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Thu, 13 Sep 2001 18:47:55 +0000 (18:47 -0000)]
2001-09-13  Miguel de Icaza  <miguel@ximian.com>

* 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

22 years agoWhitspace :-)
Ravi Pratap M [Thu, 13 Sep 2001 14:02:27 +0000 (14:02 -0000)]
Whitspace :-)

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

22 years agoSet the correct enum values.
Dick Porter [Thu, 13 Sep 2001 13:02:35 +0000 (13:02 -0000)]
Set the correct enum values.

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

22 years agoMore System.Threading stubs, in the System assembly.
Dick Porter [Thu, 13 Sep 2001 12:49:58 +0000 (12:49 -0000)]
More System.Threading stubs, in the System assembly.

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

22 years agoSystem.Threading class stubs.
Dick Porter [Thu, 13 Sep 2001 12:47:25 +0000 (12:47 -0000)]
System.Threading class stubs.

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

22 years agoAdded a stub for the IsValueType property.
Dick Porter [Thu, 13 Sep 2001 12:42:19 +0000 (12:42 -0000)]
Added a stub for the IsValueType property.

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

22 years agoAdded the other constructor, so that System.Threading exceptions can
Dick Porter [Thu, 13 Sep 2001 12:41:14 +0000 (12:41 -0000)]
Added the other constructor, so that System.Threading exceptions can
inherit it.

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

22 years agoThu Sep 13 18:04:23 CEST 2001 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 13 Sep 2001 12:09:03 +0000 (12:09 -0000)]
Thu Sep 13 18:04:23 CEST 2001 Paolo Molaro <lupus@ximian.com>

* FileLoadException.cs, FileNotFoundException.cs: added.

Thu Sep 13 18:05:16 CEST 2001 Paolo Molaro <lupus@ximian.com>

* Assembly.cs: added stub code.

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

22 years ago2001-09-13 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Thu, 13 Sep 2001 11:57:57 +0000 (11:57 -0000)]
2001-09-13  Miguel de Icaza  <miguel@ximian.com>

* 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

22 years ago2001-09-13 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Thu, 13 Sep 2001 11:09:26 +0000 (11:09 -0000)]
2001-09-13  Miguel de Icaza  <miguel@ximian.com>

* 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

22 years ago*** empty log message ***
Dietmar Maurer [Thu, 13 Sep 2001 10:24:11 +0000 (10:24 -0000)]
*** empty log message ***

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

22 years ago2001-09-13 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Thu, 13 Sep 2001 10:23:27 +0000 (10:23 -0000)]
2001-09-13  Dietmar Maurer  <dietmar@ximian.com>

* 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

22 years agoadded some thoughts
Dietmar Maurer [Thu, 13 Sep 2001 10:14:22 +0000 (10:14 -0000)]
added some thoughts

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

22 years ago*** empty log message ***
Dietmar Maurer [Thu, 13 Sep 2001 09:26:57 +0000 (09:26 -0000)]
*** empty log message ***

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

22 years agoReplace 811 = 811 with 811 =
Miguel de Icaza [Thu, 13 Sep 2001 07:00:04 +0000 (07:00 -0000)]
Replace 811 = 811 with 811 =

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

22 years ago2001-09-13 Ravi Pratap <ravi@ximian.com>
Ravi Pratap M [Thu, 13 Sep 2001 05:01:46 +0000 (05:01 -0000)]
2001-09-13  Ravi Pratap  <ravi@ximian.com>

* 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

22 years ago2001-09-13 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Thu, 13 Sep 2001 00:08:45 +0000 (00:08 -0000)]
2001-09-13  Miguel de Icaza  <miguel@ximian.com>

* statement.cs: (VariableInfo::VariableType): New field to be
initialized with the full type once it is resolved.

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

22 years ago2001-09-12 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Thu, 13 Sep 2001 00:06:51 +0000 (00:06 -0000)]
2001-09-12  Miguel de Icaza  <miguel@ximian.com>

* 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

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

* 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

22 years ago2001-09-12 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Wed, 12 Sep 2001 22:45:05 +0000 (22:45 -0000)]
2001-09-12  Miguel de Icaza  <miguel@ximian.com>

* 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

22 years ago2001-09-12 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Wed, 12 Sep 2001 19:47:07 +0000 (19:47 -0000)]
2001-09-12  Miguel de Icaza  <miguel@ximian.com>

* interp.c (ves_exec_method): implement conv.u8 opcode.

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

22 years ago2001-09-12 Ravi Pratap <ravi@ximian.com>
Ravi Pratap M [Wed, 12 Sep 2001 14:17:56 +0000 (14:17 -0000)]
2001-09-12  Ravi Pratap  <ravi@ximian.com>

* 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

22 years ago*** empty log message ***
Dietmar Maurer [Wed, 12 Sep 2001 03:47:43 +0000 (03:47 -0000)]
*** empty log message ***

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

22 years ago2001-09-11 Ravi Pratap <ravi@ximian.com>
Ravi Pratap M [Tue, 11 Sep 2001 10:05:32 +0000 (10:05 -0000)]
2001-09-11  Ravi Pratap  <ravi@ximian.com>

* 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

22 years agoTue Sep 11 13:46:35 CEST 2001 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 11 Sep 2001 07:50:55 +0000 (07:50 -0000)]
Tue Sep 11 13:46:35 CEST 2001 Paolo Molaro <lupus@ximian.com>

* 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

22 years ago2001-09-11 Ravi Pratap <ravi@ximian.com>
Ravi Pratap M [Tue, 11 Sep 2001 03:13:23 +0000 (03:13 -0000)]
2001-09-11  Ravi Pratap  <ravi@ximian.com>

* 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

22 years ago2001-09-10 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Mon, 10 Sep 2001 20:13:51 +0000 (20:13 -0000)]
2001-09-10  Miguel de Icaza  <miguel@ximian.com>

* 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

22 years ago2001-09-10 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Mon, 10 Sep 2001 20:12:47 +0000 (20:12 -0000)]
2001-09-10  Miguel de Icaza  <miguel@ximian.com>

* 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

22 years ago2001-09-10 Ravi Pratap <ravi@ximian.com>
Ravi Pratap M [Mon, 10 Sep 2001 16:17:30 +0000 (16:17 -0000)]
2001-09-10  Ravi Pratap  <ravi@ximian.com>

* 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

22 years ago2001-09-10 Ravi Pratap <ravi@ximian.com>
Ravi Pratap M [Mon, 10 Sep 2001 15:43:45 +0000 (15:43 -0000)]
2001-09-10  Ravi Pratap  <ravi@ximian.com>

* 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

22 years ago2001-09-10 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Mon, 10 Sep 2001 14:52:35 +0000 (14:52 -0000)]
2001-09-10  Miguel de Icaza  <miguel@ximian.com>

* Renamed `create_new_leave' to `create_new_leaf'

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

22 years agoMon Sep 10 20:19:00 CEST 2001 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 10 Sep 2001 14:26:02 +0000 (14:26 -0000)]
Mon Sep 10 20:19:00 CEST 2001 Paolo Molaro <lupus@ximian.com>

* configure.in: check for sizeof(void*) and for the architecture.

Mon Sep 10 17:26:06 CEST 2001 Paolo Molaro <lupus@ximian.com>

* 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 <lupus@ximian.com>

* Makefile.am: make it work for make distcheck.

Mon Sep 10 20:21:34 CEST 2001 Paolo Molaro <lupus@ximian.com>

* endian.h, assembly.c: fix some endianness issues.

Mon Sep 10 20:20:36 CEST 2001 Paolo Molaro <lupus@ximian.com>

* interp.c: endian fixes, comments.

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

22 years agoAdd WebControls
Miguel de Icaza [Mon, 10 Sep 2001 13:18:14 +0000 (13:18 -0000)]
Add WebControls

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

22 years ago*** empty log message ***
Dietmar Maurer [Mon, 10 Sep 2001 09:34:11 +0000 (09:34 -0000)]
*** empty log message ***

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

22 years agoadded the jit prototype, small fixes
Dietmar Maurer [Mon, 10 Sep 2001 09:14:46 +0000 (09:14 -0000)]
added the jit prototype, small fixes

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

22 years agoupdated status
Jim Richardson [Mon, 10 Sep 2001 09:10:34 +0000 (09:10 -0000)]
updated status

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

22 years agoadded additional implementation
Jim Richardson [Mon, 10 Sep 2001 09:09:07 +0000 (09:09 -0000)]
added additional implementation

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

22 years agoupdated to reflect wrapper changes
Jim Richardson [Mon, 10 Sep 2001 09:04:34 +0000 (09:04 -0000)]
updated to reflect wrapper changes

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

22 years agoadded errno constant ENOTDIR
Jim Richardson [Mon, 10 Sep 2001 09:03:07 +0000 (09:03 -0000)]
added errno constant ENOTDIR

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

22 years agoadded functions unlink and stat
Jim Richardson [Mon, 10 Sep 2001 07:39:00 +0000 (07:39 -0000)]
added functions unlink and stat

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

22 years ago2001-09-09 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Sun, 9 Sep 2001 10:50:56 +0000 (10:50 -0000)]
2001-09-09  Nick Drochak <ndrochak@gol.com>

* 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

22 years ago2001-09-09 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Sun, 9 Sep 2001 10:07:15 +0000 (10:07 -0000)]
2001-09-09  Nick Drochak <ndrochak@gol.com>

* ChangeLog: added this file

* Switch.cs: call OnSwitchSettingChanged() when the switch setting is,
yes you gessed it, changed.

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

22 years ago2001-09-09 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Sun, 9 Sep 2001 09:38:07 +0000 (09:38 -0000)]
2001-09-09  Nick Drochak  <ndrochak@gol.com>

        * 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

22 years agooops
Miguel de Icaza [Sun, 9 Sep 2001 02:15:46 +0000 (02:15 -0000)]
oops

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

22 years ago2001-09-09 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Sun, 9 Sep 2001 02:15:21 +0000 (02:15 -0000)]
2001-09-09  Miguel de Icaza  <miguel@ximian.com>

* 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

22 years ago2001-09-09 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Sun, 9 Sep 2001 00:08:39 +0000 (00:08 -0000)]
2001-09-09  Miguel de Icaza  <miguel@ximian.com>

* expression.cs (EventExpr): New kind of expressions.
(Expressio::ExprClassFromMemberInfo): finish

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

22 years ago2001-09-08 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Sat, 8 Sep 2001 23:24:03 +0000 (23:24 -0000)]
2001-09-08  Miguel de Icaza  <miguel@ximian.com>

* assign.cs: Emit stores to static fields differently.

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

22 years ago2001-09-08 Jeffrey Stedfast <fejj@ximian.com>
Jeffrey Stedfast [Sat, 8 Sep 2001 21:11:01 +0000 (21:11 -0000)]
2001-09-08  Jeffrey Stedfast  <fejj@ximian.com>

* 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

22 years agochecked in updated Wrapper autogenerated class
Jim Richardson [Sat, 8 Sep 2001 12:06:29 +0000 (12:06 -0000)]
checked in updated Wrapper autogenerated class
modifed FileStream.cs using directive to reflect new namespace for Wrapper.cs

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

22 years ago2001-09-08 Ravi Pratap <ravi@ximian.com>
Ravi Pratap M [Sat, 8 Sep 2001 11:18:21 +0000 (11:18 -0000)]
2001-09-08  Ravi Pratap  <ravi@ximian.com>

* Merge in changes and adjust code to tackle conflicts. Backed out my
code in Assign::Resolve ;-)

2001-09-08  Ravi Pratap  <ravi@ximian.com>

* 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  <ravi@ximian.com>

* 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

22 years ago2001-09-07 Ravi Pratap <ravi@ximian.com>
Ravi Pratap M [Sat, 8 Sep 2001 10:58:09 +0000 (10:58 -0000)]
2001-09-07  Ravi Pratap  <ravi@ximian.com>

* 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

22 years ago2001-09-08 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Sat, 8 Sep 2001 07:43:17 +0000 (07:43 -0000)]
2001-09-08  Dietmar Maurer  <dietmar@ximian.com>

* monoburg.c (emit_header): added some convenient macros

* monoburg.y (optcfunc): allow arbitrary cost functions

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

22 years agorun automake, aotoconf, ...
Dietmar Maurer [Sat, 8 Sep 2001 04:01:08 +0000 (04:01 -0000)]
run automake, aotoconf, ...

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

22 years agoUpdate errors file
Miguel de Icaza [Fri, 7 Sep 2001 21:19:21 +0000 (21:19 -0000)]
Update errors file

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

22 years agoUpdate passport doc
Miguel de Icaza [Fri, 7 Sep 2001 16:05:14 +0000 (16:05 -0000)]
Update passport doc

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

22 years agoRemoved auto-generated comments.
Sergey Chaban [Fri, 7 Sep 2001 16:01:44 +0000 (16:01 -0000)]
Removed auto-generated comments.

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

22 years agoAdd man page
Miguel de Icaza [Fri, 7 Sep 2001 15:43:45 +0000 (15:43 -0000)]
Add man page

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

22 years agoRemoved auto-generated comments.
Sergey Chaban [Fri, 7 Sep 2001 15:36:23 +0000 (15:36 -0000)]
Removed auto-generated comments.

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

22 years agoRemoved auto-generated comments.
Sergey Chaban [Fri, 7 Sep 2001 15:30:28 +0000 (15:30 -0000)]
Removed auto-generated comments.

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

22 years agoRemoved auto-generated comments.
Sergey Chaban [Fri, 7 Sep 2001 15:22:03 +0000 (15:22 -0000)]
Removed auto-generated comments.

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

22 years agoReplaced with specs-compliant enum.
Sergey Chaban [Fri, 7 Sep 2001 15:19:30 +0000 (15:19 -0000)]
Replaced with specs-compliant enum.

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