Make the resolved portfolio available in the function compilation context.