Commit Graph
190 Commits
Author SHA1 Message Date
Jb Evain 8e47921f04 Properly call methods on enumerations in compiled expression trees.
2010-07-26  Jb Evain  <[email protected]>

	* EmitContext.cs: Properly call methods on enumerations.
	Fixes #625367.
2010-07-26 13:04:19 +02:00
Jb Evain ec8eb45171 2010-05-19 Jb Evain <[email protected]>
* ConstantExpression.cs: fix emission of nullable constants.


svn path=/trunk/mcs/; revision=157550
2010-05-19 13:36:21 +00:00
Jb Evain 40056d451c 2010-01-08 Jb Evain <[email protected]>
* Expression.cs (Call): properly deal with zero length array
	of type arguments for non generic methods. Fixes #568989.

svn path=/trunk/mcs/; revision=149240
2010-01-08 13:59:20 +00:00
Gonzalo Paniagua Javier 78e8b03cfd 2009-12-02 Gonzalo Paniagua Javier <[email protected]>
* Expression.cs: expression can be null for static getters. Patch from
	Miguel de Icaza ([email protected]).


svn path=/trunk/mcs/; revision=147498
2009-12-02 21:01:49 +00:00
Jb Evain 2f7b3cdd57 2009-11-15 Jb Evain <[email protected]>
* Expression (Call): deal with lambda expression <> delegate
	comparison when filtering methods.
	Fixes #536637.


svn path=/trunk/mcs/; revision=146225
2009-11-15 16:51:56 +00:00
Jb Evain 8998f55b5e 2009-11-15 Jb Evain <[email protected]>
* Expression (Call): better filtering of generic methods.
	Fixes #537768.


svn path=/trunk/mcs/; revision=146222
2009-11-15 15:55:15 +00:00
Jb Evain fd7182588a in System.Runtime.CompilerServices:
2009-11-14  Jb Evain  <[email protected]>

	* ExecutionScope.cs: implement IsolateExpression.

in System.Linq.Expressions:
2009-11-14  Jb Evain  <[email protected]>

	* UnaryExpression.cs: isolate quoted expressions.
	* EmitContext.cs (ParameterReplacer): new helper type
	to replace the parameters of isolated expressions.
	Fix #550722.


svn path=/trunk/mcs/; revision=146209
2009-11-14 15:50:23 +00:00
Jb Evain 7a93057af4 in System.Linq.Expressions:
2009-11-14  Jb Evain  <[email protected]>

	* ExpressionTransformer.cs: adjust return type of all
	 tranformation methods to make the transformer actually
	 useful.

in System.Linq:
2009-11-14  Jb Evain  <[email protected]>

	* QueryableTransformer: adjust to latest ExpressionTransformer
	changes.


svn path=/trunk/mcs/; revision=146208
2009-11-14 15:47:07 +00:00
Jb Evain 5bc44ecc4b use the expression interpreter on MonoTouch
svn path=/trunk/mcs/; revision=143772
2009-10-08 13:53:26 +00:00
Jb Evain 245ad0e086 2009-09-03 Jb Evain <[email protected]>
* ConstantExpression.cs (Emit): add support to emit DBNull values.


svn path=/trunk/mcs/; revision=141241
2009-09-03 12:10:09 +00:00
Jb Evain 332e5b400d 2009-09-03 Jb Evain <[email protected]>
* ConstantExpression.cs (Emit): add support for emitting
	DateTime constants.


svn path=/trunk/mcs/; revision=141238
2009-09-03 12:00:32 +00:00
Jb Evain 1f1ad84e50 in System.Runtime.CompilerServices:
2009-03-05  Jb Evain  <[email protected]>

	* ExecutionScope.cs: add support for hoisted locals.

in System.Linq.Expressions:
2009-03-05  Jb Evain  <[email protected]>

	* EmitContext.cs
	* ParameterExpression.cs:
		add support for hoisted locals.

svn path=/trunk/mcs/; revision=128721
2009-03-05 20:48:13 +00:00
Jb Evain 6d8ee2b854 2009-02-24 Jb Evain <[email protected]>
* Expression.cs (BinaryCoreCheck): fix comparison of enums


svn path=/trunk/mcs/; revision=127871
2009-02-24 17:09:23 +00:00
Jb Evain 2313558b90 2009-02-23 Jb Evain <[email protected]>
* Expression.cs (IsNumber): actually decimal is rather a special
	case, and not a primitive number.


