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