Commit Graph
348 Commits
Author SHA1 Message Date
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
Jb Evain 0cad823445 refactor
svn path=/trunk/mcs/; revision=97760
2008-03-08 14:13:58 +00:00
Jb Evain 734dc2f5a5 2008-03-08 Jb Evain <[email protected]>
* ElementInit.cs (Emit): implement.


svn path=/trunk/mcs/; revision=97756
2008-03-08 14:08:33 +00:00
Jb Evain 838d96dfd2 don't forget to load the result of the new expression
svn path=/trunk/mcs/; revision=97710
2008-03-07 18:32:18 +00:00
Jb Evain 50f329e08b refactoring
svn path=/trunk/mcs/; revision=97682
2008-03-07 12:16:27 +00:00
Jb Evain 7e79753614 emit stubs
svn path=/trunk/mcs/; revision=97680
2008-03-07 11:50:43 +00:00
Jb Evain 796cd76f9d constify
svn path=/trunk/mcs/; revision=97624
2008-03-06 20:15:51 +00:00
Jb Evain 5b0ae83e6d fix build
svn path=/trunk/mcs/; revision=97521
2008-03-06 14:58:29 +00:00
Jb Evain 740446d02b 2008-03-06 Jb Evain <[email protected]>
* EmitContext.cs: the DebugContext delegate the CreateDelegate
	to a DynamicContext to avoid visibility issues in debug mode.

svn path=/trunk/mcs/; revision=97517
2008-03-06 14:02:21 +00:00
Jb Evain c57079e453 2008-03-06 Jb Evain <[email protected]>
* EmitContext.cs: Lambda methods bypass JIT visibility checks.


svn path=/trunk/mcs/; revision=97515
2008-03-06 13:54:40 +00:00
Jb Evain 1584b2242f 2008-03-06 Jb Evain <[email protected]>
* MethodCallExpression.cs, Expression.cs: refactor method calling
	into a more sophisticated EmitCall in Expression.
	* InvocationExpression.cs (Emit): implement using the previous EmitCall.


svn path=/trunk/mcs/; revision=97510
2008-03-06 13:30:15 +00:00
Jb Evain fa07ff15f0 refactor
svn path=/trunk/mcs/; revision=97501
2008-03-06 12:02:43 +00:00
Jb Evain a98be1ad67 2008-03-06 Jb Evain <[email protected]>
* Expression.cs: add a EmitCall helper.
	* MemberExpression.cs: implement property access.


svn path=/trunk/mcs/; revision=97499
2008-03-06 12:01:24 +00:00
Jb Evain bd0f4330bd 2008-03-06 Jb Evain <[email protected]>
* MethodCallExpression.cs, Expression.cs: refactor a EmitLoad in Expression.
	* MemberExpression.cs: use EmitLoad to load the instance field if needed.


svn path=/trunk/mcs/; revision=97497
2008-03-06 11:46:27 +00:00
Jb Evain 38047d801d 2008-03-06 Jb Evain <[email protected]>
* BinaryExpression.cs, Expression.cs: move EmitStored from
	BinaryExpression to Expression.
	* MethodCallExpression.cs: allow method calls on structs.


svn path=/trunk/mcs/; revision=97460
2008-03-05 22:31:43 +00:00
Jb Evain e1fd90ecb7 2008-03-05 Jb Evain <[email protected]>
* Expression.cs: Fix the Call method which takes an array
	of type arguments.


svn path=/trunk/mcs/; revision=97456
2008-03-05 22:09:43 +00:00
Jb Evain 1113134612 no need for this guy
svn path=/trunk/mcs/; revision=97433
2008-03-05 19:33:15 +00:00
Jb Evain 153e2f655e refactoring
svn path=/trunk/mcs/; revision=97397
2008-03-05 15:00:11 +00:00