Lower a local function to a [`CalleeKind`] and [ContextArgs] pair.
(
env: &mut FuncEnv<P>,
index: DefinedFuncIndex,
)
| 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. |