public void SetGlobalValue(int index, object value) { Debug.Assert(!IsGlobalComputed(index), "Global value should only be set once."); this.globalValues[index] = value; }