330be7766f
Now instead of holding a native type based on the tag, all PrimVals store a u64 (the `bits`), along with a `kind` corresponding to the variant as it would be in the old PrimVal representation. This commit makes no major optimizations and attempts to not change any behaviour. There will be commits to follow that make use of this representation to eliminate unnecessary allocation hacks like in `value_to_primval`. A number of places could be even more cleaned up after this commit, particularly in `cast.rs`. |
||
---|---|---|
.. | ||
intrinsics.rs | ||
mod.rs |