pub enum CompileResult {
Compiled {
entry: *const u8,
num_args: u8,
returns_one: bool,
arg_float_mask: u8,
arg_table_mask: u8,
ret_is_float: bool,
ret_is_table: bool,
},
Skipped,
}Expand description
Outcome of a closure-compilation attempt. Kept ABI-compatible with
the legacy crate::jit::cache_lookup_or_compile return tuple so the
Vm::populate_jit_cache call site doesn’t have to re-shape its
destructure.
Variants§
Compiled
The proto was lowered (or served from cache); the fields mirror
the legacy 7-tuple returned by cache_lookup_or_compile.
Fields
§
entry: *const u8Mmap’d entry address; transmute to the matching unsafe extern "C" fn shape at the call site.
§
returns_one: boolTrue when the compiled chunk produces a single observable
result (Op::Return1); false when it only side-effects.
Skipped
The proto fell outside the whitelist or its compile pass bailed. The interpreter handles it unchanged.
Trait Implementations§
Source§impl Clone for CompileResult
impl Clone for CompileResult
Source§fn clone(&self) -> CompileResult
fn clone(&self) -> CompileResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CompileResult
Auto Trait Implementations§
impl !Send for CompileResult
impl !Sync for CompileResult
impl Freeze for CompileResult
impl RefUnwindSafe for CompileResult
impl Unpin for CompileResult
impl UnsafeUnpin for CompileResult
impl UnwindSafe for CompileResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more