pub struct Bytecode {
pub objects: VMObjects,
pub consts: Vec<GosValue, Global>,
pub ifaces: Vec<(Meta, Vec<Binding4Runtime, Global>), Global>,
pub indices: Vec<Vec<i32, Global>, Global>,
pub entry: FunctionKey,
pub main_pkg: PackageKey,
pub file_set: Option<FileSet>,
}
Fields§
§objects: VMObjects
§consts: Vec<GosValue, Global>
§ifaces: Vec<(Meta, Vec<Binding4Runtime, Global>), Global>
For calling method via interfaces
indices: Vec<Vec<i32, Global>, Global>
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, Global>, ifaces: Vec<(Meta, Vec<IfaceBinding, Global>), Global>, indices: Vec<Vec<i32, Global>, Global>, entry: FunctionKey, main_pkg: PackageKey, file_set: Option<FileSet> ) -> Bytecode
pub fn with_components( metas: PiggyVec<MetadataKey, MetadataType>, functions: PiggyVec<FunctionKey, FunctionObj>, packages: PiggyVec<PackageKey, PackageObj>, consts: Vec<GosValue, Global>, ifaces: Vec<(Meta, Vec<Binding4Runtime, Global>), Global>, indices: Vec<Vec<i32, Global>, Global>, 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