refactor: 写路径契约与压帧与异步标志组收结构体并删死参

This commit is contained in:
2026-10-12 19:12:11 +00:00
parent 2dc5e1fb9e
commit 05b9b280cf
16 changed files with 339 additions and 274 deletions
+9 -1
View File
@@ -7,6 +7,7 @@ use oxide_types::value::JsValue;
use crate::ic_helper::{self, ic_get_hit, ic_set_hit, VIRTUAL_LENGTH_SLOT};
use crate::vm::{Vm, MAX_PROTO_CHAIN_DEPTH};
use crate::vm_props::SetContract;
#[cold]
fn prop_cache_miss() {}
@@ -526,7 +527,14 @@ impl Vm {
self.ordinary_set_dispatch(obj, prop_name_si, value, receiver, self.current_strict())?;
return Ok(());
}
self.create_named_prop_fast(obj, prop_name_si, value, receiver, ic_pc, true, self.current_strict())?;
self.create_named_prop_fast(
obj,
prop_name_si,
value,
receiver,
ic_pc,
SetContract::dispatch(self.current_strict()),
)?;
}
Ok(())