feat: ready for JIT

This commit is contained in:
2025-05-10 21:09:53 +08:00
parent d04d46c905
commit 2b309fb825
6 changed files with 3 additions and 161 deletions

View File

@@ -5,8 +5,6 @@ use rnix::ast::{self, Expr};
use crate::compile::*;
use crate::error::*;
#[cfg(feature = "jit")]
use crate::jit::*;
use crate::ty::internal as i;
pub fn downgrade(expr: Expr) -> Result<Downgraded> {
@@ -62,15 +60,6 @@ macro_rules! ir {
}
}
#[cfg(feature = "jit")]
impl CodeGen for Ir {
fn codegen(self, ctx: &JITContext<'_>) {
match self {
$(Ir::$ty(ir) => ir.codegen(ctx),)*
}
}
}
$(
$(
#[$($x)*]