ChangeLog 14 KB

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