public virtual void Clear()
 {
     collinstr.Clear();
     pointer        = 0;
     exceptionTable = ExceptionTable.Empty;
 }
示例#2
0
 public FullInstructionSequence(VBStyleCollection <Instruction, int> collinstr, ExceptionTable
                                extable)
     : base(collinstr)
 {
     // *****************************************************************************
     // constructors
     // *****************************************************************************
     this.exceptionTable = extable;
     // translate raw exception handlers to instr
     foreach (ExceptionHandler handler in extable.GetHandlers())
     {
         handler.from_instr    = this.GetPointerByAbsOffset(handler.from);
         handler.to_instr      = this.GetPointerByAbsOffset(handler.to);
         handler.handler_instr = this.GetPointerByAbsOffset(handler.handler);
     }
 }