ChangeLog 11 KB

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