pub struct Bytecode {
pub objects: VMObjects,
pub consts: Vec<GosValue>,
pub ifaces: Vec<(Meta, Vec<Binding4Runtime>)>,
pub indices: Vec<Vec<OpIndex>>,
pub entry: FunctionKey,
pub main_pkg: PackageKey,
pub file_set: Option<FileSet>,
}
Fields§
§objects: VMObjects
§consts: Vec<GosValue>
§ifaces: Vec<(Meta, Vec<Binding4Runtime>)>
For calling method via interfaces
indices: Vec<Vec<OpIndex>>
For embedded fields of structs
entry: FunctionKey
§main_pkg: PackageKey
§file_set: Option<FileSet>
Optional, for debug info
Implementations§
source§impl Bytecode
impl Bytecode
pub fn new( objects: VMObjects, consts: Vec<GosValue>, ifaces: Vec<(Meta, Vec<IfaceBinding>)>, indices: Vec<Vec<OpIndex>>, entry: FunctionKey, main_pkg: PackageKey, file_set: Option<FileSet> ) -> Bytecode
pub fn with_components( metas: MetadataObjs, functions: FunctionObjs, packages: PackageObjs, consts: Vec<GosValue>, ifaces: Vec<(Meta, Vec<Binding4Runtime>)>, indices: Vec<Vec<OpIndex>>, entry: FunctionKey, main_pkg: PackageKey, file_set: Option<FileSet> ) -> Bytecode
Auto Trait Implementations§
impl !RefUnwindSafe for Bytecode
impl !Send for Bytecode
impl !Sync for Bytecode
impl Unpin 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