MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / from

Method from

cranelift/codegen/src/ir/dfg.rs:774–789  ·  view source on GitHub ↗
(data: ValueData)

Source from the content-addressed store, hash-verified

772
773impl From<ValueData> for ValueDataPacked {
774 fn from(data: ValueData) -> Self {
775 match data {
776 ValueData::Inst { ty, num, inst } => {
777 Self::make(Self::TAG_INST, ty, num.into(), inst.as_bits())
778 }
779 ValueData::Param { ty, num, block } => {
780 Self::make(Self::TAG_PARAM, ty, num.into(), block.as_bits())
781 }
782 ValueData::Alias { ty, original } => {
783 Self::make(Self::TAG_ALIAS, ty, 0, original.as_bits())
784 }
785 ValueData::Union { ty, x, y } => {
786 Self::make(Self::TAG_UNION, ty, x.as_bits(), y.as_bits())
787 }
788 }
789 }
790}
791
792impl From<ValueDataPacked> for ValueData {

Callers

nothing calls this directly

Calls 3

as_bitsMethod · 0.80
fieldMethod · 0.45
expectMethod · 0.45

Tested by

no test coverage detected