From bbbd968933b691caac2517b9b594126cba6b5fe1 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Tue, 15 Sep 2026 08:18:13 +0000 Subject: [PATCH] Refactor performance optimization comment in executor.rs Rephrased the performance optimization comment block to replace a code snippet with plain English, preventing automated linters from falsely flagging it as a commented-out code block while retaining the vital explanatory context. Co-authored-by: Tcode-Motion <188012755+Tcode-Motion@users.noreply.github.com> --- runtime/vm/src/executor.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/vm/src/executor.rs b/runtime/vm/src/executor.rs index 718997a7..5b909abe 100644 --- a/runtime/vm/src/executor.rs +++ b/runtime/vm/src/executor.rs @@ -450,8 +450,8 @@ impl VM { } // PERFORMANCE OPTIMIZATION (Bolt): - // We reuse the existing mutable `frame` reference acquired at the start of - // the loop iteration rather than redundantly calling `self.frames.last_mut()` + // We reuse the existing mutable frame reference acquired at the start of + // the loop iteration rather than redundantly fetching the last mutable frame // for these control flow and exception opcodes. This reduces bounds checking // and RefCell borrow overhead on the hottest execution paths. Opcode::Jump => {