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)
162
Debug.Assert(builder.
_evalStack
.Count == 0);
163
builder.
_evalStack
.Free();
1244
int stackDepth =
_evalStack
.Count;
1245
Debug.Assert(stackDepth == 0 ||
_evalStack
.Peek().frameOpt != null);
1259
Debug.Assert(
_evalStack
.Count == stackDepth);
1260
Debug.Assert(stackDepth == 0 ||
_evalStack
.Peek().frameOpt != null);
1286
Debug.Assert(spillingTheStack ||
_evalStack
.All(
1338
Debug.Assert(
_evalStack
.Count == _startSpillingAt);
1361
foreach ((EvalStackFrame? frameOpt, IOperation? operationOpt) in
_evalStack
)
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;
1946
(EvalStackFrame? frameOpt, IOperation? operationOpt) =
_evalStack
[i];
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();
2032
int stackSizeBefore =
_evalStack
.Count;
2039
Debug.Assert(stackSizeBefore ==
_evalStack
.Count);
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;
6812
Debug.Assert(
_evalStack
[maxStackDepth + 1].frameOpt != null);
6819
Debug.Assert(
_evalStack
[i].frameOpt == null);
6820
Debug.Assert(
_evalStack
[i].operationOpt != null);
7049
Debug.Assert(
_evalStack
.Count > _currentInterpolatedStringHandlerCreationContext.MaximumStackDepth);
7052
|| targetStackDepth >=
_evalStack
.Count)
7057
return
_evalStack
[targetStackDepth].operationOpt;