ChangeLog 16 KB

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