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

Method lower_local

winch/codegen/src/codegen/call.rs:181–189  ·  view source on GitHub ↗

Lower a local function to a [`CalleeKind`] and [ContextArgs] pair.

(
        env: &mut FuncEnv<P>,
        index: DefinedFuncIndex,
    )

Source from the content-addressed store, hash-verified

179
180 /// Lower a local function to a [`CalleeKind`] and [ContextArgs] pair.
181 fn lower_local<P: PtrSize>(
182 env: &mut FuncEnv<P>,
183 index: DefinedFuncIndex,
184 ) -> (CalleeKind, ContextArgs) {
185 (
186 CalleeKind::direct(env.name_wasm(index)),
187 ContextArgs::pinned_callee_and_caller_vmctx(),
188 )
189 }
190
191 /// Lowers a function import by loading its address to the next available
192 /// register.

Callers

nothing calls this directly

Calls 1

name_wasmMethod · 0.80

Tested by

no test coverage detected