refactor: 拆分 bytecode/cache crate 并模块化 counter

This commit is contained in:
2026-06-23 17:06:39 +08:00
parent ba5e095a83
commit be87e4e21b
38 changed files with 1332 additions and 1306 deletions
@@ -7,7 +7,7 @@ fn parse_to_hash(source: &str) -> u64 {
oxide_compiler::compiler::structural_hash(&program)
}
fn compile_source(source: &str) -> oxide_compiler::module::CompiledModule {
fn compile_source(source: &str) -> oxide_bytecode::module::CompiledModule {
let allocator = Allocator::default();
let program = oxide_parser::parse(&allocator, source).expect("parse failed");
let compiler = Compiler::new();