feat: less gc (WIP)
This commit is contained in:
@@ -7,12 +7,17 @@ use crate::env::VmEnv;
|
||||
|
||||
use super::Value;
|
||||
|
||||
#[derive(Clone, PartialEq, Collect)]
|
||||
#[collect(no_drop)]
|
||||
#[derive(Clone, PartialEq)]
|
||||
pub struct List<'gc> {
|
||||
data: Vec<Value<'gc>>,
|
||||
}
|
||||
|
||||
unsafe impl<'gc> Collect<'gc> for List<'gc> {
|
||||
fn trace<T: gc_arena::collect::Trace<'gc>>(&self, cc: &mut T) {
|
||||
self.data.trace(cc);
|
||||
}
|
||||
}
|
||||
|
||||
impl<'gc> List<'gc> {
|
||||
pub fn new() -> Self {
|
||||
List {
|
||||
|
||||
Reference in New Issue
Block a user