1 write to _evalStack
Microsoft.CodeAnalysis (1)
Operations\ControlFlowGraphBuilder.cs (1)
70_evalStack = ArrayBuilder<(EvalStackFrame? frameOpt, IOperation? operationOpt)>.GetInstance();
49 references to _evalStack
Microsoft.CodeAnalysis (49)
Operations\ControlFlowGraphBuilder.cs (49)
162Debug.Assert(builder._evalStack.Count == 0); 163builder._evalStack.Free(); 1236int stackDepth = _evalStack.Count; 1237Debug.Assert(stackDepth == 0 || _evalStack.Peek().frameOpt != null); 1251Debug.Assert(_evalStack.Count == stackDepth); 1252Debug.Assert(stackDepth == 0 || _evalStack.Peek().frameOpt != null); 1278Debug.Assert(spillingTheStack || _evalStack.All( 1329Debug.Assert(_evalStack.Count == _startSpillingAt); 1352foreach ((EvalStackFrame? frameOpt, IOperation? operationOpt) in _evalStack) 1396Debug.Assert(_evalStack.Count == 0 || _evalStack.Peek().frameOpt != null); 1405Debug.Assert(_evalStack.Count == 0 || _evalStack.Peek().frameOpt != null); 1686Debug.Assert(_startSpillingAt == _evalStack.Count); 1725_evalStack.Push((frame, operationOpt: null)); 1732int stackDepth = _evalStack.Count; 1740(EvalStackFrame? frameOpt, IOperation? operationOpt) = _evalStack.Pop(); 1815Debug.Assert(_startSpillingAt <= _evalStack.Count); 1823(EvalStackFrame? frameOpt, _) = _evalStack[i]; 1832for (int i = _startSpillingAt; i < _evalStack.Count; i++) 1834(EvalStackFrame? frameOpt, IOperation? operationOpt) = _evalStack[i]; 1861EvalStackFrame? currentFrame = _evalStack[currentFrameIndex].frameOpt; 1870for (int j = currentFrameIndex + 1; j < _evalStack.Count; j++) 1872IOperation? operation = _evalStack[j].operationOpt; 1918_evalStack[i] = (frameOpt: null, operationOpt: GetCaptureReference(captureId, operationOpt)); 1928_startSpillingAt = _evalStack.Count; 1936(EvalStackFrame? frameOpt, IOperation? operationOpt) = _evalStack[i]; 1952Debug.Assert(_evalStack.Count != 0); 1953Debug.Assert(_evalStack.First().frameOpt != null); 1954Debug.Assert(_evalStack.First().operationOpt == null); 1955Debug.Assert(_startSpillingAt <= _evalStack.Count); 1957_evalStack.Push((frameOpt: null, operation)); 1962int stackDepth = _evalStack.Count; 1970(EvalStackFrame? frameOpt, IOperation? operationOpt) = _evalStack.Pop(); 1979Debug.Assert(_startSpillingAt <= _evalStack.Count); 1981(EvalStackFrame? frameOpt, IOperation? operationOpt) = _evalStack.Peek(); 2022int stackSizeBefore = _evalStack.Count; 2029Debug.Assert(stackSizeBefore == _evalStack.Count); 2065startingStackDepth: _evalStack.Count - (instancePushed ? 1 : 0), 2783Debug.Assert(_startSpillingAt == _evalStack.Count); 2983Debug.Assert(_evalStack.Last().frameOpt != null); 2984Debug.Assert(_startSpillingAt >= _evalStack.Count - 1); 6776int maxStackDepth = _evalStack.Count - 2; 6779Debug.Assert(_evalStack[maxStackDepth + 1].frameOpt != null); 6786Debug.Assert(_evalStack[i].frameOpt == null); 6787Debug.Assert(_evalStack[i].operationOpt != null); 7013Debug.Assert(_evalStack.Count > _currentInterpolatedStringHandlerCreationContext.MaximumStackDepth); 7016|| targetStackDepth >= _evalStack.Count) 7021return _evalStack[targetStackDepth].operationOpt;