luaur-code-gen 0.1.3

Native (A64/X64) code generation for Luau (Rust).
Documentation
1
2
3
4
5
6
7
8
9
use crate::macros::codegen_assert::CODEGEN_ASSERT;
use crate::records::label::Label;

impl crate::records::assembly_builder_a_64::AssemblyBuilderA64 {
    pub fn get_label_offset(&self, label: &Label) -> u32 {
        CODEGEN_ASSERT!(label.location != !0u32);
        label.location * 4
    }
}