2 writes to FoldedInstructions
illink (2)
Linker.Steps\UnreachableBlocksOptimizer.cs (2)
644
FoldedInstructions
= null;
666
FoldedInstructions
= new Collection<Instruction>(Instructions);
31 references to FoldedInstructions
illink (31)
Linker.Steps\UnreachableBlocksOptimizer.cs (31)
662
[MemberNotNull(nameof(
FoldedInstructions
))]
672
if (
FoldedInstructions
== null)
681
FoldedInstructions
[index] = newInstruction;
748
if (
FoldedInstructions
== null)
754
stackDepth -= GetStackBehaviourDelta(
FoldedInstructions
[start_index], out bool undefined);
868
if (
FoldedInstructions
== null)
923
Instruction[]? args = GetArgumentsOnStack(md,
FoldedInstructions
?? instructions, i);
1015
Debug.Assert(
FoldedInstructions
!= null);
1026
for (int i = 0; i <
FoldedInstructions
.Count; ++i)
1028
var instr =
FoldedInstructions
[i];
1064
if (i > 0 && GetConstantValue(
FoldedInstructions
[i - 1], out var operand))
1091
if (i >= 3 && GetConstantValue(
FoldedInstructions
[i - 3], out operand) && operand is int opint2 && IsPairedStlocLdloc(
FoldedInstructions
[i - 2],
FoldedInstructions
[i - 1]))
1106
if (i >= 5 && opcode == OpCodes.Switch && GetConstantValue(
FoldedInstructions
[i - 5], out operand) && operand is int opint3 && IsPairedStlocLdloc(
FoldedInstructions
[i - 4],
FoldedInstructions
[i - 3]))
1111
if (!GetConstantValue(
FoldedInstructions
[i - 2], out operand) || operand is not int offset)
1114
if (
FoldedInstructions
[i - 1].OpCode != OpCodes.Sub)
1185
Debug.Assert(
FoldedInstructions
!= null);
1187
var reachable = new BitArray(
FoldedInstructions
.Count);
1195
while (i <
FoldedInstructions
.Count)
1201
var instr =
FoldedInstructions
[i++];
1273
if (filterEnd >= 0 &&
FoldedInstructions
[filterEnd].OpCode == OpCodes.Endfilter)
1314
Debug.Assert(
FoldedInstructions
!= null && mapping != null);
1318
idx =
FoldedInstructions
.IndexOf(instruction);
1334
Debug.Assert(
FoldedInstructions
!= null);
1341
return GetConstantValue(
FoldedInstructions
[index - 2], out left) &&
1342
GetConstantValue(
FoldedInstructions
[index - 1], out right);
1370
Debug.Assert(
FoldedInstructions
!= null);
1371
return HasJumpIntoTargetRange(
FoldedInstructions
, firstInstr, lastInstr, TryGetInstructionIndex);