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