refactor: 晋升族整文件退役加生产调用点清理

This commit is contained in:
2026-10-02 16:55:04 +00:00
parent 3c6310c586
commit ab0b874281
17 changed files with 93 additions and 613 deletions
+2
View File
@@ -243,6 +243,7 @@ impl SuspendedFrame {
}
/// GC 指针重写:与 `for_each_value` 字段一一对应。
#[allow(dead_code)]
pub fn rewrite_values(&mut self, mut rewrite: impl FnMut(JsValue) -> JsValue) {
for v in self.regs.iter_mut() {
*v = rewrite(*v);
@@ -324,6 +325,7 @@ impl SuspendedFrame {
}
/// 深拷贝(promote / sweep 搬移用,替代 async/asyncgen 各自的 clone_*_with_rewrite)。
#[allow(dead_code)]
pub fn clone_with_rewrite(&self, mut rewrite: impl FnMut(JsValue) -> JsValue) -> Self {
SuspendedFrame {
regs: Box::new({