feat: bumpalo
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
extern crate test;
|
||||
|
||||
use bumpalo::Bump;
|
||||
use hashbrown::{HashMap, HashSet};
|
||||
|
||||
use inkwell::context::Context;
|
||||
@@ -30,11 +31,12 @@ fn test_expr(expr: &str, expected: Value) {
|
||||
prog.symbols.into(),
|
||||
prog.symmap.into(),
|
||||
prog.consts,
|
||||
Bump::new(),
|
||||
jit,
|
||||
);
|
||||
let env = env(&vm);
|
||||
let value = vm
|
||||
.eval(prog.top_level.into_iter(), env.into())
|
||||
.eval(prog.top_level.into_iter(), vm.bump.alloc(env))
|
||||
.unwrap()
|
||||
.to_public(&vm, &mut HashSet::new());
|
||||
assert_eq!(value, expected);
|
||||
|
||||
Reference in New Issue
Block a user