svn path=/trunk/mcs/; revision=127754
2009-02-23 17:03:21 +00:00
Jb Evain 59e1ea03d7 2009-02-23 Jb Evain <[email protected]>
* Expression.cs (BinaryCoreCheck): add decimal operations
	are provided by custom operators.


svn path=/trunk/mcs/; revision=127746
2009-02-23 16:41:59 +00:00
Jb Evain 8b390a4462 2008-12-17 Jb Evain <[email protected]>
* ExpressionTransformer.cs: fix VisitList.


svn path=/trunk/mcs/; revision=121732
2008-12-17 22:54:50 +00:00
Jb Evain 3f5524d8ed 2008-11-19 Jb Evain <[email protected]>
* Expression.cs: protect against open generic methods.


svn path=/trunk/mcs/; revision=119350
2008-11-19 17:29:25 +00:00
Atsushi Eno e9bef803a2 2008-10-08 Atsushi Enomoto <[email protected]>
* Expression.cs : give us information about which type does not
	  implement Emit().


svn path=/trunk/mcs/; revision=115194
2008-10-08 10:42:26 +00:00
Jb Evain 8f9bbdd2e7 2008-10-03 Jb Evain <[email protected]>
* Expression.cs: make sure we properly test complex generic methods
	as a Call candidate.


svn path=/trunk/mcs/; revision=114803
2008-10-03 21:59:03 +00:00
Jb Evain 4f47677525 2008-09-22 Jb Evain <[email protected]>
* TypeBinaryExpression.cs: protect against testing void expressions.
	Fixes bug #428309.


svn path=/trunk/mcs/; revision=113721
2008-09-22 13:11:01 +00:00
Jb Evain 6bded02e3c 2008-09-01 Jb Evain <[email protected]>
* MemberBinding.cs: make .ctor protected instead of public.


svn path=/trunk/mcs/; revision=112034
2008-09-01 14:22:29 +00:00
Jb Evain 175a8f2430 2008-09-01 Jb Evain <[email protected]>
* Expression.cs: guard against null parameters passed to Lambda.


svn path=/trunk/mcs/; revision=112032
2008-09-01 14:12:25 +00:00
Marek Safar e579a95c2c 2008-08-30 Marek Safar <[email protected]>
* MemberBinding.cs: Made MemberBinding ctor public


svn path=/trunk/mcs/; revision=111969
2008-08-30 12:55:47 +00:00
Jb Evain ddf0460e04 2008-08-07 Jb Evain <[email protected]>
* Expression.cs (GetAssociatedProperty): strengthen accessors
	comparisons.

svn path=/trunk/mcs/; revision=109858
2008-08-07 13:49:28 +00:00
Zoltan Varga 94bc1b98ef 2008-08-02 Zoltan Varga <[email protected]>
* BinaryExpression.cs (EmitBinaryOperator): Mask out the upper bits of the 
	shift amount like mcs compiled code does.

svn path=/trunk/mcs/; revision=109521
2008-08-03 16:42:24 +00:00
Jb Evain 82ca793bbd 2008-07-19 Jb Evain <[email protected]>
* Expression.cs (Call, Field, Property): disallow instance arguments
	on static members. See ms connect #339351.


svn path=/trunk/mcs/; revision=108306
2008-07-19 07:57:15 +00:00
Jb Evain dcc7953427 2008-07-18 Jb Evain <[email protected]>
* Expression.cs, BinaryExpression.cs: fix retrieval of true and false
	operators.


svn path=/trunk/mcs/; revision=108217
2008-07-18 11:28:32 +00:00
Jb Evain 73e627220b 2008-06-20 Jb Evain <[email protected]>
* LambdaExpression.cs, EmitContext.cs: refactor the emit context to
	handle the fact that lambdas are compiled in a general context where
	they share globals but are also able to use parameters from parent lambdas.
	(Although parameter sharing is not implemented yet).

	* BinaryExpression.cs (fix converted coalesce case to use the lambda
	compilation code).


svn path=/trunk/mcs/; revision=106310
2008-06-20 16:02:04 +00:00
Jb Evain eecff911da 2008-06-09 Jb Evain <[email protected]>
* Extensions.cs (Type.IsExpression): add
	* Expression.cs (CheckMethodArguments): modify the argument list
	to quote arguments when if necessary.



svn path=/trunk/mcs/; revision=105324
2008-06-09 15:31:19 +00:00
Jb Evain 1e7138db2c 2008-06-09 Jb Evain <[email protected]>
* Expression.cs (CheckLambda): quote body if required.


