ChangeLog 89 KB

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