Skip to content
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

Extend preinitialization interpreter #92470

Merged
merged 4 commits into from
Sep 27, 2023

Commits on Sep 22, 2023

  1. Extend preinitialization interpreter

    This is enough to support preinitializing:
    
    ```csharp
    static readonly SearchValues<char> s_searchValues = SearchValues.Create("Lol");
    ```
    
    Things that I had to add:
    
    * Support for `typeof(T) == typeof(Bar)` (this will be useful later, we'll eventually be able to also freeze these).
    * Support static interface method calls
    * Constrained method calls on valuetypes
    * More `ReadOnlySpan` construction patterns, `.Length`
    * More indirect load/store support
    
    Resolves dotnet#78681.
    MichalStrehovsky committed Sep 22, 2023
    Configuration menu
    Copy the full SHA
    09ef1ca View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2023

  1. More tests

    MichalStrehovsky committed Sep 23, 2023
    Configuration menu
    Copy the full SHA
    0a9c208 View commit details
    Browse the repository at this point in the history
  2. Remove hack

    MichalStrehovsky committed Sep 23, 2023
    Configuration menu
    Copy the full SHA
    16f724f View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2023

  1. FB

    MichalStrehovsky committed Sep 25, 2023
    Configuration menu
    Copy the full SHA
    f55fb70 View commit details
    Browse the repository at this point in the history