perf: 消除热路径冗余检查

This commit is contained in:
爱特每羊队
2026-06-30 21:02:45 +08:00
parent 4fdbb667da
commit 7877aad75d
6 changed files with 31 additions and 14 deletions
+1
View File
@@ -583,6 +583,7 @@ impl Vm {
{
let val = src_obj.get_prop_at(pos);
let rest = unsafe { &mut *rest_ptr };
let val = self.promote_if_needed_for_write_ptr(rest_ptr, val);
self.set_or_create_prop_value(rest, shape.property_name, val);
}
}