svn path=/trunk/mcs/; revision=105320
2008-06-09 15:09:16 +00:00
Jb Evain 2d7ee0476c 2008-06-07 Jb Evain <[email protected]>
* BinaryExpression.cs (EmitConvertedCoalesce): implement.


svn path=/trunk/mcs/; revision=105243
2008-06-07 18:09:12 +00:00
Jb Evain cae203e7c5 2008-06-05 Jb Evain <[email protected]>
* Expression.cs (GetUserConversionMethod): check for convertion
	operators on both types.


svn path=/trunk/mcs/; revision=105079
2008-06-05 18:00:16 +00:00
Jb Evain fc92a23cb3 2008-06-05 Jb Evain <[email protected]>
* Expression.cs (ConditionalBinaryCheck): if a method is passed,
	checked that the operators true and false are also defined.


svn path=/trunk/mcs/; revision=105031
2008-06-05 14:19:31 +00:00
Jb Evain 31cf110a81 2008-06-05 Jb Evain <[email protected]>
* BinaryExpression.cs (Emit): deal with binary expressions
	where only the left is lifted.


svn path=/trunk/mcs/; revision=105018
2008-06-05 13:05:13 +00:00
Jb Evain 7b29921f4d 2008-06-05 Jb Evain <[email protected]>
* Extensions.cs: Add Type.MakeNullableType helper.
	* Expression.cs (MakeSimpleBinary, MakeBoolBinar): Properly
	creat lifted/lifted to null/not lifted
	user defined binary expressions.
	* BinaryExpression.cs (Emit): implement compilation of
	lifted and lifted to null user defined binary operators.


svn path=/trunk/mcs/; revision=104973
2008-06-05 10:56:44 +00:00
Jb Evain 711731434c 2008-06-05 Jb Evain <[email protected]>
* Expression.cs (MakeSimpleUnary): properly create lifted/not lifted
	unary expressions with user defined operators.
	* UnaryExpression.cs (Emit): fix compilation of lifted user operators.


svn path=/trunk/mcs/; revision=104965
2008-06-05 09:43:52 +00:00
Jb Evain ba6d7978f6 2008-05-30 Jb Evain <[email protected]>
* UnaryExpression.cs (Emit): fix convertion from nullable
	to nullable types.


svn path=/trunk/mcs/; revision=104496
2008-05-30 10:23:08 +00:00
Jb Evain 75ff9b5f9a 2008-05-29 Jb Evain <[email protected]>
* Expression.cs (Power): allow bool?.
	* BinaryExpression.cs: properly deal with lifted power expression.


svn path=/trunk/mcs/; revision=104453
2008-05-29 18:13:35 +00:00
Jb Evain f17f3ce8f2 2008-05-29 Jb Evain <[email protected]>
* BinaryExpression.cs (Emit): fix lifted andalso and orelse.


svn path=/trunk/mcs/; revision=104432
2008-05-29 16:09:07 +00:00
Jb Evain ac46932181 2008-05-29 Jb Evain <[email protected]>
* BinaryExpression.cs (Emit): properly emit lifted to null
	relational binary expressions.


svn path=/trunk/mcs/; revision=104386
2008-05-29 11:34:15 +00:00
Jb Evain 69ffea0453 2008-05-28 Jb Evain <[email protected]>
* BinaryExpression.cs (Emit): rework compilation of
	arithmetic and relational lifted binary expressions.


svn path=/trunk/mcs/; revision=104304
2008-05-28 17:18:10 +00:00
Jb Evain 12f6b04a72 2008-05-28 Jb Evain <[email protected]>
* UnaryExpression.cs (Emit): implement support for compiling
	lifted unary expressions.


svn path=/trunk/mcs/; revision=104265
2008-05-28 14:37:30 +00:00
Jb Evain 5bce99d52b 2008-05-27 Jb Evain <[email protected]>
* UnaryExpression.cs (EmitConvert): implement nullable to nullable
	convert.


svn path=/trunk/mcs/; revision=104139
2008-05-27 13:31:04 +00:00
Roei Erez 5ee77009f9 Add implementation for the non-generic Queryable.AsQueryable method, and some test cases.
svn path=/trunk/mcs/; revision=103562
2008-05-20 10:27:34 +00:00
Jb Evain 69b8c869da 2008-05-15 Jb Evain <[email protected]>
* UnaryExpression.cs, EmitContext.cs: emit convert from and
	to nullable types.


svn path=/trunk/mcs/; revision=103312
2008-05-15 18:58:56 +00:00
Jb Evain 627d3c3cc1 change log
svn path=/trunk/mcs/; revision=103284
2008-05-15 15:02:02 +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 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