pub struct UnitLayout {Show 15 fields
pub register_count: u16,
pub parameter_count: u16,
pub local_count: u16,
pub flags: u16,
pub this_slots: u16,
pub constant_count: u32,
pub spill_register: Option<u16>,
pub spill_slots: u16,
pub children: Vec<CodeUnitId>,
pub captures: Vec<Capture>,
pub name: String,
pub name_atom: Option<StringId>,
pub length: u16,
pub source: Option<Box<[u8]>>,
pub filename: Option<Rc<str>>,
}Expand description
The parts of a CodeUnit that are not instructions.
Fields§
§register_count: u16§parameter_count: u16§local_count: u16§flags: u16§this_slots: u16§constant_count: u32§spill_register: Option<u16>§spill_slots: u16§children: Vec<CodeUnitId>§captures: Vec<Capture>§name: String§name_atom: Option<StringId>The function’s name property (an atom), or None for "".
length: u16The function’s length property.
source: Option<Box<[u8]>>The function’s source text, for Function.prototype.toString, in
WTF-8 (a lone surrogate of Function constructor source is kept as
its three-byte form, as QuickJS’s JS_ToCStringLen2 keeps it).
filename: Option<Rc<str>>The script or module the function belongs to.
Trait Implementations§
Source§impl Clone for UnitLayout
impl Clone for UnitLayout
Source§impl Debug for UnitLayout
impl Debug for UnitLayout
Auto Trait Implementations§
impl !Send for UnitLayout
impl !Sync for UnitLayout
impl Freeze for UnitLayout
impl RefUnwindSafe for UnitLayout
impl Unpin for UnitLayout
impl UnsafeUnpin for UnitLayout
impl UnwindSafe for UnitLayout
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