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