Commit Graph
376 Commits
Author SHA1 Message Date
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
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