perf: 三处手写压帧收敛单一入口并免实参堆 Vec 物化

This commit is contained in:
2026-08-15 10:27:14 +08:00
parent 2239eeac24
commit 8bdcb43aba
7 changed files with 120 additions and 186 deletions
+2 -2
View File
@@ -2,7 +2,7 @@ use std::sync::{Arc, OnceLock};
use oxide_bytecode::module::CompiledModule;
use crate::vm::{CallFrame, FrameContinuation, InlineSyncState, Vm};
use crate::vm::{CallFrame, FrameArgs, FrameContinuation, InlineSyncState, Vm};
use crate::{vm_debug, vm_info, vm_trace, vm_warn};
use oxide_types::object::JsObject;
use oxide_types::value::JsValue;
@@ -205,7 +205,7 @@ impl Vm {
self.push_bytecode_frame(
callee,
this_value,
args,
FrameArgs::Slice(args),
None,
None,
JsValue::undefined(),