perf: 消除热路径冗余检查

This commit is contained in:
2026-06-30 21:02:45 +08:00
parent c9016ee662
commit 0166e0c849
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);
}
}