luaur-code-gen 0.1.1

Native (A64/X64) code generation for Luau (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(C)]
pub struct BytecodeBlock {
    /// 'start' and 'finish' define an inclusive range of instructions which belong to the block
    pub startpc: i32,
    pub finishpc: i32,
}

impl Default for BytecodeBlock {
    fn default() -> Self {
        Self {
            startpc: -1,
            finishpc: -1,
        }
    }
}