Commit Graph
357 Commits
Author SHA1 Message Date
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 81abd9f00e adjust name
svn path=/trunk/mcs/; revision=128730
2009-03-05 22:02:27 +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 22ec076e6f micro optimization
svn path=/trunk/mcs/; revision=113936
2008-09-24 08:56:57 +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
Jb Evain 633e47364f a lil refactoring
svn path=/trunk/mcs/; revision=109562
2008-08-04 13:43:00 +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 85f8c499be turn GetNotNullable into an extension method for consistency
svn path=/trunk/mcs/; revision=108212
2008-07-18 09:05:17 +00:00
Jb Evain 5fb3229bc4 simplify
svn path=/trunk/mcs/; revision=108211
2008-07-18 08:39:21 +00:00
Jb Evain 7fe8b7e58d blah
svn path=/trunk/mcs/; revision=106571
2008-06-25 16:47:16 +00:00
Jb Evain 602a72186e refactoring
svn path=/trunk/mcs/; revision=106422
2008-06-23 14:56:40 +00:00
Jb Evain 4fceb133c6 fix for properly calling methods with a ref parameter
svn path=/trunk/mcs/; revision=106421
2008-06-23 14:46:05 +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 9454a24760 fix namespace
svn path=/trunk/mcs/; revision=106208
2008-06-19 13:58:01 +00:00
Jb Evain ae8b2d7944 remove wrong comment
svn path=/trunk/mcs/; revision=105991
2008-06-17 13:07:57 +00:00
Jb Evain 77594835e2 blah
svn path=/trunk/mcs/; revision=105989
2008-06-17 12:45:10 +00:00
Jb Evain 65439303c6 refactoring
svn path=/trunk/mcs/; revision=105578
2008-06-11 13:07:11 +00:00
Jb Evain dfc7855503 add support for user defined lifted logical operators
svn path=/trunk/mcs/; revision=105405
2008-06-10 11:27:36 +00:00
Jb Evain 919e9da627 be consistent
svn path=/trunk/mcs/; revision=105400
2008-06-10 09:51:36 +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 3c9b3fd931 refactoring
svn path=/trunk/mcs/; revision=105310
2008-06-09 13:46:55 +00:00
Jb Evain dea4a0bbce don't use CreateInstance missing in SL2
svn path=/trunk/mcs/; revision=105297
2008-06-09 11:40:48 +00:00
Jb Evain a3132c3d8f remove use of methods not present in SL2
svn path=/trunk/mcs/; revision=105294
2008-06-09 11:23:37 +00:00
Jb Evain 47a63a53af remove warning
svn path=/trunk/mcs/; revision=105258
2008-06-08 13:25:02 +00:00
Jb Evain 02695a5640 inline
svn path=/trunk/mcs/; revision=105245
2008-06-07 18:18:26 +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 32e96dd798 separate normal coalesce operations from converted coalesce nodes
svn path=/trunk/mcs/; revision=105235
2008-06-07 15:59:02 +00:00
Jb Evain 0df3dd7415 fix convertions in between convertions from or to nullable types
svn path=/trunk/mcs/; revision=105123
2008-06-05 22:06:34 +00:00