-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make LambdaCompiler prefer interpretation to compilation on iOS #54970
Make LambdaCompiler prefer interpretation to compilation on iOS #54970
Conversation
Tagging subscribers to this area: @cston Issue DetailsThis is an attempt to address #47112 based on Egor's suggestion.
|
src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj
Outdated
Show resolved
Hide resolved
Co-authored-by: Stephen Toub <stoub@microsoft.com>
src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj
Outdated
Show resolved
Hide resolved
src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj
Outdated
Show resolved
Hide resolved
Actually,
|
Can you file separate issues for each and tag them with |
src/libraries/System.Linq.Expressions/src/System.Linq.Expressions.csproj
Show resolved
Hide resolved
src/libraries/System.Linq.Expressions/tests/Dynamic/InvokeMemberBindingTests.cs
Outdated
Show resolved
Hide resolved
…led as IsInterpreting only
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - I think it makes sense to follow up w/ wasm changes.
This is an attempt to address #47112 based on Egor's suggestion.
The changes:
IsInterpreting
MSBuild property to 'true' in case of iOS;System.Linq.Expressions.ExpressionCreator
class internal static in order not to introduce new public type; otherwise it throwsType 'System.Linq.Expressions.ExpressionCreator<TDelegate>' does not exist in the reference but it does exist in the implementation.
PlatformDetection.IsLinqExpressionsBuiltWithIsInterpretingOnly
which checks whether theSystem.Linq.Expressions
is built withIsInterpreting
property set totrue
. To do so, it uses reflection to verify theExpression.Accept
method doesn't exist.