Skip to content

Commit

Permalink
Extend preinitialization interpreter
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
MichalStrehovsky committed Sep 22, 2023
1 parent 963954a commit 09ef1ca
Show file tree
Hide file tree
Showing 2 changed files with 393 additions and 25 deletions.
Loading

0 comments on commit 09ef1ca

Please sign in to comment.