Commit Graph
126 Commits
Author SHA1 Message Date
Jb Evain 9d895cd2cd generate dynamic method's names
svn path=/trunk/mcs/; revision=94679
2008-02-03 12:56:17 +00:00
Jb Evain c170b3c707 clean
svn path=/trunk/mcs/; revision=94625
2008-02-02 13:49:37 +00:00
Jb Evain 6f6fcf74f5 2008-02-02 Jb Evain <[email protected]>
* Expression.cs: fix ListBind(MemberInfo,IEnumerable<ElementInit>).


svn path=/trunk/mcs/; revision=94622
2008-02-02 13:43:10 +00:00
Jb Evain 77f7bfeac2 typo
svn path=/trunk/mcs/; revision=94619
2008-02-02 13:29:30 +00:00
Jb Evain 4cac0aaecd 2008-02-02 Jb Evain <[email protected]>
* Expression.cs: fix ListInit(MethodInfo,IEnumerable<ElementInit>).


svn path=/trunk/mcs/; revision=94618
2008-02-02 13:28:55 +00:00
Olivier Dufour 2e6db9f437 2008-02-01 Olivier Dufour <[email protected]>
* Expression.cs, ExpressionPrinter.cs:Add ListBind

svn path=/trunk/mcs/; revision=94572
2008-02-01 21:17:39 +00:00
Olivier Dufour b88f4990be 2008-02-01 Olivier Dufour <[email protected]>
* Expression.cs, ExpressionPrinter.cs:Add Elementinit

svn path=/trunk/mcs/; revision=94530
2008-02-01 17:32:21 +00:00
Jb Evain 14c53a1dcf 2008-01-31 Jb Evain <[email protected]>
* UnaryExpression.cs: emit array length.


svn path=/trunk/mcs/; revision=94480
2008-01-31 17:13:45 +00:00
Jb Evain fc503e8a1e 2008-01-31 Jb Evain <[email protected]>
* MemberExpression.cs: Simple support for emitting fields.


svn path=/trunk/mcs/; revision=94475
2008-01-31 16:53:42 +00:00
Jb Evain 1df8b38311 2008-01-30 Jb Evain <[email protected]>
* MethodCallExpression.cs: very naive implementation of Emit.


svn path=/trunk/mcs/; revision=94413
2008-01-30 20:04:24 +00:00
Jb Evain e18a7cc29d 2008-01-30 Jb Evain <[email protected]>
* NewExpression.cs: add Emit support for reference types.


svn path=/trunk/mcs/; revision=94407
2008-01-30 19:25:04 +00:00
Jb Evain 8037ba68af revert fix
svn path=/trunk/mcs/; revision=94386
2008-01-30 15:11:50 +00:00
Jb Evain 721a3a19fa fix ArrayIndex
svn path=/trunk/mcs/; revision=94385
2008-01-30 15:10:12 +00:00
Jb Evain 8eba7244f1 refactoring
svn path=/trunk/mcs/; revision=94384
2008-01-30 15:05:30 +00:00
Jb Evain df9b3d07ad not needed
svn path=/trunk/mcs/; revision=94371
2008-01-30 13:01:00 +00:00
Jb Evain 15d5f962e6 adjust visibility
svn path=/trunk/mcs/; revision=94370
2008-01-30 12:55:03 +00:00
Jb Evain 2f7f1e3b50 2008-01-30 Jb Evain <[email protected]>
* LambdaExpression.cs, EmitContext.cs: small refactoring.
	Extract the different EmitContexts to their own file.

svn path=/trunk/mcs/; revision=94369
2008-01-30 12:51:26 +00:00
Jb Evain 8c36940bb4 fix AndAlso like OrElse
svn path=/trunk/mcs/; revision=94262
2008-01-29 16:28:14 +00:00
Jb Evain eb8c34373f refactoring
svn path=/trunk/mcs/; revision=94261
2008-01-29 16:22:47 +00:00
Jb Evain 6054c0ab5c check call arguments
svn path=/trunk/mcs/; revision=94259
2008-01-29 16:13:44 +00:00
Jb Evain 90bbae33cf 2008-01-29 Jb Evain <[email protected]>
* MethodCallExpression.cs, Expression.cs: complete Calls.


