ChangeLog 16 KB

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