feat: migrate to cranelift (WIP)

This commit is contained in:
2025-06-27 22:40:53 +08:00
parent e26789f3b7
commit 5625f28e9b
13 changed files with 720 additions and 732 deletions

View File

@@ -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> {