| 27 | const EXTENDED_OPS: &[Inst<'_>] = pulley_interpreter::for_each_extended_op!(define); |
| 28 | |
| 29 | enum Operand<'a> { |
| 30 | Normal { |
| 31 | name: &'a str, |
| 32 | ty: &'a str, |
| 33 | }, |
| 34 | Writable { |
| 35 | name: &'a str, |
| 36 | ty: &'a str, |
| 37 | }, |
| 38 | TrapCode { |
| 39 | name: &'a str, |
| 40 | ty: &'a str, |
| 41 | }, |
| 42 | Binop { |
| 43 | dst: &'a str, |
| 44 | src1: &'a str, |
| 45 | src2: &'a str, |
| 46 | }, |
| 47 | } |
| 48 | |
| 49 | impl Inst<'_> { |
| 50 | fn operands(&self) -> impl Iterator<Item = Operand<'_>> + use<'_> { |
no outgoing calls
no test coverage detected