pub struct Bytecode {Show 19 fields
pub code: Vec<u8>,
pub constants: Vec<JSValue>,
pub locals_count: u32,
pub param_count: u16,
pub line_number_table: Option<LineNumberTable>,
pub ic_table: InlineCacheTable,
pub shared_ic_table_ptr: *mut InlineCacheTable,
pub shared_code_ptr: *const u8,
pub shared_code_len: usize,
pub shared_const_ptr: *const JSValue,
pub shared_const_len: usize,
pub uses_arguments: bool,
pub is_strict: bool,
pub var_name_to_slot: Rc<Vec<(u32, u16)>>,
pub nested_bytecodes: HashMap<u32, Arc<NestedBytecode>>,
pub is_simple_constructor: bool,
pub simple_constructor_props: Vec<(Atom, u16, u16)>,
pub cached_constructor_atoms: Vec<Atom>,
pub cached_constructor_final_shape: Option<NonNull<Shape>>,
}Fields§
§code: Vec<u8>§constants: Vec<JSValue>§locals_count: u32§param_count: u16§line_number_table: Option<LineNumberTable>§ic_table: InlineCacheTable§uses_arguments: bool§is_strict: bool§var_name_to_slot: Rc<Vec<(u32, u16)>>§nested_bytecodes: HashMap<u32, Arc<NestedBytecode>>§is_simple_constructor: bool§simple_constructor_props: Vec<(Atom, u16, u16)>§cached_constructor_atoms: Vec<Atom>§cached_constructor_final_shape: Option<NonNull<Shape>>Implementations§
Source§impl Bytecode
impl Bytecode
pub fn new() -> Self
pub fn effective_ic_table_ptr(&self) -> *mut InlineCacheTable
pub fn effective_code_ptr(&self) -> *const u8
pub fn effective_code_len(&self) -> usize
pub fn effective_const_ptr(&self) -> *const JSValue
pub fn effective_const_len(&self) -> usize
pub fn disassemble(&self) -> String
pub fn serialize(&self) -> Vec<u8> ⓘ
pub fn deserialize(data: &[u8]) -> Result<Self, String>
Trait Implementations§
impl Send for Bytecode
impl Sync for Bytecode
Auto Trait Implementations§
impl Freeze for Bytecode
impl !RefUnwindSafe for Bytecode
impl Unpin for Bytecode
impl UnsafeUnpin for Bytecode
impl !UnwindSafe for Bytecode
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