696fb06240e71f5635a766c2c1aff76d1f195489
[mono.git] / mono / metadata / ChangeLog
1 2001-08-20  Dietmar Maurer  <dietmar@ximian.com>
2
3         * metadata.c (mono_metadata_signature_equal): impl.
4
5         * *: void is now a realy MonoType (instead of using NULL)
6         
7         * metadata.c (do_mono_metadata_parse_type): use
8         mono_metadata_parse_type to parse void value.
9
10 Sat Aug 18 12:51:28 CEST 2001 Paolo Molaro <lupus@ximian.com>
11
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.
14
15 2001-08-15  Dietmar Maurer  <dietmar@ximian.com>
16
17         * metadata.c (do_mono_metadata_parse_type): treat void like any
18         other type (instead of assigning NULL);
19
20 2001-08-14  Dietmar Maurer  <dietmar@ximian.com>
21
22         * metadata.c (mono_metadata_parse_mh): fixxed pinned/byref value
23
24 2001-08-09  Dietmar Maurer  <dietmar@ximian.com>
25
26         * image.c (do_mono_image_open): added a cache for arrays.
27
28 Sat Aug 4 12:46:02 CEST 2001 Paolo Molaro <lupus@ximian.com>
29
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.
34
35 2001-08-02  Dietmar Maurer  <dietmar@ximian.com>
36
37         * image.h (MONO_IMAGE_IS_CORLIB): removed 
38
39 Wed Aug 1 22:54:08 CEST 2001 Paolo Molaro <lupus@ximian.com>
40
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).
45
46 2001-08-01  Dietmar Maurer  <dietmar@ximian.com>
47
48         * image.h (MONO_IMAGE_IS_CORLIB): new macro to check root image
49
50         * assembly.h (CORLIB_NAME): set to corlib.dll
51
52         * assembly.c (mono_assembly_open): replaced strcmp() with !strcmp()
53
54 Tue Jul 31 17:54:02 CEST 2001 Paolo Molaro <lupus@ximian.com>
55
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.
59
60 Mon Jul 30 20:11:01 CEST 2001 Paolo Molaro <lupus@ximian.com>
61
62         * metadata.h, metadata.c: decode exception clauses when parsing method header.
63
64 2001-07-27  Dietmar Maurer  <dietmar@ximian.com>
65
66         * metadata.c (mono_metadata_free_type): added check for type !=
67         NULL (void) before calling mono_metadata_free_type()
68
69 Thu Jul 26 19:11:19 CEST 2001 Paolo Molaro <lupus@ximian.com>
70
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
74         all over the code.
75
76 Thu Jul 26 13:03:27 CEST 2001 Paolo Molaro <lupus@ximian.com>
77
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).
92
93 2001-07-23  Miguel de Icaza  <miguel@ximian.com>
94
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
99         the MonoFieldType)
100
101 2001-07-20  Miguel de Icaza  <miguel@ximian.com>
102
103         * metadata.c (mono_metadata_parse_mh): Correct the implementation,
104         as Jan Gray found out, it is incorrect. 
105
106 2001-07-18  Miguel de Icaza  <miguel@ximian.com>
107
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. 
111
112         * image.c (mono_image_open): Keep loaded images in a hashtable.
113
114         * image.h (MonoImage): Add reference count.
115
116 2001-07-17  Miguel de Icaza  <miguel@ximian.com>
117
118         * assembly.c (mono_assembly_open): Keep track of the file name in
119         case the assembly has no ASSEMBLY table.
120
121         * metadata.h: Fixed Paolo's quick hack.  Put the documnentation
122         from get.c here.
123
124 Sun Jul 15 19:39:06 CEST 2001 Paolo Molaro <lupus@ximian.com>
125
126         * metadata.c, metadata.h: decode local vars in method header
127         parse function. Change callers accordingly.
128
129 Sun Jul 15 17:40:47 CEST 2001 Paolo Molaro <lupus@ximian.com>
130
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.
139
140 2001-07-12  Miguel de Icaza  <miguel@ximian.com>
141
142         * metadata.h: More macros.
143
144         * tokentype.h: New file.
145
146 Fri Jul  6 11:30:53 CEST 2001 Paolo Molaro <lupus@ximian.com>
147
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.
152
153 Thu Jul  5 22:34:21 CEST 2001 Paolo Molaro <lupus@ximian.com>
154
155         * metatada.c: fix bugs computing table sizes. Spew a
156         warning when index in string heap is out of bounds.
157
158 2001-07-04  Miguel de Icaza  <miguel@ximian.com>
159
160         * metadata.h: Add a couple of macros to manipulate tokens. 
161
162 Tue Jul  3 18:33:32 CEST 2001 Paolo Molaro <lupus@ximian.com>
163
164         * assembly.c: g_free(ii->cli_sections) (and avoid double free of
165         cli_section_tables).
166
167 2001-07-01  Miguel de Icaza  <miguel@ximian.com>
168
169         * metadata.c (mono_metadata_user_string): New function, provides
170         access to the UserString heap. 
171
172 2001-06-27  Miguel de Icaza  <miguel@ximian.com>
173
174         * metadata.c: Add inline documentation.
175
176 2001-06-26  Miguel de Icaza  <miguel@ximian.com>
177
178         * propertyattr.h, paramattr.h, methodsem.h, methodattr.h: New
179         files. 
180
181 2001-06-22  Miguel de Icaza  <miguel@ximian.com>
182
183         * typeattr.h: New file, TypeAttribute flags. 
184
185 2001-06-21  Miguel de Icaza  <miguel@ximian.com>
186
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.
190
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
196         tables.
197
198         * mono/metadata/metadata.h: Finish listing the different index
199         types. 
200
201         * mono/metadata/pedump.c: Improve to dump new information.
202
203 2001-06-19  Miguel de Icaza  <miguel@ximian.com>
204
205         * mono/metadata/metadata.c: Entered all the tables matching
206         Beta2. 
207
208         * mono/metadata/assembly.c (load_metadata_ptrs): Fix for Beta2
209