Commit Graph
348 Commits
Author SHA1 Message Date
Jb Evain 627d3c3cc1 change log
svn path=/trunk/mcs/; revision=103284
2008-05-15 15:02:02 +00:00
Jb Evain db413fc328 2008-05-15 Jb Evain <[email protected]>
* Extensions.cs: add a few useful extensions such as
	IsGenericInstanceOf and MakeGenericFrom.


svn path=/trunk/mcs/; revision=103283
2008-05-15 15:01:34 +00:00
Jb Evain 35926a2037 oops, missed that one
svn path=/trunk/mcs/; revision=103273
2008-05-15 13:09:34 +00:00
Jb Evain 0aea4a9e73 cleol + props
svn path=/trunk/mcs/; revision=103272
2008-05-15 13:08:59 +00:00
Roei Erez 6561ede795 Add implementation for AsQueryable.
svn path=/trunk/mcs/; revision=103265
2008-05-15 12:36:13 +00:00
Jb Evain d768c1abdb 2008-05-14 Jb Evain <[email protected]>
* EmitContext.cs: only generate a new lambda name if we're in
	a debug context.


svn path=/trunk/mcs/; revision=103188
2008-05-14 14:22:09 +00:00
Jb Evain 3865601b87 2008-05-14 Jb Evain <[email protected]>
* LambdaExpression.cs, EmitContext.cs: When encountering a lambda
	inside an ET, compile it as a read of a global. Based on a patch
	by Roei Erez <[email protected]>


svn path=/trunk/mcs/; revision=103177
2008-05-14 12:49:34 +00:00
Jb Evain 407194ebe6 oops
svn path=/trunk/mcs/; revision=102815
2008-05-08 15:38:14 +00:00
Jb Evain c8cdf0ba3c 2008-05-08 Jb Evain <[email protected]>
* Expression.cs, EmitContext.cs: deal with call to methods
	with byref parameters.


svn path=/trunk/mcs/; revision=102813
2008-05-08 15:35:37 +00:00
Jb Evain f1c18cd19b proper file header
svn path=/trunk/mcs/; revision=102811
2008-05-08 15:34:53 +00:00
Jb Evain 58c7843036 hm
svn path=/trunk/mcs/; revision=102806
2008-05-08 14:10:52 +00:00
Roei Erez e9a0b8ef7f isolate unsupported flow using TARGET_JVM compilation flag.
svn path=/trunk/mcs/; revision=102701
2008-05-07 07:46:48 +00:00
Jb Evain 57257c33a2 2008-05-03 Jb Evain <[email protected]>
* LambdaExpression.cs: move checks to Expression
	* Expression.cs: apply check for both typed and untyped lambda
	creation, so that the constructor does not throws exception.
	Needed to create instances of Expression<> for untyped lambda
	factory method. Fixes #386322.


svn path=/trunk/mcs/; revision=102398
2008-05-02 22:50:14 +00:00
Jb Evain 1c840889d3 blah
svn path=/trunk/mcs/; revision=102367
2008-05-02 19:11:58 +00:00
Jb Evain 04b6830abb hide helper methods to the world
svn path=/trunk/mcs/; revision=102366
2008-05-02 19:09:39 +00:00
Jb Evain 1aa921d5f0 2008-05-02 Jb Evain <[email protected]>
* Expression.cs: make Emit virtual instead of abstract,
	to allow externals libraries to extend Expression.
	Patch by Jan Oravec <[email protected]>. Fixes #386097.


svn path=/trunk/mcs/; revision=102364
2008-05-02 18:56:41 +00:00
Jb Evain a35feea60b 2008-04-29 Jb Evain <[email protected]>
* UnaryExpression.cs (EmitPrimitiveConversion): implement.


svn path=/trunk/mcs/; revision=102138
2008-04-29 15:53:40 +00:00
Jb Evain bb97427c0c remove uneeded variable
svn path=/trunk/mcs/; revision=102066
2008-04-28 19:17:19 +00:00
Jb Evain f5511d40d7 remove uneeded local variable
svn path=/trunk/mcs/; revision=102065
2008-04-28 19:14:32 +00:00
Jb Evain 7fef926217 inline variable
svn path=/trunk/mcs/; revision=102062
2008-04-28 18:24:38 +00:00
Jb Evain 138137a9f6 2008-04-28 Jb Evain <[email protected]>
* EmitContext.cs: deal with globals when encountering them while
	compiling, and not ahead of time with a dedicated visitor.


svn path=/trunk/mcs/; revision=102061
2008-04-28 18:19:56 +00:00
Jb Evain b6b3b23bdb fix the build
svn path=/trunk/mcs/; revision=102009
2008-04-28 07:25:34 +00:00
Jb Evain a2bf6fb6aa inline variable
svn path=/trunk/mcs/; revision=102005
2008-04-27 20:05:13 +00:00
Jb Evain 408e76b629 refactoring
svn path=/trunk/mcs/; revision=102004
2008-04-27 20:03:15 +00:00
Jb Evain a638420b1a refactoring
svn path=/trunk/mcs/; revision=102003
2008-04-27 20:00:08 +00:00
Jb Evain ecac3fd8c3 refactoring
svn path=/trunk/mcs/; revision=102002
2008-04-27 19:56:49 +00:00
Jb Evain 3f60ffb890 simplification
svn path=/trunk/mcs/; revision=102000
2008-04-27 19:49:26 +00:00
Jb Evain 4a8934e194 2008-04-27 Jb Evain <[email protected]>
* ConstantExpression.cs (Emit): emit properly null nullable types.


