-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Make LambdaCompiler prefer interpretation to compilation on iOS #54970
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
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 <[email protected]>
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:
IsInterpretingMSBuild property to 'true' in case of iOS;System.Linq.Expressions.ExpressionCreatorclass 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.IsLinqExpressionsBuiltWithIsInterpretingOnlywhich checks whether theSystem.Linq.Expressionsis built withIsInterpretingproperty set totrue. To do so, it uses reflection to verify theExpression.Acceptmethod doesn't exist.