pub struct Compiler {
pub asm: Assembler,
/* private fields */
}Expand description
PVM-to-x86-64 compiler.
Fields§
§asm: AssemblerImplementations§
Source§impl Compiler
impl Compiler
pub fn new( bitmask: &[u8], _jump_table: &[u32], helpers: HelperFns, code_len: usize, jit_va_base: u64, mem_cycles: u8, ) -> Self
Sourcepub fn compile(self, code: &[u8], bitmask: &[u8]) -> CompileResult
pub fn compile(self, code: &[u8], bitmask: &[u8]) -> CompileResult
Compile directly from raw code+bitmask. Streaming single-pass: gas block discovery + decode + gas sim + codegen in one loop.
Auto Trait Implementations§
impl Freeze for Compiler
impl RefUnwindSafe for Compiler
impl !Send for Compiler
impl !Sync for Compiler
impl Unpin for Compiler
impl UnsafeUnpin for Compiler
impl UnwindSafe for Compiler
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