MCPcopy Index your code
hub / github.com/RustPython/RustPython / new_jit_error

Function new_jit_error

crates/vm/src/builtins/function/jit.rs:42–45  ·  view source on GitHub ↗
(msg: String, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

40}
41
42pub 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
47fn get_jit_arg_type(dict: &Py<PyDict>, name: &str, vm: &VirtualMachine) -> PyResult<JitType> {
48 if let Some(value) = dict.get_item_opt(name, vm)? {

Callers 4

__jit__Method · 0.85
get_jit_arg_typeFunction · 0.85
get_jit_arg_typesFunction · 0.85
jit_ret_typeFunction · 0.85

Calls 2

new_exception_msgMethod · 0.80
to_ownedMethod · 0.45

Tested by

no test coverage detected