feat: migrate to cranelift (WIP)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
use std::fmt::Debug;
|
||||
use core::fmt::Debug;
|
||||
use std::rc::Rc;
|
||||
|
||||
use ecow::EcoString;
|
||||
@@ -12,7 +12,6 @@ pub struct Env {
|
||||
cache: Vec<HashMap<usize, Value>>,
|
||||
with: Vec<Rc<HashMap<EcoString, Value>>>,
|
||||
args: Vec<Value>,
|
||||
pub args_len: usize,
|
||||
}
|
||||
|
||||
impl Env {
|
||||
@@ -21,7 +20,6 @@ impl Env {
|
||||
cache: Vec::from([HashMap::new()]),
|
||||
with: Vec::new(),
|
||||
args: Vec::new(),
|
||||
args_len: 0,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -89,7 +87,7 @@ impl Env {
|
||||
}
|
||||
|
||||
pub fn enter_arg(&mut self, arg: Value) {
|
||||
self.args.push(arg)
|
||||
self.args.push(arg);
|
||||
}
|
||||
|
||||
pub fn pop_args(&mut self, len: usize) -> Vec<Value> {
|
||||
|
||||
Reference in New Issue
Block a user