ChangeLog 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414
  1. 2008-03-06 Jb Evain <[email protected]>
  2. * EmitContext.cs: the DebugContext delegate the CreateDelegate
  3. to a DynamicContext to avoid visibility issues in debug mode.
  4. 2008-03-06 Jb Evain <[email protected]>
  5. * EmitContext.cs: Lambda methods bypass JIT visibility checks.
  6. 2008-03-06 Jb Evain <[email protected]>
  7. * MethodCallExpression.cs, Expression.cs: refactor method calling
  8. into a more sophisticated EmitCall in Expression.
  9. * InvocationExpression.cs (Emit): implement using the previous EmitCall.
  10. 2008-03-06 Jb Evain <[email protected]>
  11. * Expression.cs: add a EmitCall helper.
  12. * MemberExpression.cs: implement property access.
  13. 2008-03-06 Jb Evain <[email protected]>
  14. * MethodCallExpression.cs, Expression.cs: refactor a EmitLoad in Expression.
  15. * MemberExpression.cs: use EmitLoad to load the instance field if needed.
  16. 2008-03-06 Jb Evain <[email protected]>
  17. * BinaryExpression.cs, Expression.cs: move EmitStored from
  18. BinaryExpression to Expression.
  19. * MethodCallExpression.cs: allow method calls on structs.
  20. 2008-03-05 Jb Evain <[email protected]>
  21. * Expression.cs: Fix the Call method which takes an array
  22. of type arguments.
  23. 2008-03-05 Jb Evain <[email protected]>
  24. * Expression.cs: fix for a good chunk of lifted/liftToNull tests.
  25. 2008-02-26 Jb Evain <[email protected]>
  26. * Expression.cs (Call): Guess the parameters type from the argument
  27. types if needed.
  28. 2008-02-25 Jb Evain <[email protected]>
  29. * NewExpression.cs (Emit): deal with value types construction.
  30. 2008-02-25 Jb Evain <[email protected]>
  31. * Expression.cs, NewExpression.cs: deal with the fact that value types
  32. don't have a parameterless constructor.
  33. 2008-02-24 Jb Evain <[email protected]>
  34. * LambdaExpression.cs, EmitContext.cs: make compilation
  35. of delegate returning void work.
  36. 2008-02-24 Jb Evain <[email protected]>
  37. * MethodCallExpression.cs: emit call or callvirt depending
  38. on the virtuality of the method.
  39. 2008-02-24 Jb Evain <[email protected]>
  40. * LambdaExpression.cs: properly format error message.
  41. 2008-02-21 Jb Evain <[email protected]>
  42. * BinaryExpression.cs (EmitCoalesce): fix setup_null.
  43. 2008-02-21 Jb Evain <[email protected]>
  44. * BinaryExpression.cs (Emit): fix the both_are_null case.
  45. 2008-02-20 Jb Evain <[email protected]>
  46. * Expression.cs, ExpressionPrinter.cs: implement MemberBind.
  47. 2008-02-20 Jb Evain <[email protected]>
  48. * Expression.cs, ExpressionPrinter.cs: implement ListInit.
  49. 2008-02-19 Jb Evain <[email protected]>
  50. * Expression.cs, ExpressionPrinter.cs: implement MemberInit.
  51. 2008-02-19 Jb Evain <[email protected]>
  52. * Expression.cs, ExpressionPrinter.cs: implement last New
  53. overload for anonymous types.
  54. 2008-02-08 Jb Evain <[email protected]>
  55. * Expression.cs, InvocationExpression.cs, ExpressionPrinter.cs
  56. add support for Invoke.
  57. 2008-02-04 Jb Evain <[email protected]>
  58. * ExpressionPrinter.cs: fix printing of MemberListBinding.
  59. 2008-02-04 Jb Evain <[email protected]>
  60. * Expression.cs, NewExpression.cs: make New(Type) test pass.
  61. 2008-02-04 Jb Evain <[email protected]>
  62. * ExpressionPrinter.cs: fix and clean printing of ElementInit.
  63. 2008-02-02 Jb Evain <[email protected]>
  64. * Expression.cs: fix ListBind(MemberInfo,IEnumerable<ElementInit>).
  65. 2008-02-02 Jb Evain <[email protected]>
  66. * Expression.cs: fix ListBind(MethodInfo,IEnumerable<ElementInit>).
  67. 2008-02-01 Olivier Dufour <[email protected]>
  68. * Expression.cs, ExpressionPrinter.cs:Add ListBind
  69. 2008-02-01 Olivier Dufour <[email protected]>
  70. * Expression.cs, ExpressionPrinter.cs:Add Elementinit
  71. 2008-01-31 Jb Evain <[email protected]>
  72. * UnaryExpression.cs: emit array length.
  73. 2008-01-31 Jb Evain <[email protected]>
  74. * MemberExpression.cs: Simple support for emitting fields.
  75. 2008-01-30 Jb Evain <[email protected]>
  76. * MethodCallExpression.cs: very naive implementation of Emit.
  77. 2008-01-30 Jb Evain <[email protected]>
  78. * NewExpression.cs: add Emit support for reference types.
  79. 2008-01-30 Jb Evain <[email protected]>
  80. * LambdaExpression.cs, EmitContext.cs: small refactoring.
  81. Extract the different EmitContexts to their own file.
  82. 2008-01-29 Jb Evain <[email protected]>
  83. * MethodCallExpression.cs, Expression.cs: complete Calls.
  84. 2008-01-29 Jb Evain <[email protected]>
  85. * Expression.cs, NewExpression.cs, ExpressionPrinter.cs:
  86. implement the first flavors of New.
  87. 2008-01-27 Jb Evain <[email protected]>
  88. * ConditionalExpression.cs: implement Emit.
  89. 2008-01-27 Jb Evain <[email protected]>
  90. * Expression.cs: implement the last Lambda method.
  91. 2008-01-27 Jb Evain <[email protected]>
  92. * LambdaExpression.cs: fix the Type of the LambdaExpressions.
  93. 2008-01-27 Olivier Dufour <[email protected]>
  94. * Expression.cs, InvocationExpession.cs,
  95. ListInitExpression.cs, MemberInitExpression.cs
  96. NewExpression.cs : Add all missing
  97. constructor in Expressions and remove the base one
  98. 2008-01-25 Jb Evain <[email protected]>
  99. * Expression.cs, ExpressionPrinter.cs: implement Bind.
  100. 2008-01-25 Jb Evain <[email protected]>
  101. * MemberMemberBinding.cs, MemberListBinding.cs,
  102. MemberAssignment.cs, MemberBinding.cs:
  103. add constructors.
  104. 2008-01-25 Jb Evain <[email protected]>
  105. * Expression.cs: implement PropertyOrField.
  106. 2008-01-24 Jb Evain <[email protected]>
  107. * Expression.cs, MemberExpression.cs, ExpressionPrinter.cs:
  108. implement Field and Property.
  109. 2008-01-22 Miguel de Icaza <[email protected]>
  110. * BinaryExpression.cs: Unleash the power of cut and paste.
  111. Bring a bunch of operatros from mcs/expression.cs
  112. * Expression.cs: There is no op_LogicalAnd or op_LogicalOr, I just
  113. used those from mcs, that was wrong. use the proper ones, clean
  114. up the result.
  115. * BinaryExpression.cs: Add method invocations for binary methods.
  116. 2008-01-22 Jb Evain <[email protected]>
  117. * Expression.cs, ExpressionPrinter.cs: implement NewArrayList.
  118. 2008-01-22 Jb Evain <[email protected]>
  119. * Expression.cs, ExpressionPrinter.cs, NewArrayExpression.cs:
  120. implement Expression.NewArrayBounds.
  121. 2008-01-22 Jb Evain <[email protected]>
  122. * ExpressionPrinter.cs: fix Lambda and Equal.
  123. 2008-01-22 Miguel de Icaza <[email protected]>
  124. * BinaryExpression.cs (EmitCoalesce): Add support for emitting
  125. code for Coalesce.
  126. TODO: this does not use the "Conversion" Lambda, which am not sure
  127. who generates this or what it is used for.
  128. (EmitLogical): Fix a couple of bugs in AndAlso, OrElse.
  129. * Expression.cs: Add support for Coalesce.
  130. (BinaryCoreCheck): Move more checking here, instead of the helper
  131. routines, will remove them next.
  132. * LambdaExpression.cs (Compile): Create the delegate last, so we
  133. manage to save the assembly while debugging in case of error
  134. 2008-01-21 Miguel de Icaza <[email protected]>
  135. * Expression.cs (BinaryCoreCheck): Add checking for a few
  136. operators here (to avoid doing a second pass, handles AndAlso and
  137. OrElse).
  138. (AndAlso, OrElse): Add some code.
  139. * BinaryExpression.cs: Instead of using GetValueOrDefault use
  140. get_Value, as we already probed for the lack of value.
  141. Split out support for And/Or to a separate routine as the code is
  142. not very easy to share with the arithmetics code.
  143. 2008-01-21 Marek Safar <[email protected]>
  144. * BinaryExpression.cs: Fixed initobj initialization.
  145. 2008-01-21 Jb Evain <[email protected]>
  146. * Expression.cs, UnaryExpression.cs, BinaryExpression.cs:
  147. Move the IsUnsigned helper from BinaryExpression to Expression,
  148. so it can be used in UnaryExpression.
  149. 2008-01-21 Miguel de Icaza <[email protected]>
  150. * Start code generation for nullables, currently this generates
  151. incorrect code for things like:
  152. Expression<Func<int?, int?, int?>> e2 = (a, b) => a + b;
  153. e2.Compile ().Invoke (null, 3))
  154. This should return null, but returns something else.
  155. * Introduce LINQ_DBG env variable, which generates a linq file in
  156. /tmp; It currently does not work as well as it should, as the
  157. Func<> parameters do not mwatch the generated method.
  158. Investigate.
  159. 2008-01-20 Miguel de Icaza <[email protected]>
  160. Introduce support for Nullable arguments, no code is generated for
  161. these yet, its only tests + node creation behavior at this point.
  162. * Expression.cs (BinaryCoreCheck): Do not allow "int?" and "int"
  163. as operators, they must both be nullable.
  164. NullableTypes in the arguments are transformed into the underlying
  165. values when doing the method validation.
  166. 2008-01-18 Miguel de Icaza <[email protected]>
  167. * ParameterExpression.cs: Add emit support.
  168. 2008-01-18 Jb Evain <[email protected]>
  169. * Expression[Printer|Visitor].cs: implement UnaryPlus, Not, Negate.
  170. 2008-01-18 Miguel de Icaza <[email protected]>
  171. * BinaryExpression.cs: Add support for emitting code for some
  172. operators (ported from the Mono C# compiler).
  173. Add tests.
  174. 2008-01-17 Miguel de Icaza <[email protected]>
  175. Beginning of code generation framework for Linq.Expressions.
  176. Some code was borrowed by from the C# compiler
  177. * Expression_T.cs: Fill in the blanks.
  178. * LambdaExpression.cs: Validation of parameters mostly, a tiny bit
  179. of codegen.
  180. * ConstantExpression.cs: Mostly done, need to write tests for
  181. non-fundamental types and other ValueType initializations.
  182. 2008-01-17 Jb Evain <[email protected]>
  183. * Expression.cs: implement MakeMemberAccess.
  184. 2008-01-17 Jb Evain <[email protected]>
  185. * Expression.cs, ExpressionPrinter.cs, BinaryExpression.cs:
  186. implement ArrayIndex.
  187. 2008-01-17 Jb Evain <[email protected]>
  188. * Expression.cs: Use TypeCode for IsInt and IsNumber.
  189. 2008-01-16 Miguel de Icaza <[email protected]>
  190. * Expression.cs: Add support for user-defined operators.
  191. Put back various binary operator tests.
  192. 2008-01-16 Jb Evain <[email protected]>
  193. * Expression.cs, ExpressionPrinter.cs: fix call for static methods.
  194. 2008-01-15 Miguel de Icaza <[email protected]>
  195. * Expression.cs: Do validation on the method parameters and use
  196. the return type if provided.
  197. 2008-01-15 Jb Evain <[email protected]>
  198. * MethodCallExpression.cs, Expression.cs
  199. ExpressionPrinter.cs: Implement Call (Expression, ...)
  200. 2008-01-15 Jb Evain <[email protected]>
  201. * Expression.cs, ConditionalExpressionExpression.cs
  202. ExpressionPrinter.cs : implement Expression.Condition.
  203. 2008-01-15 Jb Evain <[email protected]>
  204. * Expression.cs,
  205. ParameterExpression.cs,
  206. ExpressionPrinter.cs: implement Expression.Parameter
  207. 2008-01-15 Jb Evain <[email protected]>
  208. * ExpressionPrinter.cs (VisitBinaryExpression): simple
  209. implementation (probably misses a few cases).
  210. 2008-01-14 Miguel de Icaza <[email protected]>
  211. * Expression.cs: Bring back the (most) of binary operators. Added
  212. type checking as well and reorganized the source file by topic
  213. instead of alphabetical sorting.
  214. 2008-01-14 Jb Evain <[email protected]>
  215. * ExpressionPrinter.cs: print ArrayLength.
  216. 2008-01-14 Jb Evain <[email protected]>
  217. * Expression.cs: TypeAs can't take value types.
  218. * ExpressionPrinter.cs: implement TypeAs.
  219. 2008-01-14 Jb Evain <[email protected]>
  220. * Expression.cs: implement TypeIs.
  221. * ExpressionPrinter.cs: implement VisitTypeBinaryExpression.
  222. * TypeBinaryExpression.cs: add proper ctor.
  223. 2008-01-14 Jb Evain <[email protected]>
  224. * Expression.cs, ExpressionPrinter.cs: fix for Quote's type.
  225. 2008-01-14 Jb Evain <[email protected]>
  226. * BinaryExpression.cs,
  227. * Expression.cs: revert part of Miguel's last patch.
  228. MakeBinary is expected to call the appropriate factory
  229. methods. Whose methods that are responsible for creating
  230. the good BinaryExpression, wether they use a custom method
  231. or not.
  232. 2008-01-14 Jb Evain <[email protected]>
  233. * Expression.cs: MakeUnary is expected to call the appropriate
  234. factory methods.
  235. 2008-01-14 Miguel de Icaza <[email protected]>
  236. * Expression.cs (Constant, MakeBinary and consumers of it): Some
  237. more fill-up changes.
  238. MakeBinary will need much more work to support user-provided
  239. types.
  240. 2008-01-13 Jb Evain <[email protected]>
  241. * *.cs: fresh implementation.