Enum jazz_vm::function::Function [−][src]
pub enum Function { Virtual(RefCell<VirtualFunction>), Native(NativeFunction), }
Variants
Virtual(RefCell<VirtualFunction>)
Native(NativeFunction)
Methods
impl Function
[src]
impl Function
pub fn from_basic_blocks(blocks: Vec<BasicBlock>) -> Function
[src]
pub fn from_basic_blocks(blocks: Vec<BasicBlock>) -> Function
pub fn bind_this(&self, this: Value)
[src]
pub fn bind_this(&self, this: Value)
pub fn enable_optimization(&mut self)
[src]
pub fn enable_optimization(&mut self)
pub fn from_native(nf: NativeFunction) -> Function
[src]
pub fn from_native(nf: NativeFunction) -> Function
pub fn to_virtual_info(&self) -> Option<VirtualFunctionInfo>
[src]
pub fn to_virtual_info(&self) -> Option<VirtualFunctionInfo>
pub fn from_virtual_info(vinfo: VirtualFunctionInfo) -> Self
[src]
pub fn from_virtual_info(vinfo: VirtualFunctionInfo) -> Self
pub fn static_optimize(&self, pool: &mut ObjectPool)
[src]
pub fn static_optimize(&self, pool: &mut ObjectPool)
pub fn dynamic_optimize(&self, pool: &mut ObjectPool)
[src]
pub fn dynamic_optimize(&self, pool: &mut ObjectPool)
Trait Implementations
impl Object for Function
[src]
impl Object for Function
fn initialize(&mut self, pool: &mut ObjectPool)
[src]
fn initialize(&mut self, pool: &mut ObjectPool)
fn get_children(&self) -> Vec<usize>
[src]
fn get_children(&self) -> Vec<usize>
fn as_any(&self) -> &Any
[src]
fn as_any(&self) -> &Any
fn as_any_mut(&mut self) -> &mut Any
[src]
fn as_any_mut(&mut self) -> &mut Any
fn call(&self, executor: &mut ExecutorImpl) -> Value
[src]
fn call(&self, executor: &mut ExecutorImpl) -> Value
fn finalize(&self, _pool: &mut ObjectPool)
[src]
fn finalize(&self, _pool: &mut ObjectPool)
fn call_field(&self, field_name: &str, executor: &mut ExecutorImpl) -> Value
[src]
fn call_field(&self, field_name: &str, executor: &mut ExecutorImpl) -> Value
fn get_field(&self, _pool: &ObjectPool, _name: &str) -> Option<Value>
[src]
fn get_field(&self, _pool: &ObjectPool, _name: &str) -> Option<Value>
fn set_field(&self, _name: &str, _value_ref: Value)
[src]
fn set_field(&self, _name: &str, _value_ref: Value)
fn must_get_field(&self, pool: &ObjectPool, name: &str) -> Value
[src]
fn must_get_field(&self, pool: &ObjectPool, name: &str) -> Value
fn has_const_field(&self, _pool: &ObjectPool, _name: &str) -> bool
[src]
fn has_const_field(&self, _pool: &ObjectPool, _name: &str) -> bool
fn compare(&self, _other: &ValueContext) -> Option<Ordering>
[src]
fn compare(&self, _other: &ValueContext) -> Option<Ordering>
fn test_eq(&self, _other: &ValueContext) -> bool
[src]
fn test_eq(&self, _other: &ValueContext) -> bool
fn typename(&self) -> &str
[src]
fn typename(&self) -> &str
fn to_i64(&self) -> i64
[src]
fn to_i64(&self) -> i64
fn to_f64(&self) -> f64
[src]
fn to_f64(&self) -> f64
fn to_str(&self) -> &str
[src]
fn to_str(&self) -> &str
fn to_string(&self) -> String
[src]
fn to_string(&self) -> String
fn to_bool(&self) -> bool
[src]
fn to_bool(&self) -> bool