1 write to _evalStack
Microsoft.CodeAnalysis (1)
Operations\ControlFlowGraphBuilder.cs (1)
70
_evalStack
= ArrayBuilder<(EvalStackFrame? frameOpt, IOperation? operationOpt)>.GetInstance();
36 references to _evalStack
Microsoft.CodeAnalysis (36)
Operations\ControlFlowGraphBuilder.cs (36)
162
Debug.Assert(builder.
_evalStack
.Count == 0);
163
builder.
_evalStack
.Free();
1405
Debug.Assert(
_evalStack
.Count == 0 ||
_evalStack
.Peek().frameOpt != null);
1414
Debug.Assert(
_evalStack
.Count == 0 ||
_evalStack
.Peek().frameOpt != null);
1695
Debug.Assert(_startSpillingAt ==
_evalStack
.Count);
1734
_evalStack
.Push((frame, operationOpt: null));
1741
int stackDepth =
_evalStack
.Count;
1749
(EvalStackFrame? frameOpt, IOperation? operationOpt) =
_evalStack
.Pop();
1824
Debug.Assert(_startSpillingAt <=
_evalStack
.Count);
1832
(EvalStackFrame? frameOpt, _) =
_evalStack
[i];
1841
for (int i = _startSpillingAt; i <
_evalStack
.Count; i++)
1843
(EvalStackFrame? frameOpt, IOperation? operationOpt) =
_evalStack
[i];
1871
EvalStackFrame? currentFrame =
_evalStack
[currentFrameIndex].frameOpt;
1880
for (int j = currentFrameIndex + 1; j <
_evalStack
.Count; j++)
1882
IOperation? operation =
_evalStack
[j].operationOpt;
1928
_evalStack
[i] = (frameOpt: null, operationOpt: GetCaptureReference(captureId, operationOpt));
1938
_startSpillingAt =
_evalStack
.Count;
1962
Debug.Assert(
_evalStack
.Count != 0);
1963
Debug.Assert(
_evalStack
.First().frameOpt != null);
1964
Debug.Assert(
_evalStack
.First().operationOpt == null);
1965
Debug.Assert(_startSpillingAt <=
_evalStack
.Count);
1967
_evalStack
.Push((frameOpt: null, operation));
1972
int stackDepth =
_evalStack
.Count;
1980
(EvalStackFrame? frameOpt, IOperation? operationOpt) =
_evalStack
.Pop();
1989
Debug.Assert(_startSpillingAt <=
_evalStack
.Count);
1991
(EvalStackFrame? frameOpt, IOperation? operationOpt) =
_evalStack
.Peek();
2075
startingStackDepth:
_evalStack
.Count - (instancePushed ? 1 : 0),
2793
Debug.Assert(_startSpillingAt ==
_evalStack
.Count);
2993
Debug.Assert(
_evalStack
.Last().frameOpt != null);
2994
Debug.Assert(_startSpillingAt >=
_evalStack
.Count - 1);
6809
int maxStackDepth =
_evalStack
.Count - 2;
7049
Debug.Assert(
_evalStack
.Count > _currentInterpolatedStringHandlerCreationContext.MaximumStackDepth);
7052
|| targetStackDepth >=
_evalStack
.Count)
7057
return
_evalStack
[targetStackDepth].operationOpt;