From aa1375c3dec92e47112858fa70ff102a5be5aca5 Mon Sep 17 00:00:00 2001 From: 0x57e11a Date: Wed, 11 Mar 2026 23:37:45 -0700 Subject: [PATCH] permit bytecode to use prime tables --- src/MoonSharp.Interpreter/Execution/InstructionFieldUsage.cs | 2 +- .../Execution/VM/Processor/Processor_BinaryDump.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MoonSharp.Interpreter/Execution/InstructionFieldUsage.cs b/src/MoonSharp.Interpreter/Execution/InstructionFieldUsage.cs index e64f1335..59922930 100644 --- a/src/MoonSharp.Interpreter/Execution/InstructionFieldUsage.cs +++ b/src/MoonSharp.Interpreter/Execution/InstructionFieldUsage.cs @@ -26,7 +26,6 @@ internal static InstructionFieldUsage GetFieldUsage(this OpCode op) case OpCode.Scalar: case OpCode.IterUpd: case OpCode.IterPrep: - case OpCode.NewTable: case OpCode.Concat: case OpCode.LessEq: case OpCode.Less: @@ -44,6 +43,7 @@ internal static InstructionFieldUsage GetFieldUsage(this OpCode op) case OpCode.ToBool: return InstructionFieldUsage.None; case OpCode.Pop: + case OpCode.NewTable: case OpCode.Copy: case OpCode.TblInitI: case OpCode.ExpTuple: diff --git a/src/MoonSharp.Interpreter/Execution/VM/Processor/Processor_BinaryDump.cs b/src/MoonSharp.Interpreter/Execution/VM/Processor/Processor_BinaryDump.cs index 549ee9d3..e6479e99 100644 --- a/src/MoonSharp.Interpreter/Execution/VM/Processor/Processor_BinaryDump.cs +++ b/src/MoonSharp.Interpreter/Execution/VM/Processor/Processor_BinaryDump.cs @@ -11,7 +11,7 @@ namespace MoonSharp.Interpreter.Execution.VM sealed partial class Processor { const ulong DUMP_CHUNK_MAGIC = 0x1A0D234E4F4F4D1D; - const int DUMP_CHUNK_VERSION = 0x150; + const int DUMP_CHUNK_VERSION = 0x151; internal static bool IsDumpStream(Stream stream) {