* BinaryExpression.cs (EmitBinaryOperator): Mask out the upper bits of the
shift amount like mcs compiled code does.
svn path=/trunk/mcs/; revision=109521
* 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
* Extensions.cs: Add Type.MakeNullableType helper.
* Expression.cs (MakeSimpleBinary, MakeBoolBinar): Properly
creat lifted/lifted to null/not lifted
user defined binary expressions.
* BinaryExpression.cs (Emit): implement compilation of
lifted and lifted to null user defined binary operators.
svn path=/trunk/mcs/; revision=104973
* *.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
* 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
* 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
* 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
* 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