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( 1330Debug.Assert(_evalStack.Count == _startSpillingAt); 1353foreach ((EvalStackFrame? frameOpt, IOperation? operationOpt) in _evalStack) 1397Debug.Assert(_evalStack.Count == 0 || _evalStack.Peek().frameOpt != null); 1406Debug.Assert(_evalStack.Count == 0 || _evalStack.Peek().frameOpt != null); 1687Debug.Assert(_startSpillingAt == _evalStack.Count); 1726_evalStack.Push((frame, operationOpt: null)); 1733int stackDepth = _evalStack.Count; 1741(EvalStackFrame? frameOpt, IOperation? operationOpt) = _evalStack.Pop(); 1816Debug.Assert(_startSpillingAt <= _evalStack.Count); 1824(EvalStackFrame? frameOpt, _) = _evalStack[i]; 1833for (int i = _startSpillingAt; i < _evalStack.Count; i++) 1835(EvalStackFrame? frameOpt, IOperation? operationOpt) = _evalStack[i]; 1863EvalStackFrame? currentFrame = _evalStack[currentFrameIndex].frameOpt; 1872for (int j = currentFrameIndex + 1; j < _evalStack.Count; j++) 1874IOperation? operation = _evalStack[j].operationOpt; 1920_evalStack[i] = (frameOpt: null, operationOpt: GetCaptureReference(captureId, operationOpt)); 1930_startSpillingAt = _evalStack.Count; 1938(EvalStackFrame? frameOpt, IOperation? operationOpt) = _evalStack[i]; 1954Debug.Assert(_evalStack.Count != 0); 1955Debug.Assert(_evalStack.First().frameOpt != null); 1956Debug.Assert(_evalStack.First().operationOpt == null); 1957Debug.Assert(_startSpillingAt <= _evalStack.Count); 1959_evalStack.Push((frameOpt: null, operation)); 1964int stackDepth = _evalStack.Count; 1972(EvalStackFrame? frameOpt, IOperation? operationOpt) = _evalStack.Pop(); 1981Debug.Assert(_startSpillingAt <= _evalStack.Count); 1983(EvalStackFrame? frameOpt, IOperation? operationOpt) = _evalStack.Peek(); 2024int stackSizeBefore = _evalStack.Count; 2031Debug.Assert(stackSizeBefore == _evalStack.Count); 2067startingStackDepth: _evalStack.Count - (instancePushed ? 1 : 0), 2785Debug.Assert(_startSpillingAt == _evalStack.Count); 2985Debug.Assert(_evalStack.Last().frameOpt != null); 2986Debug.Assert(_startSpillingAt >= _evalStack.Count - 1); 6800int maxStackDepth = _evalStack.Count - 2; 6803Debug.Assert(_evalStack[maxStackDepth + 1].frameOpt != null); 6810Debug.Assert(_evalStack[i].frameOpt == null); 6811Debug.Assert(_evalStack[i].operationOpt != null); 7037Debug.Assert(_evalStack.Count > _currentInterpolatedStringHandlerCreationContext.MaximumStackDepth); 7040|| targetStackDepth >= _evalStack.Count) 7045return _evalStack[targetStackDepth].operationOpt;