(&self)
| 699 | } |
| 700 | |
| 701 | pub fn dests(&self) -> impl Iterator<Item = TempIndex> + '_ { |
| 702 | use Bytecode::*; |
| 703 | let slice = match self { |
| 704 | Load(_, dest, _) => std::slice::from_ref(dest), |
| 705 | Assign(_, dest, _, _) => std::slice::from_ref(dest), |
| 706 | Call(_, dests, _, _, _) => dests.as_slice(), |
| 707 | Ret(..) | Branch(..) | Jump(..) | VariantSwitch(..) | Label(..) | Abort(..) |
| 708 | | Nop(..) | SaveMem(..) | Prop(..) => &[], |
| 709 | }; |
| 710 | slice.iter().copied() |
| 711 | } |
| 712 | |
| 713 | pub fn srcs(&self) -> impl Iterator<Item = TempIndex> + '_ { |
| 714 | use Bytecode::*; |
no outgoing calls
no test coverage detected