svn path=/trunk/mcs/; revision=101995
2008-04-27 17:39:32 +00:00
Jb Evain ce6f081f4c 2008-04-27 Jb Evain <[email protected]>
* Expression.cs: improve method finder.


svn path=/trunk/mcs/; revision=101992
2008-04-27 17:15:30 +00:00
Jb Evain 9949715217 rename
svn path=/trunk/mcs/; revision=101972
2008-04-27 12:03:57 +00:00
Jb Evain 59a8d738f1 protect against void types
svn path=/trunk/mcs/; revision=101702
2008-04-24 17:15:11 +00:00
Jb Evain 7bf7ffd09f rename
svn path=/trunk/mcs/; revision=101699
2008-04-24 17:08:52 +00:00
Jb Evain b505dfeb0d properly emit null strings
svn path=/trunk/mcs/; revision=101671
2008-04-24 12:21:53 +00:00
Jb Evain 5d7d56c0ab 2008-04-24 Jb Evain <[email protected]>
* UnaryExpression.cs, EmitContext.cs: implement compilation
	of Quote as a global load.


svn path=/trunk/mcs/; revision=101668
2008-04-24 11:58:05 +00:00
Jb Evain c213461fa6 properly emit convert when the target and dest type are the same
svn path=/trunk/mcs/; revision=101661
2008-04-24 11:13:22 +00:00
Jb Evain 5ae3d6f3e6 box properly
svn path=/trunk/mcs/; revision=101660
2008-04-24 10:39:09 +00:00
Jb Evain 55c01989b7 2008-04-23 Jb Evain <[email protected]>
* UnaryExpression.cs: start implementing EmitConvert.


svn path=/trunk/mcs/; revision=101564
2008-04-23 16:27:09 +00:00
Jb Evain 24d5638bb6 make CheckReferenceConversion protected
svn path=/trunk/mcs/; revision=101563
2008-04-23 16:26:38 +00:00
Jb Evain c67ad2e6a1 2008-04-23 Jb Evain <[email protected]>
* ConstantExpression.cs (Emit): properly Emit null constants.


svn path=/trunk/mcs/; revision=101562
2008-04-23 16:25:53 +00:00
Jb Evain 093660d913 2008-04-23 Jb Evain <[email protected]>
* Expression.cs (Constant): check for assignability, not for type
	equality, when a type is passed.


svn path=/trunk/mcs/; revision=101534
2008-04-23 11:49:52 +00:00
Jb Evain b43e1d29bc 2008-04-23 Jb Evain <[email protected]>
* ExpressionPrinter.cs: ToString convert properly.


svn path=/trunk/mcs/; revision=101533
2008-04-23 11:49:04 +00:00
Jb Evain 635f13774a fix retrieving of user defined convert operators
svn path=/trunk/mcs/; revision=101472
2008-04-22 17:39:38 +00:00
Jb Evain 62420e6e99 renaming
svn path=/trunk/mcs/; revision=101469
2008-04-22 17:04:52 +00:00
Jb Evain 6f75f47af5 2008-04-22 Jb Evain <[email protected]>
* UnaryExpression.cs: implement IsLiftedToNull properly.
	* Expression.cs (Convert, ConvertChecked): implemented computing
	of IsLifted and IsLiftedToNull for conversions.


svn path=/trunk/mcs/; revision=101439
2008-04-22 13:36:31 +00:00
Jb Evain 9ce04800ac 2008-04-22 Jb Evain <[email protected]>
* Expression.cs (Convert, ConvertChecked): implement.


svn path=/trunk/mcs/; revision=101424
2008-04-22 12:32:31 +00:00
Jb Evain 55e6fcbe63 2008-04-21 Jb Evain <[email protected]>
* Expression.cs (Call): don't rely on the fact that if the
	instance expression is null, then it's a static call. Explicitely
	check on the MethodInfo for that.
	* EmitContext.cs (EmitCall): same pattern.


svn path=/trunk/mcs/; revision=101336
2008-04-21 16:09:54 +00:00
Jb Evain 2bd30b7b13 refactor
svn path=/trunk/mcs/; revision=101245
2008-04-20 15:12:32 +00:00
Jb Evain 12af2377c9 2008-04-20 Jb Evain <[email protected]>
* MemberMemberBinding.cs (Emit): implement.


svn path=/trunk/mcs/; revision=101243
2008-04-20 15:05:50 +00:00
Jb Evain 607c910e2f refactoring
svn path=/trunk/mcs/; revision=101236
2008-04-20 11:06:31 +00:00
Jb Evain 78684826f9 refactor
svn path=/trunk/mcs/; revision=101218
2008-04-19 15:57:13 +00:00