svn path=/trunk/mcs/; revision=94240
2008-01-29 12:51:11 +00:00
Jb Evain 5984d661aa 2008-01-29 Jb Evain <[email protected]>
* Expression.cs, NewExpression.cs, ExpressionPrinter.cs:
	implement the first flavors of New.


svn path=/trunk/mcs/; revision=94190
2008-01-28 23:02:26 +00:00
Jb Evain 3eaa62782b 2008-01-27 Jb Evain <[email protected]>
* ConditionalExpression.cs: implement Emit.


svn path=/trunk/mcs/; revision=94092
2008-01-27 22:02:31 +00:00
Jb Evain 1d735366a8 2008-01-27 Jb Evain <[email protected]>
* Expression.cs: implement the last Lambda method.


svn path=/trunk/mcs/; revision=94075
2008-01-27 19:15:48 +00:00
Jb Evain 08ac78e797 remove useless field
svn path=/trunk/mcs/; revision=94068
2008-01-27 18:16:19 +00:00
Jb Evain 73d31c3d57 2008-01-27 Jb Evain <[email protected]>
* LambdaExpression.cs: fix the Type of the LambdaExpressions.


svn path=/trunk/mcs/; revision=94067
2008-01-27 18:15:42 +00:00
Jb Evain 6f74177c47 simplify
svn path=/trunk/mcs/; revision=94062
2008-01-27 17:57:00 +00:00
Jb Evain 1a5e816e27 make fields private
svn path=/trunk/mcs/; revision=94060
2008-01-27 17:50:56 +00:00
Olivier Dufour 02a1a5b2e1 2008-01-27 Olivier Dufour <[email protected]>
* Expression.cs, InvocationExpession.cs,
	ListInitExpression.cs, MemberInitExpression.cs
	NewExpression.cs : Add all missing 
	constructor in Expressions and remove the base one

svn path=/trunk/mcs/; revision=94036
2008-01-27 08:26:00 +00:00
Jb Evain de7a908d94 2008-01-25 Jb Evain <[email protected]>
* Expression.cs, ExpressionPrinter.cs: implement Bind.


svn path=/trunk/mcs/; revision=93907
2008-01-25 15:22:44 +00:00
Jb Evain 2c1c8f2479 2008-01-25 Jb Evain <[email protected]>
* MemberMemberBinding.cs, MemberListBinding.cs,
	MemberAssignment.cs, MemberBinding.cs:
	add constructors.


svn path=/trunk/mcs/; revision=93906
2008-01-25 15:22:23 +00:00
Jb Evain e037b0f0ae 2008-01-25 Jb Evain <[email protected]>
* Expression.cs: implement PropertyOrField.


svn path=/trunk/mcs/; revision=93901
2008-01-25 14:38:55 +00:00
Marek Safar 4c60aa18cf Fixed copy&paste
svn path=/trunk/mcs/; revision=93875
2008-01-25 10:00:05 +00:00
Jb Evain 4e7e3de8b3 2008-01-24 Jb Evain <[email protected]>
* Expression.cs, MemberExpression.cs, ExpressionPrinter.cs:
	implement Field and Property.


svn path=/trunk/mcs/; revision=93821
2008-01-24 17:55:41 +00:00
Miguel de Icaza c11152b046 2008-01-22 Miguel de Icaza <[email protected]>
* BinaryExpression.cs: Unleash the power of cut and paste.

	Bring a bunch of operatros from mcs/expression.cs

	* Expression.cs: There is no op_LogicalAnd or op_LogicalOr, I just
	used those from mcs, that was wrong.   use the proper ones, clean
	up the result.

	* BinaryExpression.cs: Add method invocations for binary methods. 


svn path=/trunk/mcs/; revision=93613
2008-01-23 01:18:25 +00:00
Miguel de Icaza aeaffaada3 2008-01-22 Miguel de Icaza <[email protected]>
* Expression.cs: There is no op_LogicalAnd or op_LogicalOr, I just
	used those from mcs, that was wrong.   use the proper ones, clean
	up the result.

	* BinaryExpression.cs: Add method invocations for binary methods. 



