1 Sat Aug 18 12:51:28 CEST 2001 Paolo Molaro <lupus@ximian.com>
3 * metadata.c, metadata.h: in the signature and method header store
4 only the space required for holding the loca vars and incoming arguments.
6 2001-08-09 Dietmar Maurer <dietmar@ximian.com>
8 * image.c (do_mono_image_open): added a cache for arrays.
10 Sat Aug 4 12:46:02 CEST 2001 Paolo Molaro <lupus@ximian.com>
12 * metadata.h, metadata.c: add mono_metadata_decode_row_col () to
13 decode a single column from a row in a metadata table and changes
14 to take advantage of it in the typedef locator (gives a nice speed up).
15 Store offset info for function params.
17 2001-08-02 Dietmar Maurer <dietmar@ximian.com>
19 * image.h (MONO_IMAGE_IS_CORLIB): removed
21 Wed Aug 1 22:54:08 CEST 2001 Paolo Molaro <lupus@ximian.com>
23 * assembly.c: how could mono_assembly_close () had ever worked?
24 * metadata.c, metadata.h: provide offset info for local vars.
25 Implement mono_type_size () to take care of alignment as well
26 as size (it was mono_field_type_size in cli/class.c before).
28 2001-08-01 Dietmar Maurer <dietmar@ximian.com>
30 * image.h (MONO_IMAGE_IS_CORLIB): new macro to check root image
32 * assembly.h (CORLIB_NAME): set to corlib.dll
34 * assembly.c (mono_assembly_open): replaced strcmp() with !strcmp()
36 Tue Jul 31 17:54:02 CEST 2001 Paolo Molaro <lupus@ximian.com>
38 * metadata.h, metadata.c, Makefile.am, private.h, assembly.c, blob.h,
39 cil-coff.h, image.c, image.h, pedump.c, rawbuffer.c, rawbuffer.h, row-indexes.h,
40 tokentype.h: massive namespace cleanup.
42 Mon Jul 30 20:11:01 CEST 2001 Paolo Molaro <lupus@ximian.com>
44 * metadata.h, metadata.c: decode exception clauses when parsing method header.
46 2001-07-27 Dietmar Maurer <dietmar@ximian.com>
48 * metadata.c (mono_metadata_free_type): added check for type !=
49 NULL (void) before calling mono_metadata_free_type()
51 Thu Jul 26 19:11:19 CEST 2001 Paolo Molaro <lupus@ximian.com>
53 * metadata.h, row_indexes.h: added header with enumerations to use
54 to index in the columns from tables in metadata and to decode coded
55 tokens: we should start using this instead of embedding magic numbers
58 Thu Jul 26 13:03:27 CEST 2001 Paolo Molaro <lupus@ximian.com>
60 * assembly.c, cil-coff.h, image.c, image.h, pedump.c, typedef.c:
61 Move metadata_t info from cli_image_info_t to MonoImage, where
62 it's easily accessible. Changed all the uses accordingly.
63 Added the method and class caches to MonoImage.
64 * metadata.c, metadata.h: Changed mono_metadata_decode_blob_size ()
65 and mono_metadata_decode_value () signature to be more consistent
66 with the other parse functions (and simplify code). Taken advantage
67 of zero-length array allocation with GCC. Removed reduntant (and
68 wrong) MonoFieldType struct and use MonoParam instead. Changed
69 mono_metadata_parse_field_type () to use common code for parsing.
70 Added mono_metadata_typedef_from_field () and
71 mono_metadata_typedef_from_method () to lookup a typedef index from a
72 field or method token.
73 Pack the MonoRetType structure more tightly (fits in 8 bytes now).
75 2001-07-23 Miguel de Icaza <miguel@ximian.com>
77 * metadata.c (mono_metadata_parse_field_type): Implement.
78 (do_mono_metadata_parse_type): Split engine from
79 mono_metadata_parse_type, so that we can create smaller structures
80 for things that just have one pointer to the MonoType (look at
83 2001-07-20 Miguel de Icaza <miguel@ximian.com>
85 * metadata.c (mono_metadata_parse_mh): Correct the implementation,
86 as Jan Gray found out, it is incorrect.
88 2001-07-18 Miguel de Icaza <miguel@ximian.com>
90 * assembly.c: Implement asssembly loading. This loads an image
91 and loads all the referenced assemblies. Come to think of it, we
92 could always do lazy loading of the assemblies.
94 * image.c (mono_image_open): Keep loaded images in a hashtable.
96 * image.h (MonoImage): Add reference count.
98 2001-07-17 Miguel de Icaza <miguel@ximian.com>
100 * assembly.c (mono_assembly_open): Keep track of the file name in
101 case the assembly has no ASSEMBLY table.
103 * metadata.h: Fixed Paolo's quick hack. Put the documnentation
106 Sun Jul 15 19:39:06 CEST 2001 Paolo Molaro <lupus@ximian.com>
108 * metadata.c, metadata.h: decode local vars in method header
109 parse function. Change callers accordingly.
111 Sun Jul 15 17:40:47 CEST 2001 Paolo Molaro <lupus@ximian.com>
113 * metadata.h, cil-coff.h: protect against multiple inclusion.
114 Added some new structures to hold information decoded from metadata:
115 MonoType, MonoParam, MonoArray, MonoMethod, MonoMethodSignature
116 and relevant decoding/free functions.
117 * metadata.c: implement decoding functions. Add warning for out of bounds
118 index in mono_metadata_locate(). Implement mono_get_method () to retreive
119 all the info about a method signature and invocation. Remove check on
120 uninitialized local var in parse_mh() and fix memory leak.
122 2001-07-12 Miguel de Icaza <miguel@ximian.com>
124 * metadata.h: More macros.
126 * tokentype.h: New file.
128 Fri Jul 6 11:30:53 CEST 2001 Paolo Molaro <lupus@ximian.com>
130 * assembly.c: added a consistency check and initialize
131 some structures with g_new0().
132 * metadata.c: fixed a couple more bugs in table size computation
133 and add other checks for out-of bound access to metadata.
135 Thu Jul 5 22:34:21 CEST 2001 Paolo Molaro <lupus@ximian.com>
137 * metatada.c: fix bugs computing table sizes. Spew a
138 warning when index in string heap is out of bounds.
140 2001-07-04 Miguel de Icaza <miguel@ximian.com>
142 * metadata.h: Add a couple of macros to manipulate tokens.
144 Tue Jul 3 18:33:32 CEST 2001 Paolo Molaro <lupus@ximian.com>
146 * assembly.c: g_free(ii->cli_sections) (and avoid double free of
149 2001-07-01 Miguel de Icaza <miguel@ximian.com>
151 * metadata.c (mono_metadata_user_string): New function, provides
152 access to the UserString heap.
154 2001-06-27 Miguel de Icaza <miguel@ximian.com>
156 * metadata.c: Add inline documentation.
158 2001-06-26 Miguel de Icaza <miguel@ximian.com>
160 * propertyattr.h, paramattr.h, methodsem.h, methodattr.h: New
163 2001-06-22 Miguel de Icaza <miguel@ximian.com>
165 * typeattr.h: New file, TypeAttribute flags.
167 2001-06-21 Miguel de Icaza <miguel@ximian.com>
169 * mono/metadata/assembly.c (mono_assembly_ensure_section_idx,
170 mono_assembly_ensure_section): Section loading code.
171 (load_section_tables): Load the sections.
173 * mono/metadata/metadata.c (mono_metadata_locate_token,
174 mono_metadata_locate): Functions to locate the information
175 definition given a token or a table and an index.
176 (mono_metadata_compute_table_bases): New.
177 (compute_size): New function to compute the sizes of the various
180 * mono/metadata/metadata.h: Finish listing the different index
183 * mono/metadata/pedump.c: Improve to dump new information.
185 2001-06-19 Miguel de Icaza <miguel@ximian.com>
187 * mono/metadata/metadata.c: Entered all the tables matching
190 * mono/metadata/assembly.c (load_metadata_ptrs): Fix for Beta2