Пример #1
0
 public BlockRange(InstructionBlock start, InstructionBlock end)
 {
     this.Start = start;
     this.End   = end;
 }
Пример #2
0
 private void RegisterBlock(InstructionBlock block)
 {
     this.blocks.Add(block.First.Offset, block);
 }
Пример #3
0
        private void ComputeExceptionSuccessor(ExceptionHandler handler)
        {
            InstructionBlock block = this.GetBlock(handler.HandlerStart);

            this.GetBlock(handler.TryStart).AddExceptionSuccessor(block);
        }
Пример #4
0
 private void ComputeInstructionData(HashSet <InstructionBlock> visited, int stackHeight, InstructionBlock block)
 {
     if (!visited.Contains(block))
     {
         visited.Add(block);
         foreach (Instruction instruction in block)
         {
             stackHeight = this.ComputeInstructionData(stackHeight, instruction);
         }
         foreach (InstructionBlock block2 in block.Successors)
         {
             this.ComputeInstructionData(visited, stackHeight, block2);
         }
     }
 }