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
13
extern crate alloc;

use crate::records::base_code_gen_context::BaseCodeGenContext;
use crate::records::shared_code_allocator::SharedCodeAllocator;

// Not Clone: a code-gen context owns a CodeAllocator (mmap'd executable
// memory) and the shared allocator — non-copyable in C++ too.
#[derive(Debug)]
#[repr(C)]
pub struct StandaloneCodeGenContext {
    pub base: BaseCodeGenContext,
    pub(crate) shared_allocator: SharedCodeAllocator,
}