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,
)
| 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 | } |
no test coverage detected