ChangeLog 102 KB

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