Trait js::front::run::executor::Executor[src]
pub trait Executor<Compiled> {
fn get_global_obj(&self) -> Value;
fn execute(&self, comp: &Compiled) -> ResultValue;
fn get_global<'a>(&self, field: &'a str) -> Value { ... }
fn set_global<'a>(&self, field: &'a str, value: Value) -> Value { ... }
}An execution engine which runs the native code
* generated by the Compiler
Required Methods
fn get_global_obj(&self) -> Value
Get the global object associated with this executor
fn execute(&self, comp: &Compiled) -> ResultValue
Execute a compiled expression
Provided Methods
fn get_global<'a>(&self, field: &'a str) -> Value
Get a field of the global object
fn set_global<'a>(&self, field: &'a str, value: Value) -> Value
Set a field of the global object
Implementors
impl<'a> Executor<(JITVal<'a>, &'a Function<'a>)> for JitExecutor