Skip to content

Commit

Permalink
Add more static preinitialization support (#92739)
Browse files Browse the repository at this point in the history
Resolves #78681 (or "there's nothing else we'd be willing to do for it"). This is the rest of what I implemented trying to get `SearchValues.Create(someVeryLongString)` to preinitialize. It doesn't actually enable more `SearchValues` scenarios because I eventually hit codepaths that would require us to implement hardware intrinsics support in the interpreter. The `SearchValues` scenarios that we do support were implemented in #92470 and #92666. But since I already implemented this, here it is; maybe it will be useful for something else:

* Support for modelling `Span<X>`, including creating it from stackalloc
* Support for math/comparisons with native int
* `Unsafe.Add`
  • Loading branch information
MichalStrehovsky authored Sep 28, 2023
1 parent c01efb8 commit 9765a3c
Show file tree
Hide file tree
Showing 2 changed files with 263 additions and 45 deletions.
Loading

0 comments on commit 9765a3c

Please sign in to comment.