From 754b910da99126e98afd14dede3cdfb55d94f0c5 Mon Sep 17 00:00:00 2001 From: pjh456 <147148383@qq.com> Date: Mon, 28 Sep 2026 17:56:51 +0000 Subject: [PATCH] =?UTF-8?q?docs:=20=E4=BF=AE=E6=AD=A3=20inline=5Fcallee=20?= =?UTF-8?q?=E6=B3=A8=E9=87=8A=E4=B8=BA=E7=83=AD=E8=B7=AF=E5=BE=84=E8=AF=BB?= =?UTF-8?q?=E6=B4=BB=E5=8A=A8=E9=95=9C=E5=83=8F=E7=9A=84=E5=87=86=E7=A1=AE?= =?UTF-8?q?=E8=AF=AD=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/oxide_vm/src/vm/mod.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/crates/oxide_vm/src/vm/mod.rs b/crates/oxide_vm/src/vm/mod.rs index 50da538d..281f72d6 100644 --- a/crates/oxide_vm/src/vm/mod.rs +++ b/crates/oxide_vm/src/vm/mod.rs @@ -266,9 +266,10 @@ pub struct Vm { /// 调度循环检查该标志,跳过用调用结果写 `regs[target_reg]` —— 值改由 RETURN /// 处理器交付。 pub(crate) accessor_frame_target_reg: Option, - /// `call_bytecode_function_inline` 执行期间当前回调闭包;LOAD/STORE_UPVALUE 在 - /// frames 为空(inline 隔离状态)时由此取闭包 upvalues。嵌套 inline 由 - /// InlineSyncState 保存/恢复。 + /// `call_bytecode_function_inline` 执行期间当前回调闭包(inline 同步调用语义)。 + /// LOAD/STORE_UPVALUE 热路径直接读 `active_upvalues` 活动镜像,本字段仅经 + /// `current_callee()` 服务冷路径:惰性建 cell 路径建 cell 时回写 callee 对象, + /// CREATE_CLOSURE 由此取父 upvalue 源。嵌套 inline 由 InlineSyncState 保存/恢复。 pub(crate) inline_callee: Option, /// 当前执行函数的 upvalue cell 表(活动镜像,与 `CallFrame.upvalues` 同型: /// 胖指针,非闭包为 null 空切片)。压帧/内联/弹帧/挂起恢复四个边界置位,