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

Method callee_from_index

winch/codegen/src/codegen/env.rs:186–193  ·  view source on GitHub ↗

Resolves a function [`Callee`] from an index.

(&mut self, idx: FuncIndex)

Source from the content-addressed store, hash-verified

184
185 /// Resolves a function [`Callee`] from an index.
186 pub(crate) fn callee_from_index(&mut self, idx: FuncIndex) -> Callee {
187 let import = self.translation.module.is_imported_function(idx);
188 if import {
189 Callee::Import(idx)
190 } else {
191 Callee::Local(idx)
192 }
193 }
194
195 /// Converts a [wasmparser::BlockType] into a [BlockSig].
196 pub(crate) fn resolve_block_sig(&self, ty: BlockType) -> Result<BlockSig> {

Callers 1

visit_callMethod · 0.80

Calls 3

ImportEnum · 0.85
LocalClass · 0.85
is_imported_functionMethod · 0.80

Tested by

no test coverage detected