From 49f5a2173745073f398539ae51d891a0ef05ff78 Mon Sep 17 00:00:00 2001 From: ShaharNaveh <50263213+ShaharNaveh@users.noreply.github.com> Date: Tue, 2 Dec 2025 14:19:48 +0200 Subject: [PATCH 1/4] Sort `Instruction` enum --- crates/compiler-core/src/bytecode.rs | 358 +++++++++++++-------------- 1 file changed, 179 insertions(+), 179 deletions(-) diff --git a/crates/compiler-core/src/bytecode.rs b/crates/compiler-core/src/bytecode.rs index 2a0ad7e280a..a4b65851e89 100644 --- a/crates/compiler-core/src/bytecode.rs +++ b/crates/compiler-core/src/bytecode.rs @@ -549,150 +549,216 @@ pub type NameIdx = u32; #[derive(Debug, Copy, Clone, PartialEq, Eq)] #[repr(u8)] pub enum Instruction { - Nop, - /// Importing by name - ImportName { - idx: Arg, + BeforeAsyncWith, + BinaryOp { + op: Arg, }, - /// Importing without name - ImportNameless, - /// from ... import ... - ImportFrom { - idx: Arg, + BinarySubscript, + Break { + target: Arg