| 3f530214 | 25-Mar-2025 |
Nick Fitzgerald <[email protected]> |
Generalize `VMGcObjectDataMut` for immutable GC object accesses too (#10462)
* Generalize `VMGcObjectDataMut` for immutable GC object accesses too
This makes it generic over a `T` and then shared+i
Generalize `VMGcObjectDataMut` for immutable GC object accesses too (#10462)
* Generalize `VMGcObjectDataMut` for immutable GC object accesses too
This makes it generic over a `T` and then shared+immutable accesses are bound by `T: AsRef<[u8]>` and exclusive+mutable accesses are bound by `T: AsMut<[u8]>`.
This allows reusing these accessors in more places in the future, and means there are fewer places to bounds check accesses and remember to do little-endian conversion and all that.
* Make `VMGcObjectData` a fancy unsized newtype
* fix no-gc builds
show more ...
|