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

Method new

cranelift/codegen/src/ir/instructions.rs:75–84  ·  view source on GitHub ↗

Construct a BlockCall with the given block and arguments.

(
        block: Block,
        args: impl IntoIterator<Item = BlockArg>,
        pool: &mut ValueListPool,
    )

Source from the content-addressed store, hash-verified

73
74 /// Construct a BlockCall with the given block and arguments.
75 pub fn new(
76 block: Block,
77 args: impl IntoIterator<Item = BlockArg>,
78 pool: &mut ValueListPool,
79 ) -> Self {
80 let mut values = ValueList::default();
81 values.push(Self::block_to_value(block), pool);
82 values.extend(args.into_iter().map(|arg| arg.encode_as_value()), pool);
83 Self { values }
84 }
85
86 /// Return the block for this BlockCall.
87 pub fn block(&self, pool: &ValueListPool) -> Block {

Callers

nothing calls this directly

Calls 6

encode_as_valueMethod · 0.80
newFunction · 0.50
pushMethod · 0.45
extendMethod · 0.45
mapMethod · 0.45
into_iterMethod · 0.45

Tested by

no test coverage detected