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(
1329
Debug.Assert(
_evalStack
.Count == _startSpillingAt);
1352
foreach ((EvalStackFrame? frameOpt, IOperation? operationOpt) in
_evalStack
)
1396
Debug.Assert(
_evalStack
.Count == 0 ||
_evalStack
.Peek().frameOpt != null);
1405
Debug.Assert(
_evalStack
.Count == 0 ||
_evalStack
.Peek().frameOpt != null);
1686
Debug.Assert(_startSpillingAt ==
_evalStack
.Count);
1725
_evalStack
.Push((frame, operationOpt: null));
1732
int stackDepth =
_evalStack
.Count;
1740
(EvalStackFrame? frameOpt, IOperation? operationOpt) =
_evalStack
.Pop();
1815
Debug.Assert(_startSpillingAt <=
_evalStack
.Count);
1823
(EvalStackFrame? frameOpt, _) =
_evalStack
[i];
1832
for (int i = _startSpillingAt; i <
_evalStack
.Count; i++)
1834
(EvalStackFrame? frameOpt, IOperation? operationOpt) =
_evalStack
[i];
1861
EvalStackFrame? currentFrame =
_evalStack
[currentFrameIndex].frameOpt;
1870
for (int j = currentFrameIndex + 1; j <
_evalStack
.Count; j++)
1872
IOperation? operation =
_evalStack
[j].operationOpt;
1918
_evalStack
[i] = (frameOpt: null, operationOpt: GetCaptureReference(captureId, operationOpt));
1928
_startSpillingAt =
_evalStack
.Count;
1936
(EvalStackFrame? frameOpt, IOperation? operationOpt) =
_evalStack
[i];
1952
Debug.Assert(
_evalStack
.Count != 0);
1953
Debug.Assert(
_evalStack
.First().frameOpt != null);
1954
Debug.Assert(
_evalStack
.First().operationOpt == null);
1955
Debug.Assert(_startSpillingAt <=
_evalStack
.Count);
1957
_evalStack
.Push((frameOpt: null, operation));
1962
int stackDepth =
_evalStack
.Count;
1970
(EvalStackFrame? frameOpt, IOperation? operationOpt) =
_evalStack
.Pop();
1979
Debug.Assert(_startSpillingAt <=
_evalStack
.Count);
1981
(EvalStackFrame? frameOpt, IOperation? operationOpt) =
_evalStack
.Peek();
2022
int stackSizeBefore =
_evalStack
.Count;
2029
Debug.Assert(stackSizeBefore ==
_evalStack
.Count);
2065
startingStackDepth:
_evalStack
.Count - (instancePushed ? 1 : 0),
2783
Debug.Assert(_startSpillingAt ==
_evalStack
.Count);
2983
Debug.Assert(
_evalStack
.Last().frameOpt != null);
2984
Debug.Assert(_startSpillingAt >=
_evalStack
.Count - 1);
6776
int maxStackDepth =
_evalStack
.Count - 2;
6779
Debug.Assert(
_evalStack
[maxStackDepth + 1].frameOpt != null);
6786
Debug.Assert(
_evalStack
[i].frameOpt == null);
6787
Debug.Assert(
_evalStack
[i].operationOpt != null);
7013
Debug.Assert(
_evalStack
.Count > _currentInterpolatedStringHandlerCreationContext.MaximumStackDepth);
7016
|| targetStackDepth >=
_evalStack
.Count)
7021
return
_evalStack
[targetStackDepth].operationOpt;