mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-15 22:28:10 +08:00
Pass frame space by argument and delete the record stack
This commit is contained in:
@@ -3870,8 +3870,8 @@ mod test {
|
||||
}
|
||||
#[test]
|
||||
fn path_length() {
|
||||
// SAFETY: between evaluations, nothing served on the stack is live.
|
||||
unsafe { core_types::record::stack::reserve(1 << 16); } let arena = core_types::arena::Arena::new(1 << 20).unwrap();
|
||||
let frames = core_types::record::test_frames(1 << 16);
|
||||
let arena = core_types::arena::Arena::new(1 << 20).unwrap();
|
||||
let generations = [];
|
||||
let scope = core_types::context::EvalScope::new(None, None, None, &generations, &arena);
|
||||
let ctx = core_types::context::ContextImpl::root(&scope);
|
||||
@@ -3882,7 +3882,7 @@ mod test {
|
||||
// Element-only lanes read identity lane transforms; the transform term
|
||||
// rides the demo gate.
|
||||
let source = core_types::value::LeveledValueSource::new(vec![row; 5]);
|
||||
let core_types::record::LevelStatus::Batch(batch, _) = core_types::record::materialize_level(&source, &ctx, &arena) else {
|
||||
let core_types::record::LevelStatus::Batch(batch, _) = core_types::record::materialize_level(&source, &ctx, &arena, &frames) else {
|
||||
panic!("materialize failed")
|
||||
};
|
||||
let list = unsafe { core_types::node::List::<Vector>::new(batch) };
|
||||
|
||||
Reference in New Issue
Block a user