fn finalize_function(&mut self) {
        for reg in 0..16 {
            self.spill_chip8_reg(reg);
        }

        self.emit_restore_regs();

        self.emit_rsi_restore();

        self.emit_raw(&[
            0x5d,   // `pop rbp`
            0xC3,   // `ret`
        ]);
    }
/// Finalizes a function's JIT code by synchronizing all CHIP-8 registers, restoring all callee-
/// saved host registers and emitting a `ret`.
Finalizes a function's JIT code by synchronizing all CHIP-8 registers, restoring all callee
saved host registers and emitting a `ret`.
Finalizes a function ' s JIT code by synchronizing all CHIP - 8 registers restoring all callee saved host registers and emitting a ` ret ` .
fn finalize_function(&mut self) {
        for reg in 0..16 {
            self.spill_chip8_reg(reg);
        }
        self.emit_restore_regs();
        self.emit_rsi_restore();
        self.emit_raw(&[
            0x5d,   // `pop rbp`
            0xC3,   // `ret`
        ]);
    }
fn finalize_function ( & mut self ) { for reg in 0 .. 16 { self . spill_chip8_reg ( reg ) ; } self . emit_restore_regs ( ) ; self . emit_rsi_restore ( ) ; self . emit_raw ( & [ 0x5d , // `pop rbp` 0xC3 , // `ret` ] ) ; }
Finalizes a function's JIT code by synchronizing all CHIP-8 registers, restoring all callee
saved host registers and emitting a `ret`.
Finalizes a function ' s JIT code by synchronizing all CHIP - 8 registers restoring all callee saved host registers and emitting a ` ret ` .
&mut self
&mut self