perf: 对象字面量静态键装载期预内部化,构造期直读侧表

This commit is contained in:
2026-10-04 12:08:46 +00:00
parent b8b38dbf28
commit 463760dfda
6 changed files with 69 additions and 16 deletions
+3
View File
@@ -75,6 +75,7 @@ impl Vm {
Box::new(TableGen {
modules: Arc::new(Vec::new()),
immutables: Vec::new(),
si_tables: Vec::new(),
}),
)]),
current_gen: 0,
@@ -208,6 +209,7 @@ impl Vm {
Box::new(TableGen {
modules: Arc::new(Vec::new()),
immutables: Vec::new(),
si_tables: Vec::new(),
}),
)]),
current_gen: 0,
@@ -389,6 +391,7 @@ impl Vm {
Box::new(TableGen {
modules: Arc::new(Vec::new()),
immutables: Vec::new(),
si_tables: Vec::new(),
}),
);
self.active_immutables = std::ptr::slice_from_raw_parts(std::ptr::null(), 0);