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

Method get_local_address

winch/codegen/src/frame/mod.rs:286–293  ·  view source on GitHub ↗

Returns the address of the local at the given index. # Panics This function panics if the index is not associated to a local.

(
        &self,
        index: u32,
        masm: &mut M,
    )

Source from the content-addressed store, hash-verified

284 /// # Panics
285 /// This function panics if the index is not associated to a local.
286 pub fn get_local_address<M: MacroAssembler>(
287 &self,
288 index: u32,
289 masm: &mut M,
290 ) -> Result<(WasmValType, M::Address)> {
291 let slot = self.get_wasm_local(index);
292 Ok((slot.ty, masm.local_address(&slot)?))
293 }
294}

Callers 1

emit_set_localMethod · 0.45

Calls 3

OkFunction · 0.85
get_wasm_localMethod · 0.80
local_addressMethod · 0.45

Tested by

no test coverage detected