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); 1680Debug.Assert(_startSpillingAt == _evalStack.Count); 1719_evalStack.Push((frame, operationOpt: null)); 1726int stackDepth = _evalStack.Count; 1734(EvalStackFrame? frameOpt, IOperation? operationOpt) = _evalStack.Pop(); 1809Debug.Assert(_startSpillingAt <= _evalStack.Count); 1817(EvalStackFrame? frameOpt, _) = _evalStack[i]; 1826for (int i = _startSpillingAt; i < _evalStack.Count; i++) 1828(EvalStackFrame? frameOpt, IOperation? operationOpt) = _evalStack[i]; 1855EvalStackFrame? currentFrame = _evalStack[currentFrameIndex].frameOpt; 1864for (int j = currentFrameIndex + 1; j < _evalStack.Count; j++) 1866IOperation? operation = _evalStack[j].operationOpt; 1912_evalStack[i] = (frameOpt: null, operationOpt: GetCaptureReference(captureId, operationOpt)); 1922_startSpillingAt = _evalStack.Count; 1930(EvalStackFrame? frameOpt, IOperation? operationOpt) = _evalStack[i]; 1946Debug.Assert(_evalStack.Count != 0); 1947Debug.Assert(_evalStack.First().frameOpt != null); 1948Debug.Assert(_evalStack.First().operationOpt == null); 1949Debug.Assert(_startSpillingAt <= _evalStack.Count); 1951_evalStack.Push((frameOpt: null, operation)); 1956int stackDepth = _evalStack.Count; 1964(EvalStackFrame? frameOpt, IOperation? operationOpt) = _evalStack.Pop(); 1973Debug.Assert(_startSpillingAt <= _evalStack.Count); 1975(EvalStackFrame? frameOpt, IOperation? operationOpt) = _evalStack.Peek(); 2016int stackSizeBefore = _evalStack.Count; 2023Debug.Assert(stackSizeBefore == _evalStack.Count); 2059startingStackDepth: _evalStack.Count - (instancePushed ? 1 : 0), 2777Debug.Assert(_startSpillingAt == _evalStack.Count); 2977Debug.Assert(_evalStack.Last().frameOpt != null); 2978Debug.Assert(_startSpillingAt >= _evalStack.Count - 1); 6770int maxStackDepth = _evalStack.Count - 2; 6773Debug.Assert(_evalStack[maxStackDepth + 1].frameOpt != null); 6780Debug.Assert(_evalStack[i].frameOpt == null); 6781Debug.Assert(_evalStack[i].operationOpt != null); 7007Debug.Assert(_evalStack.Count > _currentInterpolatedStringHandlerCreationContext.MaximumStackDepth); 7010|| targetStackDepth >= _evalStack.Count) 7015return _evalStack[targetStackDepth].operationOpt;