From 35dd5c39bc931194d65b0cc68add15e3ee227a3e Mon Sep 17 00:00:00 2001 From: pjh456 <147148383@qq.com> Date: Sat, 6 Jun 2026 15:54:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=BF=BD=E7=95=A5?= =?UTF-8?q?=E8=B0=83=E7=94=A8=E8=AF=AD=E5=8F=A5=E5=8F=82=E6=95=B0=E5=AF=84?= =?UTF-8?q?=E5=AD=98=E5=99=A8=E8=AE=A1=E6=95=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/oxide_compiler/src/counter.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/oxide_compiler/src/counter.rs b/crates/oxide_compiler/src/counter.rs index 13e0533e..b32d00fa 100644 --- a/crates/oxide_compiler/src/counter.rs +++ b/crates/oxide_compiler/src/counter.rs @@ -121,6 +121,11 @@ impl Compiler { } Expression::CallExpression(call) => { self.count_expression(&call.callee, ctx); + for arg in &call.arguments { + if let Some(expr) = arg.as_expression() { + self.count_expression(expr, ctx); + } + } ctx.alloc_reg(); ctx.projected_pc += 1; // CALL }