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
#[cfg(any())]
use crate::macros::codegen_assert::CODEGEN_ASSERT;
#[cfg(any())]
use crate::records::label::Label;

#[cfg(any())]
impl crate::records::assembly_builder_x_64::AssemblyBuilderX64 {
    pub(crate) fn get_label_offset(&self, label: &Label) -> u32 {
        CODEGEN_ASSERT!(label.location != !0u32);
        label.location
    }
}