ChangeLog 86 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653
  1. 2009-05-22 Zoltan Varga <[email protected]>
  2. * AssemblyBuilder.cs (.ctor): Error out if the not yet supported
  3. RunAndCollect flag was given.
  4. * AssemblyBuilderAccess.cs: Add RunAndCollect flag for net 4.0.
  5. 2009-03-20 Sebastien Pouliot <[email protected]>
  6. * DynamicMethod.cs (Invoke): Wrap a MethodAccessException inside a
  7. TargetInvocationException (required for Moonlight 2).
  8. 2009-03-18 Zoltan Varga <[email protected]>
  9. * TypeBuilder.cs (GetGenericTypeDefinition): Call the icall instead of
  10. the base method which now throws an exception.
  11. 2009-02-23 Zoltan Varga <[email protected]>
  12. * ILGenerator.cs SignatureHelper.cs: Add checks for user types.
  13. 2008-02-21 Jb Evain <[email protected]>
  14. * ModuleBuilder.cs: override GetModuleVersionId
  15. so that we can get the module guid from Module.ModuleVersionId.
  16. Part of the fix for #471302.
  17. 2009-01-24 Zoltan Varga <[email protected]>
  18. * SignatureHelper.cs: Fix warnings.
  19. * ILGenerator.cs: Fix warnings.
  20. 2008-11-23 Gert Driesen <[email protected]>
  21. * AssemblyBuilder.cs: When assembly is strongnamed, then explicitly
  22. set PublicKey flag. Do not allow AssemblyFlagsAttribute to overwrite
  23. flags value, and ignore PublicKey flag if assembly is not strongnamed.
  24. Fixes bug #432423.
  25. 2008-11-11 Rodrigo Kumpera <[email protected]>
  26. * ConstructorOnTypeBuilderInst.cs (MetadataToken): Make this property
  27. work under compiler context. Same hack as the one applied to
  28. MethodOnTypeBuilderInst.
  29. Fixes #442610.
  30. 2008-09-23 Marek Safar <[email protected]>
  31. * ModuleBuilder.cs: Fixed NRE when default symbol writer cannot be
  32. loaded.
  33. 2008-09-16 Jb Evain <[email protected]>
  34. * AssemblyBuilder.cs (AddTypeForwarder): correctly grow the
  35. type_forwarders array, to make that work for more than one
  36. type forwarder. Managed part of the fix for #422929.
  37. 2008-09-04 Marek Safar <[email protected]>
  38. * TypeBuilder.cs: Add mcs specific SetCharSet method.
  39. 2008-08-12 Zoltan Varga <[email protected]>
  40. * TypeBuilder.cs (CreateType): Avoid creating a default ctor if the
  41. type has a constructor defined using DefineMethod. Fixes #416632.
  42. 2008-07-25 Rodrigo Kumpera <[email protected]>
  43. * TypeBuilder.cs (GetMethod): Allow created TypeBuilders
  44. to be used.
  45. 2008-07-23 Marek Safar <[email protected]>
  46. Rodrigo Kumpera <[email protected]>
  47. * TypeBuilder.cs (GetMethod): A fix for #408933
  48. 2008-07-22 Rodrigo Kumpera <[email protected]>
  49. * MethodOnTypeBuilderInst.cs: Change visibility of the parent
  50. MethodBuilder to internal.
  51. 2008-07-22 Zoltan Varga <[email protected]>
  52. * CustomAttributeBuilder.cs (get_umarshal): Add support for all
  53. MarshalAsAttribute fields to fix the build.
  54. * CustomAttributeBuilder.cs (get_umarshal): Decode enums properly.
  55. 2008-07-21 Marek Safar <[email protected]>
  56. * ParameterBuilder.cs, CustomAttributeBuilder.cs: Check for
  57. UnmanagedType.ByValArray to be used only on fields.
  58. 2008-07-16 Rodrigo Kumpera <[email protected]>
  59. * MethodOnTypeBuilderInst.cs: Special case all methods
  60. under compiler context as needed by mcs.
  61. * MethodBuilder.cs: Change the visibility of some fields
  62. to internal so MethodOnTypeBuilderInst can use it.
  63. 2008-07-11 Marek Safar <[email protected]>
  64. * ModuleBuilder.cs: Couple of micro optimizations.
  65. 2008-07-03 Andreas Nahr <[email protected]>
  66. * SignatureHelper.cs: Fix parameter names
  67. * ModuleBuilder.cs: Fix parameter names
  68. 2008-06-18 Rodrigo Kumpera <[email protected]>
  69. * TypeBuilder.cs (IsAssignableTo): Fixed check for interfaces
  70. defined on parent. Based on Geoff's Norton patch.
  71. Fixes #349194.
  72. 2008-06-12 Marek Safar <[email protected]>
  73. * MethodBuilder.cs: Removed SetGenericMethodSignature.
  74. 2008-06-06 Jb Evain <[email protected]>
  75. * OpCodes.cs: OpCode constrained. is of type InlineType.
  76. 2008-05-18 Gert Driesen <[email protected]>
  77. * TypeBuilder.cs (IsAssignableTo): When an interface is passed as
  78. argument and the TypeBuilder has been created, also check if parent
  79. can be assigned to type.
  80. 2008-05-15 Zoltan Varga <[email protected]>
  81. * TypeBuilder.cs (.ctor): Convert a null parent to typeof (object) here, not just
  82. in CreateType (). Fixes #389171.
  83. 2008-05-11 Gert Driesen <[email protected]>
  84. * FieldBuilder.cs: Added null check for type.
  85. * TypeBuilder.cs: For enums, construct UnderlyingSystemType when
  86. first instance field is defined instead of having to lookup it up on
  87. demand. Avoid cast in IsCompilerContext.
  88. 2008-05-11 Gert Driesen <[email protected]>
  89. * TypeBuilder.cs: Use Assembly.FullName instead of AssemblyName.
  90. In UnderlyingSystemType, return UnderlyingSystemType of created type
  91. when available. For an enum, UnderlyingSystemType is the type of the
  92. first instance field. If no instance field is available, throw an
  93. InvalidOperationException. Retain original behavior when operating in
  94. compiler context.
  95. * ConstructorBuilder.cs: Moved implementation of GetParameters to
  96. GetParametersInternal to allow it to be used internally when type is
  97. not yet created.
  98. * CustomAttributeBuilder.cs: Added GetParameters method that uses
  99. GetParametersInternal on ConstructorBuilder, and use it where
  100. necessary.
  101. 2008-05-03 Zoltan Varga <[email protected]>
  102. * ConstructorBuilder.cs: Revert the throw not_created () change as it causes
  103. vbnc bootstrap to fail. Fixes #386419.
  104. 2008-05-01 Gert Driesen <[email protected]>
  105. * ConstructorBuilder.cs: Switch arguments for AORE.
  106. 2008-04-30 Gert Driesen <[email protected]>
  107. * ModuleBuilder.cs (DefineType): Do not perform lookup of in cache if
  108. name is null to allow correct exception to be thrown (in TypeBuilder
  109. ctor).
  110. * TypeBuilder: Moved name argument check to TypeBuilder ctor. Modified
  111. ArgumentException parameter names to match MS. Removed duplicate check
  112. for data length from DefineInitializedData. Modified check_name to
  113. only throw when first character is null char.
  114. * ConstructorBuilder.cs (GetParameters): Throw NotSupportedException
  115. (2.0) or InvalidOperationException (1.0) when type is not yet created
  116. and we're not in compiler context. Return empty array when no
  117. parameters are defined.
  118. (MethodHandle): Always throw NotSupportedException.
  119. (DefineParameter): Prevent NRE when parameters is null.
  120. (GetCustomAttributes): When not in compiler context, always throw
  121. NotSupportedException.
  122. * ConstructorOnTypeBuilderInst.cs: Delegate to ConstructorBuilder
  123. where possible. Fixed ContainsGenericParameters and IsGenericMethod
  124. to always return false. In MethodBase.Invoke, throw an
  125. InvalidOperationException instead of NIE.
  126. 2008-04-26 Gert Driesen <[email protected]>
  127. * MethodOnTypeBuilderInst.cs: Added overrides for ReturnType and
  128. GetGenericMethodDefinition. Implement GetGenericArgument,
  129. IsGenericMethod(Definition). Throw NotSupportedException instead of
  130. NotImplementedException.
  131. 2008-04-26 Jb Evain <[email protected]>
  132. * ILGenerator.cs, AssemblyBuilder.cs, TypeBuilder.cs:
  133. replace usages of new Type [0] by Type.EmptyTypes.
  134. Found with Gendarme.
  135. 2008-04-22 Zoltan Varga <[email protected]>
  136. * MethodOnTypeBuilderInst.cs ConstructorOnTypeBuilderInst: New files.
  137. 2008-03-29 Gert Driesen <[email protected]>
  138. * AssemblyBuilder.cs: Added enum that determines the type of the
  139. native (version) resource. Added fields for holding the native
  140. resource type and the version culture. The versioninfo_culture was
  141. introduced to hold the original culture of the assembly, since
  142. the AssemblyCultureAttribute should only affect the language of the
  143. versioninfo block when not used in compiler context. Move constructin
  144. of native version info to DefineVersionInfoResourceImpl to allow
  145. attributes to affect the versioninfo after DefineVersionInfoResource
  146. has been invoked. Allow ArgumentException for invalid culture string
  147. to bubble up. In compiler context, use FileVersion as default value
  148. for ProductionVersion.
  149. 2008-03-14 Zoltan Varga <[email protected]>
  150. * FieldOnTypeBuilderInst.cs: New file.
  151. 2008-03-11 Marek Safar <[email protected]>
  152. * MethodBuilder.cs (GetGenericArguments): Returns Type.EmptyType.
  153. 2008-03-06 Zoltan Varga <[email protected]>
  154. * AssemblyBuilder.cs: Define GetManifestModule () for net 2.0 bootstrap too.
  155. * DynamicMethod.cs: Create a dynamic assembly to hold the anon hosted methods.
  156. * DynamicMethod.cs: Add net 3.5 ctor overloads.
  157. * ModuleBuilder.cs (RegisterToken): New icall.
  158. * MethodBuilder.cs (ctor): Call ModuleBuilder.RegisterToken (), so the token gets
  159. added to the internal hash table. Fixes #367668.
  160. * ConstructorBuilder.cs: Ditto.
  161. 2008-03-06 Jb Evain <[email protected]>
  162. * SignatureHelper.cs (GetMethodSigHelper): if returnType
  163. is null, use typeof (void) instead. Fixes #367663.
  164. 2008-03-03 Rodrigo Kumpera <[email protected]>
  165. * MethodBuilder.cs (check_override): Added, verify if this method has explicit
  166. override set and doesn't follow virtual settings of overriden method.
  167. * TypeBuilder.cs (CreateType): Call MethodBuilder::check_override before
  168. creating the type.
  169. Fixes #361689.
  170. 2008-01-29 Zoltan Varga <[email protected]>
  171. * ModuleBuilder.cs: Fix build.
  172. * AssemblyBuilder.cs (GetTypes): Implement this entirely in managed code.
  173. * ModuleBuilder.cs (GetTypes): Replace TypeBuilders with their created types to
  174. match MS.
  175. * AssemblyBuilder.cs: Override GetModulesInternal () so we can return
  176. ModuleBuilders.
  177. 2008-01-25 Zoltan Varga <[email protected]>
  178. * TypeBuilder.cs (GenerateDebugInfo): Emit debug info for nested types as well.
  179. Fixes #356316.
  180. 2008-01-21 Gert Driesen <[email protected]>
  181. * AssemblyBuilder.cs: Introduce magic value for AssemblyBuilderAccess
  182. to signal usage from a compiler. On 2.0 profile, perform argument
  183. check for access. Use AssemblyFlags passed in through AssemblyName
  184. arguments. Modified SetCustomAttribute to only use the Assembly*
  185. attribute for constructing the assembly name when used in compiler
  186. context. Fixes corlib part of bug #354970.
  187. 2008-01-17 Zoltan Varga <[email protected]>
  188. * TypeBuilder.cs (GetConstructorImpl): Add back the code removed by the last
  189. patch since it is needed when building mscorlib.
  190. 2008-01-16 Gert Driesen <[email protected]>
  191. * TypeBuilder.cs (GetConstructorImpl): Use GetConstructor on created
  192. type. Original implementation did not take into account the binding
  193. flags and failed with a NotSupportedException if the default binder
  194. checked if a ParamArrayAttribute was defined. It also does not make
  195. sense to return a ConstructorBuilder once the type is emitted.
  196. (GetConstructors): When the type is emitted, use GetConstructors
  197. on the created type.
  198. (GetFields): Removed duplicate code.
  199. (GetMethodsByName): Fixed matching of methods in the parent class
  200. depending on their accessibility:
  201. - Private: never include private methods of parent
  202. - Public: ignore if Public flag is not set
  203. - Assembly: ignore if NonPublic is not set or when on the 1.0 profile
  204. - Rest (Family, FamANDAssem, FamORAssem): ignore if NonPublic flag is
  205. not set
  206. Static methods of the parent are ignored unless the FlattenHierarchy
  207. flag is set.
  208. (GetProperties): When the type is emitted, use GetProperties on the
  209. created type as the TypeBuilder implementation itself does not include
  210. properties from the parent class.
  211. 2007-12-31 Gert Driesen <[email protected]>
  212. * AssemblyBuilder.cs (UnprotectedGetName): Set the public key token
  213. as well.
  214. 2007-12-10 Zoltan Varga <[email protected]>
  215. * FieldBuilder.cs (GetToken): Use the MetadataToken property.
  216. 2007-11-20 Atsushi Enomoto <[email protected]>
  217. * GenericTypeParameterBuilder.cs : fixed regression.
  218. GenericParameterAttributes also needs some special care.
  219. 2007-11-20 Atsushi Enomoto <[email protected]>
  220. * MethodBuilder.cs : implemented ContainsGenericParameters().
  221. * GenericTypeParameterBuilder.cs : removed most of extra members
  222. and added missing members for 2.0 API.
  223. 2007-11-18 Miguel de Icaza <[email protected]>
  224. * SignatureHelper.cs: Implement Equals and GetHashCode
  225. 2007-11-17 Miguel de Icaza <[email protected]>
  226. * SignatureHelper.cs: Preparational tasks to support the
  227. AddArgument overloads that allow the specification of modopts and
  228. modreqs.
  229. Refactor code, add new parameters.
  230. * SignatureHelper.cs (AddArguments): Add new 2.0 API, used by
  231. new versions of the DLR. Currently does not have support for
  232. modreq, modopts. Just a simple wrapper as consumed by the DLR.
  233. 2007-11-16 Atsushi Enomoto <[email protected]>
  234. * AssemblyBuilder.cs : added missing 2.0 member.
  235. * DynamicMethod.cs : removed extra stuff.
  236. * DynamicILInfo.cs : no public .ctor().
  237. * ILGenerator.cs : fixed 2.0 member signatures.
  238. 2007-11-16 Atsushi Enomoto <[email protected]>
  239. * EnumBuilder.cs, TypeBuilder.cs : implemented missing 2.0
  240. stuff, in harmless manner.
  241. 2007-11-16 Atsushi Enomoto <[email protected]>
  242. * ConstructorBuilder.cs : added CallingConvention.
  243. 2007-11-16 Atsushi Enomoto <[email protected]>
  244. * SignatureHelper.cs : Module can be null, and for non-
  245. ModuleBuilder argument, throw ArgumentException.
  246. Added missing 2.0 stuff.
  247. 2007-11-08 Rodrigo Kumpera <[email protected]>
  248. * TypeBuilder.cs: Workaround for #82625 not needed anymore.
  249. GetFields() returns the created type fields.
  250. 2007-10-15 Gert Driesen <[email protected]>
  251. * ILGenerator.cs: Added missing null checks. Removed extra tabs.
  252. 2007-09-23 Gert Driesen <[email protected]>
  253. * AssemblyBuilder.cs: Added missing paramname to ArgumentExceptions.
  254. Use String.Length to check for zero-length string.
  255. 2007-09-23 Zoltan Varga <[email protected]>
  256. * AssemblyBuilder.cs (GetManifestModule): Return a ModuleBuilder here to
  257. match MS.NET.
  258. 2007-09-22 Gert Driesen <[email protected]>
  259. * TypeBuilder.cs: Do not include static methods of base class in
  260. GetMethod(s). Fixes bug #327482.
  261. 2007-09-14 Zoltan Varga <[email protected]>
  262. * AssemblyBuilder.cs (DefineVersionInfoResource): Allow the arguments to be
  263. null. Fixes #82832.
  264. 2007-09-11 Jb Evain <[email protected]>
  265. * DynamicMethod.cs: store the owner of the DynamicMethod.
  266. 2007-09-09 Zoltan Varga <[email protected]>
  267. * AssemblyBuilder.cs (DefineUnmanagedResource): Open file read-only. Fixes
  268. #72764.
  269. 2007-09-02 Zoltan Varga <[email protected]>
  270. * TypeBuilder.cs: Add a workaround for #82625 to make nemerle work again.
  271. 2007-08-29 Gert Driesen <[email protected]>
  272. * AssemblyBuilder.cs: In DefineIconResource, open icon in read-only
  273. mode. Fixes bug #82617.
  274. 2007-08-17 Rolf Bjarne Kvinge <[email protected]>
  275. * ILGenerator.cs: Change BeginCatchBlock to end the current filter block if called with a null exceptionType. Added ILExceptionBlock.FILTER_START to be able to track if we're in a filter block or not. Renamed PatchLastClauseStart to PatchFilterClause to match better what it does, and make it update the handler's type to FILTER. Fixes #81431.
  276. 2007-08-10 Zoltan Varga <[email protected]>
  277. * DynamicILInfo.cs: New file.
  278. * DynamicMethod.cs (GetDynamicILInfo): New 2.0 method.
  279. 2007-07-11 Rodrigo Kumpera <[email protected]>
  280. * TypeBuilder.cs (CreateType): method did not check for enum type with defined methods and fixed compatibility issue in case of calling CreateType again after the first one failed, it now returns null as well.
  281. 2007-07-10 Zoltan Varga <[email protected]>
  282. * OpCodeType.cs EventToken.cs FieldToken.cs SignatureToken.cs PackingSize.cs
  283. StringToken.cs AssemblyBuilderAccess.cs FlowControl.cs MethodToken.cs
  284. ParameterToken.cs TypeToken.cs PropertyToken.cs OperandType.cs PEFileKinds.cs
  285. StackBehaviour.cs: 2.0 updates.
  286. 2007-07-07 Gert Driesen <[email protected]>
  287. * MethodBuilder.cs: Code formatting. Spaces to tabs.
  288. * TypeBuilder.cs: Same.
  289. 2007-07-06 Gert Driesen <[email protected]>
  290. * TypeBuilder.cs: Throw InvalidOperationException when attempting to
  291. construct non-abstract interface without base type. Modified SetParent
  292. to match MS: in 2.0 profile, throw InvalidOperationException when
  293. parent is null and TypeBuilder is non-abstract interface. When
  294. parent is null and TypeBuilder is not an interface, then set object
  295. as parent. In 1.0 profile, throw ArgumentNullException when parent is
  296. null.
  297. 2007-07-06 Gert Driesen <[email protected]>
  298. * TypeBuilder.cs: Implemented IsCOMObjectImpl.
  299. 2007-07-04 Atsushi Enomoto <[email protected]>
  300. * DynamicMethod.cs : 2.0 API fix.
  301. 2007-06-21 Zoltan Varga <[email protected]>
  302. * DynamicMethod.cs: Applied patch from Robert Jordan ([email protected]). Add
  303. a destructor which frees the runtime data for the method.
  304. 2007-05-21 Gert Driesen <[email protected]>
  305. * TypeBuilder.cs: Changed HasElementTypeImpl to return false on 2.0
  306. profile when type is not baked.
  307. 2007-05-21 Jb Evain <[email protected]>
  308. * TypeBuilder.cs
  309. MethodBuilder.cs:
  310. Tag methods and types as HasSecurity when adding a
  311. SuppressUnmanagedCodeSecurityAttribute on them.
  312. Makes peverify happy.
  313. 2007-05-16 Gert Driesen <[email protected]>
  314. * TypeBuilder.cs (GetField): Return MonoField instance if the type is
  315. already created. Fixed other part of bug #81368.
  316. 2007-05-16 Zoltan Varga <[email protected]>
  317. * TypeBuilder.cs (GetFields): Return MonoField objects if the type is already
  318. created.
  319. * FieldBuilder.cs (SetValue): Make this not supported again.
  320. * FieldBuilder.cs: Support calling SetValue (). Fixes #81638.
  321. 2007-05-06 Zoltan Varga <[email protected]>
  322. * TypeBuilder.cs (CreateType): Fix build.
  323. * TypeBuilder.cs (.ctor): Convert null parent to typeof (object). Fixes #81530.
  324. * TypeBuilder.cs (UnderlyingSystemType): Remove commented out code.
  325. 2007-04-15 Alp Toker <[email protected]>
  326. * ConstructorBuilder.cs: Make use of
  327. ConstructorInfo.TypeConstructorName/ConstructorName.
  328. 2007-04-09 Alp Toker <[email protected]>
  329. * ConstructorBuilder.cs: Remove redundant overrides.
  330. 2007-04-03 Marek Safar <[email protected]>
  331. * OpCodes.cs: Removed obsolete opcodes.
  332. 2007-04-03 Alp Toker <[email protected]>
  333. * GenericTypeParameterBuilder.cs: SetInterfaceConstraints(Type[]) is
  334. params.
  335. * MethodBuilder.cs: MakeGenericMethod(Type[]) is params.
  336. 2007-03-19 Marek Safar <[email protected]>
  337. * MethodBuilder.cs: MethodImplAttribute cannot be destructive and overwrite
  338. existing flags.
  339. 2007-03-17 Marek Safar <[email protected]>
  340. * MethodBuilder.cs: Implemented conversion of PreserveSigAttribute pseudo
  341. attribute.
  342. 2007-03-17 Zoltan Varga <[email protected]>
  343. * ILGenerator.cs (Emit): Disallow ldtoken on a DynamicMethod as well.
  344. * ILGenerator.cs (Emit): Do not allow ldftn on a DynamicMethod to be
  345. compatible with MS.NET. Fixes #81157.
  346. 2007-03-13 Miguel de Icaza <[email protected]>
  347. * OpCode.cs: Add a couple of operators for jsc.sf.net
  348. 2007-03-12 Zoltan Varga <[email protected]>
  349. * DynamicMethod.cs: Add a field used by unmanaged code.
  350. 2007-03-06 Rolf Bjarne Kvinge <[email protected]>
  351. * MonoArrayMethod.cs: Use 'void' as return type in ToString when
  352. the return type is null. Fixes #80435.
  353. 2007-03-06 Gert Driesen <[email protected]>
  354. * EnumBuilder.cs: On 2.0 profile, using current EnumBuilder as
  355. field type in DefinedLiteral. Fixes bug #81007.
  356. 2007-02-25 Marek Safar <[email protected]>
  357. * MethodBuilder.cs: Empty string is not allowed for DllImport name.
  358. 2007-02-13 Marek Safar <[email protected]>
  359. * ModuleBuilder.cs: Add GetRegisteredType to expose name_cache for internal
  360. usage.
  361. * TypeBuilder.cs: Optimized generation of unmanaged data helpers.
  362. An unmanaged data class helper can be re-used when its size matches to
  363. size of requested class.
  364. 2007-01-25 Radek Doulik <[email protected]>
  365. * ModuleBuilder.cs: return created type from GetType in case the
  366. type builder type was already created. Added test-555.cs as
  367. regression test.
  368. Tue Jan 23 17:45:07 CET 2007 Paolo Molaro <[email protected]>
  369. * ModuleBuilder.cs, AssemblyBuilder.cs: mark the GC-tracked field
  370. with UIntPtr.
  371. 2007-01-16 Rolf Bjarne Kvinge <[email protected]>
  372. * EnumBuilder.cs: value__ must have RTSpecialName flag set.
  373. Fixes #80396
  374. Fri Dec 22 19:42:56 CET 2006 Paolo Molaro <[email protected]>
  375. * ModuleBuilder.cs: associate a resource writer with its
  376. actual resource (bug #80339).
  377. 2006-10-06 Miguel de Icaza <[email protected]>
  378. * AssemblyBuilder.cs: Am doing a try/catch for pulling the LCID
  379. from the AssemblyCulture that is provided, as Microsoft allows
  380. arbitrary locales (even non-existing ones) to be specified.
  381. The .locale information is actually pulled from the AssemblyName,
  382. not from this lcid. But this LCID is used to encode the
  383. resource. In my exploration of this, we are setting this field,
  384. even if CSC never sets the field itself (its always zero).
  385. Maybe we should completely remove this.
  386. 2006-09-12 Mart Roosma <[email protected]>
  387. * DynamicMethod.cs: Allow empty name and null return type.
  388. Fixes bug #79367.
  389. 2006-09-05 Miguel de Icaza <[email protected]>
  390. * TypeBuilder.cs (SetParent): Null parent is allowed for
  391. interfaces.
  392. 2006-09-02 Zoltan Varga <[email protected]>
  393. * DynamicMethod.cs: Fix a warning.
  394. * TypeBuilder.cs: Allow static methods on interfaces. Fixes #79249.
  395. 2006-08-18 Zoltan Varga <[email protected]>
  396. * *.cs: Use String.Empty instead of "" in a lot of places.
  397. 2006-07-14 Zoltan Varga <[email protected]>
  398. * ConstructorBuilder.cs (GetILGenerator): Avoid creating a new ILGenerator each time
  399. this is called. Fixes #78859.
  400. 2006-07-11 Zoltan Varga <[email protected]>
  401. * MethodBuilder.cs (SetCustomAttribute): Fix handling of SpecialNameAttribute.
  402. 2006-07-09 Gert Driesen <[email protected]>
  403. * DynamicMethod.cs: Fix check for empty method body, avoids SIGSEV.
  404. 2006-07-08 Zoltan Varga <[email protected]>
  405. * DynamicMethod.cs: Create all other DynamicMethod's referenced by
  406. this method as well. Check for an empty method body.
  407. * ILGenerator.cs (Emit): Handle DynamicMethod's which might not have a
  408. declaring type.
  409. 2006-05-15 Zoltan Varga <[email protected]>
  410. * AssemblyBuilder.cs (MonoResource): Add a 'stream' field.
  411. * ModuleBuilder.cs (DefineManifestResource): Add new net 2.0 method.
  412. 2006-04-26 Miguel de Icaza <[email protected]>
  413. * MethodBuilder.cs: better error messages when we close the
  414. method.
  415. 2006-03-28 Marek Safar <[email protected]>
  416. * ILGenerator.cs: Delayed the exception stack creation. It saves ~1.5 MB
  417. for corlib compilation.
  418. 2006-03-27 Marek Safar <[email protected]>
  419. * ILGenerator.cs: Tune up label defaults, switched to double resizing.
  420. 2006-03-15 Zoltan Varga <[email protected]>
  421. * AssemblyBuilder.cs (AddTypeForwarder): New internal method for
  422. adding type forwarders to an assembly.
  423. 2006-02-27 Gert Driesen <[email protected]>
  424. * ConstructorBuilder.cs: In AddDeclarativeSecurity, throw an
  425. ArgumentOutOfRangeException instead of an ArgumentException if action
  426. is a Request* action. Fixes bug #77640.
  427. * MethodBuilder.cs: Same.
  428. * TypeBuilder.cs: Same.
  429. Mon Feb 27 17:12:40 CET 2006 Paolo Molaro <[email protected]>
  430. * ModuleBuilder.cs: unlink the file before saving
  431. otherwise we might overwrite a file mmapped by the runtime.
  432. 2006-02-17 Zoltan Varga <[email protected]>
  433. * DynamicMethod.cs: Implement DefineParameter ().
  434. * ParameterBuilder.cs: Add support for DynamicMethod parents.
  435. 2006-02-15 Martin Baulig <[email protected]>
  436. * TypeBuilder.cs (TypeBuilder.DefineMethod): Also enable the
  437. 2-argument version in the `BOOTSTRAP_NET_2_0' profile.
  438. (TypeBuilder.DefineGenericMethod): Removed.
  439. 2006-02-14 Martin Baulig <[email protected]>
  440. * ConstructorBuilder.cs
  441. (ConstructorBuilder.IsGenericMethod): Override this and return
  442. false; the MS runtime doesn't throw an exception here.
  443. (ConstructorBuilder.IsGenericMethodDefinition): Likewise.
  444. * MethodBuilder.cs
  445. (MethodBuilder.IsGenericMethod): Implement this.
  446. (MethodBuilder.IsGenericMethodDefinition): Likewise.
  447. 2006-02-03 Zoltan Varga <[email protected]>
  448. * TypeBuilder.cs (CreateType): Add a check for Sealed parents.
  449. 2006-02-01 Zoltan Varga <[email protected]>
  450. * OpCodes.cs: Readonly is a net 2.0 only field.
  451. Tue Jan 31 13:37:02 CET 2006 Paolo Molaro <[email protected]>
  452. * OpCodes.cs: Added Readonly field.
  453. 2006-01-29 Raja R Harinath <[email protected]>
  454. * GenericTypeParameterBuilder.cs (DeclaringType): Return the
  455. declaring type of a generic method.
  456. 2005-12-15 Raja R Harinath <[email protected]>
  457. * TypeBuilder.cs (IsGenericType): Implement override.
  458. 2005-12-07 Martin Baulig <[email protected]>
  459. * GenericTypeParameterBuilder.cs: Add support for custom attributes.
  460. (GenericTypeParameterBuilder.cattrs): New field.
  461. (GenericTypeParameterBuilder.SetCustomAttribute): Implement this.
  462. Mon Dec 5 15:13:26 CET 2005 Paolo Molaro <[email protected]>
  463. * ILGenerator.cs: fixed emitting doubles on ARM.
  464. 2005-12-02 Alp Toker <[email protected]>
  465. * GenericTypeParameterBuilder.cs:
  466. * TypeBuilder.cs: DeclaringMethod should return MethodBase, not MethodInfo
  467. 2005-11-19 Zoltan Varga <[email protected]>
  468. * AssemblyBuilder.cs: Add support for setting FileVersion unmanaged
  469. resource. Fixes #64427.
  470. 2005-11-18 Zoltan Varga <[email protected]>
  471. * ParameterBuilder.cs (SetCustomAttribute): Handle DefaultParameterValueAttribute as well.
  472. * CustomAttributeBuilder.cs: Add support for decoding more types of
  473. constructor parameters.
  474. 2005-11-11 Zoltan Varga <[email protected]>
  475. * TypeBuilder.cs (SetCustomAttribute): Handle ComImportAttribute as well.
  476. 2005-11-11 Marek Safar <[email protected]>
  477. * EnumBuilder.cs, GenericTypeParameterBuilder.cs: Reflect Type changes.
  478. 2005-11-06 Zoltan Varga <[email protected]>
  479. * Label.cs: Add == and != operators.
  480. 2005-10-30 Zoltan Varga <[email protected]>
  481. * FieldBuilder.cs: Add implementation of new UMarshal property.
  482. 2005-10-27 Zoltan Varga <[email protected]>
  483. * FieldBuilder.cs MethodBuilder.cs ConstructorBuilder.cs: Add support for
  484. returing custom attributes in created types. MS.NET supports this by
  485. returning non-builder objects from GetMethod/GetField etc., but we return
  486. builder objects in this case. Fixes #76521.
  487. 2005-10-24 Martin Baulig <[email protected]>
  488. * TypeBuilder.cs (TypeBuilder.IsGenericTypeDefinition): Override this.
  489. 2005-10-03 Atsushi Enomoto <[email protected]>
  490. * CustomAttributeBuilder.cs : internal attributes should be allowed.
  491. Fixed bug #75723.
  492. 2005-09-26 Marek Safar <[email protected]>
  493. * PropertyBuilder.cs: Throw NotSupportedException for unsupported
  494. methods.
  495. 2005-09-14 Martin Baulig <[email protected]>
  496. * LocalBuilder.cs
  497. (LocalBuilder.Mono_GetLocalIndex): New static internal method;
  498. same as the .NET 2.0 property `LocalIndex'.
  499. Mon Sep 5 18:08:09 CEST 2005 Paolo Molaro <[email protected]>
  500. * EventBuilder.cs, FieldBuilder.cs, MethodBuilder.cs, TypeBuilder.cs,
  501. PropertyBuilder.cs: take care of the SpecialName attribute (bug #75768).
  502. 2005-09-01 Raja R Harinath <[email protected]>
  503. * CustomAttributeBuilder.cs (get_umarshal): Don't cause a nullref
  504. exception when passed a custom marshaller type that belongs to the
  505. assembly being built. When user specifies MarshalType rather than
  506. MarshalTypeRef, don't attempt to resolve the type.
  507. 2005-08-31 Raja R Harinath <[email protected]>
  508. * CustomAttributeBuilder.cs (get_umarshal): Fix typo. The name of
  509. the field is "SizeParamIndex", not "SizeSizeParamIndex".
  510. * ParameterBuilder.cs (SetCustomAttribute) [MarshalAsAttribute]:
  511. Set ParameterAttributes.HasFieldMarshal flag.
  512. 2005-08-19 Zoltan Varga <[email protected]>
  513. * DynamicMethod.cs (CreateDelegate): Don't cache the delegate since it
  514. needs to be different for each target.
  515. * DynamicMethod.cs (CreateDynMethod): Call ilgen.label_fixup ().
  516. * DynamicMethod.cs (AddRef): Reserve every second ref slot for use by the
  517. runtime.
  518. 2005-08-05 Gert Driesen <[email protected]>
  519. * AssemblyBuilder.cs: Implement _AssemblyBuilder, CA fixes to
  520. correspond with MS.NET
  521. * ConstructorBuilder.cs: Implement _ConstructorBuilder, CA fixes to
  522. correspond with MS.NET
  523. * CustomAttributeBuilder.cs: Implement _CustomAttributeBuilder, CA
  524. fixes to correspond with MS.NET
  525. * EnumBuilder.cs: Implement _EnumBuilder, CA fixes to correspond with
  526. MS.NET
  527. * EventBuilder.cs: Implement _EventBuilder, CA fixes to correspond
  528. with MS.NET
  529. * FieldBuilder.cs: Implement _FieldBuilder, CA fixes to correspond
  530. with MS.NET
  531. * LocalBuilder.cs: Implement _LocalBuilder, CA fixes to correspond
  532. with MS.NET
  533. * MethodBuilder.cs: Implement _MethodBuilder, CA fixes to correspond
  534. with MS.NET
  535. * MethodRental.cs: CA fixes to correspond with MS.NET, implemented
  536. _MethodRental.
  537. * ModuleBuilder.cs: Implement _ModuleBuilder, CA fixes to correspond
  538. with MS.NET
  539. * ILGenerator.cs: Implement _ILGenerator, CA fixes to correspond
  540. with MS.NET
  541. * ParameterBuilder.cs Implement _ParameterBuilder, CA fixes to
  542. correspond with MS.NET
  543. * PropertyBuilder.cs: Implement _PropertyBuilder, CA fixes to
  544. correspond with MS.NET
  545. * SignatureHelper.cs: Implement _SignatureHelper, CA fixes to
  546. correspond with MS.NET
  547. * TypeBuilder.cs: Implement _TypeBuilder, CA fixes to correspond
  548. with MS.NET
  549. 2005-07-21 Jb Evain <[email protected]>
  550. * ILGenerator.cs: Implement filter blocks support.
  551. Fixes bug #75010.
  552. 2005-07-21 Zoltan Varga <[email protected]>
  553. * ILGenerator.cs (BeginFaultBlock): Call InternalEndClause () here
  554. too. Reported by Jeroen Frijters.
  555. 2005-07-11 Martin Baulig <[email protected]>
  556. * TypeBuilder.cs (TypeBuilder.CreateType): Call
  557. create_generic_class() here as well; fixes #75454.
  558. 2005-06-27 Marek Safar <[email protected]>
  559. * TypeBuilder.cs (check_name): Wrong exception argument order.
  560. 2005-06-14 Sebastien Pouliot <[email protected]>
  561. * AssemblyBuilder.cs: Override UnprotectedGetName to set the public
  562. key (if available).
  563. 2005-06-12 Gert Driesen <[email protected]>
  564. * MethodBuilder.cs: In CreateMethodBody, throw
  565. ArgumentOutOfRangeException instead of ArgumentException when count
  566. is not within range of array. Do not allow zero length method body
  567. to be emitted when using 2.0 profile. Fixes bug #75236.
  568. 2005-06-12 Gert Driesen <[email protected]>
  569. * FieldBuilder.cs: FieldBuilder.FieldHandle should throw
  570. NotSupportedException to match MS.NET (both 1.x and 2.x).
  571. Fixes regression introduced in r45750.
  572. * MethodBuilder.cs: MethodBuilder.MethodHandle should throw
  573. NotSupportedException to match MS.NET (both 1.x and 2.x).
  574. Fixes regression introduced in r45750.
  575. 2005-06-09 Kamil Skalski <[email protected]>
  576. * ConstructorBuilder.cs FieldBuilders.cs MethodBuilder.cs: Return
  577. RuntimeHandles when requested
  578. * TypeBuilder.cs: Add static Get{Method,Constructor,Field} methods
  579. from .NET 2.0 beta 2 API for obtaining instanciated *Info objects
  580. from non-instanciated counterparts
  581. 2005-06-08 Zoltan Varga <[email protected]>
  582. * ConstructorBuilder.cs FieldBuilder.cs MethodBuilder.cs PropertyBuilder.cs:
  583. Add 2.0 Module property.
  584. * *.cs: Updates for net 2.0 beta 2.
  585. 2005-06-07 Zoltan Varga <[email protected]>
  586. * *Token.cs: Add net 2.0 Equals methods.
  587. * *.cs: Updates for net 2.0 beta 2.
  588. * *.cs: Updates for net 2.0 beta 2.
  589. 2005-06-06 Zoltan Varga <[email protected]>
  590. * AssemblyBuilder.cs: Update after PortableExecutableKinds name change.
  591. 2005-06-03 Zoltan Varga <[email protected]>
  592. * MethodBuilder.cs CustomAttributeBuilder.cs: Rework DllImportAttribute
  593. decoding to improve compatibility with MS.NET.
  594. * MethodBuilder.cs (SetCustomAttribute): Set PinvokeImpl attribute if
  595. a DllImportAttribute is present.
  596. 2005-06-02 Zoltan Varga <[email protected]>
  597. * MethodBuilder.cs (SetCustomAttribute): Handle the case when the
  598. calling convention inside the DllImportAttribute is empty.
  599. 2005-06-01 Zoltan Varga <[email protected]>
  600. * MethodBuilder.cs (SetCustomAttribute): Handle DllImportAttribute
  601. as well.
  602. * CustomAttributeBuilder.cs: Add a decode_cattr helper method.
  603. 2005-05-27 Vladimir Vukicevic <[email protected]>
  604. * MethodBuilder.cs: Add extra_flags field to encode P/Invoke
  605. bits that can't be specified via MethodBuilder directly; fixes
  606. #75060.
  607. 2005-05-25 Zoltan Varga <[email protected]>
  608. * GenericTypeParameterBuilder.cs: Return this in UnderlyingSystemType.
  609. 2005-05-25 Lluis Sanchez Gual <[email protected]>
  610. * ModuleBuilder.cs: Implemented DefineDocument(). Generate debug
  611. info when saving the module.
  612. * ILGenerator.cs: Keep marked sequence points in a list.
  613. Added a GenerateDebugInfo method, which dumps the info collected
  614. during code generation.
  615. * TypeBuilder.cs:
  616. * ConstructorBuilder.cs:
  617. * MethodBuilder.cs: Added method for generating debug info.
  618. * LocalBuilder.cs: Added StartOffset and EndOffset properties.
  619. * CustomAttributeBuilder.cs: Use IsInstanceOfType instead of
  620. IsAssignableFrom when possible.
  621. 2005-05-20 Miguel de Icaza <[email protected]>
  622. * TypeBuilder.cs (UnderlyingSystemType): should always return this
  623. according to Zoltan. Old code left there, but should probably be removed.
  624. 2005-05-13 Zoltan Varga <[email protected]>
  625. * MethodBuilder.cs (fixup): Take into account CreateMethodBody as
  626. well.
  627. * ConstructorBuilder.cs MethodBuilder.cs: Check that elements of
  628. parameterTypes are not null. Fixes #74928.
  629. 2005-05-12 Zoltan Varga <[email protected]>
  630. * ConstructorBuilder.cs MethodBuilder.cs (fixup): Fix this.
  631. * ConstructorBuilder.cs MethodBuilder.cs (fixup): Throw an exception if a
  632. method body is empty. Fixes #74906.
  633. 2005-04-13 Marek Safar <[email protected]>
  634. * TypeBuilder.cs (SetCustomAttribute): StructLayoutAttribute.CharSet
  635. has to overwrite current settings.
  636. 2005-04-05 Sebastien Pouliot <[email protected]>
  637. * AssemblyBuilder.cs: Don't call GetCurrentDirectory if building an
  638. assembly that will never be serialized to disk (because CAS may not
  639. allow disk access but still allow generating a in-memory assembly).
  640. 2005-03-24 Miguel de Icaza <[email protected]>
  641. * DynamicMethod.cs (CreateDelegate): Add second overload based on
  642. the first one that allows for a `target' argument.
  643. 2005-03-24 Sebastien Pouliot <[email protected]>
  644. * MethodRental.cs: Added Demand for UnmanagedCode on SwapMethodBody
  645. method.
  646. 2005-03-16 Zoltan Varga <[email protected]>
  647. * MethodBuilder.cs: Add internal BestFitMapping and
  648. ThrowOnUnmappableChar properties used by mcs.
  649. 2005-03-09 Marek Safar <[email protected]>
  650. * ILGenerator.cs (DeclareLocal): Throw an exception for null argument.
  651. 2005-03-01 Zoltan Varga <[email protected]>
  652. * CustomAttributeBuilder.cs UnmanagedMarshal.cs: Allow sizeConst and
  653. sizeParamIndex to be -1, which means they are not given.
  654. * CustomAttributeBuilder.cs (get_umarshal): Only call the internal
  655. LPArray creation method if sizeConst of sizeParamIndex is given.
  656. * UnmanagedMarshal.cs: Add has_size field.
  657. 2005-02-28 Zoltan Varga <[email protected]>
  658. * CustomAttributeBuilder.cs (get_umarshal): Marshal sizeConst and
  659. sizeParamIndex fields as well.
  660. * UnmanagedMarshal.cs: Add param_num field and a new internal creation
  661. method which sets it.
  662. 2005-02-11 Zoltan Varga <[email protected]>
  663. * TypeBuilder.cs (IsAssignableTo): New helper method. Fixes #70838.
  664. * TypeBuilder.cs: Fix warning.
  665. 2005-01-21 Rafael Teixeira <[email protected]>
  666. * MethodBuilder.cs, TypeBuilder: missing 'params' in some method signature
  667. patch by Kamil Skalski <[email protected]>
  668. 2005-01-18 Geoff Norton <[email protected]>
  669. * ModuleBuilder.cs: Interfaces should have null BaseType.
  670. Fixes #71301.
  671. 2005-01-18 Miguel de Icaza <[email protected]>
  672. * TypeBuilder.cs: Add check for creation. Fix from Geoff.
  673. 2004-12-16 Zoltan Varga <[email protected]>
  674. * CustomAttributeBuilder.cs: Fix a warning.
  675. Wed Dec 15 11:34:13 CET 2004 Paolo Molaro <[email protected]>
  676. * ModuleBuilder.cs, EnumBuilder.cs: actually add the enumbuilder
  677. to the type list of the module (bug#70488).
  678. 2004-12-09 Martin Baulig <[email protected]>
  679. * GenericTypeParameterBuilder.cs
  680. (GenericTypeParameterBuilder.IsValueType): Fixed the FIXME.
  681. 2004-12-08 Zoltan Varga <[email protected]>
  682. * AssemblyBuilder.cs: Move corlib_internal field here from Assembly.
  683. * AssemblyBuilder.cs: Add corlib_internal to the ctor parameters.
  684. 2004-12-06 Ben Maurer <[email protected]>
  685. * TypeBuilder.cs (CreateType): Creating a type twice does not
  686. throw in msft.
  687. 2004-11-22 Zoltan Varga <[email protected]>
  688. * ModuleBuilder.cs: Check that all types inside the module are created.
  689. Fixes #69780.
  690. 2004-11-13 Ben Maurer <[email protected]>
  691. * ModuleBuilder.cs (Save): Use new WriteToFile icall.
  692. 2004-11-04 Zoltan Varga <[email protected]>
  693. * TypeBuilder.cs: Make some members work if the type is created since
  694. MS does this.
  695. 2004-10-30 Zoltan Varga <[email protected]>
  696. * CustomAttributeBuilder.cs: Check that arguments are not
  697. multi-dimensional arrays.
  698. 2004-10-12 Martin Baulig <[email protected]>
  699. * TypeBuilder.cs (TypeBuilder.setup_generic_class): Renamed to
  700. create_generic_class() and added a new setup_generic_class().
  701. (TypeBuilder.DefineGenericParameters): Call setup_generic_class()
  702. before creating the type parameters.
  703. 2004-10-11 Martin Baulig <[email protected]>
  704. * TypeBuilder.cs (TypeBuilder.generic_container): New private field.
  705. * MethodBuilder.cs (MethodBuilder.generic_container): New private field.
  706. * GenericTypeParameterBuilder.cs
  707. (GenericTypeParameterBuilder.GetGenericTypeParameterConstraints):
  708. Return `Type.EmptyTypes' instead of an array of `typeof (object)'.
  709. 2004-10-08 Zoltan Varga <[email protected]>
  710. * ModuleBuilder.cs: Create global type after creation.
  711. 2004-10-06 Zoltan Varga <[email protected]>
  712. * ModuleBuilder.cs (GetTypes): Fix length of returned array. Fixes
  713. #65931.
  714. 2004-10-04 Zoltan Varga <[email protected]>
  715. * ModuleBuilder.cs (DefineType): Check for duplicate type names. Fixes
  716. #65988.
  717. 2004-10-03 Zoltan Varga <[email protected]>
  718. * AssemblyBuilderAccess.cs: Remove [Flags].
  719. * PackingSize.cs: Add new 2.0 members. Remove [Flags].
  720. * AssemblyBuilder.cs: Add net 2.0 Save method.
  721. * LocalBuilder.cs: Make this inherit from LocalVariableInfo under
  722. net 2.0. Reorganize fields so the layout visible to the runtime is the
  723. same under 1.0 and 2.0. Add 2.0 properties.
  724. 2004-10-02 Gert Driesen <[email protected]>
  725. * TypeBuilder.cs: throw NotSupportedException when defining default
  726. ctor if parent type does not have default ctor
  727. 2004-09-30 Zoltan Varga <[email protected]>
  728. * TypeBuilder.cs: Make 'created' field visible to the runtime.
  729. 2004-09-28 Martin Baulig <[email protected]>
  730. * GenericTypeParameterBuilder.cs
  731. (GenericTypeParameterBuilder.ContainsGenericParameters): Return
  732. true here; System.Type.ContainsGenericParameters returns true when
  733. called on a type parameter, so let's do the same here.
  734. 2004-09-27 Zoltan Varga <[email protected]>
  735. * ConstructorBuilder.cs: Add 2.0 GetILGenerator(size) method.
  736. 2004-09-26 Zoltan Varga <[email protected]>
  737. * UnmanagedMarshal.cs: Add ToMarshalAsAttribute method.
  738. 2004-09-25 Zoltan Varga <[email protected]>
  739. * TypeBuilder.cs: Add IsCreated method.
  740. 2004-09-24 Zoltan Varga <[email protected]>
  741. * FieldBuilder.cs: Add dummy GetFieldOffset method.
  742. 2004-09-24 Martin Baulig <[email protected]>
  743. * GenericTypeParameterBuilder.cs
  744. (GenericTypeParameterBuilder.GetGenericParameterConstraints): Override.
  745. 2004-09-23 Zoltan Varga <[email protected]>
  746. * DynamicMethod.cs: Add MetadataToken property and tweak Module property.
  747. 2004-09-23 Martin Baulig <[email protected]>
  748. * GenericTypeParameterBuilder.cs
  749. (GenericTypeParameterBuilder.SetGenericParameterAttributes): New
  750. public method, replaces the old Mono_* hacks.
  751. 2004-09-20 Sebastien Pouliot <[email protected]>
  752. * AssemblyBuilder.cs: Fixed assembly-level permissions. I don't know
  753. why I splitted them all into individual entries when only a single set
  754. is accepted for each security action :(.
  755. 2004-09-17 Zoltan Varga <[email protected]>
  756. * CustomAttributeBuilder.cs: Applied patch from Marcus Urban
  757. ([email protected]). Add support for defining custom
  758. marshallers by calling SetCustomAttribute.
  759. 2004-09-16 Sebastien Pouliot <[email protected]>
  760. * AssemblyBuilder.cs: Keep a copy of the 3 permission set as an array
  761. of RefEmitPermissionSet. This will allow to reuse existing
  762. functionalities already present in the runtime.
  763. 2004-09-12 Marek Safar <[email protected]>
  764. * TypeBuilder.cs: Do not create default constructor for
  765. static classes.
  766. 2004-09-09 Zoltan Varga <[email protected]>
  767. * TypeBuilder.cs: Set the table_idx of the global type to 1.
  768. * ModuleBuilder.cs: Save the main module of the assembly even if it is
  769. transient.
  770. 2004-09-02 Ben Maurer <[email protected]>
  771. * LocalBuilder.cs: another s.ioe
  772. 2004-09-02 Ben Maurer <[email protected]>
  773. * ModuleBuilder.cs: dont throw an S.IOE for debugging stuff.
  774. makes sre apps work
  775. 2004-09-02 Martin Baulig <[email protected]>
  776. * MethodBuilder.cs (MethodBuilder.GetParameters): Throw a
  777. NotSupportedException() until the type has been fully created.
  778. 2004-09-01 Martin Baulig <[email protected]>
  779. * IMonoSymbolWriter.cs: Removed.
  780. * ModuleBuilder.cs, LocalBuilder.cs, ILGenerator.cs: Removed the
  781. old debugging code.
  782. 2004-08-13 Sebastien Pouliot <[email protected]>
  783. * AssemblyBuilder.cs: (Partly) Fix delay-signing issue (#56621) when
  784. MCS is used on the MS runtime (other part of the fix is for MCS).
  785. 2004-08-11 Marek Safar <[email protected]>
  786. * AssemblyBuilder.cs: Added AddPermissionRequests method
  787. used be mcs for SecurityPermissionAttribute handling.
  788. 2004-08-08 Zoltan Varga <[email protected]>
  789. * EnumBuilder.cs: Call setup_enum_type () in the constructor. Fixes
  790. #62237.
  791. 2004-08-07 Jackson Harper <[email protected]>
  792. * AssemblyBuilder.cs: "neutral" culture is invariant culture
  793. (String.Empty).
  794. 2004-08-07 Atsushi Enomoto <[email protected]>
  795. * OpCodes.cs : csc complains CS1034 Line cannot exceed 2046 characters.
  796. 2004-08-05 Duncan Mak <[email protected]>
  797. * OpCodes.cs (TakesSingleByteArgument): Add this back.
  798. 2004-08-05 Duncan Mak <[email protected]>
  799. This patch is based on an idea of Ben's to reduce the code size
  800. in MCS.
  801. * OpCodes.cs: Instead pushing the data onto the stack when each
  802. OpCode is initialized, pack the data into 2 ints and store only
  803. that. Furthermore, the names of each OpCode are stored in a
  804. separate string array in the new OpCodeNames class.
  805. * OpCodeNames.cs: The names of each OpCode are moved here to delay
  806. the initialization of the strings, as they are not used frequently.
  807. * OpCode.cs: Rewrote this to take in everything as 2 ints.
  808. 2004-07-29 Martin Baulig <[email protected]>
  809. * ILGenerator.cs (ILGenerator.Mono_GetCurrentOffset): New static
  810. internal method.
  811. * ModuleBuilder.cs (ModuleBuilder.Mono_GetGuid): New static
  812. internal method.
  813. 2004-07-24 Martin Baulig <[email protected]>
  814. * TypeBuilder.cs (TypeBuilder.UnspecifiedTypeSize): Set this to 0
  815. and initialize it to 0 everywhere.
  816. 2004-07-22 Martin Baulig <[email protected]>
  817. * ILGenerator.cs (ILGenerator.BeginFaultBlock): Implemented.
  818. 2004-07-07 Miguel de Icaza <[email protected]>
  819. * LocalBuilder.cs: Remove MakePinned, we are now going to use
  820. ILGenerator.DeclaraLocal that takes the `bool pinned' argument.
  821. * ILGenerator.cs (DeclareLocal): Add `pinned' version of the
  822. method on the 2.0 profile.
  823. 2004-07-02 Zoltan Varga <[email protected]>
  824. * EnumBuilder.cs (CreateType): Call a new icall to set the internal
  825. type field. Fixes #59833.
  826. Thu Jun 24 15:33:04 CEST 2004 Paolo Molaro <[email protected]>
  827. * ParameterBuilder.cs: implement SetConstant ().
  828. Wed Jun 23 15:40:48 CEST 2004 Paolo Molaro <[email protected]>
  829. * TypeBuilder.cs: handle properly the case when SetParent()
  830. is called (requires an updated runtime, too bug#60474).
  831. Wed Jun 23 14:20:47 CEST 2004 Paolo Molaro <[email protected]>
  832. * EnumBuilder.cs, TypeBuilder.cs: patch from Gert Driesen
  833. to implement EnumBuilder (slightly tweaked).
  834. 2004-06-15 Gert Driesen <[email protected]>
  835. * MethodRental.cs: fixed value of JitOnDemand
  836. 2004-06-09 Gert Driesen <[email protected]>
  837. * FieldBuilder.cs: fixed implementation to match MS.NET,
  838. meaning throw InvalidOperationException for methods that
  839. should not be allowed to execute when type has been
  840. created, and throw NotSupportedException for methods and
  841. properties that should not be called on FieldBuilder
  842. 2004-06-09 Gert Driesen <[email protected]>
  843. * MethodBuilder.cs: move check to see if type has already
  844. been created up, to match MS.NET behaviour. Fix GetHashCode
  845. (removed TODO)
  846. 2004-06-09 Gert Driesen <[email protected]>
  847. * MethodRental.cs: Added check for method size
  848. 2004-06-08 Martin Baulig <[email protected]>
  849. * ILGenerator.cs (TokenGenerator.GetToken): Added overloaded
  850. version which takes a MethodInfo and a Type[].
  851. (IlGenerator.EmitCall): When emitting a call to a varargs method,
  852. use the new GetToken() to pass the optional argument types to the
  853. runtime.
  854. * ModuleBuilder.cs (ModuleBuilder.getMethodToken): New interncall.
  855. 2004-05-29 Gert Driesen ([email protected])
  856. * AssemblyBuilder.cs: removed extra method, fixes public API
  857. compatibility with MS.NET
  858. * TypeBuilder.cs: removed extra method, fixes public API
  859. compatibility with MS.NET
  860. 2004-05-28 Jackson Harper <[email protected]>
  861. * CustomAttributeBuilder.cs: GetBlob now takes a ref to the
  862. assembly so it can encode type names properly.
  863. 2004-05-25 Sebastien Pouliot <[email protected]>
  864. * MethodBuilder.cs: Now use FastNewGuidArray to create new random
  865. Guids without using CryptoConfig. Speed up for MCS.
  866. 2004-05-14 Zoltan Varga <[email protected]>
  867. * MethodBuilder.cs: Add Equals and GetHashCode.
  868. * TypeBuilder.cs: Add IsSubclassOf.
  869. 2004-05-13 Zoltan Varga <[email protected]>
  870. * AssemblyBuilder.cs: Make extra methods internal. mcs was changed
  871. to handle this a long time ago.
  872. * TypeBuilder.cs: Add IsAssignableFrom and IsInstanceOfType.
  873. * TypeBuilder.cs MethodBuilder.cs ConstructorBuilder.cs: Implement
  874. ToString ().
  875. * TypeBuilder.cs (ToString): Make this consistent with MS.NET.
  876. 2004-05-11 Andreas Nahr <[email protected]>
  877. * OpCodes.cs: Refactored to avoid the static constructor
  878. 2004-05-10 Gert Driesen ([email protected])
  879. * AssemblyBuilder.cs: fixed warning
  880. * MethodRental.cs: added private default ctror to match MS.NET
  881. 2004-05-03 Lluis Sanches Gual <[email protected]>
  882. * ModuleBuilder.cs: Use name const to load the debugger assembly.
  883. 2004-05-01 Todd Berman <[email protected]>
  884. * ModuleBuilder.cs: Load the proper assembly for a gac-only install.
  885. 2004-04-29 Ben Maurer <[email protected]>
  886. * ILGenerator.cs, ModuleBuilder.cs: readonlyificate.
  887. 2004-04-28 Zoltan Varga <[email protected]>
  888. * MethodRental.cs: New file.
  889. 2004-04-28 Raja R Harinath <[email protected]>
  890. * TypeBuilder.cs (SetCustomAttribute): Handle the presence of the
  891. full type name in the data stream. This is emitted for value
  892. types by the Mono runtime.
  893. 2004-04-23 Atsushi Enomoto <[email protected]>
  894. * ConstructorBuilder.cs, DynamicMethod.cs, EnumBuilder.cs,
  895. GenericTypeParameterBuilder.cs, MethodBuilder.cs, ModuleBuilder.cs,
  896. OpCodes.cs, TypeBuilder.cs :
  897. The fix should be easier ;)
  898. 2004-04-23 Atsushi Enomoto <[email protected]>
  899. * ConstructorBuilder.cs, DynamicMethod.cs, EnumBuilder.cs,
  900. GenericTypeParameterBuilder.cs, MethodBuilder.cs, ModuleBuilder.cs,
  901. OpCodes.cs, TypeBuilder.cs :
  902. NET_2_0 related build fix.
  903. 2004-04-07 Martin Baulig <[email protected]>
  904. * GenericTypeParameterBuilder.cs
  905. (Mono_SetReferenceTypeConstraint): New public method.
  906. (Mono_SetValueTypeConstraint): New public method.
  907. 2004-04-07 Bernie Solomon <[email protected]>
  908. * MethodBuilder.cs, TypeBuilder.cs: always have
  909. slot for generic_params for consistent offsets.
  910. 2004-04-07 Martin Baulig <[email protected]>
  911. * GenericTypeParameterBuilder.cs
  912. (Mono_SetConstructorConstraint): New public method.
  913. 2004-04-07 Martin Baulig <[email protected]>
  914. * GenericTypeParameterBuilder.cs: New file.
  915. * TypeBuilder.cs (TypeBuilder.DefineGenericParameters): New public
  916. method. This is the new public API.
  917. (TypeBuilder.DefineGenericParameter): Removed.
  918. (TypeBuilder.SetGenericParameterConstraints): Removed.
  919. * MethodBuilder.cs (MethodBuilder.DefineGenericParameters): New public
  920. method. This is the new public API.
  921. (MethodBuilder.DefineGenericParameter): Removed.
  922. (MethodBuilder.SetGenericParameterConstraints): Removed.
  923. 2004-04-01 Martin Baulig <[email protected]>
  924. * OpCodes.cs (OpCodes.Constrained): New opcode.
  925. 2004-04-01 Ben Maurer <[email protected]>
  926. * LocalBuilder.cs: Fix pinned support.
  927. 2004-03-30 Martin Baulig <[email protected]>
  928. * TypeBuilder.cs (TypeBuilder.SetGenericParameterConstraints):
  929. Added `bool has_ctor_constraint' argument.
  930. * MethodBuilder.cs (MethodBuilder.SetGenericParameterConstraints):
  931. Added `bool has_ctor_constraint' argument.
  932. 2004-03-29 Ben Maurer <[email protected]>
  933. * LocalBuilder.cs: pinned support.
  934. 2004-03-29 Martin Baulig <[email protected]>
  935. * TypeBuilder.cs (TypeBuilder.ContainsGenericParameters): Implemented.
  936. 2004-03-25 Sebastien Pouliot <[email protected]>
  937. * AssemblyBuilder.cs: Changed strongname support to match MS
  938. implementation (i.e. attributes are used by the compiler - not by
  939. AssemblyBuilder).
  940. 2004-03-24 Zoltan Varga <[email protected]>
  941. * TypeBuilder.cs (GetMethod): Implement.
  942. * CustomAttributeBuilder.cs: Reenable argument checking with MS.NET
  943. compatibility tweaks.
  944. 2004-03-23 Martin Baulig <[email protected]>
  945. * TypeBuilder.cs (TypeBuilder.GetEvents_internal): New internal
  946. method; this is basically GetEvents(), but see the FIXME in that method.
  947. 2004-03-23 Zoltan Varga <[email protected]>
  948. * CustomAttributeBuilder.cs: Disable argument checking since it causes
  949. regressions.
  950. 2004-03-22 Zoltan Varga <[email protected]>
  951. * CustomAttributeBuilder.cs (Initialize): Add more argument checking.
  952. Fixes #55793.
  953. 2004-03-09 Jackson Harper <[email protected]>
  954. * CustomAttributeBuilder.cs: Add some argument checking. Handle
  955. default arguments properly.
  956. 2004-03-09 Sebastien Pouliot <[email protected]>
  957. * AssemblyBuilder.cs: The strong name key file existance will now be
  958. checked in the current compilation directory AND in the assembly
  959. output directory. Fix bugzilla entry #55320.
  960. 2004-02-23 Martin Baulig <[email protected]>
  961. * MethodBuilder.cs (MethodBuilder.SetGenericMethodSignature):
  962. Added MethodAttributes and CallingConventions arguments.
  963. 2004-02-02 Zoltan Varga <[email protected]>
  964. * TypeBuilder.cs: Implement DefineUninitializedData and
  965. AddDeclarativeSecurity.
  966. 2004-01-27 Zoltan Varga <[email protected]>
  967. * AssemblyBuilder.cs (SetCustomAttribute): Move the reading of the
  968. keyfile to the Save () method.
  969. 2004-01-26 Sebastien Pouliot <[email protected]>
  970. * AssemblyBuilder.cs: Save will now strongname the assembly is (a) a
  971. StrongName is present and (b) the signature isn't delayed.
  972. 2004-01-24 David Sheldon <[email protected]>
  973. * AssemblyBuilder.cs: Added override for GetFiles() that throws
  974. NotSupportedException.
  975. 2004-01-15 Zoltan Varga <[email protected]>
  976. * AssemblyBuilder.cs (Save): Handle entry points with an int return
  977. type as well.
  978. * AssemblyBuilder.cs (Save): If the entry point is in a module, create
  979. a new entry point which calls the real one, since the entry point must
  980. be in the module which contains the manifest.
  981. * ModuleBuilder.cs (Save): Create the global type automatically if not
  982. already done.
  983. 2004-01-13 Zoltan Varga <[email protected]>
  984. * AssemblyBuilder.cs (DefineVersionInfoResource): Set more
  985. version info properties.
  986. 2004-01-08 Zoltan Varga <[email protected]>
  987. * CustomAttributeBuilder.cs (string_arg): New helper method.
  988. * AssemblyBuilder.cs (DefineVersionInfoResource): Implement.
  989. * AssemblyBuilder.cs (SetCustomAttribute): Use the new helper method.
  990. * AssemblyBuilder.cs (DefineUnmanagedResource): Implement.
  991. * AssemblyBuilder.cs (DefineIconResource): New internal method to
  992. support mcs.
  993. * TypeBuilder.cs (IsDefined): Implement this, since some corlib classes
  994. make calls to IsDefined.
  995. 2004-01-06 Zoltan Varga <[email protected]>
  996. * AssemblyBuilder.cs: Fix warning.
  997. 2004-01-05 Zoltan Varga <[email protected]>
  998. * AssemblyBuilder.cs (DefineVersionInfoResource): Implement.
  999. 2003-12-29 Ben Maurer <[email protected]>
  1000. * MethodBuilder.cs, ConstructorBuilder.cs: Override GetParameterCount.
  1001. * ILGenerator.cs: Use GetParameterCount.
  1002. 2003-12-20 Zoltan Varga <[email protected]>
  1003. * AssemblyBuilder.cs (AddModule): New internal method to support
  1004. /addmodule in mcs.
  1005. 2003-12-19 Zoltan Varga <[email protected]>
  1006. * AssemblyBuilder.cs: New internal property to support /target:module in
  1007. mcs.
  1008. 2003-12-18 Zoltan Varga <[email protected]>
  1009. * ILGenerator.cs: Applied patch from Ben Maurer
  1010. ([email protected]). Allocate arrays holding label data
  1011. lazily and reduce their size.
  1012. 2003-12-17 Zoltan Varga <[email protected]>
  1013. * AssemblyBuilder.cs (MonoResource): New 'offset' field used by the
  1014. runtime.
  1015. * ModuleBuilder: Implement DefineResource.
  1016. 2003-12-15 Zoltan Varga <[email protected]>
  1017. * AssemblyBuilder.cs (RefEmitPermissionSet): New helper structure.
  1018. * MethodBuilder.cs (AddDeclarativeSecurity): Implement.
  1019. * ConstructorBuilder.cs (AddDeclarativeSecurity): Ditto.
  1020. 2003-12-10 Zoltan Varga <[email protected]>
  1021. * MethodBuilder.cs: Add stubs for missing methods.
  1022. * TypeBuilder.cs (GetEvents): Add new override.
  1023. * ModuleBuilder.cs: Implement some missing methods, add stubs for others.
  1024. * AssemblyBuilder.cs (GetFiles): Get rid of unneccessary override.
  1025. * AssemblyBuilder.cs (ImageRuntimeVersion): Add override to keep
  1026. signature compatibility with MS.NET.
  1027. * TypeBuilder.cs (MemberType): Get rid of unneccessary override.
  1028. 2003-12-08 Martin Baulig <[email protected]>
  1029. * TypeBuilder.cs (TypeBuilder.MonoGenericParam): Removed; use the
  1030. new `MonoGenericParam' class instead (in S.R/MonoGenericInst.cs).
  1031. 2003-12-08 Zoltan Varga <[email protected]>
  1032. * ModuleBuilder.cs: Double the size of the types array during insertion
  1033. do avoid excessive memory allocation and copying. Track the number of
  1034. types in a separate variable.
  1035. * TypeBuilder.cs: Same for the 'fields' and 'methods' arrays.
  1036. 2003-12-03 Zoltan Varga <[email protected]>
  1037. * ModuleBuilder.cs (DefinePInvokeMethod): Implement.
  1038. * ModuleBuilder.cs (DefineGlobalMethod): Implement the Net 1.2 variants.
  1039. 2003-11-28 Dick Porter <[email protected]>
  1040. * ModuleBuilder.cs: Do string compares with the Invariant culture.
  1041. 2003-11-28 Zoltan Varga <[email protected]>
  1042. * AssemblyBuilder.cs (SetCustomAttribute): Implement automatic
  1043. generation of build and revision numbers. Fixes #46492.
  1044. 2003-11-25 Zoltan Varga <[email protected]>
  1045. * TypeBuilder.cs: Implement GetField.
  1046. 2003-11-24 Zoltan Varga <[email protected]>
  1047. * DynamicMethod.cs: New class.
  1048. * ILGenerator.cs MethodBuilder.cs ConstructorBuilder.cs: Retrieve
  1049. tokens from a token generator object instead of from the ModuleBuilder,
  1050. to support the implementation of DynamicMethod. Also get rid of the
  1051. unused 'mbuilder' field.
  1052. * ModuleBuilder.cs: Create a token generator object which can be
  1053. passed to ILGenerator.
  1054. * LocalBuilder.cs ILGenerator.cs: Get rid of 'module' field, obtain
  1055. needed objects from the ilgen object instead.
  1056. 2003-11-21 Zoltan Varga <[email protected]>
  1057. * TypeBuilder.cs FieldBuilder.cs MethodBuilder.cs ConstructorBuilder.cs: Add support for custom modifiers from NET 1.2.
  1058. * ILGenerator.cs: Remove unused abuilder member.
  1059. 2003-11-19 Andreas Nahr <[email protected]>
  1060. * OpCodes.cs: Remove Boxval for v1.1+
  1061. 2003-11-19 Andreas Nahr <[email protected]>
  1062. * OpCodes.cs: Small rearrange to fix csc compiler warning about obsolete member used
  1063. 2003-11-12 Zoltan Varga <[email protected]>
  1064. * AssemblyBuilderAccess.cs PackingSize: Add [Flags].
  1065. * AssemblyBuilder.cs (DefineDynamicModule): Make internal method
  1066. private.
  1067. * AssemblyBuilder.cs (Save): Write out the main module at the end.
  1068. 2003-11-06 Zoltan Varga <[email protected]>
  1069. * ConstructorBuilder.cs (.ctor): Automatically add RTSpecialName flag
  1070. as MS does.
  1071. 2003-11-06 Martin Baulig <[email protected]>
  1072. * ModuleBuilder.cs (ModuleBuilder.Save): Call `build_metadata'
  1073. before writing the symbol file.
  1074. 2003-11-06 Zoltan Varga <[email protected]>
  1075. * AssemblyBuilder.cs (.ctor): Initialize the 'dir' field to something
  1076. sensible.
  1077. * AssemblyBuilder.cs (Save): Set 'created' flag.
  1078. * AssemblyBuilder.cs (get_next_table_index): Moved to ModuleBuilder,
  1079. since table indexes are per-module.
  1080. 2003-11-03 Zoltan Varga <[email protected]>
  1081. * TypeBuilder.cs (DefineDefaultConstructor): Pass an array instead of
  1082. null to DefineConstructor, to avoid NullReferenceExceptions in the
  1083. binder code.
  1084. * AssemblyBuilder.cs ModuleBuilder.cs ILGenerator.cs: Move getUSIndex
  1085. and getToken methods, and the associated icalls to ModuleBuilder,
  1086. since tokens are per-module.
  1087. * AssemblyBuilder.cs ModuleBuilder.cs: Partially revert the previous
  1088. patch, since having the 'is_main' field is useful in the unmanaged
  1089. code.
  1090. * AssemblyBuilder.cs ModuleBuilder.cs: Move the metadata creation and
  1091. file creation logic to ModuleBuilder:Save (), since this needs to be
  1092. done for every module. Also move the corresponding icalls to
  1093. ModuleBuilder.
  1094. 2003-11-03 Zoltan Varga <[email protected]>
  1095. * AssemblyBuilder.cs ModuleBuilder.cs: First steps toward a fix for
  1096. #48700 (proper module support in Ref.Emit). Remove is_main field from
  1097. ModuleBuilder and add a mainModule field to AssemblyBuilder instead.
  1098. This is neccesary, since the main module is determined during the
  1099. Save () call: the module with the same file name as the assembly is
  1100. the main module. Also create a default main module, if one is not
  1101. existing.
  1102. 2003-11-03 Martin Baulig <[email protected]>
  1103. * OpCodes.cs: Added Ldelem_Any, Stelem_Any and Unbox_Any from .NET 1.2.
  1104. 2003-10-18 Sebastien Pouliot <[email protected]>
  1105. * AssemblyBuilder.cs (SetCustomAttribute): Changed PK extraction to
  1106. use Mono.Security.StrongName (#49785).
  1107. 2003-10-18 Zoltan Varga <[email protected]>
  1108. * AssemblyBuilder.cs (SetCustomAttribute): Extract the public key from
  1109. the keyfile.
  1110. 2003-10-17 Zoltan Varga <[email protected]>
  1111. * AssemblyBuilder.cs (SetCustomAttribute): Ignore empty keyfile name.
  1112. * AssemblyBuilder.cs: Moved loading of the public key file into
  1113. managed code from reflection.c.
  1114. * AssemblyBuilder.cs: Set cultureInfo and version from the AssemblyName
  1115. passed to the constructor.
  1116. 2003-10-13 Martin Baulig <[email protected]>
  1117. * MethodBuilder.cs (MethodBuilder): Added
  1118. `TypeBuilder.MonoGenericParam[] generic_params' field.
  1119. (DefineGenericParameter, SetGenericMethodSignature): New public methods.
  1120. * TypeBuilder.cs (DefineGenericMethod): New public method.
  1121. 2003-10-13 Zoltan Varga <[email protected]>
  1122. * OpCode.cs: Fix Value property. Fixes #49328.
  1123. 2003-10-03 Zoltan Varga <[email protected]>
  1124. * TypeBuilder.cs (CreateType): Fire TypeResolve events for unfinished
  1125. nested value types. Fixes #47022.
  1126. 2003-09-29 Zoltan Varga <[email protected]>
  1127. * TypeBuilder.cs: Really fix #48695.
  1128. Sat Sep 27 16:17:08 CEST 2003 Paolo Molaro <[email protected]>
  1129. * ILGenerator.cs: instance fields are loaded from this.
  1130. 2003-09-26 Zoltan Varga <[email protected]>
  1131. * TypeBuilder.cs (DefineDefaultConstructor): Make this work on types
  1132. without a parent. Fixes #48695.
  1133. 2003-09-17 Martin Baulig <[email protected]>
  1134. * TypeBuilder.cs (TypeBuilder.CreateType): Don't append the type
  1135. parameters to the type name; ie. use `Stack' instead of `Stack<T>'.
  1136. 2003-09-06 Martin Baulig <[email protected]>
  1137. * TypeBuilder.cs (TypeBuilder.IsUnboundGenericParameter): Implemented.
  1138. 2003-09-04 Martin Baulig <[email protected]>
  1139. * TypeBuilder.cs (TypeBuilder.MonoGenericParam): Make this nested
  1140. class internal, not protected.
  1141. 2003-08-29 Martin Baulig <[email protected]>
  1142. * TypeBuilder.cs (TypeBuilder.DefineGenericParameter): New public
  1143. method. We can now create generic types.
  1144. (TypeBuilder.GetGenericTypeDefinition): Override this; call the
  1145. `setup_internal_class' interncall before calling our base impl.
  1146. Sat Aug 2 13:04:55 BST 2003 Malte Hildingson <[email protected]>
  1147. * ILGenerator.cs: Emission of doubles now utilise the Double.AssertEndianity
  1148. icall to assert double word endianity on ARM.
  1149. 2003-07-25 Duncan Mak <[email protected]>
  1150. * OpCodes.cs (Boxval): Marked with ObsoleteAttribute.
  1151. 2003-07-24 Miguel de Icaza <[email protected]>
  1152. * TypeBuilder.cs: Added generics stubs.
  1153. * EnumBuilder.cs: Added generics stubs, changed bracing style for
  1154. routines.
  1155. 2003-07-23 Duncan Mak <[email protected]>
  1156. * SignatureHelper.cs: This class does not have the
  1157. SerializableAttribute.
  1158. 2003-07-11 Zoltan Varga <[email protected]>
  1159. * AssemblyBuilder.cs: Added argument checking to all methods according
  1160. to the MSDN docs. Also marked DefineUnmanagedResource and its friends
  1161. as not implemented.
  1162. * ModuleBuilder.cs: Added new property FileName used by AssemblyBuilder.
  1163. * ModuleBuilder.cs AssemblyBuilder.cs: Implemented IsTransient ().
  1164. 2003-06-15 Zoltan Varga <[email protected]>
  1165. * EventBuilder.cs: Add argument checking to methods.
  1166. Thu Jun 5 20:18:55 CEST 2003 Paolo Molaro <[email protected]>
  1167. * AssemblyBuilder.cs: implemented DefineResource ().
  1168. Thu Jun 5 12:36:34 CEST 2003 Paolo Molaro <[email protected]>
  1169. * OpCode.cs: implemented Equals/GetHashCode.
  1170. Tue Jun 3 11:14:51 CEST 2003 Paolo Molaro <[email protected]>
  1171. * ILGenerator.cs, OpCode.cs: optimize opcode space usage.
  1172. Tue Jun 3 11:13:22 CEST 2003 Paolo Molaro <[email protected]>
  1173. * UnmanagedMarshal.cs: add ability to define custom attributes (the MS
  1174. runtime doesn't support this).
  1175. 2003-05-30 Zoltan Varga <[email protected]>
  1176. * TypeBuilder.cs: Implement DefineTypeInitializer.
  1177. 2003-05-21 Zoltan Varga <[email protected]>
  1178. * ModuleBuilder.cs:
  1179. - Implement DefineInitializedData in terms of DefineUninitializedData
  1180. - Name the types of global fields $ArrayType$<len> to cut back on the
  1181. number of types created
  1182. - Add argument checking
  1183. 2003-05-19 Zoltan Varga <[email protected]>
  1184. * AssemblyBuilder.cs: Implement GetDynamicModule. "Implement" various
  1185. methods not supported under MS.NET.
  1186. 2003-05-18 Martin Baulig <[email protected]>
  1187. * AssemblyBuilder.cs (corlib_void_type): New internal field.
  1188. (SetCorlibTypeBuilders): Added overloaded version which takes 4
  1189. arguments to set the `corlib_void_type'.
  1190. * TypeBuilder.cs: Use `pmodule.assemblyb.corlib_void_type' instead
  1191. of `typeof (void)' to make this work when compiling corlib.
  1192. Thu May 15 19:16:54 CEST 2003 Paolo Molaro <[email protected]>
  1193. * MethodBuilder.cs: off by one in CreateMethodBody().
  1194. * TypeBuilder.cs: if the return type for a method is null, use void.
  1195. 2003-04-28 Miguel de Icaza <[email protected]>
  1196. * MethodBuilder.cs: Mono allows the parameter position to be zero
  1197. to indicate the "returns:" attribute.
  1198. 2003-04-20 Miguel de Icaza <[email protected]>
  1199. * ILGenerator.cs (EmitCall): Implement.
  1200. Flag a few unimplemented methods with MonoTODO, make coding style
  1201. for method definitions Mono consistent.
  1202. 2003-04-17 Zoltan Varga <[email protected]>
  1203. * ILGenerator.cs: Implement EmitWriteLine methods.
  1204. * TypeBuilder.cs (CreateType): Avoid creating a default constructor
  1205. for the global type.
  1206. 2003-04-15 Miguel de Icaza <[email protected]>
  1207. * TypeBuilder.cs (DefineDefaultConstructor): Make it generate code
  1208. by default for a default constructor. This is what the MS runtime
  1209. does. The PythonNet code expected this.
  1210. (TypeBuilder.GetConstructorImpl): Implement this.
  1211. (TypeBuilder.CreateType): If there are no constructors defined, we
  1212. create one.
  1213. Tue Apr 15 13:50:41 CEST 2003 Paolo Molaro <[email protected]>
  1214. * ModuleBuilder.cs, TypeBuilder.cs: set nesting_type before
  1215. calling setup_internal_class ().
  1216. 2003-03-27 Zoltan Varga <[email protected]>
  1217. * AssemblyBuilder.cs: Added 'access' member, which is needed by the
  1218. runtime.
  1219. 2003-03-26 Zoltan Varga <[email protected]>
  1220. * ILGenerator.cs: Implemented ThrowException.
  1221. 2003-03-10 Zoltan Varga <[email protected]>
  1222. * ILGenerator.cs: Propagate maxstack info along branches.
  1223. 2003-03-06 Zoltan Varga <[email protected]>
  1224. * ILGenerator.cs (Emit): Do not pop the arguments off the stack for
  1225. ldftn etc. Fixes bug #39196.
  1226. 2003-02-28 Zoltan Varga <[email protected]>
  1227. * ILGenerator.cs (Emit): Add fixup for already created methods and
  1228. fields. Do not add fixup for types since their table index do not
  1229. change any more.
  1230. 2003-02-26 Zoltan Varga <[email protected]>
  1231. * TypeBuilder.cs (DefineInitializedData): Removed unnecessary assignments.
  1232. * ModuleBuilder.cs (DefineInitializedData): Do not call
  1233. TypeBuilder::DefineInitializedData since that would mean defining a
  1234. nested type of the global type, which is wrong. Instead define a
  1235. new public type as MS does.
  1236. * ModuleBuilder.cs (DefineUninitializedData): Ditto.
  1237. Thu Feb 13 18:40:52 CET 2003 Paolo Molaro <[email protected]>
  1238. * ModuleBuilder.cs: add the basic initialization call.
  1239. 2003-02-13 Zoltan Varga <[email protected]>
  1240. * AssemblyBuilder.cs: Added basic error checking to some methods
  1241. according to the MSDN docs.
  1242. 2003-02-10 Zoltan Varga <[email protected]>
  1243. * ConstructorBuilder.cs:
  1244. - Added basic error checking to all methods according to the MSDN docs.
  1245. - modified a lot of methods to throw NotSupportedException, to comply
  1246. with MS.NET.
  1247. 2003-02-09 Zoltan Varga <[email protected]>
  1248. * TypeBuilder.cs:
  1249. - Added basic error checking to all methods according to the MSDN docs.
  1250. - fixed AssemblyQualifiedName.
  1251. - implemented 'Size'.
  1252. - modified a lot of methods to throw NotSupportedException, to comply
  1253. with MS.NET.
  1254. - changes tested by running a full bootstrap.
  1255. 2003-02-09 Martin Baulig <[email protected]>
  1256. * AssemblyBuilder.cs (AssemblyBuilder.methods): Removed. This was
  1257. a hack for the symbol writer which is no longer needed.
  1258. 2003-02-09 Martin Baulig <[email protected]>
  1259. * IMonoSymbolWriter.cs (DefineNamespace, OpenMethod): New methods.
  1260. 2003-02-09 Martin Baulig <[email protected]>
  1261. * IMonoSymbolWriter.cs (MarkSequencePoint): New method which takes
  1262. just the required arguments as scalars, not arrays.
  1263. * ILGenerator.cs (ILGenerator.MarkSequencePoint): Use that new
  1264. interface method; unnecessarily creating such a large number of
  1265. arrays is both slow and too memory consuming.
  1266. 2003-02-08 Zoltan Varga <[email protected]>
  1267. * MethodBuilder.cs: Added error checking to methods so they conform to
  1268. MSDN docs. Implemented 'GetModule' and 'CallingConvention' members.
  1269. Some other tweaks to improve compatibility with MS .NET.
  1270. * TypeBuilder.cs: Added 'is_created' property which will be used for
  1271. checking 'type is already created' errors.
  1272. 2003-02-07 Martin Baulig <[email protected]>
  1273. * ModuleBuilder.cs (.ctor): Added `bool IsMainModule' argument.
  1274. (Save): New internal method; creates the module's symbol file if
  1275. we're compiling with debugging information.
  1276. * AssemblyBuilder.cs (EmbedResource): Added internal overloaded
  1277. version of this method which takes a `byte[] blob' instead of a file.
  1278. (DefineDynamicMethod): If this is the first module, tell the
  1279. ModuleBuilder that this is the main module.
  1280. (Save): Call a new interncall `build_metadata' to create the final
  1281. metadata and save all the symbol files before creating the actual
  1282. output.
  1283. * IMonoSymbolWriter.cs: New public class; it is in the namespace
  1284. Mono.CSharp.Debugger. The Mono symbol writer implements this interface.
  1285. 2003-02-04 Zoltan Varga <[email protected]>
  1286. * AssemblyBuilder.cs: added GetToken (SignatureHelper).
  1287. * ILGenerator.cs: implemented EmitCalli() methods
  1288. * SignatureHelper.cs: implemented GetMethoSigHelper() methods.
  1289. 2003-01-30 Gonzalo Paniagua Javier <[email protected]>
  1290. * MethodBuilder.cs: GetBaseDefinition () returns this.
  1291. Mon Jan 27 17:07:38 CET 2003 Paolo Molaro <[email protected]>
  1292. * CustomAttributeBuilder.cs, FieldBuilder.cs: applied
  1293. (reformatted) patch from "Jerome Laban" <[email protected]>
  1294. to fix ByValStr and ByValArray encodings.
  1295. 2003-01-27 Gonzalo Paniagua Javier <[email protected]>
  1296. * AssemblyBuilder.cs: fixed compilation with csc.
  1297. 2003-01-26 Miguel de Icaza <[email protected]>
  1298. * AssemblyBuilder.cs (Save): Set the executable bit at the end.
  1299. This uses a non-official enumeration value to call SetFileAttributes.
  1300. 2003-01-17 Zoltan Varga <[email protected]>
  1301. * MethodBuilder.cs ConstructorBuilder.cs: modify GetParameters() so it
  1302. returns information even when the app did not use DefineParameter() to
  1303. define the parameters.
  1304. * ConstructorBuilder.cs (ctor): allways define SpecialName attribute
  1305. for constructors as done by MS.
  1306. Mon Jan 13 11:37:14 CET 2003 Paolo Molaro <[email protected]>
  1307. * TypeBuilder.cs, ModuleBuilder.cs: better type name cache.
  1308. 2003-01-10 Zoltan Varga <[email protected]>
  1309. * ILGenerator.cs: Implemented EmitWriteLine(string).
  1310. * TypeBuilder.cs (DefineInitializedData): Call DefineNestedType()
  1311. instead of DefineType() so the auxiliary types do not pollute the
  1312. global namespace. This is consistent with the behaviour of MS .NET.
  1313. Fri Jan 10 16:03:30 CET 2003 Paolo Molaro <[email protected]>
  1314. * ILGenerator.cs, MethodBuilder.cs, TypeBuilder.cs,
  1315. ConstructorBuilder.cs: some tweaks to reduce memory usage.
  1316. Thu Jan 2 18:46:09 CET 2003 Paolo Molaro <[email protected]>
  1317. * ModuleBuilder.cs, TypeBuilder.cs: support global fields and methods.
  1318. Thu Dec 19 00:06:57 CET 2002 Paolo Molaro <[email protected]>
  1319. * AssemblyBuilder.cs: remove duplicated user string entries.
  1320. 2002-12-11 Zoltan Varga <[email protected]>
  1321. * FieldBuilder.cs: added 'handle' field which is needed by some new
  1322. code in reflection.c.
  1323. 2002-12-04 Gonzalo Paniagua Javier <[email protected]>
  1324. * TypeBuilder.cs: implemented GetInterfaceMap () when the Type has been
  1325. created.
  1326. Fri Nov 8 14:53:03 CET 2002 Paolo Molaro <[email protected]>
  1327. * ILGenerator.cs: account for the exception object being passed to the
  1328. catch handler to calc max_stack.
  1329. 2002-09-21 Martin Baulig <[email protected]>
  1330. * ModuleBuilder.cs (ModuleBuilder.symbol_writer): Make this
  1331. field internal, not private.
  1332. (ModuleBuilder.SymWriter_DefineLocalVariable): Removed.
  1333. * LocalBuilder.cs (LocalBuilder.SetLocalSymInfo): Use the
  1334. ISymbolWriter's DefineLocalVariable() method instead of the
  1335. IMonoSymbolWriter hack.
  1336. Mon Sep 16 19:02:58 CEST 2002 Paolo Molaro <[email protected]>
  1337. * AssemblyBuilder.c: special case some custom attributes.
  1338. 2002-09-12 Dick Porter <[email protected]>
  1339. * TypeBuilder.cs: Say _which_ Type has already been created
  1340. 2002-09-11 Miguel de Icaza <[email protected]>
  1341. * ModuleBuilder.cs (GetTypes): Implement.
  1342. Tue Sep 10 12:12:51 CEST 2002 Paolo Molaro <[email protected]>
  1343. * ConstructorBuilder.cs: added a field to hold the handle.
  1344. Mon Sep 9 17:31:12 CEST 2002 Paolo Molaro <[email protected]>
  1345. * TypeBuilder.cs: prepare for the real CreateType implementation.
  1346. Tue Aug 27 16:57:18 CEST 2002 Paolo Molaro <[email protected]>
  1347. * TypeBuilder.cs: remove duplicate code and fix
  1348. named field reading in custom attr.
  1349. 2002-08-24 Gonzalo Paniagua Javier <[email protected]>
  1350. * TypeBuilder.cs: UnspecifiedTypeSize is 0.
  1351. Wed Aug 14 17:38:41 CEST 2002 Paolo Molaro <[email protected]>
  1352. * TypeBuilder.cs: ReflectedType and CreateType fixes.
  1353. Thu Aug 8 10:25:51 CEST 2002 Paolo Molaro <[email protected]>
  1354. * AssemblyBuilder.cs: added API to embed managed resources.
  1355. 2002-08-03 Martin Baulig <[email protected]>
  1356. * TypeBuilder.cs (TypeBuilder.DeclaringType): Implemented.
  1357. Thu Jul 25 13:57:46 CEST 2002 Paolo Molaro <[email protected]>
  1358. * AssemblyBuilder.cs: support linking external resources.
  1359. 2002-07-19 Martin Baulig <[email protected]>
  1360. * ILGenerator.cs (Emit (OpCode, LocalBuilder)): Throw an exception
  1361. when trying to emit a local that was defined in a different ILGenerator.
  1362. * LocalBuilder.cs (LocalBuilder): Added `ILGenetator' argument to
  1363. the constructor.
  1364. Tue Jul 16 19:32:08 CEST 2002 Paolo Molaro <[email protected]>
  1365. * ILGenerator.cs: stack size check fix.
  1366. Sat Jul 13 17:30:51 CEST 2002 Paolo Molaro <[email protected]>
  1367. * AssemblyBuilder.cs: add also the enum_type for compiling corlib.
  1368. * TypeBuilder.cs: complete IsValueType.
  1369. Sat Jul 13 15:08:12 CEST 2002 Paolo Molaro <[email protected]>
  1370. * TypeBuilder.cs: better IsValueType.
  1371. 2002-07-13 Gonzalo Paniagua Javier <[email protected]>
  1372. * CustomAttributeBuilder.cs: removed compile warning.
  1373. Fri Jul 12 11:34:58 CEST 2002 Paolo Molaro <[email protected]>
  1374. * ILGenerator.cs: fixup typebuilder tokens as well.
  1375. Tue Jul 9 19:03:03 CEST 2002 Paolo Molaro <[email protected]>
  1376. * TypeBuilder.cs: special case SerializarionAttribute.
  1377. Tweaks to get correct code in corlib.
  1378. 2002-07-06 Miguel de Icaza <[email protected]>
  1379. * ILGenerator.cs (ILGenerator.Emit): For doubles and floats, swap
  1380. the bytes on big endian systems.
  1381. 2002-07-03 Martin Baulig <[email protected]>
  1382. * AssemblyBuilder.cs (corlib_object_type, corlib_value_type): Moved
  1383. these fields up after the last entry in MonoReflectionAssemblyBuilder
  1384. in reflection.h.
  1385. * TypeBuilder.cs (IsValueTypeImpl): Use the AssemblyBuilder's
  1386. `corlib_value_type' instead of `typeof (System.ValueType)'.
  1387. (DefineNestedType): Use the AssemblyBuilder's `corlib_object_type'
  1388. instead of `typeof (object)'.
  1389. 2002-07-02 Martin Baulig <[email protected]>
  1390. * AssemblyBuilder.cs (corlib_object_type, corlib_value_type): New
  1391. internal fields. When compiling corlib, they point to the newly
  1392. created System.Object and System.ValueType types.
  1393. (SetCorlibTypeBuilders): New public function. This will be
  1394. dynamically called from MCS when compiling corlib.
  1395. * TypeBuilder.cs (DefineInitializedData): Use the AssemblyBuilder's
  1396. `corlib_value_type' as parent type instead of `typeof (System.ValueType)'
  1397. to make it work when compiling corlib.
  1398. * ModuleBuilder.cs (assemblyb): Made this field internal, not private.
  1399. Tue Jul 2 18:34:49 CEST 2002 Paolo Molaro <[email protected]>
  1400. * TypeBuilder.cs: implemented AssemblyQualifiedName.
  1401. * MethodBuilder.cs, ConstructorBuilder.cs: special case custom attr.
  1402. Mon Jul 1 16:17:29 CEST 2002 Paolo Molaro <[email protected]>
  1403. * TypeBuilder.cs: implemented AddInterfaceImplementation().
  1404. 2002-06-28 Martin Baulig <[email protected]>
  1405. * MethodBuilder.cs (GetParameters): Return all parameters, not all
  1406. but the last one.
  1407. 2002-06-27 Martin Baulig <[email protected]>
  1408. * ConstructorBuilder.cs (GetParameters): Implemented.
  1409. Mon Jun 17 14:55:43 CEST 2002 Paolo Molaro <[email protected]>
  1410. * ModuleBuilder.cs, TypeBuilder.cs: fixes for nested types handling.
  1411. Fri Jun 14 16:21:54 CEST 2002 Paolo Molaro <[email protected]>
  1412. * CustomAttributeBuilder.cs: added custom attribute related internal
  1413. helper methods.
  1414. * FieldBuilder.cs, ParameterBuilder.cs: handle MarshalAs attribute.
  1415. * UnmanagedMarshal.cs: implemented.
  1416. Mon Jun 10 18:58:18 CEST 2002 Paolo Molaro <[email protected]>
  1417. * PropertyBuilder.cs: implemented ReflectedType and DeclaringType
  1418. properties.
  1419. 2002-06-07 Martin Baulig <[email protected]>
  1420. * TypeBuilder.cs (TypeBuilder): Added `PackingSize packing_size' and
  1421. `int type_size' fields to the constructor.
  1422. (DefineNestedType): Pass packing_size and type_size to the constructor.
  1423. * ModuleBuilder.cs (DefineType): Pass the packing_size and type_size
  1424. fields to the TypeBuilder's constructor.
  1425. 2002-06-07 Martin Baulig <[email protected]>
  1426. * TypeBuilder.cs (DefineNestedType): There is no overload for this
  1427. method which takes 5 args in the specs, removed it.
  1428. Fri Jun 7 17:04:06 CEST 2002 Paolo Molaro <[email protected]>
  1429. * AssemblyBuilder.cs: updates for PE/COFF rewrite.
  1430. 2002-05-30 Martin Baulig <[email protected]>
  1431. * AssemblyBuilder.cs (methods): Made this internal and don't
  1432. initialize it. It will be initialized by the ModuleBuilder's
  1433. GetSymbolWriter() method.
  1434. (get_next_table_index): Only store the method in the `methods'
  1435. array if it's not null.
  1436. * ModuleBuilder.cs (GetSymbolWriter): Initialize the AssemblyBuilder's
  1437. `methods' field if necessary and pass it as third argument to the
  1438. symbol writer's constructor.
  1439. 2002-05-25 Martin Baulig <[email protected]>
  1440. * TypeBuilder.cs (TypeToken): Implemented.
  1441. 2002-05-24 Martin Baulig <[email protected]>
  1442. * ModuleBuilder.cs (symwriter_define_local): New private variable.
  1443. (GetSymbolWriter): Look for a custom version of "DefineLocalVariable"
  1444. and store it in `symwriter_define_local'.
  1445. (SymWriter_DefineLocalVariable): New internal method to call the
  1446. symbol writer's custom DefineLocalVariable() method. It is safe to
  1447. call this method if there's no symbol writer.
  1448. * LocalBuilder.cs (SetLocalSymInfo): Use the MethodBuilder'snew
  1449. SymWriter_DefineLocalVariable().
  1450. * MethodBuilder.cs (GetParameters): Implemented.
  1451. 2002-05-22 Martin Baulig <[email protected]>
  1452. * ModuleBuilder.cs (GetSymbolWriter): Pass the this pointer to the
  1453. symbol writer's constructor.
  1454. 2002-05-22 Martin Baulig <[email protected]>
  1455. * AssemblyBuilder.cs (methods): New field.
  1456. (get_next_table_index): Record all methods and constructors
  1457. (table 0x06) in the `methods' array. This is read by the
  1458. Mono.CSharp.Debugger.MonoSymbolWriter::get_method interncall to
  1459. get the MethodBuilder / ConstructorBuilder back from the token.
  1460. * *Builder.cs (get_next_table_index): Added `object obj' argument.
  1461. (<constructors>): pass the this pointer to get_next_table_index ().
  1462. 2002-05-20 Martin Baulig <[email protected]>
  1463. * TypeBuilder.cs (DefineField): Call the new `create_internal_class'
  1464. interncall after adding the first field. This is used when creating
  1465. enum types to set `klass->enum_basetype'.
  1466. Thu May 16 16:09:51 CEST 2002 Paolo Molaro <[email protected]>
  1467. * TypeBuilder.cs: complete special acse support for CharSet, Size and
  1468. Pack named args in StructLayout attribute.
  1469. Tue May 14 17:13:48 CEST 2002 Paolo Molaro <[email protected]>
  1470. * MethodBuilder.cs: revert change in accessibility of
  1471. GetILGenerator(int).
  1472. Tue May 14 13:31:17 CEST 2002 Paolo Molaro <[email protected]>
  1473. * FieldBuilder.cs, ParameterBuilder.cs: more special-casing of
  1474. attributes.
  1475. Fri May 10 20:57:27 CEST 2002 Paolo Molaro <[email protected]>
  1476. * CustomAttributeBuilder.cs: expose internal data for use in
  1477. reflection.
  1478. * FieldBuilder.cs, TypeBuilder.cs: special case FieldOffset and
  1479. StructLayout attributes.
  1480. Fri May 10 16:30:57 CEST 2002 Paolo Molaro <[email protected]>
  1481. * MethodBuilder.cs, ConstructorBuilder.cs: implemented InitLocals
  1482. property.
  1483. 2002-04-26 Martin Baulig <[email protected]>
  1484. * ModuleBuilder.cs (DefineDocument): Implemented.
  1485. Tue Apr 16 13:02:28 CEST 2002 Paolo Molaro <[email protected]>
  1486. * AssemblyBuilder.cs: pad output file to file alignment.
  1487. * FieldBuilder.cs: ReflectedType.
  1488. * ModuleBuilder.cs: added guid generation and array method creation.
  1489. * MonoArrayMethod.cs: array method support code.
  1490. Wed Apr 10 12:57:31 CEST 2002 Paolo Molaro <[email protected]>
  1491. * ILGenerator.cs: use a stack to keep track of exception blocks.
  1492. Mon Apr 8 06:19:01 2002 Piers Haken <[email protected]>
  1493. * ILGenerator.cs: added LabelField.label_base to allow for
  1494. arbitrary offsets (for switch statement)
  1495. Fri Apr 5 15:41:19 CEST 2002 Paolo Molaro <[email protected]>
  1496. * AssemblyBuilder.cs: simpler protocol wih the runtime to
  1497. get the assembly data.
  1498. Tue Mar 26 20:10:24 CET 2002 Paolo Molaro <[email protected]>
  1499. * AssemblyBuilder.cs: use FileMode.Create.
  1500. * ILGenerator.cs: optimize localbuilder related opcodes.
  1501. Track parameters to adjust maxstack.
  1502. * LocalBuilder.cS: use unsigned for position.
  1503. 2002-03-23 Miguel de Icaza <[email protected]>
  1504. * LocalBuilder.cs: Drop the symbol_writer as LocalBuilder fields.
  1505. Do this lazily in SetLocalSymInfo.
  1506. 2002-03-24 Martin Baulig <[email protected]>
  1507. * ModuleBuilder.cs (GetSymbolWriter): The MonoSymbolWriter's constructor
  1508. now takes a `string assembly_filename' argument, pass it our fully
  1509. qualified assembly name.
  1510. 2002-03-24 Nick Drochak <[email protected]>
  1511. * ILGenerator.cs: Use #if-#endif instead of if(false){} to disable
  1512. code. This way there is no compiler warning.
  1513. * TypeBuilder.cs: Removed the returns that came after the throws.
  1514. This removes a few more compiler warnings. Also marked with MonoTODO
  1515. all places where we throw NotImplemented exceptions.
  1516. 2002-03-23 Martin Baulig <[email protected]>
  1517. * SignatureHelper.cs (GetFieldSignatureHelper, GetLocalSignatureHelper):
  1518. Implemented.
  1519. * LocalBuilder.cs (LocalBuilder): This internal constructor now takes
  1520. a ModuleBuilder argument instead of a ISymbolWriter one.
  1521. (SetLocalSymInfo): Create and pass type signature to DefineLocalVariable.
  1522. 2002-03-23 Martin Baulig <[email protected]>
  1523. * ILGenerator.cs (BeginScope, EndScope): Implemented.
  1524. 2002-03-20 Martin Baulig <[email protected]>
  1525. * ModuleBuilder.cs (GetSymbolWriter): New internal function. Dynamically
  1526. loads the default symbol writer, catch all possible exceptions and return
  1527. null on failure.
  1528. (ModuleBuilder): Added `bool emitSymbolInfo' argument to this internal
  1529. constructor; if set, call GetSymbolWriter ().
  1530. (GetSymWriter): Implemented.
  1531. * LocalBuilder.cs (LocalBuilder): Added ISymbolWriter argument to this
  1532. internal method.
  1533. (SetLocalSymInfo): Implemented, call ISymbolWriter.DefineLocalVariable ()
  1534. if the symbol writer is not null.
  1535. * ILGenerator.cs (ILGenerator): Call ModuleBuilder.GetSymWriter () to get
  1536. and store the symbol writer.
  1537. (DeclareLocal): Pass the symbol writer to LocalBuilder's constructor.
  1538. (MarkSequencePoint): Implemented, call ISymbolWriter.DefineSequencePoints ()
  1539. if the symbol writer is not null.
  1540. * AssemblyBuilder.cs (DefineDynamicModule): Pass the `bool emitSymbolInfo'
  1541. to ModuleBuilder's constructor.
  1542. Sat Mar 16 19:11:47 CET 2002 Paolo Molaro <[email protected]>
  1543. * ModuleBuilder.cs: handle modified types correctly.
  1544. Thu Mar 7 17:10:42 CET 2002 Paolo Molaro <[email protected]>
  1545. * AssemblyBuilder.cs: allow saving bigger assemblies.
  1546. * ILGenerator.cs: add fixup table for fields and methods, since
  1547. at the end of the compile they may end up with a different table
  1548. index.
  1549. * ModuleBuilder.cs: add cache for type names to speed up the type
  1550. lookups from the compiler.
  1551. * TypeBuilder.cs: GetInterfaces () returns only interfaces in the
  1552. current type, not in parents (the docs are wrong).
  1553. Tue Mar 5 18:09:34 CET 2002 Paolo Molaro <[email protected]>
  1554. * EventBuilder.cs: implemented.
  1555. * TypeBuilder.cs: implemented DefineEvent() method and UnderlyingSystemType
  1556. property.
  1557. Mon Mar 4 20:34:52 CET 2002 Paolo Molaro <[email protected]>
  1558. * ILGenerator.cs: make enough room in the byte array for string
  1559. tokens.
  1560. * TypeBuilder.cs: fixed GetInterfaces().
  1561. Mon Mar 4 11:30:40 CET 2002 Paolo Molaro <[email protected]>
  1562. * TypeBuilder.cs: implemented GetConstructors(), GetFields(),
  1563. GetMethods(), GetProperties().
  1564. Thu Feb 28 19:15:10 CET 2002 Paolo Molaro <[email protected]>
  1565. * AssemblyBuilder.cs: call into the runtime to init some basic
  1566. assembly stuff. Reserve slot 1 of typedef table for .<Module>.
  1567. * ModuleBuilder.cs: call into the runtime if we need to create a
  1568. modief type, such as arrays, byref etc.
  1569. * TypeBuilder.cs: call into the runtime to create the MonoClass
  1570. representation for the type. Throw exceptions with not implemented
  1571. stuff.
  1572. Wed Feb 27 18:48:47 CET 2002 Paolo Molaro <[email protected]>
  1573. * ILGenerator.cs: fix nested exception blocks.
  1574. Wed Feb 20 22:30:49 CET 2002 Paolo Molaro <[email protected]>
  1575. * AssemblyBuilder.cs: upped compiled assembly size limit.
  1576. Implemented SetCustomAttribute () methods.
  1577. * CustomAttributeBuilder.cs: implemented the needed constructor
  1578. stuff.
  1579. * Cosntructorbuilder.cs, EnumBuilder.cs, FieldBuilder.cs,
  1580. MethodBuilder.cs, ModuleBuilder.cs, ParameterBuilder.cs,
  1581. PropertyBuilder.cs, TypeBuilder.cs: Implemented SetCustomAttribute () methods.
  1582. Wed Feb 20 14:54:01 CET 2002 Paolo Molaro <[email protected]>
  1583. * AssemblyBuilder.cs: add SetCustomAttribute () to keep the compiler
  1584. going.
  1585. Fri Feb 15 18:15:04 CET 2002 Paolo Molaro <[email protected]>
  1586. * ILGenerator.cs: finally block support and fixes.
  1587. Thu Feb 14 18:55:52 CET 2002 Paolo Molaro <[email protected]>
  1588. * FieldBuilder.cs: Add SetRVAData().
  1589. * ILGenerator.cs: speed up code array growth.
  1590. * TypeBuilder.cs: fix IsValueTypeImpl(). Add class_size member.
  1591. Implement DefineInitializedData().
  1592. Tue Jan 22 23:01:11 CET 2002 Paolo Molaro <[email protected]>
  1593. * EnumBuilder.cs, TypeBuilder.cs: updates for changes in Type.cs.
  1594. * ModuleBuilder.cs: fix lookup of nested types.
  1595. Tue Jan 15 22:46:21 CET 2002 Paolo Molaro <[email protected]>
  1596. * ILGenerator.cs: implement some of the exception support methods.
  1597. Mon Jan 14 17:07:32 CET 2002 Paolo Molaro <[email protected]>
  1598. * ModulerBuilder.cs: search also for subtypes in GetTypes().
  1599. * TypeBuilder.cs: bugfix in FullName. Implemented DefineNestedType().
  1600. Fri Jan 11 19:00:29 CET 2002 Paolo Molaro <[email protected]>
  1601. * MethodBuilder.cs, ConstructorBuilder.cs: save parameter info.
  1602. Thu Jan 10 21:07:54 CET 2002 Paolo Molaro <[email protected]>
  1603. * ILGenerator.cs: handle type tokens (used for box opcode).
  1604. Wed Jan 9 19:37:55 CET 2002 Paolo Molaro <[email protected]>
  1605. * ILGenerator.cs: emit float and doubles.
  1606. * ModuleBuilder.cs: off-by-one error fix and GetType()
  1607. implementations.
  1608. * TypeBuilder.cs: AttributesImpl added.
  1609. * UnmanagedMarshal.cs: stubbed out class.
  1610. Sat Jan 5 15:59:05 CET 2002 Paolo Molaro <[email protected]>
  1611. * ILGenerator.cs: fix emission of two-bytes opcodes.
  1612. Missing slot for locals array. Throw exceptions on unimplemented
  1613. methods.
  1614. * OpCode.cs: add a comment: the Value property is useless.
  1615. * OpCodes.cs: fix name of tail opcode (Tail -> Tailcall).
  1616. 2002-01-05 Ravi Pratap <[email protected]>
  1617. * ConstructorBuilder.cs : Use the MonoTODO attribute.
  1618. * ILGenerator.cs, Label.cs, MethodBuilder.cs, ModuleBuilder.cs,
  1619. ParameterBuilder.cs, TypeBuilder.cs : Ditto.
  1620. Thu Jan 3 23:26:15 CET 2002 Paolo Molaro <[email protected]>
  1621. * ILGenerator.cs: typo fix.
  1622. Mon Dec 24 17:21:30 CET 2001 Paolo Molaro <[email protected]>
  1623. * TypeBuilder.cs: added DefineMethodOverride().
  1624. * MethodBuilder.cs: add override_method member and setter.
  1625. Mon Nov 19 13:58:01 CET 2001 Paolo Molaro <[email protected]>
  1626. * AssemblyBuilder.cs: add method to register a string in the "#US"
  1627. stream.
  1628. * EnumBuilder.cs, SignatureHelper.cs: added stubs.
  1629. * ILGenerator.cs: more stuff implemented.
  1630. * LocalBuilder.cs: keep track of local var index.
  1631. Thu Nov 15 18:11:23 CET 2001 Paolo Molaro <[email protected]>
  1632. * ConstructorBuilder.cs: implement the interesting methods.
  1633. * ILGenerator.cs: adapt for use with both a MethodBuilder and a
  1634. ConstructorBuilder.
  1635. * MethodBuilder.cs: add ImplAttributes.
  1636. * ParameterBuilder.cs: adapt for ConstructorBuilder.
  1637. * TypeBuilder.cs: add constructors handling.
  1638. Wed Nov 14 17:01:45 CET 2001 Paolo Molaro <[email protected]>
  1639. * ConstructorBuilder.cs: added missing stubs and some implementation.
  1640. * CustomAttributeBuilder.cs: added.
  1641. * EventBuilder.cs: added.
  1642. * FieldBuilder.cs: updates.
  1643. * MethodBuilder.cs: stuff to implement P/Invoke methods.
  1644. * ModuleBuilder.cs: added GetArrayMethod() stub.
  1645. * ParameterBuilder.cs, PropertyBuilder.cs: updates.
  1646. * TypeBuilder.cs: updates and stubs.
  1647. 2001-11-10 Sean MacIsaac <[email protected]>
  1648. * TypeBuilder.cs: Added implementation for TypeHandle.
  1649. Tue Nov 6 09:13:45 CET 2001 Paolo Molaro <[email protected]>
  1650. * AssemblyBuilder.cs: define an internal constructor.
  1651. 2001-10-07 Miguel de Icaza <[email protected]>
  1652. * AssemblyBuilder.cs: Reformatted.
  1653. Added override keywords to those that needed them.
  1654. Removed methods that we do not override, but just inherit
  1655. Tue Sep 25 16:53:08 CEST 2001 Paolo Molaro <[email protected]>
  1656. * TypeBuilder.cs, ConstructorBuilder.cs, ModuleBuilder.cs: added.