(msg: String, vm: &VirtualMachine)
| 40 | } |
| 41 | |
| 42 | pub fn new_jit_error(msg: String, vm: &VirtualMachine) -> PyBaseExceptionRef { |
| 43 | let jit_error = vm.ctx.exceptions.jit_error.to_owned(); |
| 44 | vm.new_exception_msg(jit_error, msg.into()) |
| 45 | } |
| 46 | |
| 47 | fn get_jit_arg_type(dict: &Py<PyDict>, name: &str, vm: &VirtualMachine) -> PyResult<JitType> { |
| 48 | if let Some(value) = dict.get_item_opt(name, vm)? { |
no test coverage detected