ChangeLog 11 KB

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