pub struct BytecodeBuilder { /* private fields */ }Implementations§
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn add_child_function(&mut self, fid: u32) -> i16
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn add_class_shape(&mut self, shape: ClassShape) -> i32
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn add_constant(&mut self, key: ConstantKey, value: Constant) -> i32
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn add_constant_boolean(&mut self, value: bool) -> i32
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn add_constant_closure(&mut self, fid: u32) -> i32
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn add_constant_integer(&mut self, value: i64) -> i32
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn add_constant_nil(&mut self) -> i32
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn add_constant_number(&mut self, value: f64) -> i32
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn add_constant_string(&mut self, value: StringRef) -> i32
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn add_constant_table(&mut self, shape: &TableShape) -> i32
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn add_debug_remark(&mut self, args: Arguments<'_>)
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn add_fb_slot(&mut self, t: LuauFeedbackType) -> u32
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn add_import(&mut self, iid: u32) -> i32
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn add_string_table_entry(&mut self, value: StringRef) -> u32
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn add_userdata_type(&mut self, name: &str) -> u32
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn annotate_instruction(&self, result: &mut String, fid: u32, instpos: u32)
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn begin_function(&mut self, numparams: u8, isvararg: bool) -> u32
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn new(encoder: Option<*mut dyn BytecodeEncoder>) -> Self
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn dump_constant(&self, result: &mut String, k: i32, detailed: bool)
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn dump_current_function(&self, dumpinstoffs: &mut Vec<i32>) -> String
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn dump_everything(&self) -> String
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn dump_function(&self, id: u32) -> String
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn dump_source_remarks(&self) -> String
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn dump_type_info(&self) -> String
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn emit_ad(&mut self, op: LuauOpcode, a: u8, d: i16)
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn emit_e(&mut self, op: LuauOpcode, e: i32)
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn emit_label(&self) -> usize
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn end_function(&mut self, maxstacksize: u8, numupvalues: u8, flags: u8)
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn expand_jumps(&mut self)
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn fold_jumps(&mut self)
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn get_bytecode(&self) -> &String
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn get_debug_pc(&self) -> u32
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn get_function_data(&self, id: u32) -> String
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn get_import_id(id0: i32) -> u32
pub fn get_import_id2(id0: i32, id1: i32) -> u32
pub fn get_import_id3(id0: i32, id1: i32, id2: i32) -> u32
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn get_import_id_i32_i32(id0: i32, id1: i32) -> u32
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn get_instruction_count(&self) -> usize
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn get_string_table(&self) -> Vec<&str>
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn get_total_instruction_count(&self) -> usize
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn get_type_encoding_version(&self) -> u8
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn get_version(&self) -> u8
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn needs_debug_remarks(&self) -> bool
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn patch_jump_d(&mut self, jump_label: usize, target_label: usize) -> bool
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn patch_skip_c(&mut self, jump_label: usize, target_label: usize) -> bool
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn push_debug_upval(&mut self, name: StringRef)
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn push_local_type_info( &mut self, type: LuauBytecodeType, reg: u8, startpc: u32, endpc: u32, )
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn push_upval_type_info(&mut self, type: LuauBytecodeType)
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn set_debug_function_line_defined(&mut self, line: i32)
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn set_debug_function_name(&mut self, name: StringRef)
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn set_debug_line(&mut self, line: i32)
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn set_dump_flags(&mut self, flags: u32)
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn set_dump_source(&mut self, source: &str)
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn set_function_type_info(&mut self, value: String)
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn set_main_function(&mut self, fid: u32)
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn try_get_userdata_type_name( &self, type_: LuauBytecodeType, ) -> Option<&str>
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn undo_emit(&mut self, op: LuauOpcode)
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn use_userdata_type(&mut self, index: u32)
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn validate_instructions(&self)
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn validate_variadic(&self)
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn write_class_shape(&self, ss: &mut String, cs: &ClassShape)
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn write_function(&mut self, ss: &mut String, id: u32, flags: u8)
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn write_line_info(&self, ss: &mut String)
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub const DUMP_CODE: u32
pub const DUMP_LINES: u32
pub const DUMP_SOURCE: u32
pub const DUMP_LOCALS: u32
pub const DUMP_REMARKS: u32
pub const DUMP_TYPES: u32
pub const DUMP_CONSTANTS: u32
pub fn get_string_hash(key: StringRef) -> u32
Trait Implementations§
Source§impl Clone for BytecodeBuilder
impl Clone for BytecodeBuilder
Source§fn clone(&self) -> BytecodeBuilder
fn clone(&self) -> BytecodeBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BytecodeBuilder
impl Debug for BytecodeBuilder
Auto Trait Implementations§
impl !RefUnwindSafe for BytecodeBuilder
impl !Send for BytecodeBuilder
impl !Sync for BytecodeBuilder
impl !UnwindSafe for BytecodeBuilder
impl Freeze for BytecodeBuilder
impl Unpin for BytecodeBuilder
impl UnsafeUnpin for BytecodeBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more