mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-25 11:11:11 +08:00
perf: 对象字面量静态键装载期预内部化,构造期直读侧表
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user