ChangeLog 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493
  1. 2002-09-11 Miguel de Icaza <[email protected]>
  2. * ModuleBuilder.cs (GetTypes): Implement.
  3. Tue Sep 10 12:12:51 CEST 2002 Paolo Molaro <[email protected]>
  4. * ConstructorBuilder.cs: added a field to hold the handle.
  5. Mon Sep 9 17:31:12 CEST 2002 Paolo Molaro <[email protected]>
  6. * TypeBuilder.cs: prepare for the real CreateType implementation.
  7. Tue Aug 27 16:57:18 CEST 2002 Paolo Molaro <[email protected]>
  8. * TypeBuilder.cs: remove duplicate code and fix
  9. named field reading in custom attr.
  10. 2002-08-24 Gonzalo Paniagua Javier <[email protected]>
  11. * TypeBuilder.cs: UnspecifiedTypeSize is 0.
  12. Wed Aug 14 17:38:41 CEST 2002 Paolo Molaro <[email protected]>
  13. * TypeBuilder.cs: ReflectedType and CreateType fixes.
  14. Thu Aug 8 10:25:51 CEST 2002 Paolo Molaro <[email protected]>
  15. * AssemblyBuilder.cs: added API to embed managed resources.
  16. 2002-08-03 Martin Baulig <[email protected]>
  17. * TypeBuilder.cs (TypeBuilder.DeclaringType): Implemented.
  18. Thu Jul 25 13:57:46 CEST 2002 Paolo Molaro <[email protected]>
  19. * AssemblyBuilder.cs: support linking external resources.
  20. 2002-07-19 Martin Baulig <[email protected]>
  21. * ILGenerator.cs (Emit (OpCode, LocalBuilder)): Throw an exception
  22. when trying to emit a local that was defined in a different ILGenerator.
  23. * LocalBuilder.cs (LocalBuilder): Added `ILGenetator' argument to
  24. the constructor.
  25. Tue Jul 16 19:32:08 CEST 2002 Paolo Molaro <[email protected]>
  26. * ILGenerator.cs: stack size check fix.
  27. Sat Jul 13 17:30:51 CEST 2002 Paolo Molaro <[email protected]>
  28. * AssemblyBuilder.cs: add also the enum_type for compiling corlib.
  29. * TypeBuilder.cs: complete IsValueType.
  30. Sat Jul 13 15:08:12 CEST 2002 Paolo Molaro <[email protected]>
  31. * TypeBuilder.cs: better IsValueType.
  32. 2002-07-13 Gonzalo Paniagua Javier <[email protected]>
  33. * CustomAttributeBuilder.cs: removed compile warning.
  34. Fri Jul 12 11:34:58 CEST 2002 Paolo Molaro <[email protected]>
  35. * ILGenerator.cs: fixup typebuilder tokens as well.
  36. Tue Jul 9 19:03:03 CEST 2002 Paolo Molaro <[email protected]>
  37. * TypeBuilder.cs: special case SerializarionAttribute.
  38. Tweaks to get correct code in corlib.
  39. 2002-07-06 Miguel de Icaza <[email protected]>
  40. * ILGenerator.cs (ILGenerator.Emit): For doubles and floats, swap
  41. the bytes on big endian systems.
  42. 2002-07-03 Martin Baulig <[email protected]>
  43. * AssemblyBuilder.cs (corlib_object_type, corlib_value_type): Moved
  44. these fields up after the last entry in MonoReflectionAssemblyBuilder
  45. in reflection.h.
  46. * TypeBuilder.cs (IsValueTypeImpl): Use the AssemblyBuilder's
  47. `corlib_value_type' instead of `typeof (System.ValueType)'.
  48. (DefineNestedType): Use the AssemblyBuilder's `corlib_object_type'
  49. instead of `typeof (object)'.
  50. 2002-07-02 Martin Baulig <[email protected]>
  51. * AssemblyBuilder.cs (corlib_object_type, corlib_value_type): New
  52. internal fields. When compiling corlib, they point to the newly
  53. created System.Object and System.ValueType types.
  54. (SetCorlibTypeBuilders): New public function. This will be
  55. dynamically called from MCS when compiling corlib.
  56. * TypeBuilder.cs (DefineInitializedData): Use the AssemblyBuilder's
  57. `corlib_value_type' as parent type instead of `typeof (System.ValueType)'
  58. to make it work when compiling corlib.
  59. * ModuleBuilder.cs (assemblyb): Made this field internal, not private.
  60. Tue Jul 2 18:34:49 CEST 2002 Paolo Molaro <[email protected]>
  61. * TypeBuilder.cs: implemented AssemblyQualifiedName.
  62. * MethodBuilder.cs, ConstructorBuilder.cs: special case custom attr.
  63. Mon Jul 1 16:17:29 CEST 2002 Paolo Molaro <[email protected]>
  64. * TypeBuilder.cs: implemented AddInterfaceImplementation().
  65. 2002-06-28 Martin Baulig <[email protected]>
  66. * MethodBuilder.cs (GetParameters): Return all parameters, not all
  67. but the last one.
  68. 2002-06-27 Martin Baulig <[email protected]>
  69. * ConstructorBuilder.cs (GetParameters): Implemented.
  70. Mon Jun 17 14:55:43 CEST 2002 Paolo Molaro <[email protected]>
  71. * ModuleBuilder.cs, TypeBuilder.cs: fixes for nested types handling.
  72. Fri Jun 14 16:21:54 CEST 2002 Paolo Molaro <[email protected]>
  73. * CustomAttributeBuilder.cs: added custom attribute related internal
  74. helper methods.
  75. * FieldBuilder.cs, ParameterBuilder.cs: handle MarshalAs attribute.
  76. * UnmanagedMarshal.cs: implemented.
  77. Mon Jun 10 18:58:18 CEST 2002 Paolo Molaro <[email protected]>
  78. * PropertyBuilder.cs: implemented ReflectedType and DeclaringType
  79. properties.
  80. 2002-06-07 Martin Baulig <[email protected]>
  81. * TypeBuilder.cs (TypeBuilder): Added `PackingSize packing_size' and
  82. `int type_size' fields to the constructor.
  83. (DefineNestedType): Pass packing_size and type_size to the constructor.
  84. * ModuleBuilder.cs (DefineType): Pass the packing_size and type_size
  85. fields to the TypeBuilder's constructor.
  86. 2002-06-07 Martin Baulig <[email protected]>
  87. * TypeBuilder.cs (DefineNestedType): There is no overload for this
  88. method which takes 5 args in the specs, removed it.
  89. Fri Jun 7 17:04:06 CEST 2002 Paolo Molaro <[email protected]>
  90. * AssemblyBuilder.cs: updates for PE/COFF rewrite.
  91. 2002-05-30 Martin Baulig <[email protected]>
  92. * AssemblyBuilder.cs (methods): Made this internal and don't
  93. initialize it. It will be initialized by the ModuleBuilder's
  94. GetSymbolWriter() method.
  95. (get_next_table_index): Only store the method in the `methods'
  96. array if it's not null.
  97. * ModuleBuilder.cs (GetSymbolWriter): Initialize the AssemblyBuilder's
  98. `methods' field if necessary and pass it as third argument to the
  99. symbol writer's constructor.
  100. 2002-05-25 Martin Baulig <[email protected]>
  101. * TypeBuilder.cs (TypeToken): Implemented.
  102. 2002-05-24 Martin Baulig <[email protected]>
  103. * ModuleBuilder.cs (symwriter_define_local): New private variable.
  104. (GetSymbolWriter): Look for a custom version of "DefineLocalVariable"
  105. and store it in `symwriter_define_local'.
  106. (SymWriter_DefineLocalVariable): New internal method to call the
  107. symbol writer's custom DefineLocalVariable() method. It is safe to
  108. call this method if there's no symbol writer.
  109. * LocalBuilder.cs (SetLocalSymInfo): Use the MethodBuilder'snew
  110. SymWriter_DefineLocalVariable().
  111. * MethodBuilder.cs (GetParameters): Implemented.
  112. 2002-05-22 Martin Baulig <[email protected]>
  113. * ModuleBuilder.cs (GetSymbolWriter): Pass the this pointer to the
  114. symbol writer's constructor.
  115. 2002-05-22 Martin Baulig <[email protected]>
  116. * AssemblyBuilder.cs (methods): New field.
  117. (get_next_table_index): Record all methods and constructors
  118. (table 0x06) in the `methods' array. This is read by the
  119. Mono.CSharp.Debugger.MonoSymbolWriter::get_method interncall to
  120. get the MethodBuilder / ConstructorBuilder back from the token.
  121. * *Builder.cs (get_next_table_index): Added `object obj' argument.
  122. (<constructors>): pass the this pointer to get_next_table_index ().
  123. 2002-05-20 Martin Baulig <[email protected]>
  124. * TypeBuilder.cs (DefineField): Call the new `create_internal_class'
  125. interncall after adding the first field. This is used when creating
  126. enum types to set `klass->enum_basetype'.
  127. Thu May 16 16:09:51 CEST 2002 Paolo Molaro <[email protected]>
  128. * TypeBuilder.cs: complete special acse support for CharSet, Size and
  129. Pack named args in StructLayout attribute.
  130. Tue May 14 17:13:48 CEST 2002 Paolo Molaro <[email protected]>
  131. * MethodBuilder.cs: revert change in accessibility of
  132. GetILGenerator(int).
  133. Tue May 14 13:31:17 CEST 2002 Paolo Molaro <[email protected]>
  134. * FieldBuilder.cs, ParameterBuilder.cs: more special-casing of
  135. attributes.
  136. Fri May 10 20:57:27 CEST 2002 Paolo Molaro <[email protected]>
  137. * CustomAttributeBuilder.cs: expose internal data for use in
  138. reflection.
  139. * FieldBuilder.cs, TypeBuilder.cs: special case FieldOffset and
  140. StructLayout attributes.
  141. Fri May 10 16:30:57 CEST 2002 Paolo Molaro <[email protected]>
  142. * MethodBuilder.cs, ConstructorBuilder.cs: implemented InitLocals
  143. property.
  144. 2002-04-26 Martin Baulig <[email protected]>
  145. * ModuleBuilder.cs (DefineDocument): Implemented.
  146. Tue Apr 16 13:02:28 CEST 2002 Paolo Molaro <[email protected]>
  147. * AssemblyBuilder.cs: pad output file to file alignment.
  148. * FieldBuilder.cs: ReflectedType.
  149. * ModuleBuilder.cs: added guid generation and array method creation.
  150. * MonoArrayMethod.cs: array method support code.
  151. Wed Apr 10 12:57:31 CEST 2002 Paolo Molaro <[email protected]>
  152. * ILGenerator.cs: use a stack to keep track of exception blocks.
  153. Mon Apr 8 06:19:01 2002 Piers Haken <[email protected]>
  154. * ILGenerator.cs: added LabelField.label_base to allow for
  155. arbitrary offsets (for switch statement)
  156. Fri Apr 5 15:41:19 CEST 2002 Paolo Molaro <[email protected]>
  157. * AssemblyBuilder.cs: simpler protocol wih the runtime to
  158. get the assembly data.
  159. Tue Mar 26 20:10:24 CET 2002 Paolo Molaro <[email protected]>
  160. * AssemblyBuilder.cs: use FileMode.Create.
  161. * ILGenerator.cs: optimize localbuilder related opcodes.
  162. Track parameters to adjust maxstack.
  163. * LocalBuilder.cS: use unsigned for position.
  164. 2002-03-23 Miguel de Icaza <[email protected]>
  165. * LocalBuilder.cs: Drop the symbol_writer as LocalBuilder fields.
  166. Do this lazily in SetLocalSymInfo.
  167. 2002-03-24 Martin Baulig <[email protected]>
  168. * ModuleBuilder.cs (GetSymbolWriter): The MonoSymbolWriter's constructor
  169. now takes a `string assembly_filename' argument, pass it our fully
  170. qualified assembly name.
  171. 2002-03-24 Nick Drochak <[email protected]>
  172. * ILGenerator.cs: Use #if-#endif instead of if(false){} to disable
  173. code. This way there is no compiler warning.
  174. * TypeBuilder.cs: Removed the returns that came after the throws.
  175. This removes a few more compiler warnings. Also marked with MonoTODO
  176. all places where we throw NotImplemented exceptions.
  177. 2002-03-23 Martin Baulig <[email protected]>
  178. * SignatureHelper.cs (GetFieldSignatureHelper, GetLocalSignatureHelper):
  179. Implemented.
  180. * LocalBuilder.cs (LocalBuilder): This internal constructor now takes
  181. a ModuleBuilder argument instead of a ISymbolWriter one.
  182. (SetLocalSymInfo): Create and pass type signature to DefineLocalVariable.
  183. 2002-03-23 Martin Baulig <[email protected]>
  184. * ILGenerator.cs (BeginScope, EndScope): Implemented.
  185. 2002-03-20 Martin Baulig <[email protected]>
  186. * ModuleBuilder.cs (GetSymbolWriter): New internal function. Dynamically
  187. loads the default symbol writer, catch all possible exceptions and return
  188. null on failure.
  189. (ModuleBuilder): Added `bool emitSymbolInfo' argument to this internal
  190. constructor; if set, call GetSymbolWriter ().
  191. (GetSymWriter): Implemented.
  192. * LocalBuilder.cs (LocalBuilder): Added ISymbolWriter argument to this
  193. internal method.
  194. (SetLocalSymInfo): Implemented, call ISymbolWriter.DefineLocalVariable ()
  195. if the symbol writer is not null.
  196. * ILGenerator.cs (ILGenerator): Call ModuleBuilder.GetSymWriter () to get
  197. and store the symbol writer.
  198. (DeclareLocal): Pass the symbol writer to LocalBuilder's constructor.
  199. (MarkSequencePoint): Implemented, call ISymbolWriter.DefineSequencePoints ()
  200. if the symbol writer is not null.
  201. * AssemblyBuilder.cs (DefineDynamicModule): Pass the `bool emitSymbolInfo'
  202. to ModuleBuilder's constructor.
  203. Sat Mar 16 19:11:47 CET 2002 Paolo Molaro <[email protected]>
  204. * ModuleBuilder.cs: handle modified types correctly.
  205. Thu Mar 7 17:10:42 CET 2002 Paolo Molaro <[email protected]>
  206. * AssemblyBuilder.cs: allow saving bigger assemblies.
  207. * ILGenerator.cs: add fixup table for fields and methods, since
  208. at the end of the compile they may end up with a different table
  209. index.
  210. * ModuleBuilder.cs: add cache for type names to speed up the type
  211. lookups from the compiler.
  212. * TypeBuilder.cs: GetInterfaces () returns only interfaces in the
  213. current type, not in parents (the docs are wrong).
  214. Tue Mar 5 18:09:34 CET 2002 Paolo Molaro <[email protected]>
  215. * EventBuilder.cs: implemented.
  216. * TypeBuilder.cs: implemented DefineEvent() method and UnderlyingSystemType
  217. property.
  218. Mon Mar 4 20:34:52 CET 2002 Paolo Molaro <[email protected]>
  219. * ILGenerator.cs: make enough room in the byte array for string
  220. tokens.
  221. * TypeBuilder.cs: fixed GetInterfaces().
  222. Mon Mar 4 11:30:40 CET 2002 Paolo Molaro <[email protected]>
  223. * TypeBuilder.cs: implemented GetConstructors(), GetFields(),
  224. GetMethods(), GetProperties().
  225. Thu Feb 28 19:15:10 CET 2002 Paolo Molaro <[email protected]>
  226. * AssemblyBuilder.cs: call into the runtime to init some basic
  227. assembly stuff. Reserve slot 1 of typedef table for .<Module>.
  228. * ModuleBuilder.cs: call into the runtime if we need to create a
  229. modief type, such as arrays, byref etc.
  230. * TypeBuilder.cs: call into the runtime to create the MonoClass
  231. representation for the type. Throw exceptions with not implemented
  232. stuff.
  233. Wed Feb 27 18:48:47 CET 2002 Paolo Molaro <[email protected]>
  234. * ILGenerator.cs: fix nested exception blocks.
  235. Wed Feb 20 22:30:49 CET 2002 Paolo Molaro <[email protected]>
  236. * AssemblyBuilder.cs: upped compiled assembly size limit.
  237. Implemented SetCustomAttribute () methods.
  238. * CustomAttributeBuilder.cs: implemented the needed constructor
  239. stuff.
  240. * Cosntructorbuilder.cs, EnumBuilder.cs, FieldBuilder.cs,
  241. MethodBuilder.cs, ModuleBuilder.cs, ParameterBuilder.cs,
  242. PropertyBuilder.cs, TypeBuilder.cs: Implemented SetCustomAttribute () methods.
  243. Wed Feb 20 14:54:01 CET 2002 Paolo Molaro <[email protected]>
  244. * AssemblyBuilder.cs: add SetCustomAttribute () to keep the compiler
  245. going.
  246. Fri Feb 15 18:15:04 CET 2002 Paolo Molaro <[email protected]>
  247. * ILGenerator.cs: finally block support and fixes.
  248. Thu Feb 14 18:55:52 CET 2002 Paolo Molaro <[email protected]>
  249. * FieldBuilder.cs: Add SetRVAData().
  250. * ILGenerator.cs: speed up code array growth.
  251. * TypeBuilder.cs: fix IsValueTypeImpl(). Add class_size member.
  252. Implement DefineInitializedData().
  253. Tue Jan 22 23:01:11 CET 2002 Paolo Molaro <[email protected]>
  254. * EnumBuilder.cs, TypeBuilder.cs: updates for changes in Type.cs.
  255. * ModuleBuilder.cs: fix lookup of nested types.
  256. Tue Jan 15 22:46:21 CET 2002 Paolo Molaro <[email protected]>
  257. * ILGenerator.cs: implement some of the exception support methods.
  258. Mon Jan 14 17:07:32 CET 2002 Paolo Molaro <[email protected]>
  259. * ModulerBuilder.cs: search also for subtypes in GetTypes().
  260. * TypeBuilder.cs: bugfix in FullName. Implemented DefineNestedType().
  261. Fri Jan 11 19:00:29 CET 2002 Paolo Molaro <[email protected]>
  262. * MethodBuilder.cs, ConstructorBuilder.cs: save parameter info.
  263. Thu Jan 10 21:07:54 CET 2002 Paolo Molaro <[email protected]>
  264. * ILGenerator.cs: handle type tokens (used for box opcode).
  265. Wed Jan 9 19:37:55 CET 2002 Paolo Molaro <[email protected]>
  266. * ILGenerator.cs: emit float and doubles.
  267. * ModuleBuilder.cs: off-by-one error fix and GetType()
  268. implementations.
  269. * TypeBuilder.cs: AttributesImpl added.
  270. * UnmanagedMarshal.cs: stubbed out class.
  271. Sat Jan 5 15:59:05 CET 2002 Paolo Molaro <[email protected]>
  272. * ILGenerator.cs: fix emission of two-bytes opcodes.
  273. Missing slot for locals array. Throw exceptions on unimplemented
  274. methods.
  275. * OpCode.cs: add a comment: the Value property is useless.
  276. * OpCodes.cs: fix name of tail opcode (Tail -> Tailcall).
  277. 2002-01-05 Ravi Pratap <[email protected]>
  278. * ConstructorBuilder.cs : Use the MonoTODO attribute.
  279. * ILGenerator.cs, Label.cs, MethodBuilder.cs, ModuleBuilder.cs,
  280. ParameterBuilder.cs, TypeBuilder.cs : Ditto.
  281. Thu Jan 3 23:26:15 CET 2002 Paolo Molaro <[email protected]>
  282. * ILGenerator.cs: typo fix.
  283. Mon Dec 24 17:21:30 CET 2001 Paolo Molaro <[email protected]>
  284. * TypeBuilder.cs: added DefineMethodOverride().
  285. * MethodBuilder.cs: add override_method member and setter.
  286. Mon Nov 19 13:58:01 CET 2001 Paolo Molaro <[email protected]>
  287. * AssemblyBuilder.cs: add method to register a string in the "#US"
  288. stream.
  289. * EnumBuilder.cs, SignatureHelper.cs: added stubs.
  290. * ILGenerator.cs: more stuff implemented.
  291. * LocalBuilder.cs: keep track of local var index.
  292. Thu Nov 15 18:11:23 CET 2001 Paolo Molaro <[email protected]>
  293. * ConstructorBuilder.cs: implement the interesting methods.
  294. * ILGenerator.cs: adapt for use with both a MethodBuilder and a
  295. ConstructorBuilder.
  296. * MethodBuilder.cs: add ImplAttributes.
  297. * ParameterBuilder.cs: adapt for ConstructorBuilder.
  298. * TypeBuilder.cs: add constructors handling.
  299. Wed Nov 14 17:01:45 CET 2001 Paolo Molaro <[email protected]>
  300. * ConstructorBuilder.cs: added missing stubs and some implementation.
  301. * CustomAttributeBuilder.cs: added.
  302. * EventBuilder.cs: added.
  303. * FieldBuilder.cs: updates.
  304. * MethodBuilder.cs: stuff to implement P/Invoke methods.
  305. * ModuleBuilder.cs: added GetArrayMethod() stub.
  306. * ParameterBuilder.cs, PropertyBuilder.cs: updates.
  307. * TypeBuilder.cs: updates and stubs.
  308. 2001-11-10 Sean MacIsaac <[email protected]>
  309. * TypeBuilder.cs: Added implementation for TypeHandle.
  310. Tue Nov 6 09:13:45 CET 2001 Paolo Molaro <[email protected]>
  311. * AssemblyBuilder.cs: define an internal constructor.
  312. 2001-10-07 Miguel de Icaza <[email protected]>
  313. * AssemblyBuilder.cs: Reformatted.
  314. Added override keywords to those that needed them.
  315. Removed methods that we do not override, but just inherit
  316. Tue Sep 25 16:53:08 CEST 2001 Paolo Molaro <[email protected]>
  317. * TypeBuilder.cs, ConstructorBuilder.cs, ModuleBuilder.cs: added.