luaur-code-gen 0.1.3

Native (A64/X64) code generation for Luau (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::records::ir_block::IrBlock;
use crate::records::ir_lowering_x_64::IrLoweringX64;

impl IrLoweringX64 {
    pub fn jump_or_fallthrough(&mut self, target: &mut IrBlock, next: &IrBlock) {
        if !self.is_fallthrough_block(target, next) {
            unsafe {
                (*self.build).jmp_label(&mut target.label);
            }
        }
    }
}