Commit 09ef1ca
committed
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 #78681.1 parent 963954a commit 09ef1ca
File tree
2 files changed
+393
-25
lines changed- src
- coreclr/tools/aot/ILCompiler.Compiler/Compiler
- tests/nativeaot/SmokeTests/Preinitialization
2 files changed
+393
-25
lines changed
0 commit comments