Yield: keep the value on the stack and flag the executor to suspend. */
(&mut self)
| 167 | |
| 168 | /* Yield: keep the value on the stack and flag the executor to suspend. */ |
| 169 | pub(crate) fn handle_yield(&mut self) -> Result<(), VmErr> { |
| 170 | let v = self.pop()?; |
| 171 | self.push(v); |
| 172 | self.yielded = true; |
| 173 | Ok(()) |
| 174 | } |
| 175 | |
| 176 | /* Side-effecting / impure ops: assert, del, global/nonlocal, import, type alias, raise, await. */ |
| 177 | pub(crate) fn handle_side(&mut self, op: OpCode, operand: u16, chunk: &SSAChunk, slots: &mut [Val]) -> Result<(), VmErr> { |
no test coverage detected