2 writes to FoldedInstructions
illink (2)
Linker.Steps\UnreachableBlocksOptimizer.cs (2)
574
FoldedInstructions
= null;
596
FoldedInstructions
= new Collection<Instruction> (Instructions);
31 references to FoldedInstructions
illink (31)
Linker.Steps\UnreachableBlocksOptimizer.cs (31)
592
[MemberNotNull (nameof(
FoldedInstructions
))]
602
if (
FoldedInstructions
== null)
611
FoldedInstructions
[index] = newInstruction;
668
if (
FoldedInstructions
== null)
673
stackDepth -= GetStackBehaviourDelta (
FoldedInstructions
[start_index], out bool undefined);
781
if (
FoldedInstructions
== null)
833
Instruction[]? args = GetArgumentsOnStack (md,
FoldedInstructions
?? instructions, i);
919
Debug.Assert (
FoldedInstructions
!= null);
930
for (int i = 0; i <
FoldedInstructions
.Count; ++i) {
931
var instr =
FoldedInstructions
[i];
960
if (i > 0 && GetConstantValue (
FoldedInstructions
[i - 1], out var operand)) {
984
if (i >= 3 && GetConstantValue (
FoldedInstructions
[i - 3], out operand) && operand is int opint2 && IsPairedStlocLdloc (
FoldedInstructions
[i - 2],
FoldedInstructions
[i - 1])) {
998
if (i >= 5 && opcode == OpCodes.Switch && GetConstantValue (
FoldedInstructions
[i - 5], out operand) && operand is int opint3 && IsPairedStlocLdloc (
FoldedInstructions
[i - 4],
FoldedInstructions
[i - 3])) {
1002
if (!GetConstantValue (
FoldedInstructions
[i - 2], out operand) || operand is not int offset)
1005
if (
FoldedInstructions
[i - 1].OpCode != OpCodes.Sub)
1070
Debug.Assert (
FoldedInstructions
!= null);
1072
var reachable = new BitArray (
FoldedInstructions
.Count);
1079
while (i <
FoldedInstructions
.Count) {
1084
var instr =
FoldedInstructions
[i++];
1149
if (filterEnd >= 0 &&
FoldedInstructions
[filterEnd].OpCode == OpCodes.Endfilter) {
1187
Debug.Assert (
FoldedInstructions
!= null && mapping != null);
1191
idx =
FoldedInstructions
.IndexOf (instruction);
1207
Debug.Assert (
FoldedInstructions
!= null);
1214
return GetConstantValue (
FoldedInstructions
[index - 2], out left) &&
1215
GetConstantValue (
FoldedInstructions
[index - 1], out right);
1242
Debug.Assert (
FoldedInstructions
!= null);
1243
return HasJumpIntoTargetRange (
FoldedInstructions
, firstInstr, lastInstr, TryGetInstructionIndex);