feat: 搭建内建函数原型链框架

This commit is contained in:
2026-06-05 22:05:42 +08:00
parent 7bd736e308
commit c17bce9c26
6 changed files with 252 additions and 2 deletions
-1
View File
@@ -8,7 +8,6 @@ description = "OxideJS - Register-based VM with epoch arena memory"
[dependencies]
oxide_compiler = { path = "../oxide_compiler" }
oxide_kernel = { path = "../oxide_kernel" }
bumpalo.workspace = true
hashbrown.workspace = true
rustc-hash.workspace = true
+7
View File
@@ -14,6 +14,13 @@ impl<T> P<T> {
pub fn new(value: T) -> Self {
Self(Arc::new(value))
}
pub fn from_arena(value: &T) -> Self
where
T: Clone,
{
Self(Arc::new(value.clone()))
}
}
impl<T> Clone for P<T> {