2 writes to FoldedInstructions
illink (2)
Linker.Steps\UnreachableBlocksOptimizer.cs (2)
662
FoldedInstructions
= null;
684
FoldedInstructions
= new Collection<Instruction>(Instructions);
31 references to FoldedInstructions
illink (31)
Linker.Steps\UnreachableBlocksOptimizer.cs (31)
680
[MemberNotNull(nameof(
FoldedInstructions
))]
690
if (
FoldedInstructions
== null)
699
FoldedInstructions
[index] = newInstruction;
766
if (
FoldedInstructions
== null)
772
stackDepth -= GetStackBehaviourDelta(
FoldedInstructions
[start_index], out bool undefined);
886
if (
FoldedInstructions
== null)
941
Instruction[]? args = GetArgumentsOnStack(md,
FoldedInstructions
?? instructions, i);
1033
Debug.Assert(
FoldedInstructions
!= null);
1044
for (int i = 0; i <
FoldedInstructions
.Count; ++i)
1046
var instr =
FoldedInstructions
[i];
1082
if (i > 0 && GetConstantValue(
FoldedInstructions
[i - 1], out var operand))
1109
if (i >= 3 && GetConstantValue(
FoldedInstructions
[i - 3], out operand) && operand is int opint2 && IsPairedStlocLdloc(
FoldedInstructions
[i - 2],
FoldedInstructions
[i - 1]))
1124
if (i >= 5 && opcode == OpCodes.Switch && GetConstantValue(
FoldedInstructions
[i - 5], out operand) && operand is int opint3 && IsPairedStlocLdloc(
FoldedInstructions
[i - 4],
FoldedInstructions
[i - 3]))
1129
if (!GetConstantValue(
FoldedInstructions
[i - 2], out operand) || operand is not int offset)
1132
if (
FoldedInstructions
[i - 1].OpCode != OpCodes.Sub)
1203
Debug.Assert(
FoldedInstructions
!= null);
1205
var reachable = new BitArray(
FoldedInstructions
.Count);
1231
while (i <
FoldedInstructions
.Count)
1237
var instr =
FoldedInstructions
[i++];
1309
if (filterEnd >= 0 &&
FoldedInstructions
[filterEnd].OpCode == OpCodes.Endfilter)
1359
Debug.Assert(
FoldedInstructions
!= null && mapping != null);
1363
idx =
FoldedInstructions
.IndexOf(instruction);
1379
Debug.Assert(
FoldedInstructions
!= null);
1386
return GetConstantValue(
FoldedInstructions
[index - 2], out left) &&
1387
GetConstantValue(
FoldedInstructions
[index - 1], out right);
1415
Debug.Assert(
FoldedInstructions
!= null);
1416
return HasJumpIntoTargetRange(
FoldedInstructions
, firstInstr, lastInstr, TryGetInstructionIndex);