mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-16 11:21:08 -10:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
06d243aef7 | ||
|
|
c68ea769ee | ||
|
|
6a0ef2bda3 | ||
|
|
120479c4b4 | ||
|
|
62622e734b | ||
|
|
7ed97db90a | ||
|
|
a6237f8e1f | ||
|
|
60633644e5 | ||
|
|
3b6be82db4 | ||
|
|
da7a16cbc0 | ||
|
|
cd4559a82f | ||
|
|
7f5cc73b41 | ||
|
|
004725da98 | ||
|
|
b678c0c3a7 | ||
|
|
188421611f | ||
|
|
1d2f1b057d | ||
|
|
9f0265a347 | ||
|
|
28ff9d2fd7 | ||
|
|
69821227f0 | ||
|
|
bd513c3726 | ||
|
|
bd07011a8c | ||
|
|
141bfda2f4 | ||
|
|
3878ea2fb0 | ||
|
|
54c716697c | ||
|
|
331cac28ce | ||
|
|
8c0e59cf8b | ||
|
|
8e431dd371 | ||
|
|
5949706c8e | ||
|
|
1ad8b99f3d | ||
|
|
a736ad10d6 | ||
|
|
03122029ce | ||
|
|
939166e9a7 | ||
|
|
0cd2596b30 | ||
|
|
def80a53e2 | ||
|
|
db74ae145b | ||
|
|
5ca3ca5217 | ||
|
|
0ba7943335 | ||
|
|
2da7b509d6 | ||
|
|
a544b0c730 | ||
|
|
ffcffd34d9 | ||
|
|
4e4824afab |
No files matched your search
@@ -1,3 +1,21 @@
|
||||
2004-06-29 Jackson Harper <[email protected]>
|
||||
|
||||
* man/gacutil.1: Update man with new command line options.
|
||||
|
||||
2004-06-29 Raja R Harinath <[email protected]>
|
||||
Atsushi Enomoto <[email protected]>
|
||||
|
||||
* runtime/net_1_1/Makefile.am (GAC_ROOT_DIR): Renamed from GAC_DIR.
|
||||
(GAC_DIR): New define that doesn't include $(DESTDIR).
|
||||
(install-data-local,uninstall-local): Use them. Use in-tree mono
|
||||
runtime, not the installed one.
|
||||
|
||||
2004-06-29 Raja R Harinath <[email protected]>
|
||||
|
||||
* runtime/Makefile.am (gmcs_exe): New. Set only if not W32.
|
||||
(monotwo_DATA): Use it.
|
||||
From Atsushi Enomoto.
|
||||
|
||||
2004-06-24 Raja R Harinath <[email protected]>
|
||||
|
||||
* runtime/net_2_0/Makefile.am (gac_assemblies_list): Put back
|
||||
|
||||
+2
-1
@@ -1,7 +1,7 @@
|
||||
AC_INIT(README)
|
||||
AC_CANONICAL_SYSTEM
|
||||
AM_CONFIG_HEADER(config.h)
|
||||
AM_INIT_AUTOMAKE(mono,0.97)
|
||||
AM_INIT_AUTOMAKE(mono,1.0)
|
||||
AM_MAINTAINER_MODE
|
||||
|
||||
AC_PROG_LN_S
|
||||
@@ -1182,6 +1182,7 @@ case "$host" in
|
||||
;;
|
||||
*-*-*netbsd*)
|
||||
LIBC="libc.so.12"
|
||||
INTL="libintl.so.0"
|
||||
;;
|
||||
esac
|
||||
AC_SUBST(libsuffix)
|
||||
|
||||
+48
-14
@@ -24,20 +24,17 @@ convention is that assemblies must also be placed in a separate
|
||||
directory for being accessed to the compiler. This is done with the
|
||||
-package directive to gacutil.
|
||||
.PP
|
||||
The tool allows for installationl, removal, and listing of the
|
||||
The tool allows for installation, removal, and listing of the
|
||||
contents of the assembly cache.
|
||||
.PP
|
||||
The GAC is relative to the Mono installation prefix:
|
||||
mono_prefix/lib/mono.
|
||||
.SH FLAGS
|
||||
The "-user" flag enables you to install/remove the assembly into the
|
||||
user's assembly cache, as opposed to the global one.
|
||||
.PP
|
||||
.SH COMMANDS
|
||||
.I "-i path_to_assembly" [-f] [-root ROOTDIR] [-package NAME]
|
||||
.I -i <assembly_path> [-check_refs] [-package NAME] [-root ROOTDIR] [-gacdir GACDIR]
|
||||
.Sp
|
||||
The above installs the assembly into the GAC, use the -f flag to force
|
||||
an installation an overwrite anything in there.
|
||||
Installs an assembly into the global assembly cache. <assembly_path>
|
||||
is the name of the file that contains the assembly manifest
|
||||
.Sp
|
||||
The -package option can be used to also create a directory in in
|
||||
prefix/lib/mono with the name NAME, and a symlink is created from
|
||||
@@ -47,18 +44,32 @@ developers can reference a set of libraries at once.
|
||||
The -root option is used by developers integrating this with automake
|
||||
tools or packaging tools that require a prefix directory to be
|
||||
specified. The root represents the "libdir" component of a prefix
|
||||
(typically prefix/lib).
|
||||
(typically prefix/lib).
|
||||
.Sp
|
||||
The -gacdir option is used to specify the GACs base directory. Once an
|
||||
assembly has been installed to a non standard gacdir the MONO_GAC_PATH
|
||||
environment variable must be used to access the assembly.
|
||||
.Sp
|
||||
The -check_refs option is used to ensure that the assembly being
|
||||
installed into the GAC does not reference any non strong named
|
||||
assemblies. Assemblies being installed to the GAC should not reference
|
||||
non strong named assemblies, however the is an optional check.
|
||||
.fi
|
||||
.PP
|
||||
.I "-l"
|
||||
.I "-l" [assembly_name] [-root ROOTDIR] [-gacdir GACDIR]
|
||||
.Sp
|
||||
Lists the contents of the Global Assembly Cache
|
||||
Lists the contents of the global assembly cache. When the
|
||||
<assembly_name> parameter is specified only matching assemblies are
|
||||
listed.
|
||||
.PP
|
||||
.I "-u assembly_name [-root]"
|
||||
.I "-u" <assembly_display_name> [-package NAME] [-root ROOTDIR] [-gacdir GACDIR]
|
||||
.Sp
|
||||
The above removes the given assembly name from the Global Assembly
|
||||
Cache. As opposed to the install option that takes a filename, this
|
||||
takes as an argument the assembly name, which looks like this:
|
||||
Uninstalls an assembly from the global assembly cache.
|
||||
<assembly_display_name> is the name of the assembly (partial or
|
||||
fully qualified) to remove from the global assembly cache. If a
|
||||
partial name is specified all matching assemblies will be
|
||||
uninstalled. As opposed to the install option that takes a filename,
|
||||
this takes as an argument the assembly name, which looks like this:
|
||||
.nf
|
||||
MyLibrary.Something, version=1.0.0.0, publicKeyToken=xxxx,culture=neutral
|
||||
.fi
|
||||
@@ -69,6 +80,29 @@ to quote them.
|
||||
The removal performs a greedy removal, if you only specifiy one
|
||||
component like, "MyLibrary.Something", it will remove all versions of
|
||||
the library.
|
||||
.Sp
|
||||
.I "-us" <assembly_path> [-package NAME] [-root ROOTDIR] [-gacdir GACDIR]
|
||||
Uninstalls an assembly using the specifed assemblies full name.
|
||||
<assembly path> is the path to an assembly. The full assembly name
|
||||
is retrieved from the specified assembly if there is an assembly in
|
||||
the GAC with a matching name, it is removed. Unlike the -u option this
|
||||
option takes a file name, like this:
|
||||
.nf
|
||||
Example: -us myDll.dll
|
||||
.fi
|
||||
.Sp
|
||||
.I "-ul" <assembly_list_file> [-package NAME] [-root ROOTDIR] [-gacdir GACDIR]
|
||||
Uninstalls one or more assemblies from the global assembly cache.
|
||||
<assembly_list_file> is the path to a test file containing a list of
|
||||
assembly names on separate lines.
|
||||
.nf
|
||||
Example -ul assembly_list.txt
|
||||
.fi
|
||||
.nf
|
||||
assembly_list.txt contents:
|
||||
assembly1,Version=1.0.0.0,Culture=en,PublicKeyToken=0123456789abcdef
|
||||
assembly2,Version=2.0.0.0,Culture=en,PublicKeyToken=0123456789abcdef
|
||||
.fi
|
||||
.SH FILES
|
||||
On Unix assemblies are loaded from the installation lib directory. If you set
|
||||
`prefix' to /usr, the assemblies will be located in /usr/lib. On
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
|
||||
This list of authors is outdated. For a full list of contributors
|
||||
see:
|
||||
|
||||
http://www.go-mono.com/archive/mono-1.0.html
|
||||
|
||||
C# Compiler:
|
||||
Miguel de Icaza ([email protected])
|
||||
Ravi Pratap ([email protected])
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
2004-06-28 Raja R Harinath <[email protected]>
|
||||
|
||||
* platforms/linux.make (RESGEN): Define using $(INTERNAL_RESGEN).
|
||||
|
||||
2004-06-21 Raja R Harinath <[email protected]>
|
||||
|
||||
* executable.make ($(PROGRAM)): Move depend on the makefrags ...
|
||||
|
||||
@@ -9,7 +9,7 @@ PLATFORM_RUNTIME = $(RUNTIME)
|
||||
PLATFORM_CORLIB = mscorlib.dll
|
||||
|
||||
BOOTSTRAP_MCS = mcs
|
||||
RESGEN = monoresgen
|
||||
RESGEN = MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_RESGEN)
|
||||
|
||||
PLATFORM_PATH_SEPARATOR = :
|
||||
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
2004-06-25 Atsushi Enomoto <[email protected]>
|
||||
|
||||
* RdpContentType.cs, RdpNameClass.cs, RdpObjects.cs, RdpPatterns.cs,
|
||||
Util.cs : added novell license term.
|
||||
|
||||
2004-06-21 Atsushi Enomoto <[email protected]>
|
||||
|
||||
* RdpPatterns.cs : Fixed ExpandRef() that caused incorrect nest error.
|
||||
|
||||
@@ -4,9 +4,10 @@
|
||||
// Author:
|
||||
// Atsushi Enomoto <[email protected]>
|
||||
//
|
||||
// (C)2004 Novell Inc.
|
||||
//
|
||||
// See RELAX NG spec 7.2
|
||||
//
|
||||
// Copyright (c) 2004 Novell Inc.
|
||||
// All rights reserved
|
||||
//
|
||||
|
||||
//
|
||||
|
||||
@@ -6,6 +6,9 @@
|
||||
//
|
||||
// 2003 Atsushi Enomoto "No rights reserved."
|
||||
//
|
||||
// Copyright (c) 2004 Novell Inc.
|
||||
// All rights reserved
|
||||
//
|
||||
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
|
||||
@@ -6,6 +6,9 @@
|
||||
//
|
||||
// 2003 Atsushi Enomoto "No rights reserved."
|
||||
//
|
||||
// Copyright (c) 2004 Novell Inc.
|
||||
// All rights reserved
|
||||
//
|
||||
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
|
||||
@@ -6,6 +6,9 @@
|
||||
//
|
||||
// 2003 Atsushi Enomoto "No rights reserved."
|
||||
//
|
||||
// Copyright (c) 2004 Novell Inc.
|
||||
// All rights reserved
|
||||
//
|
||||
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
|
||||
@@ -6,6 +6,9 @@
|
||||
//
|
||||
// 2003 Atsushi Enomoto "No rights reserved."
|
||||
//
|
||||
// Copyright (c) 2004 Novell Inc.
|
||||
// All rights reserved
|
||||
//
|
||||
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
2004-06-25 Atsushi Enomoto <[email protected]>
|
||||
|
||||
* RncParser.jay : added MIT license.
|
||||
|
||||
2004-06-07 Atsushi Enomoto <[email protected]>
|
||||
|
||||
* RncParser.jay : removed unused code. Fixed LookupNamespace() to
|
||||
|
||||
@@ -6,7 +6,30 @@
|
||||
// Atsushi Enomoto <[email protected]>
|
||||
//
|
||||
// (C)2003 Atsushi Enomoto
|
||||
// (C)2004 Novell Inc.
|
||||
//
|
||||
// Copyright (c) 2004 Novell Inc.
|
||||
// All rights reserved
|
||||
//
|
||||
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
// a copy of this software and associated documentation files (the
|
||||
// "Software"), to deal in the Software without restriction, including
|
||||
// without limitation the rights to use, copy, modify, merge, publish,
|
||||
// distribute, sublicense, and/or sell copies of the Software, and to
|
||||
// permit persons to whom the Software is furnished to do so, subject to
|
||||
// the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be
|
||||
// included in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
using System;
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
2004-06-25 Atsushi Enomoto <[email protected]>
|
||||
|
||||
* Misc.cs, RelaxngDatatype.cs, RelaxngDatatypeProvider.cs,
|
||||
RelaxngDefaultDatatype.cs, RelaxngException.cs, RelaxngGrammar.cs,
|
||||
RelaxngMergedProvider.cs, RelaxngNameClass.cs, RelaxngPattern.cs,
|
||||
RelaxngPatternType.cs, RelaxngReader.cs, RelaxngValidatingReader.cs,
|
||||
XsdDatatypeProvider.cs : Added/replaced novell license term.
|
||||
|
||||
2004-06-21 Atsushi Enomoto <[email protected]>
|
||||
|
||||
* Misc.cs,
|
||||
|
||||
@@ -6,6 +6,9 @@
|
||||
//
|
||||
// 2003 Atsushi Enomoto "No rights reserved."
|
||||
//
|
||||
// Copyright (c) 2004 Novell Inc.
|
||||
// All rights reserved
|
||||
//
|
||||
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
// Author:
|
||||
// Atsushi Enomoto <[email protected]>
|
||||
//
|
||||
// (C)2004 Novell Inc.
|
||||
// Copyright (c) 2004 Novell Inc.
|
||||
// All rights reserved
|
||||
//
|
||||
|
||||
//
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
// Author:
|
||||
// Atsushi Enomoto <[email protected]>
|
||||
//
|
||||
// (C)2004 Novell Inc.
|
||||
// Copyright (c) 2004 Novell Inc.
|
||||
// All rights reserved
|
||||
//
|
||||
|
||||
//
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
// Author:
|
||||
// Atsushi Enomoto <[email protected]>
|
||||
//
|
||||
// (C)2004 Novell Inc.
|
||||
// Copyright (c) 2004 Novell Inc.
|
||||
// All rights reserved
|
||||
//
|
||||
|
||||
//
|
||||
|
||||
@@ -6,6 +6,9 @@
|
||||
//
|
||||
// 2003 Atsushi Enomoto "No rights reserved."
|
||||
//
|
||||
// Copyright (c) 2004 Novell Inc.
|
||||
// All rights reserved
|
||||
//
|
||||
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
|
||||
@@ -6,6 +6,9 @@
|
||||
//
|
||||
// 2003 Atsushi Enomoto "No rights reserved."
|
||||
//
|
||||
// Copyright (c) 2004 Novell Inc.
|
||||
// All rights reserved
|
||||
//
|
||||
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
// Author:
|
||||
// Atsushi Enomoto <[email protected]>
|
||||
//
|
||||
// (C)2004 Novell Inc.
|
||||
// Copyright (c) 2004 Novell Inc.
|
||||
// All rights reserved
|
||||
//
|
||||
|
||||
//
|
||||
|
||||
@@ -6,6 +6,9 @@
|
||||
//
|
||||
// 2003 Atsushi Enomoto "No rights reserved."
|
||||
//
|
||||
// Copyright (c) 2004 Novell Inc.
|
||||
// All rights reserved
|
||||
//
|
||||
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
|
||||
@@ -6,6 +6,9 @@
|
||||
//
|
||||
// 2003 Atsushi Enomoto "No rights reserved."
|
||||
//
|
||||
// Copyright (c) 2004 Novell Inc.
|
||||
// All rights reserved
|
||||
//
|
||||
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
|
||||
@@ -6,6 +6,9 @@
|
||||
//
|
||||
// 2003 Atsushi Enomoto "No rights reserved."
|
||||
//
|
||||
// Copyright (c) 2004 Novell Inc.
|
||||
// All rights reserved
|
||||
//
|
||||
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
|
||||
@@ -6,6 +6,9 @@
|
||||
//
|
||||
// 2003 Atsushi Enomoto "No rights reserved."
|
||||
//
|
||||
// Copyright (c) 2004 Novell Inc.
|
||||
// All rights reserved
|
||||
//
|
||||
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
|
||||
@@ -4,7 +4,10 @@
|
||||
// Author:
|
||||
// Atsushi Enomoto <[email protected]>
|
||||
//
|
||||
// (C)2003 Atsushi Enomoto. "Some rights reserved."
|
||||
// 2003 Atsushi Enomoto. "No rights reserved."
|
||||
//
|
||||
// Copyright (c) 2004 Novell Inc.
|
||||
// All rights reserved
|
||||
//
|
||||
|
||||
//
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
// Author:
|
||||
// Atsushi Enomoto <[email protected]>
|
||||
//
|
||||
// (C)2004 Novell Inc.
|
||||
// Copyright (c) 2004 Novell Inc.
|
||||
// All rights reserved
|
||||
//
|
||||
|
||||
//
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
2004-06-25 Atsushi Enomoto <[email protected]>
|
||||
|
||||
* XmlDefaultReader.cs : Added novell's license (avoid confusion).
|
||||
|
||||
2004-06-17 Atsushi Enomoto <[email protected]>
|
||||
|
||||
* XmlDefaultReader.cs : don't catch the exception.
|
||||
|
||||
@@ -6,7 +6,8 @@
|
||||
//
|
||||
// 2003 Atsushi Enomoto "No rights reserved."
|
||||
//
|
||||
|
||||
// Copyright (c) 2004 Novell Inc.
|
||||
// All rights reserved
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
// a copy of this software and associated documentation files (the
|
||||
|
||||
@@ -33,7 +33,7 @@ using System.Collections;
|
||||
using System.Text;
|
||||
using System;
|
||||
|
||||
namespace Microsoft.JScript.Tmp {
|
||||
namespace Microsoft.JScript {
|
||||
|
||||
public class ASTList : AST {
|
||||
|
||||
@@ -50,6 +50,10 @@ namespace Microsoft.JScript.Tmp {
|
||||
return this;
|
||||
}
|
||||
|
||||
internal int Size {
|
||||
get { return elems.Count; }
|
||||
}
|
||||
|
||||
public override string ToString ()
|
||||
{
|
||||
StringBuilder sb = new StringBuilder ();
|
||||
|
||||
@@ -29,26 +29,50 @@
|
||||
//
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Reflection.Emit;
|
||||
|
||||
namespace Microsoft.JScript.Tmp {
|
||||
namespace Microsoft.JScript {
|
||||
|
||||
public class ArrayLiteral : AST {
|
||||
|
||||
ASTList elems;
|
||||
internal ASTList elems;
|
||||
internal int size;
|
||||
|
||||
public ArrayLiteral (Context context, ASTList elems)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
internal ArrayLiteral (AST parent)
|
||||
{
|
||||
this.parent = parent;
|
||||
elems = new ASTList ();
|
||||
}
|
||||
|
||||
internal override bool Resolve (IdentificationTable context)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
bool r = true;
|
||||
foreach (AST ast in elems.elems)
|
||||
r &= ast.Resolve (context);
|
||||
return r;
|
||||
}
|
||||
|
||||
internal override void Emit (EmitContext ec)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
int i = 0;
|
||||
ILGenerator ig = ec.ig;
|
||||
ArrayList exps = elems.elems;
|
||||
ig.Emit (OpCodes.Ldc_I4, size);
|
||||
ig.Emit (OpCodes.Newarr, typeof (object));
|
||||
foreach (AST ast in exps) {
|
||||
ig.Emit (OpCodes.Dup);
|
||||
ig.Emit (OpCodes.Ldc_I4, i);
|
||||
ast.Emit (ec);
|
||||
ig.Emit (OpCodes.Stelem_Ref);
|
||||
i++;
|
||||
}
|
||||
ig.Emit (OpCodes.Call, typeof (Globals).GetMethod ("ConstructArrayLiteral"));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,18 @@
|
||||
2004-06-24 Cesar Lopez Nataren <[email protected]>
|
||||
|
||||
* jscript-lexer-parser.g: added ast building for object_literal,
|
||||
it's disabled for now while I fix the "block Vs object_literal"
|
||||
non-determinism problem on the parser. Added rule for
|
||||
array_literal. Build PropertyName ast build.
|
||||
* Literal.cs: fixed the negative numbers code generation (we must
|
||||
optimize this). Added initial ObjectLiteral's class, code generation and
|
||||
Resolve process. Added class ObjectLiteralItem and PropertyName.
|
||||
* ArrayLiteral.cs: added internal size field as an ArrayLiteral can have
|
||||
elisions we keep track of the "real" size here. Added constructor. Added initial
|
||||
Resolve and Emit code.
|
||||
* ASTList.cs: added Size property.
|
||||
* Globals.cs, ASTList.cs: Back to the useful namespace (M.J).
|
||||
|
||||
2004-06-20 Cesar Lopez Nataren <[email protected]>
|
||||
|
||||
* CodeGenerator.cs: Added LoopBegin and LoopEnd to EmitContext, they are used by
|
||||
|
||||
@@ -28,10 +28,11 @@
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
namespace Microsoft.JScript.Tmp
|
||||
{
|
||||
using System;
|
||||
using Microsoft.JScript.Vsa;
|
||||
using System;
|
||||
using Microsoft.JScript.Vsa;
|
||||
|
||||
namespace Microsoft.JScript {
|
||||
|
||||
|
||||
public sealed class Globals
|
||||
{
|
||||
@@ -49,4 +50,4 @@ namespace Microsoft.JScript.Tmp
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -30,13 +30,28 @@
|
||||
|
||||
using System;
|
||||
|
||||
namespace Microsoft.JScript.Tmp {
|
||||
namespace Microsoft.JScript {
|
||||
|
||||
public sealed class In : BinaryOp {
|
||||
|
||||
public static bool JScriptIn (object v1, object v2)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
internal override bool Resolve (IdentificationTable context)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
internal override bool Resolve (IdentificationTable context, bool no_effect)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
internal override void Emit (EmitContext ec)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -30,13 +30,13 @@
|
||||
|
||||
using System;
|
||||
|
||||
namespace Microsoft.JScript.Tmp {
|
||||
namespace Microsoft.JScript {
|
||||
|
||||
public sealed class InstanceOf : BinaryOp {
|
||||
|
||||
public static bool JScriptInstanceOf (object v1, object v2)
|
||||
public static bool JScriptInstanceof (object v1, object v2)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
return false;
|
||||
}
|
||||
|
||||
internal override bool Resolve (IdentificationTable context)
|
||||
|
||||
@@ -1,26 +1,5 @@
|
||||
// $ANTLR 2.7.3: "jscript-lexer-parser.g" -> "JScriptLexer.cs"$
|
||||
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
// a copy of this software and associated documentation files (the
|
||||
// "Software"), to deal in the Software without restriction, including
|
||||
// without limitation the rights to use, copy, modify, merge, publish,
|
||||
// distribute, sublicense, and/or sell copies of the Software, and to
|
||||
// permit persons to whom the Software is furnished to do so, subject to
|
||||
// the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be
|
||||
// included in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
using System.Collections;
|
||||
|
||||
namespace Microsoft.JScript
|
||||
@@ -198,7 +177,7 @@ namespace Microsoft.JScript
|
||||
literals.Add("with", 20);
|
||||
}
|
||||
|
||||
public Token nextToken() //throws TokenStreamException
|
||||
public Token nextToken() //throws TokenStreamException
|
||||
{
|
||||
Token theRetToken = null;
|
||||
tryAgain:
|
||||
|
||||
@@ -1,26 +1,5 @@
|
||||
// $ANTLR 2.7.3: "jscript-lexer-parser.g" -> "JScriptParser.cs"$
|
||||
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
// a copy of this software and associated documentation files (the
|
||||
// "Software"), to deal in the Software without restriction, including
|
||||
// without limitation the rights to use, copy, modify, merge, publish,
|
||||
// distribute, sublicense, and/or sell copies of the Software, and to
|
||||
// permit persons to whom the Software is furnished to do so, subject to
|
||||
// the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be
|
||||
// included in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
using System.Collections;
|
||||
|
||||
namespace Microsoft.JScript
|
||||
@@ -2213,7 +2192,11 @@ _loop58_breakloop: ;
|
||||
}
|
||||
case OPEN_BRACKET:
|
||||
{
|
||||
array_literal();
|
||||
l=array_literal(parent);
|
||||
if (0==inputState.guessing)
|
||||
{
|
||||
prim_exp = l;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case OPEN_PARENS:
|
||||
@@ -3931,8 +3914,17 @@ _loop86_breakloop: ;
|
||||
return l;
|
||||
}
|
||||
|
||||
public void array_literal() //throws RecognitionException, TokenStreamException
|
||||
public ArrayLiteral array_literal(
|
||||
AST parent
|
||||
) //throws RecognitionException, TokenStreamException
|
||||
{
|
||||
ArrayLiteral array_lit;
|
||||
|
||||
|
||||
array_lit = new ArrayLiteral (parent);
|
||||
AST e = null;
|
||||
ASTList elems = ((ArrayLiteral) array_lit).elems;
|
||||
int i = 0;
|
||||
|
||||
|
||||
match(OPEN_BRACKET);
|
||||
@@ -3950,14 +3942,31 @@ _loop86_breakloop: ;
|
||||
case DECIMAL_LITERAL:
|
||||
case HEX_INTEGER_LITERAL:
|
||||
{
|
||||
primary_expr(null);
|
||||
e=primary_expr(array_lit);
|
||||
if (0==inputState.guessing)
|
||||
{
|
||||
if (e != null) {
|
||||
elems.Add (e);
|
||||
array_lit.size++;
|
||||
}
|
||||
|
||||
}
|
||||
{ // ( ... )*
|
||||
for (;;)
|
||||
{
|
||||
if ((LA(1)==COMMA))
|
||||
{
|
||||
match(COMMA);
|
||||
primary_expr(null);
|
||||
e=primary_expr(array_lit);
|
||||
if (0==inputState.guessing)
|
||||
{
|
||||
|
||||
if (e != null) {
|
||||
elems.Add (e);
|
||||
array_lit.size++;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -3980,6 +3989,7 @@ _loop142_breakloop: ;
|
||||
}
|
||||
}
|
||||
match(CLOSE_BRACKET);
|
||||
return array_lit;
|
||||
}
|
||||
|
||||
public NumericLiteral numeric_literal(
|
||||
@@ -4043,27 +4053,45 @@ _loop136_breakloop: ;
|
||||
} // ( ... )+
|
||||
}
|
||||
|
||||
public void property_name() //throws RecognitionException, TokenStreamException
|
||||
public PropertyName property_name() //throws RecognitionException, TokenStreamException
|
||||
{
|
||||
PropertyName pn;
|
||||
|
||||
Token id = null;
|
||||
Token st = null;
|
||||
pn = new PropertyName ();
|
||||
|
||||
{
|
||||
switch ( LA(1) )
|
||||
{
|
||||
case IDENTIFIER:
|
||||
{
|
||||
id = LT(1);
|
||||
match(IDENTIFIER);
|
||||
if (0==inputState.guessing)
|
||||
{
|
||||
pn.Name = id.getText ();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case STRING_LITERAL:
|
||||
{
|
||||
st = LT(1);
|
||||
match(STRING_LITERAL);
|
||||
if (0==inputState.guessing)
|
||||
{
|
||||
pn.Name = st.getText ();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case DECIMAL_LITERAL:
|
||||
case HEX_INTEGER_LITERAL:
|
||||
{
|
||||
numeric_literal(null);
|
||||
if (0==inputState.guessing)
|
||||
{
|
||||
pn.Name = string.Empty;
|
||||
}
|
||||
break;
|
||||
}
|
||||
default:
|
||||
@@ -4072,6 +4100,7 @@ _loop136_breakloop: ;
|
||||
}
|
||||
}
|
||||
}
|
||||
return pn;
|
||||
}
|
||||
|
||||
public void line_terminator() //throws RecognitionException, TokenStreamException
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
//
|
||||
// Literal.cs: This class groups the differents types of Literals.
|
||||
// Literal.cs
|
||||
//
|
||||
// Author:
|
||||
// Cesar Lopez Nataren ([email protected])
|
||||
//
|
||||
// (C) Cesar Lopez Nataren
|
||||
// (C) 2003, 2004 Cesar Lopez Nataren
|
||||
//
|
||||
|
||||
//
|
||||
@@ -30,6 +30,7 @@
|
||||
|
||||
using System;
|
||||
using System.Reflection.Emit;
|
||||
using System.Collections;
|
||||
|
||||
namespace Microsoft.JScript {
|
||||
|
||||
@@ -120,12 +121,89 @@ namespace Microsoft.JScript {
|
||||
if (parent is Unary) {
|
||||
Unary tmp = parent as Unary;
|
||||
if (tmp.oper == JSToken.Minus)
|
||||
ig.Emit (OpCodes.Ldc_I4, (int) (val * -1));
|
||||
ig.Emit (OpCodes.Ldc_R8, (double) (val * -1));
|
||||
} else
|
||||
ig.Emit (OpCodes.Ldc_I4, (int) val);
|
||||
ig.Emit (OpCodes.Box, typeof (System.Int32));
|
||||
ig.Emit (OpCodes.Ldc_R8, (double) val);
|
||||
ig.Emit (OpCodes.Box, typeof (System.Double));
|
||||
if (no_effect)
|
||||
ig.Emit (OpCodes.Pop);
|
||||
}
|
||||
}
|
||||
|
||||
public class ObjectLiteral : Exp {
|
||||
|
||||
internal ArrayList elems;
|
||||
|
||||
internal ObjectLiteral (AST parent)
|
||||
{
|
||||
this.parent = parent;
|
||||
elems = new ArrayList ();
|
||||
}
|
||||
|
||||
internal override bool Resolve (IdentificationTable context, bool no_effect)
|
||||
{
|
||||
this.no_effect = no_effect;
|
||||
return Resolve (context);
|
||||
}
|
||||
|
||||
internal override bool Resolve (IdentificationTable context)
|
||||
{
|
||||
bool r = true;
|
||||
foreach (AST ast in elems)
|
||||
r &= ast.Resolve (context);
|
||||
return r;
|
||||
}
|
||||
|
||||
internal override void Emit (EmitContext ec)
|
||||
{
|
||||
ILGenerator ig = ec.ig;
|
||||
|
||||
ig.Emit (OpCodes.Ldarg_0);
|
||||
ig.Emit (OpCodes.Ldfld, typeof (ScriptObject).GetField ("engine"));
|
||||
ig.Emit (OpCodes.Call, typeof (Microsoft.JScript.Vsa.VsaEngine).GetMethod ("GetOriginalObjectConstructor"));
|
||||
ig.Emit (OpCodes.Call, typeof (ObjectConstructor).GetMethod ("ConstructObject"));
|
||||
|
||||
foreach (ObjectLiteralItem item in elems) {
|
||||
ig.Emit (OpCodes.Dup);
|
||||
item.Emit (ec);
|
||||
ig.Emit (OpCodes.Call, typeof (JSObject).GetMethod ("SetMemberValue2"));
|
||||
}
|
||||
if (no_effect)
|
||||
ig.Emit (OpCodes.Pop);
|
||||
}
|
||||
|
||||
internal void Add (ObjectLiteralItem item)
|
||||
{
|
||||
elems.Add (item);
|
||||
}
|
||||
}
|
||||
|
||||
internal class ObjectLiteralItem : AST {
|
||||
internal string property_name;
|
||||
internal AST exp;
|
||||
|
||||
internal ObjectLiteralItem ()
|
||||
{
|
||||
}
|
||||
|
||||
internal override bool Resolve (IdentificationTable context)
|
||||
{
|
||||
return exp.Resolve (context);
|
||||
}
|
||||
|
||||
internal override void Emit (EmitContext ec)
|
||||
{
|
||||
ILGenerator ig = ec.ig;
|
||||
ec.ig.Emit (OpCodes.Ldstr, property_name);
|
||||
exp.Emit (ec);
|
||||
}
|
||||
}
|
||||
|
||||
public class PropertyName {
|
||||
string name;
|
||||
internal string Name {
|
||||
get { return name; }
|
||||
set { name = value; }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -7,6 +7,27 @@
|
||||
// (C) 2003, 2004, Cesar Lopez Nataren
|
||||
//
|
||||
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
// a copy of this software and associated documentation files (the
|
||||
// "Software"), to deal in the Software without restriction, including
|
||||
// without limitation the rights to use, copy, modify, merge, publish,
|
||||
// distribute, sublicense, and/or sell copies of the Software, and to
|
||||
// permit persons to whom the Software is furnished to do so, subject to
|
||||
// the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be
|
||||
// included in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
header {
|
||||
using System.Collections;
|
||||
}
|
||||
@@ -246,6 +267,7 @@ return_stm [AST parent] returns [AST r]
|
||||
: "return" (e = expr [parent] { r = new Return (parent, e); } | ) SEMI_COLON
|
||||
;
|
||||
|
||||
|
||||
break_stm [AST parent] returns [AST b]
|
||||
{
|
||||
b = new Break ();
|
||||
@@ -943,22 +965,39 @@ primary_expr [AST parent] returns [AST prim_exp]
|
||||
Expression e = null;
|
||||
}
|
||||
: p:"this" { prim_exp = new This (); }
|
||||
// | object_literal
|
||||
// | l = object_literal [parent] { prim_exp = l; }
|
||||
| id:IDENTIFIER
|
||||
{
|
||||
Identifier ident = new Identifier (parent, id.getText ());
|
||||
prim_exp = (AST) ident;
|
||||
}
|
||||
| l = literal [parent] { prim_exp = l; }
|
||||
| array_literal
|
||||
| l = array_literal [parent] { prim_exp = l; }
|
||||
| OPEN_PARENS e = expr [parent] { prim_exp = e; } CLOSE_PARENS
|
||||
;
|
||||
|
||||
// object_literal
|
||||
// object_literal [AST parent] returns [ObjectLiteral obj_lit]
|
||||
// {
|
||||
// obj_lit = new ObjectLiteral (parent);
|
||||
// AST e = null;
|
||||
// ObjectLiteralItem item = null;
|
||||
// PropertyName pn = null;
|
||||
// }
|
||||
// : OPEN_BRACE
|
||||
// ((property_name COLON)=> property_name COLON assignment_expr [null]
|
||||
// (COMMA property_name COLON assignment_expr [null])*
|
||||
// | (statement [null])*
|
||||
// ((property_name COLON)=> pn = property_name COLON e = assignment_expr [obj_lit]
|
||||
// {
|
||||
// item = new ObjectLiteralItem ();
|
||||
// item.property_name = pn.Name;
|
||||
// item.exp = e;
|
||||
// obj_lit.Add (item);
|
||||
// }
|
||||
// (COMMA pn = property_name COLON e = assignment_expr [obj_lit]
|
||||
// {
|
||||
// item = new ObjectLiteralItem ();
|
||||
// item.property_name = pn.Name;
|
||||
// item.exp = e;
|
||||
// obj_lit.Add (item);
|
||||
// })*
|
||||
// )
|
||||
// CLOSE_BRACE
|
||||
// ;
|
||||
@@ -990,12 +1029,36 @@ property_name_and_value_list
|
||||
: (property_name COLON primary_expr [null])+
|
||||
;
|
||||
|
||||
property_name
|
||||
: (IDENTIFIER | STRING_LITERAL | numeric_literal [null])
|
||||
property_name returns [PropertyName pn]
|
||||
{ pn = new PropertyName (); }
|
||||
: (id:IDENTIFIER { pn.Name = id.getText (); }
|
||||
|st:STRING_LITERAL { pn.Name = st.getText (); }
|
||||
|numeric_literal [null] { pn.Name = string.Empty; }
|
||||
)
|
||||
;
|
||||
|
||||
array_literal
|
||||
: OPEN_BRACKET (primary_expr [null] (COMMA primary_expr [null])* | ) CLOSE_BRACKET
|
||||
array_literal [AST parent] returns [ArrayLiteral array_lit]
|
||||
{
|
||||
array_lit = new ArrayLiteral (parent);
|
||||
AST e = null;
|
||||
ASTList elems = ((ArrayLiteral) array_lit).elems;
|
||||
int i = 0;
|
||||
}
|
||||
: OPEN_BRACKET
|
||||
(e = primary_expr [array_lit]
|
||||
{ if (e != null) {
|
||||
elems.Add (e);
|
||||
array_lit.size++;
|
||||
}
|
||||
} (COMMA e = primary_expr [array_lit]
|
||||
{
|
||||
if (e != null) {
|
||||
elems.Add (e);
|
||||
array_lit.size++;
|
||||
}
|
||||
}
|
||||
)* | )
|
||||
CLOSE_BRACKET
|
||||
;
|
||||
|
||||
numeric_literal [AST parent] returns [NumericLiteral num_lit]
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
2004-06-28 Raja R Harinath <[email protected]>
|
||||
|
||||
* Makefile ($(TXT_RESOURCES) $(RESX_RESOURCES)): Use $(RESGEN).
|
||||
|
||||
2004-06-23 Jambunathan K <[email protected]>
|
||||
* Microsoft.VisualBasic.dll.sources: Added RandomVBFile.cs and BinaryVBFile.cs
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ include ../../build/library.make
|
||||
$(the_lib): $(TXT_RESOURCES) $(RESX_RESOURCES)
|
||||
|
||||
$(TXT_RESOURCES): %.resources: %.txt
|
||||
MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_RESGEN) $<
|
||||
$(RESGEN) $<
|
||||
|
||||
$(RESX_RESOURCES): %.resources: %.resx
|
||||
MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_RESGEN) $<
|
||||
$(RESGEN) $<
|
||||
@@ -1,3 +1,7 @@
|
||||
2004-06-28 Raja R Harinath <[email protected]>
|
||||
|
||||
* Makefile (%.resources): Use $(RESGEN).
|
||||
|
||||
2004-06-22 Raja R Harinath <[email protected]>
|
||||
|
||||
* Makefile: Use $(PLATFORM_PATH_SEPARATOR) in MONO_PATH.
|
||||
|
||||
@@ -39,7 +39,7 @@ RESX_RES = Npgsql/NpgsqlState.resources Npgsql/NpgsqlClosedState.resources Npgsq
|
||||
all: $(RESX_RES) $(the_lib)
|
||||
|
||||
%.resources: %.resx
|
||||
MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_RESGEN) $<
|
||||
$(RESGEN) $<
|
||||
|
||||
clean: clean-recursive clean-local
|
||||
|
||||
|
||||
@@ -1,3 +1,12 @@
|
||||
2004-06-26 Jackson Harper <[email protected]>
|
||||
|
||||
* PEAPI.cs: Add a method to set the fields list. This is needed so
|
||||
that sequentially laid out fields are laid out in the right
|
||||
order. When building custom attribute tables actually emit the
|
||||
custom attribute data. When writing the .sdata section make sure
|
||||
to pad to its size. The constants itself will not make up the
|
||||
entire section because it is aligned on 512 byte blocks.
|
||||
|
||||
2004-06-19 Jackson Harper <[email protected]>
|
||||
|
||||
* PEAPI.cs: Make sure the sentinel is placed properly for vararg
|
||||
|
||||
@@ -1821,7 +1821,12 @@ namespace PEAPI
|
||||
fields.Add(field);
|
||||
return field;
|
||||
}
|
||||
|
||||
|
||||
public void SetFieldOrder (ArrayList fields)
|
||||
{
|
||||
this.fields = fields;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Add a method to this class
|
||||
/// </summary>
|
||||
@@ -2646,7 +2651,7 @@ namespace PEAPI
|
||||
|
||||
internal sealed override void BuildTables(MetaData md) {
|
||||
BinaryWriter bw = new BinaryWriter(new MemoryStream());
|
||||
bw.Write((ushort)1);
|
||||
bw.Write(byteVal);
|
||||
md.AddToTable(MDTable.CustomAttribute, this);
|
||||
MemoryStream str = (MemoryStream)bw.BaseStream;
|
||||
valIx = md.AddToBlobHeap(str.ToArray());
|
||||
@@ -3482,9 +3487,13 @@ if (rsrc != null)
|
||||
}
|
||||
|
||||
private void WriteSDataSection() {
|
||||
long size = sdata.Size ();
|
||||
long start = BaseStream.Position;
|
||||
for (int i=0; i < data.Count; i++) {
|
||||
((DataConstant)data[i]).Write(this);
|
||||
}
|
||||
}
|
||||
while (BaseStream.Position < (start + size))
|
||||
Write ((byte) 0);
|
||||
}
|
||||
|
||||
private void WriteRsrcSection() {
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
2004-06-27 Atsushi Enomoto <[email protected]>
|
||||
|
||||
* XmlDataInferenceLoader.cs : It was not always filling relation
|
||||
child table information correctly. This fixes bug #60742.
|
||||
|
||||
2004-06-23 Umadevi S <[email protected]>
|
||||
* UniqueConstraint.cs :changed a ifdef true to ifdef NET_1_1
|
||||
|
||||
|
||||
@@ -410,7 +410,16 @@ namespace System.Data
|
||||
map = new TableMapping (tableName, ns);
|
||||
map.ParentTable = parent;
|
||||
tables.Add (map);
|
||||
if (parent != null)
|
||||
}
|
||||
if (parent != null) {
|
||||
bool shouldAdd = true;
|
||||
foreach (TableMapping child in parent.ChildTables) {
|
||||
if (child.Table.TableName == tableName) {
|
||||
shouldAdd = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (shouldAdd)
|
||||
parent.ChildTables.Add (map);
|
||||
}
|
||||
return map;
|
||||
|
||||
@@ -1,3 +1,13 @@
|
||||
2004-06-29 Gonzalo Paniagua Javier <[email protected]>
|
||||
|
||||
* ControlCollection.cs: when clearing the control collection, tell the
|
||||
owners about the removal. Fixes bug #60800.
|
||||
|
||||
2004-06-29 Gonzalo Paniagua Javier <[email protected]>
|
||||
|
||||
* Page.cs: don't nullify _context after processing the request as there
|
||||
are events not triggered yet. Fixes bug #60726.
|
||||
|
||||
2004-06-24 Gonzalo Paniagua Javier <[email protected]>
|
||||
|
||||
* HtmlTextWriter.cs: only create a closing tag for unknown tags. Fixes
|
||||
|
||||
@@ -111,6 +111,9 @@ namespace System.Web.UI {
|
||||
|
||||
public virtual void Clear ()
|
||||
{
|
||||
foreach (Control ctrl in list)
|
||||
owner.RemovedControl (ctrl);
|
||||
|
||||
list.Clear ();
|
||||
if (owner != null)
|
||||
owner.ResetChildNames ();
|
||||
|
||||
@@ -765,7 +765,6 @@ public class Page : TemplateControl, IHttpHandler
|
||||
Trace.Write ("aspx.page", "End Render");
|
||||
|
||||
RenderTrace (output);
|
||||
_context = null;
|
||||
}
|
||||
|
||||
private void RenderTrace (HtmlTextWriter output)
|
||||
|
||||
@@ -597,7 +597,8 @@ namespace System.Xml
|
||||
xr.XmlResolver = resolver;
|
||||
Load (xr);
|
||||
} finally {
|
||||
xr.Close ();
|
||||
if (xr != null)
|
||||
xr.Close ();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -59,7 +59,12 @@ namespace Mono.CSharp
|
||||
windowsMonoPath = Path.Combine (
|
||||
Path.GetDirectoryName (
|
||||
Path.GetDirectoryName (p)),
|
||||
"bin\\mono.exe");
|
||||
"bin\\mono.bat");
|
||||
if (!File.Exists (windowsMonoPath))
|
||||
windowsMonoPath = Path.Combine (
|
||||
Path.GetDirectoryName (
|
||||
Path.GetDirectoryName (p)),
|
||||
"bin\\mono.exe");
|
||||
windowsMcsPath =
|
||||
Path.Combine (p, "1.0\\mcs.exe");
|
||||
}
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
2004-06-28 Atsushi Enomoto <[email protected]>
|
||||
|
||||
* CSharpCodeCompiler.cs : (only for windows) First check mcs.bat, then
|
||||
check mcs.exe. It enables xsp working with mono windows installer.
|
||||
|
||||
2004-06-24 Atsushi Enomoto <[email protected]>
|
||||
|
||||
* CSharpCodeCompiler.cs : On windows we use fixed mono.exe and mcs.exe
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
2004-06-28 Atsushi Enomoto <[email protected]>
|
||||
|
||||
* VBCodeCompiler.cs : (only for windows) First check mono.bat, then
|
||||
check mono.exe. It enables xsp working with mono windows installer.
|
||||
|
||||
2004-06-24 Atsushi Enomoto <[email protected]>
|
||||
|
||||
* VBCodeCompiler.cs : On windows we use fixed mono.exe and mbas.exe
|
||||
|
||||
@@ -61,7 +61,12 @@ namespace Microsoft.VisualBasic
|
||||
windowsMonoPath = Path.Combine (
|
||||
Path.GetDirectoryName (
|
||||
Path.GetDirectoryName (p)),
|
||||
"bin\\mono.exe");
|
||||
"bin\\mono.bat");
|
||||
if (!File.Exists (windowsMonoPath))
|
||||
windowsMonoPath = Path.Combine (
|
||||
Path.GetDirectoryName (
|
||||
Path.GetDirectoryName (p)),
|
||||
"bin\\mono.exe");
|
||||
windowsMbasPath =
|
||||
Path.Combine (p, "1.0\\mbas.exe");
|
||||
}
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
2004-06-28 Gonzalo Paniagua Javier <[email protected]>
|
||||
|
||||
* Socket.cs: connect on non-blocking sockets returns EINPROGRESS. Fixes
|
||||
bug #60811.
|
||||
|
||||
2004-06-23 Gonzalo Paniagua Javier <[email protected]>
|
||||
|
||||
* Socket.cs: wrong error code in connect and accept. EWOULDBLOCK is
|
||||
|
||||
@@ -212,7 +212,7 @@ namespace System.Net.Sockets
|
||||
try {
|
||||
result.Sock.Connect (result.EndPoint);
|
||||
} catch (SocketException se) {
|
||||
if (result.Sock.blocking || se.ErrorCode != 10035) {
|
||||
if (result.Sock.blocking || se.ErrorCode != 10036) {
|
||||
result.Complete (se);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
AssemblyBuilder.cs
|
||||
AssemblyBuilderAccess.cs
|
||||
ConstructorBuilder.cs
|
||||
EventToken.cs
|
||||
FieldToken.cs
|
||||
FlowControl.cs
|
||||
ILGenerator.cs
|
||||
Label.cs
|
||||
MethodToken.cs
|
||||
ModuleBuilder.cs
|
||||
OpCode.cs
|
||||
OpCodes.cs
|
||||
OpCodeType.cs
|
||||
OperandType.cs
|
||||
PackingSize.cs
|
||||
ParameterToken.cs
|
||||
PEFileKinds.cs
|
||||
PropertyToken.cs
|
||||
SignatureToken.cs
|
||||
StackBehaviour.cs
|
||||
StringToken.cs
|
||||
TypeBuilder.cs
|
||||
TypeToken.cs
|
||||
@@ -1,25 +0,0 @@
|
||||
Assembly.cs
|
||||
AssemblyNameFlags.cs
|
||||
BindingFlags.cs
|
||||
CallingConventions.cs
|
||||
ConstructorInfo.cs
|
||||
DefaultMemberAttribute.cs
|
||||
EventAttributes.cs
|
||||
EventInfo.cs
|
||||
FieldAttributes.cs
|
||||
FieldInfo.cs
|
||||
ICustomAttributeProvider.cs
|
||||
MemberFilter.cs
|
||||
MemberInfo.cs
|
||||
MemberTypes.cs
|
||||
MethodAttributes.cs
|
||||
MethodBase.cs
|
||||
MethodImplAttributes.cs
|
||||
MethodInfo.cs
|
||||
Module.cs
|
||||
ParameterAttributes.cs
|
||||
PropertyAttributes.cs
|
||||
PropertyInfo.cs
|
||||
ResourceAttributes.cs
|
||||
ResourceLocation.cs
|
||||
TypeAttributes.cs
|
||||
@@ -1,3 +1,7 @@
|
||||
2004-06-26 Jackson Harper <[email protected]>
|
||||
|
||||
* Report.cs: Fix quiet.
|
||||
|
||||
2004-06-24 Jackson Harper <[email protected]>
|
||||
|
||||
* Report.cs: Add new mehtod for displaying messages.
|
||||
|
||||
+2
-3
@@ -37,9 +37,6 @@ namespace Mono.ILASM {
|
||||
public void AssembleFile (string file, string listing,
|
||||
string target, string output)
|
||||
{
|
||||
if (quiet)
|
||||
return;
|
||||
|
||||
Console.WriteLine ("Assembling '{0}' , {1}, to {2} --> '{3}'", file,
|
||||
GetListing (listing), target, output);
|
||||
Console.WriteLine ();
|
||||
@@ -53,6 +50,8 @@ namespace Mono.ILASM {
|
||||
|
||||
public void Message (string message)
|
||||
{
|
||||
if (quiet)
|
||||
return;
|
||||
Console.WriteLine (message);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,3 +1,13 @@
|
||||
2004-06-26 Jackson Harper <[email protected]>
|
||||
|
||||
* TypeDef.cs: Preserve the order of fields in a class. Then after
|
||||
all the fields have been defined reset the order in PEAPI to the
|
||||
correct order. This is done so sequential layouts actually
|
||||
work. The order needs to be reset because it can be lost during
|
||||
the recursive definition phase.
|
||||
* MethodDef.cs: Use and ExternModule for pinvoke data's module
|
||||
refs. This way we don't get duplicate module refs.
|
||||
|
||||
2004-06-24 Jackson Harper <[email protected]>
|
||||
|
||||
* MethodDef.cs: Report when defining methods just like MS.
|
||||
|
||||
@@ -47,7 +47,7 @@ namespace Mono.ILASM {
|
||||
private bool init_locals;
|
||||
private int max_stack;
|
||||
private bool pinvoke_info;
|
||||
private string pinvoke_mod;
|
||||
private ExternModule pinvoke_mod;
|
||||
private string pinvoke_name;
|
||||
private PEAPI.PInvokeAttr pinvoke_attr;
|
||||
|
||||
@@ -119,7 +119,7 @@ namespace Mono.ILASM {
|
||||
return type_list;
|
||||
}
|
||||
|
||||
public void AddPInvokeInfo (PEAPI.PInvokeAttr pinvoke_attr, string pinvoke_mod,
|
||||
public void AddPInvokeInfo (PEAPI.PInvokeAttr pinvoke_attr, ExternModule pinvoke_mod,
|
||||
string pinvoke_name)
|
||||
{
|
||||
this.pinvoke_attr = pinvoke_attr;
|
||||
@@ -367,7 +367,7 @@ namespace Mono.ILASM {
|
||||
customattr.AddTo (code_gen, methoddef);
|
||||
|
||||
if (pinvoke_info) {
|
||||
methoddef.AddPInvokeInfo (code_gen.PEFile.AddExternModule (pinvoke_mod),
|
||||
methoddef.AddPInvokeInfo (pinvoke_mod.ModuleRef,
|
||||
(pinvoke_name != null ? pinvoke_name : name), pinvoke_attr);
|
||||
|
||||
}
|
||||
|
||||
@@ -29,6 +29,7 @@ namespace Mono.ILASM {
|
||||
private ArrayList impl_list;
|
||||
private PEAPI.ClassDef classdef;
|
||||
private Hashtable field_table;
|
||||
private ArrayList field_list;
|
||||
private Hashtable method_table;
|
||||
private ArrayList customattr_list;
|
||||
private ArrayList event_list;
|
||||
@@ -55,7 +56,10 @@ namespace Mono.ILASM {
|
||||
this.name = name;
|
||||
this.parent = parent;
|
||||
this.impl_list = impl_list;
|
||||
|
||||
field_table = new Hashtable ();
|
||||
field_list = new ArrayList ();
|
||||
|
||||
method_table = new Hashtable ();
|
||||
|
||||
size = -1;
|
||||
@@ -145,6 +149,7 @@ namespace Mono.ILASM {
|
||||
public void AddFieldDef (FieldDef fielddef)
|
||||
{
|
||||
field_table.Add (fielddef.Name, fielddef);
|
||||
field_list.Add (fielddef);
|
||||
}
|
||||
|
||||
public void AddMethodDef (MethodDef methoddef)
|
||||
@@ -297,10 +302,14 @@ namespace Mono.ILASM {
|
||||
|
||||
public void DefineContents (CodeGen code_gen)
|
||||
{
|
||||
foreach (FieldDef fielddef in field_table.Values) {
|
||||
ArrayList fielddef_list = new ArrayList ();
|
||||
foreach (FieldDef fielddef in field_list) {
|
||||
fielddef.Define (code_gen, classdef);
|
||||
fielddef_list.Add (fielddef.PeapiFieldDef);
|
||||
}
|
||||
|
||||
classdef.SetFieldOrder (fielddef_list);
|
||||
|
||||
foreach (MethodDef methoddef in method_table.Values) {
|
||||
methoddef.Define (code_gen, this);
|
||||
}
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
2004-06-26 Jackson Harper <[email protected]>
|
||||
|
||||
* ILParser.jay: vtable fixups use the int32 or int64 keyword, not
|
||||
actual int values. When adding modules for pinvoke info use the
|
||||
ExternTable so we dont get duplicate modules.
|
||||
|
||||
2004-06-19 Jackson Harper <[email protected]>
|
||||
|
||||
* ILParser.jay: Resolve method pointers that are being treated as
|
||||
|
||||
@@ -438,8 +438,8 @@ vtfixup_decl : D_VTFIXUP OPEN_BRACKET int32 CLOSE_BRACKET
|
||||
;
|
||||
|
||||
vtfixup_attr : /* EMPTY */
|
||||
| vtfixup_attr int32
|
||||
| vtfixup_attr int64
|
||||
| vtfixup_attr K_INT32
|
||||
| vtfixup_attr K_INT64
|
||||
| vtfixup_attr K_FROMUNMANAGED
|
||||
| vtfixup_attr K_CALLMOSTDERIVED
|
||||
;
|
||||
@@ -1499,7 +1499,8 @@ method_head : D_METHOD meth_attr call_conv param_attr type method_name
|
||||
codegen.BeginMethodDef (methdef);
|
||||
|
||||
if (pinvoke_info) {
|
||||
methdef.AddPInvokeInfo (pinvoke_attr, pinvoke_mod, pinvoke_meth);
|
||||
ExternModule mod = codegen.ExternTable.AddModule (pinvoke_mod);
|
||||
methdef.AddPInvokeInfo (pinvoke_attr, mod, pinvoke_meth);
|
||||
pinvoke_info = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
[assembly: AssemblyVersion("0.96")]
|
||||
[assembly: AssemblyVersion("1.0")]
|
||||
[assembly: AssemblyTitle ("Mono C# Compiler")]
|
||||
[assembly: AssemblyDescription ("Mono C# Compiler")]
|
||||
[assembly: AssemblyCopyright ("2001, 2002, 2003 Ximian, Inc.")]
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
2004-06-28 Raja R Harinath <[email protected]>
|
||||
|
||||
* Makefile (%.resources): Use $(RESGEN).
|
||||
|
||||
2004-06-21 Raja R Harinath <[email protected]>
|
||||
|
||||
* Makefile (LIBRARY_SNK): Sign with nunit.key.
|
||||
@@ -17,7 +17,7 @@ EXTRA_DISTFILES = \
|
||||
Transform.resx
|
||||
|
||||
%.resources: %.resx
|
||||
MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_RESGEN) $<
|
||||
$(RESGEN) $<
|
||||
|
||||
include ../../build/library.make
|
||||
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
class T {
|
||||
static void Main () {
|
||||
int i = Environment.TickCount;
|
||||
new T ().X ();
|
||||
Console.WriteLine (Environment.TickCount - i);
|
||||
}
|
||||
|
||||
int [] window = new int [9];
|
||||
|
||||
void X () {
|
||||
int scan = 0, match = 0;
|
||||
for (int i = 0; i < 5000000; i ++) {
|
||||
if (window[++scan] == window[++match] &&
|
||||
window[++scan] == window[++match] &&
|
||||
window[++scan] == window[++match] &&
|
||||
window[++scan] == window[++match] &&
|
||||
window[++scan] == window[++match] &&
|
||||
window[++scan] == window[++match] &&
|
||||
window[++scan] == window[++match] &&
|
||||
window[++scan] == window[++match]) {
|
||||
scan = match = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
class T {
|
||||
static void Main () {
|
||||
int i = Environment.TickCount;
|
||||
new T ().X ();
|
||||
Console.WriteLine (Environment.TickCount - i);
|
||||
}
|
||||
|
||||
void X () {
|
||||
for (int i = 0; i < 10000000; i ++)
|
||||
lock (this) {}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
class T {
|
||||
static void Main () {
|
||||
int i = Environment.TickCount;
|
||||
new T ().X ();
|
||||
Console.WriteLine (Environment.TickCount - i);
|
||||
}
|
||||
|
||||
void X () {
|
||||
long a = 1, b = 2, c = 3, d = 4;
|
||||
|
||||
for (int i = 0; i < 10000000; i ++) {
|
||||
a /= (b + 1);
|
||||
b /= (c + 1);
|
||||
c /= (d + 1);
|
||||
d /= (a + 1);
|
||||
|
||||
a *= (b + 2);
|
||||
b *= (c + 2);
|
||||
c *= (d + 2);
|
||||
d *= (a + 2);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,15 @@
|
||||
//
|
||||
// Idealy, we would fold the operations from a...h into one long xor chain,
|
||||
// we could then commute the xor operation.
|
||||
//
|
||||
// More realisticly, we should assign each of a...h to one reg, rather than making
|
||||
// the two swap between two registers:
|
||||
// (stind.i4 regvar[%edi] (xor (ldind.i4 regoffset[-0x18(%ebp)]) iconst[1]))
|
||||
// (stind.i4 regvar[%esi] (xor (ldind.i4 regvar[%edi]) iconst[2]))
|
||||
// (stind.i4 regvar[%edi] (xor (ldind.i4 regvar[%esi]) iconst[3]))
|
||||
// (stind.i4 regvar[%esi] (xor (ldind.i4 regvar[%edi]) iconst[4]))
|
||||
//
|
||||
|
||||
class T {
|
||||
static void Main ()
|
||||
{
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
//
|
||||
// You need a deadce to get rid of the initlocals statements,
|
||||
// which make all of the variables overlap in their live ranges.
|
||||
//
|
||||
|
||||
using System;
|
||||
class T {
|
||||
static void Main () {
|
||||
int i = Environment.TickCount;
|
||||
new T ().X ();
|
||||
Console.WriteLine (Environment.TickCount - i);
|
||||
}
|
||||
|
||||
void X () {
|
||||
int a = 0;
|
||||
for (int x = 0; x < 1000; x ++) {
|
||||
for (int i = 0; i < 10000; i ++) a ++;
|
||||
for (int i = 0; i < 10000; i ++) a ++;
|
||||
for (int i = 0; i < 10000; i ++) a ++;
|
||||
for (int i = 0; i < 10000; i ++) a ++;
|
||||
for (int i = 0; i < 10000; i ++) a ++;
|
||||
for (int i = 0; i < 10000; i ++) a ++;
|
||||
for (int i = 0; i < 10000; i ++) a ++;
|
||||
for (int i = 0; i < 10000; i ++) a ++;
|
||||
for (int i = 0; i < 10000; i ++) a ++;
|
||||
for (int i = 0; i < 10000; i ++) a ++;
|
||||
for (int i = 0; i < 10000; i ++) a ++;
|
||||
for (int i = 0; i < 10000; i ++) a ++;
|
||||
for (int i = 0; i < 10000; i ++) a ++;
|
||||
for (int i = 0; i < 10000; i ++) a ++;
|
||||
for (int i = 0; i < 10000; i ++) a ++;
|
||||
for (int i = 0; i < 10000; i ++) a ++;
|
||||
for (int i = 0; i < 10000; i ++) a ++;
|
||||
for (int i = 0; i < 10000; i ++) a ++;
|
||||
for (int i = 0; i < 10000; i ++) a ++;
|
||||
for (int i = 0; i < 10000; i ++) a ++;
|
||||
for (int i = 0; i < 10000; i ++) a ++;
|
||||
for (int i = 0; i < 10000; i ++) a ++;
|
||||
for (int i = 0; i < 10000; i ++) a ++;
|
||||
for (int i = 0; i < 10000; i ++) a ++;
|
||||
for (int i = 0; i < 10000; i ++) a ++;
|
||||
for (int i = 0; i < 10000; i ++) a ++;
|
||||
for (int i = 0; i < 10000; i ++) a ++;
|
||||
for (int i = 0; i < 10000; i ++) a ++;
|
||||
for (int i = 0; i < 10000; i ++) a ++;
|
||||
for (int i = 0; i < 10000; i ++) a ++;
|
||||
for (int i = 0; i < 10000; i ++) a ++;
|
||||
for (int i = 0; i < 10000; i ++) a ++;
|
||||
for (int i = 0; i < 10000; i ++) a ++;
|
||||
for (int i = 0; i < 10000; i ++) a ++;
|
||||
for (int i = 0; i < 10000; i ++) a ++;
|
||||
for (int i = 0; i < 10000; i ++) a ++;
|
||||
for (int i = 0; i < 10000; i ++) a ++;
|
||||
for (int i = 0; i < 10000; i ++) a ++;
|
||||
for (int i = 0; i < 10000; i ++) a ++;
|
||||
for (int i = 0; i < 10000; i ++) a ++;
|
||||
for (int i = 0; i < 10000; i ++) a ++;
|
||||
for (int i = 0; i < 10000; i ++) a ++;
|
||||
for (int i = 0; i < 10000; i ++) a ++;
|
||||
for (int i = 0; i < 10000; i ++) a ++;
|
||||
for (int i = 0; i < 10000; i ++) a ++;
|
||||
for (int i = 0; i < 10000; i ++) a ++;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
//
|
||||
// We get stuff like:
|
||||
// 48: 8b c3 mov eax,ebx
|
||||
// 4a: 8b cf mov ecx,edi
|
||||
// 4c: 0b c1 or eax,ecx
|
||||
// 4e: 8b d8 mov ebx,eax
|
||||
//
|
||||
|
||||
using System;
|
||||
class T {
|
||||
static void Main () {
|
||||
int i = Environment.TickCount;
|
||||
new T ().X ();
|
||||
Console.WriteLine (Environment.TickCount - i);
|
||||
}
|
||||
|
||||
void X () {
|
||||
int a = 0, b = 0, c = 0, d = 0;
|
||||
for (int i = 0; i < 50000000; i ++) {
|
||||
|
||||
|
||||
a |= b;
|
||||
b |= c;
|
||||
c |= d;
|
||||
b |= d;
|
||||
|
||||
a ^= b;
|
||||
b ^= c;
|
||||
c ^= d;
|
||||
b ^= d;
|
||||
|
||||
a &= b;
|
||||
b &= c;
|
||||
c &= d;
|
||||
b &= d;
|
||||
|
||||
a += b;
|
||||
b += c;
|
||||
c += d;
|
||||
b += d;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
class T {
|
||||
static void Main () {
|
||||
int i = Environment.TickCount;
|
||||
new T ().X ();
|
||||
Console.WriteLine (Environment.TickCount - i);
|
||||
}
|
||||
|
||||
void X () {
|
||||
object [] x = new object [1];
|
||||
object o = new object ();
|
||||
for (int i = 0; i < 10000000; i ++)
|
||||
x [0] = o;
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,7 @@
|
||||
2004-06-29 Martin Baulig <[email protected]>
|
||||
|
||||
* mono-debug.c (mono_debug_add_method): Protect the whole function
|
||||
in mono_debugger_lock(), not just parts of it.
|
||||
|
||||
Fri Jun 25 21:36:26 CEST 2004 Paolo Molaro <[email protected]>
|
||||
|
||||
|
||||
@@ -266,23 +266,29 @@ mono_debug_add_method (MonoMethod *method, MonoDebugMethodJitInfo *jit, MonoDoma
|
||||
MonoDebugHandle *handle;
|
||||
MonoDebugMethodInfo *minfo;
|
||||
|
||||
mono_debugger_lock ();
|
||||
|
||||
mono_class_init (klass);
|
||||
|
||||
if ((method->iflags & METHOD_IMPL_ATTRIBUTE_INTERNAL_CALL) ||
|
||||
(method->iflags & METHOD_IMPL_ATTRIBUTE_RUNTIME) ||
|
||||
(method->flags & METHOD_ATTRIBUTE_PINVOKE_IMPL) ||
|
||||
(method->flags & METHOD_ATTRIBUTE_ABSTRACT))
|
||||
(method->flags & METHOD_ATTRIBUTE_ABSTRACT)) {
|
||||
mono_debugger_unlock ();
|
||||
return;
|
||||
}
|
||||
|
||||
handle = _mono_debug_get_image (klass->image);
|
||||
if (!handle)
|
||||
if (!handle) {
|
||||
mono_debugger_unlock ();
|
||||
return;
|
||||
}
|
||||
|
||||
minfo = _mono_debug_lookup_method (method);
|
||||
if (!minfo)
|
||||
if (!minfo) {
|
||||
mono_debugger_unlock ();
|
||||
return;
|
||||
|
||||
mono_debugger_lock ();
|
||||
}
|
||||
|
||||
domain_data = mono_debug_get_domain_data (handle, domain);
|
||||
if (domain_data->jit [minfo->index]) {
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
|
||||
Mon Jun 28 18:05:09 CEST 2004 Paolo Molaro <[email protected]>
|
||||
|
||||
* mini.c: reinstated mono_compile_get_interface_var()
|
||||
on x86, too, since the change breaks the Gtk# build there as well.
|
||||
|
||||
Fri Jun 25 17:36:28 CEST 2004 Paolo Molaro <[email protected]>
|
||||
|
||||
* driver.c: remove loop from the default optimizations: it seems to
|
||||
|
||||
+1
-1
@@ -1609,7 +1609,7 @@ handle_stack_args (MonoCompile *cfg, MonoBasicBlock *bb, MonoInst **sp, int coun
|
||||
/* see bug#58863, but removing this code causes regressions in gtk-sharp build
|
||||
* (SEGV running Method::Initialize() in gapi_codegen.exe)
|
||||
*/
|
||||
#if defined(__ppc__) || defined(__powerpc__)
|
||||
#if 1
|
||||
/* try to reuse temps already allocated for this purpouse, if they occupy the same
|
||||
* stack slot and if they are of the same type. */
|
||||
bb->out_stack [i] = mono_compile_get_interface_var (cfg, i, sp [i]);
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
2004-06-29 Zoltan Varga <[email protected]>
|
||||
|
||||
* mono-sha1.c: Use gint32 for 32 types. Fixes random memory corruption
|
||||
in SHA1Transform on 64 bit systems.
|
||||
|
||||
2004-06-24 David Waite <[email protected]>
|
||||
|
||||
* monobitset.c: change to C90-style comments from C99/C++-style
|
||||
|
||||
@@ -72,11 +72,12 @@ A million repetitions of "a"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <glib.h>
|
||||
#include "mono-digest.h"
|
||||
|
||||
|
||||
typedef long int int32;
|
||||
typedef unsigned long int uint32;
|
||||
typedef gint32 int32;
|
||||
typedef guint32 uint32;
|
||||
|
||||
/* #include <process.h> */ /* prototype for exit() - JHB */
|
||||
/* Using return() instead of exit() - SWR */
|
||||
|
||||
+4
-2
@@ -34,8 +34,10 @@ monoone_DATA = \
|
||||
mcs.exe \
|
||||
mbas.exe
|
||||
|
||||
monotwo_DATA = \
|
||||
gmcs.exe
|
||||
if ! PLATFORM_WIN32
|
||||
gmcs_exe = gmcs.exe
|
||||
endif
|
||||
monotwo_DATA = $(gmcs_exe)
|
||||
|
||||
EXTRA_DIST= $(monobins_DATA) $(monoone_DATA) $(monotwo_DATA)
|
||||
|
||||
|
||||
@@ -12,9 +12,11 @@ endif
|
||||
|
||||
MONO_CSHARP_DEBUGGER = Mono.CSharp.Debugger
|
||||
if PLATFORM_WIN32
|
||||
GAC_DIR = `cygpath -w $(DESTDIR)$(libdir)`
|
||||
GAC_DIR = `cygpath -w $(libdir)`
|
||||
GAC_ROOT_DIR = `cygpath -w $(DESTDIR)$(libdir)`
|
||||
else
|
||||
GAC_DIR = $(DESTDIR)$(libdir)
|
||||
GAC_DIR = $(libdir)
|
||||
GAC_ROOT_DIR = $(DESTDIR)$(libdir)
|
||||
endif
|
||||
|
||||
gac_assemblies_list = \
|
||||
@@ -88,17 +90,17 @@ all-local: $(gac_assemblies)
|
||||
install-data-local:
|
||||
@if test -n '$(gac_assemblies)'; then \
|
||||
for i in ''$(gac_assemblies); do \
|
||||
echo "MONO_PATH=$(srcdir) $(DESTDIR)$(bindir)/mono $(gacutil) /i $(srcdir)/$$i /f /package 1.0 /gacdir $(GAC_DIR) /root $(GAC_DIR)" ; \
|
||||
echo "MONO_PATH=$(srcdir) $(mono_runtime) --config ../../data/config $(gacutil) /i $(srcdir)/$$i /f /package 1.0 /gacdir $(GAC_DIR) /root $(GAC_ROOT_DIR)" ; \
|
||||
MONO_PATH=$(srcdir) \
|
||||
$(LIBTOOL) --mode=execute $(DESTDIR)$(bindir)/mono $(gacutil) /i $(srcdir)/$$i /f /package 1.0 /gacdir $(GAC_DIR) /root $(GAC_DIR) || exit 1 ; \
|
||||
$(LIBTOOL) --mode=execute $(mono_runtime) --config ../../data/config $(gacutil) /i $(srcdir)/$$i /f /package 1.0 /gacdir $(GAC_DIR) /root $(GAC_ROOT_DIR) || exit 1 ; \
|
||||
done; fi
|
||||
|
||||
uninstall-local:
|
||||
@if test -n '$(gac_assemblies_list)'; then \
|
||||
for i in ''$(gac_assemblies_list); do \
|
||||
echo "MONO_PATH=$(srcdir) $(mono_runtime) $(gacutil) /u $$i /gacdir $(GAC_DIR) /root $(GAC_DIR)" ; \
|
||||
echo "MONO_PATH=$(srcdir) $(mono_runtime) $(gacutil) /u $$i /gacdir $(GAC_DIR) /root $(GAC_ROOT_DIR)" ; \
|
||||
MONO_PATH=$(srcdir) \
|
||||
$(LIBTOOL) --mode=execute $(DESTDIR)$(bindir)/mono $(gacutil) /u $$i /gacdir $(GAC_DIR) /root $(GAC_DIR) || true ; \
|
||||
$(LIBTOOL) --mode=execute $(mono_runtime) --config ../../data/config $(gacutil) /u $$i /gacdir $(GAC_DIR) /root $(GAC_ROOT_DIR) || true ; \
|
||||
done; fi
|
||||
|
||||
copy_dlls:
|
||||
|
||||
+12
-7
@@ -1,7 +1,8 @@
|
||||
* Cryptography
|
||||
|
||||
In the .NET framework cryptography can be found under a number of
|
||||
namespaces in several assemblies.
|
||||
namespaces in several assemblies. Mono also has it's own assemblies
|
||||
to provide missing security functionalities from the .NET framework.
|
||||
|
||||
** Assembly: corlib
|
||||
|
||||
@@ -112,6 +113,9 @@
|
||||
corlib (which depends on Mono's runtime).
|
||||
|
||||
* Unit test coverage isn't (yet) complete.
|
||||
|
||||
* Most classes have minimal documentation available in
|
||||
<b>monodoc</b>.
|
||||
</ul>
|
||||
|
||||
<hr>
|
||||
@@ -135,9 +139,7 @@
|
||||
|
||||
**** Status
|
||||
<ul>
|
||||
* A RNGCryptoServiceProvider built on top of CryptoAPI. This
|
||||
allows Windows users to get around the limitation of the
|
||||
runtime RNG (which requires <code>/dev/[u]random/</code>).
|
||||
* A RNGCryptoServiceProvider built on top of CryptoAPI.
|
||||
|
||||
* Wrapper classes for unmanaged versions of hash algorithms:
|
||||
MD2, MD4, MD5 and SHA1 are supported. <b>note</b>: some
|
||||
@@ -146,6 +148,9 @@
|
||||
included to preserve interoperability with older applications
|
||||
(e.g. some old, but still valid, X.509 certificates use MD2,
|
||||
MD4 is required for NTLM authentication ...).
|
||||
|
||||
* Classes have minimal documentation available in
|
||||
<b>monodoc</b>.
|
||||
</ul>
|
||||
|
||||
**** TODO
|
||||
@@ -323,8 +328,8 @@
|
||||
(using the unit tests) carefully - it's so fast to break an
|
||||
algorithm ;-).
|
||||
|
||||
* Write some documentation on the cryptographic classes for
|
||||
<b>monodoc</b>.
|
||||
* Write some documentation or add some sample code for the
|
||||
cryptographic classes in <b>monodoc</b>.
|
||||
</ul>
|
||||
<hr>
|
||||
Last reviewed: June 15, 2004 (mono beta 3)
|
||||
Last reviewed: June 26, 2004 (mono release candidate 1)
|
||||
+102
@@ -25,6 +25,108 @@
|
||||
Packages can find RPM Spec files and other resources in the <a
|
||||
href="http://www.go-mono.com/packagers/">packagers page</a>.
|
||||
|
||||
<table>
|
||||
<tbody>
|
||||
<tr bgcolor="#DDDDDD">
|
||||
<td>
|
||||
<b>Release Candidate</b><br>
|
||||
<!-- <a href="archive/beta3/beta3.html">Release notes</a><br> -->
|
||||
June 25th, 2004
|
||||
</td>
|
||||
<td>
|
||||
<table cellspacing="1" cellpadding="3">
|
||||
<tr bgcolor="#BBBBBB">
|
||||
<td>
|
||||
<b>Source Code</b>
|
||||
</td>
|
||||
<td>
|
||||
<ul>
|
||||
<li><a href="archive/rc/mono-0.97.tar.gz">Mono Runtime 0.97</a>
|
||||
<li><a href="archive/rc/mcs-0.97.tar.gz">Mono Class Libraries and C# Compiler 0.97</a>
|
||||
<li><a href="archive/rc/libgdiplus-0.10.tar.gz">libgdiplus 0.10</a>
|
||||
<p>
|
||||
<li><a href="archive/rc/monodoc-0.18.tar.gz">MonoDoc 0.18</a>
|
||||
<li><a href="archive/rc/xsp-0.16.tar.gz">XSP web server 0.16</a>
|
||||
<li><a href="archive/rc/mod_mono-0.13.tar.gz">Apache Mono module 0.13</a>
|
||||
<p>
|
||||
<li><a href="archive/rc/gtk-sharp-0.99.tar.gz">Gtk# 0.99</a>
|
||||
<!-- <li><a href="archive/rc/gecko-sharp-0.5.tar.gz">Gecko# 0.5</a> -->
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr bgcolor="#bbbbbb">
|
||||
<td bgcolor="#999999">
|
||||
<img src="images/redhat-36.gif"><b>Red Hat 9.0/x86</b><br>
|
||||
</td>
|
||||
<td>
|
||||
<a href="archive/rc/redhat-9-i386">Packages</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr bgcolor="#bbbbbb">
|
||||
<td bgcolor="#999999">
|
||||
<img src="images/redhat-36.gif"><b>Fedora Core 1/x86</b><br>
|
||||
</td>
|
||||
<td>
|
||||
<a href="archive/rc/fedora-1-i386">Packages</a>
|
||||
<p><a href="http://www.go-mono.com/archive/yum-repository/fedora-1-i386">YUM Repository</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr bgcolor="#bbbbbb">
|
||||
<td bgcolor="#999999">
|
||||
<img src="images/redhat-36.gif"><b>Fedora Core 2/x86</b><br>
|
||||
</td>
|
||||
<td>
|
||||
<a href="archive/rc/fedora-2-i386">Packages</a>
|
||||
<p><a href="http://www.go-mono.com/archive/yum-repository/fedora-2-i386">YUM Repository</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr bgcolor="#bbbbbb">
|
||||
<td bgcolor="#999999">
|
||||
<img src="images/suse-36.gif"><b>SLES 8/x86</b><br>
|
||||
</td>
|
||||
<td>
|
||||
<a href="archive/rc/sles-8-i386/">Packages</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr bgcolor="#bbbbbb">
|
||||
<td bgcolor="#999999">
|
||||
<img src="images/suse-36.gif"><b>SUSE 9/x86</b><br>
|
||||
</td>
|
||||
<td>
|
||||
<a href="archive/rc/suse-90-i586/">Packages</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr bgcolor="#bbbbbb">
|
||||
<td bgcolor="#999999">
|
||||
<img src="images/suse-36.gif"><b>SUSE 9.1/x86</b><br>
|
||||
</td>
|
||||
<td>
|
||||
<a href="archive/rc/suse-91-i586/">Packages</a>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- <tr> -->
|
||||
<!-- <td bgcolor="#999999"> -->
|
||||
<!-- <div align="left"><img src="images/windows-36.gif"></div> -->
|
||||
<!-- <div align="right"><b>Windows installer</b><br><small>Win2k and above</small></div> -->
|
||||
<!-- </td> -->
|
||||
<!-- <td> -->
|
||||
<!-- <a href="archive/beta3/windows/mono-Beta3-win32-1.exe">Mono Setup</a> -->
|
||||
<!-- </td> -->
|
||||
<!-- </tr> -->
|
||||
<!-- <tr> -->
|
||||
<!-- <td bgcolor="#999999"> -->
|
||||
<!-- <img src="images/macos-36.gif"><b>Mac OS X package</b> -->
|
||||
<!-- </td> -->
|
||||
<!-- <td> -->
|
||||
<!-- <a href="archive/beta3/macos/mono-0.96.dmg">mono-0.96.dmg</a> in /opt. -->
|
||||
<!-- <br/><br/> -->
|
||||
<!-- <a href="archive/beta3/macos/MonoFramework-0.96.dmg">MonoFramework-0.96.dmg</a> in /Library/Framework -->
|
||||
<!-- </td> -->
|
||||
<!-- </tr> -->
|
||||
</table>
|
||||
</td>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tbody>
|
||||
<tr bgcolor="#DDDDDD">
|
||||
|
||||
Reference in new issue
Block a user