rust/src/interpreter/terminator
Scott Olson 330be7766f Represent PrimVals as "bitbags".
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`.
2016-10-20 04:42:19 -06:00
..
intrinsics.rs Represent PrimVals as "bitbags". 2016-10-20 04:42:19 -06:00
mod.rs Represent PrimVals as "bitbags". 2016-10-20 04:42:19 -06:00