pub struct NullJitBackend;Expand description
No-op backend installed by crate::vm::Vm::new_minimal in
luna-core. Both calls report “nothing compiled” so the interp
dispatcher always takes the standard path. Embedders who want a
real JIT either depend on the luna crate (whose
Vm::new_minimal_with_jit swaps in CraneliftBackend) or write
their own IntChunkCompiler / TraceCompiler implementation.
Trait Implementations§
Source§impl Clone for NullJitBackend
impl Clone for NullJitBackend
Source§fn clone(&self) -> NullJitBackend
fn clone(&self) -> NullJitBackend
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 NullJitBackend
Source§impl Debug for NullJitBackend
impl Debug for NullJitBackend
Source§impl Default for NullJitBackend
impl Default for NullJitBackend
Source§fn default() -> NullJitBackend
fn default() -> NullJitBackend
Returns the “default value” for a type. Read more
Source§impl IntChunkCompiler for NullJitBackend
impl IntChunkCompiler for NullJitBackend
Source§fn try_compile(
&self,
_: &mut dyn JitStorage,
_: Gc<Proto>,
_: bool,
_: bool,
) -> CompileResult
fn try_compile( &self, _: &mut dyn JitStorage, _: Gc<Proto>, _: bool, _: bool, ) -> CompileResult
Attempt to compile
proto. Returns CompileResult::Compiled on
a whitelist hit or CompileResult::Skipped when the body is
outside the JIT’s supported shape. Read moreSource§fn enter(&self, _: *mut Vm, _: Option<Gc<LuaClosure>>) -> JitVmGuard
fn enter(&self, _: *mut Vm, _: Option<Gc<LuaClosure>>) -> JitVmGuard
Install the active
Vm + closure pointer into the JIT
helpers’ thread-local slots; the returned guard restores
state on drop. For NullJitBackend this is a no-op
(helpers never fire because nothing compiled). Read moreSource§impl TraceCompiler for NullJitBackend
impl TraceCompiler for NullJitBackend
Source§fn try_compile_trace(
&self,
_: &mut dyn JitStorage,
_: &TraceRecord,
_: CompileOptions,
) -> Option<CompiledTrace>
fn try_compile_trace( &self, _: &mut dyn JitStorage, _: &TraceRecord, _: CompileOptions, ) -> Option<CompiledTrace>
Attempt to lower
record into native code under opts. Returns
None if the lowerer bailed at any checkpoint. Read moreSource§fn last_compile_checkpoint(&self) -> &'static str
fn last_compile_checkpoint(&self) -> &'static str
Name of the lowerer’s last-reached checkpoint (diagnostic; lets
the recorder bucket failures by phase).
Auto Trait Implementations§
impl Freeze for NullJitBackend
impl RefUnwindSafe for NullJitBackend
impl Send for NullJitBackend
impl Sync for NullJitBackend
impl Unpin for NullJitBackend
impl UnsafeUnpin for NullJitBackend
impl UnwindSafe for NullJitBackend
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