private void AdjustStack(OpCode opCode, int?varPop = null, int?varPush = null) { stackCount += InstructionSize.StackDiff(opCode, varPop, varPush); if (stackCount < 0) { throw new CodeGenerationException($"Negative stack count at {opCode} offset {ilSize}"); } }