svn path=/trunk/mcs/; revision=93605
2008-01-22 23:51:22 +00:00
Miguel de Icaza 0a6c4c0470 Shut up all those warnings
svn path=/trunk/mcs/; revision=93597
2008-01-22 22:50:33 +00:00
Jb Evain 967cf2e629 2008-01-22 Jb Evain <[email protected]>
* Expression.cs, ExpressionPrinter.cs: implement NewArrayList.


svn path=/trunk/mcs/; revision=93528
2008-01-22 14:20:05 +00:00
Jb Evain 1953afe3d2 2008-01-22 Jb Evain <[email protected]>
* Expression.cs, ExpressionPrinter.cs, NewArrayExpression.cs:
	implement Expression.NewArrayBounds.


svn path=/trunk/mcs/; revision=93526
2008-01-22 14:01:07 +00:00
Jb Evain addb0c10a3 small refactoring
svn path=/trunk/mcs/; revision=93503
2008-01-22 10:59:22 +00:00
Jb Evain 532de54e2f small refactoring
svn path=/trunk/mcs/; revision=93502
2008-01-22 10:42:47 +00:00
Jb Evain a9cc7c971e small refactoring
svn path=/trunk/mcs/; revision=93501
2008-01-22 10:39:12 +00:00
Jb Evain 420442a610 2008-01-22 Jb Evain <[email protected]>
* ExpressionPrinter.cs: fix Lambda and Equal.


svn path=/trunk/mcs/; revision=93491
2008-01-22 09:47:00 +00:00
Miguel de Icaza b9b9a664e0 2008-01-22 Miguel de Icaza <[email protected]>
* BinaryExpression.cs (EmitCoalesce): Add support for emitting
	code for Coalesce.

	TODO: this does not use the "Conversion" Lambda, which am not sure
	who generates this or what it is used for.

	(EmitLogical): Fix a couple of bugs in AndAlso, OrElse.	

	* Expression.cs: Add support for Coalesce.
	(BinaryCoreCheck): Move more checking here, instead of the helper
	routines, will remove them next.
	
	* LambdaExpression.cs (Compile): Create the delegate last, so we
	manage to save the assembly while debugging in case of error


svn path=/trunk/mcs/; revision=93480
2008-01-22 07:01:58 +00:00
Miguel de Icaza 70bf0fecac 2008-01-21 Miguel de Icaza <[email protected]>
* Expression.cs (BinaryCoreCheck): Add checking for a few
	operators here (to avoid doing a second pass, handles AndAlso and
	OrElse). 

	(AndAlso, OrElse): Add some code.

	* BinaryExpression.cs: Instead of using GetValueOrDefault use
	get_Value, as we already probed for the lack of value.

	Split out support for And/Or to a separate routine as the code is
	not very easy to share with the arithmetics code. 


svn path=/trunk/mcs/; revision=93471
2008-01-22 01:25:04 +00:00
Miguel de Icaza 7df54982fc Improve the helper tool, generate code twice
svn path=/trunk/mcs/; revision=93438
2008-01-21 19:53:04 +00:00
Marek Safar b4b685024a 2008-01-21 Marek Safar <[email protected]>
* BinaryExpression.cs: Fixed initobj initialization.
	

svn path=/trunk/mcs/; revision=93437
2008-01-21 19:31:05 +00:00
Marek Safar 2ece240c14 2008-01-21 Marek Safar <[email protected]>
* BinaryExpression.cs: Fixed initobj initialization.
	

svn path=/trunk/mcs/; revision=93434
2008-01-21 19:18:00 +00:00
Jb Evain 619e5002f0 2008-01-21 Jb Evain <[email protected]>
* Expression.cs, UnaryExpression.cs, BinaryExpression.cs:
	Move the IsUnsigned helper from BinaryExpression to Expression,
	so it can be used in UnaryExpression.


svn path=/trunk/mcs/; revision=93387
2008-01-21 14:12:21 +00:00
Miguel de Icaza 6b6d7966f4 Improve this, still wrong
svn path=/trunk/mcs/; revision=93370
2008-01-21 06:14:06 +00:00