Commit Graph
365 Commits
Author SHA1 Message Date
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
Jb Evain 75fd246e88 2008-04-19 Jb Evain <[email protected]>
* EmitContext.cs: infrastructure work to attach a compiled
	lambda expression to an execution scope, and to detect and store
	external globals in the scope.
	* ConstantExpression.cs: load globals from the scope.


svn path=/trunk/mcs/; revision=101207
2008-04-19 13:28:34 +00:00
Jb Evain 23572da657 2008-04-19 Jb Evain <[email protected]>
* ExpressionVisitor.cs (Visit): don't die because of Power.


svn path=/trunk/mcs/; revision=101203
2008-04-19 12:14:22 +00:00
Jb Evain a59c931ab4 refactoring
svn path=/trunk/mcs/; revision=100224
2008-04-09 12:19:16 +00:00
Jb Evain 5786dccf78 2008-04-09 Jb Evain <[email protected]>
* Expression.cs: check for illegal booleab unary expressions.


svn path=/trunk/mcs/; revision=100221
2008-04-09 12:01:06 +00:00
Jb Evain 34453b7efd 2008-04-09 Jb Evain <[email protected]>
* UnaryExpression.cs: implement compilation of negate.


svn path=/trunk/mcs/; revision=100217
2008-04-09 11:49:34 +00:00
Jb Evain e083f12ffc 2008-04-09 Jb Evain <[email protected]>
* UnaryExpression.cs, Expression.cs: implement IsLifted and IsLifted
	to null for simple unary operators. Implement Not compilation.


svn path=/trunk/mcs/; revision=100215
2008-04-09 11:44:47 +00:00
Jb Evain b93e9b9fe7 cleol
svn path=/trunk/mcs/; revision=100214
2008-04-09 11:43:54 +00:00
Jb Evain b984e4c514 2008-04-08 Jb Evain <[email protected]>
* ElementInit.cs: emit pop if the add method doesn't return void.


svn path=/trunk/mcs/; revision=100093
2008-04-08 09:39:17 +00:00
Jb Evain 8d33e13da7 ifdef out DebugContext on net_2_1
svn path=/trunk/mcs/; revision=99367
2008-03-30 19:53:15 +00:00
Jb Evain 2ce040ac87 tabs
svn path=/trunk/mcs/; revision=99175
2008-03-28 10:22:37 +00:00
Leonid Freydovich 2f2417c33d Add some TARGET_JVM specific code.
svn path=/trunk/mcs/; revision=99132
2008-03-27 15:44:08 +00:00
Jb Evain c1d29301cb add null checks for convert
svn path=/trunk/mcs/; revision=98688
2008-03-20 20:02:15 +00:00
Jb Evain 5f7aee49d3 unrevert now that gmcs is fixed
svn path=/trunk/mcs/; revision=98659
2008-03-20 08:44:46 +00:00
Jb Evain 2925a40c8c 2008-03-20 Jb Evain <[email protected]>
* Expression.cs: use the new and more complete IsAssignableTo
	instead of IsAssignableFrom.

svn path=/trunk/mcs/; revision=98655
2008-03-20 06:36:12 +00:00
Jb Evain 57d7e09ca8 refactoring
svn path=/trunk/mcs/; revision=98635
2008-03-19 21:45:42 +00:00
Jb Evain b005aab7bc 2008-03-19 Jb Evain <[email protected]>
* LambdaExpression.cs: use the new standardified IsAssignableTo,
	fixes ExpressionTest_NewArrayBounds.TestArrayAssignability.


svn path=/trunk/mcs/; revision=98632
2008-03-19 21:14:32 +00:00
Jb Evain ec54962ec9 2008-03-19 Jb Evain <[email protected]>
* Extensions.cs (Type.IsAssignableTo): deal with arrays.


svn path=/trunk/mcs/; revision=98631
2008-03-19 21:13:08 +00:00
Jb Evain e764c855d6 revert
svn path=/trunk/mcs/; revision=98189
2008-03-13 17:36:27 +00:00
Jb Evain b704450bfa revert
svn path=/trunk/mcs/; revision=98188
2008-03-13 17:32:10 +00:00
Marek Safar b77677bf9a 2008-03-13 Marek Safar <[email protected]>
* Extensions.cs: Disabled redundant OnFieldOrProperty.
	

svn path=/trunk/mcs/; revision=98184
2008-03-13 17:05:07 +00:00
Jb Evain 0284dfbd5e rename wrt to our conventions
svn path=/trunk/mcs/; revision=98156
2008-03-13 15:12:53 +00:00
Jb Evain 53c371bc91 2008-03-13 Jb Evain <[email protected]>
* Extensions.cs: a collection of useful extension methods
	which are useful to S.L.E.

	* Expression.cs, MemberExpression.cs,
	MemberAssignment.cs, MemberBinding.cs:
		refactor common pattern into a common method.


svn path=/trunk/mcs/; revision=98154
2008-03-13 15:06:57 +00:00
Jb Evain 5507f90e3a 2008-03-13 Jb Evain <[email protected]>
* NewArrayExpression.cs (EmitNewArrayBounds): implement.


svn path=/trunk/mcs/; revision=98126
2008-03-13 10:06:39 +00:00
Jb Evain d36da9d01a 2008-03-12 Jb Evain <[email protected]>
* NewArrayExpression.cs (Emit): naive implementation of emit support
	for array initialization.


svn path=/trunk/mcs/; revision=98007
2008-03-11 22:47:50 +00:00
Jb Evain 484b45ea76 2008-03-11 Jb Evain <[email protected]>
* BinaryExpression.cs: very naive implementation of emitting
	array accesses.


svn path=/trunk/mcs/; revision=97999
2008-03-11 21:49:20 +00:00
Jb Evain 6f28b0a720 2008-03-11 Jb Evain <[email protected]>
* *.cs: Move the different Emit* helpers to EmitContext,
	so that they get used more naturally by the non Expression
	types.

svn path=/trunk/mcs/; revision=97992
2008-03-11 19:29:28 +00:00
Jb Evain 048e0cb2a4 revert simplification
svn path=/trunk/mcs/; revision=97868
2008-03-10 15:11:49 +00:00
Jb Evain 4c57a4d325 simplify
svn path=/trunk/mcs/; revision=97866
2008-03-10 14:59:36 +00:00
Jb Evain a72aad2725 2008-03-10 Jb Evain <[email protected]>
* TypeBinaryExpression.cs, Expression.cs: refactor an EmitIsInst.
	* UnaryExpression.cs: implement TypeAs using the EmitIsInst.

svn path=/trunk/mcs/; revision=97860
2008-03-10 13:04:13 +00:00
Jb Evain b582bfe92f 2008-03-10 Jb Evain <[email protected]>
* TypeBinaryExpression.cs (Emit): implement.


svn path=/trunk/mcs/; revision=97856
2008-03-10 12:05:06 +00:00
Jb Evain cfd19f9980 2008-03-08 Jb Evain <[email protected]>
* MemberListBinding.cs (Emit): implement.
	* MemberBinding.cs (EmitLoadMember): add helper.


svn path=/trunk/mcs/; revision=97775
2008-03-08 16:56:04 +00:00
Jb Evain 2f722ebbaa 2008-03-08 Jb Evain <[email protected]>
* MemberAssignment.cs (Emit): implement.


svn path=/trunk/mcs/; revision=97764
2008-03-08 14:56:35 +00:00
Jb Evain 900173dd4f refactor
svn path=/trunk/mcs/; revision=97763
2008-03-08 14:56:16 +00:00