static private ComputeStackDelta ( |
||
instruction | ||
stack_size | int | |
return | void |
private static void ComputeStackSize(Instruction instruction, ref Dictionary <Instruction, int> stack_sizes, ref int stack_size, ref int max_stack) { int num; if (stack_sizes != null && stack_sizes.TryGetValue(instruction, out num)) { stack_size = num; } max_stack = System.Math.Max(max_stack, stack_size); CodeWriter.ComputeStackDelta(instruction, ref stack_size); max_stack = System.Math.Max(max_stack, stack_size); CodeWriter.CopyBranchStackSize(instruction, ref stack_sizes, stack_size); CodeWriter.ComputeStackSize(instruction, ref stack_size); }