Пример #1
0
 public BasicBlock()
 {
     prev  = new BasicBlockArray();
     next  = new BasicBlockArray();
     links = new BasicBlockArray();
     body  = new NodeArray();
 }
Пример #2
0
 public BasicBlock()
 {
     prev = new BasicBlockArray();
     next = new BasicBlockArray();
     links = new BasicBlockArray();
     body = new NodeArray();
 }
Пример #3
0
        private void ReConstruct()         //Andrew
        {
            mbb.RemoveOption(BasicBlock.BASIC_BLOCK_OPTION);
            GraphProcessor     processor = new GraphProcessor();
            BasicBlocksBuilder builder   = new BasicBlocksBuilder(processor);

            entry = builder.createBasicBlock();
            builder.AddTask(mbb, entry);
            processor.Process();
            blockList = builder.BlockList;
        }
Пример #4
0
        public BasicBlocksGraph(MethodBodyBlock methodBodyBlock)
        {
            mbb = methodBodyBlock;
            mbb.RemoveOption(BasicBlock.BASIC_BLOCK_OPTION);
            GraphProcessor     processor = new GraphProcessor();
            BasicBlocksBuilder builder   = new BasicBlocksBuilder(processor);

            entry = builder.createBasicBlock();
            builder.AddTask(methodBodyBlock, entry);
            processor.Process();
            blockList = builder.BlockList;
        }
Пример #5
0
        //Andrew
        private void ReConstruct()
        {
            mbb.RemoveOption(BasicBlock.BASIC_BLOCK_OPTION);
            GraphProcessor processor = new GraphProcessor();
            BasicBlocksBuilder builder = new BasicBlocksBuilder(processor);

            entry = builder.createBasicBlock();
            builder.AddTask(mbb,entry);
            processor.Process();
            blockList = builder.BlockList;
        }
Пример #6
0
        public BasicBlocksGraph(MethodBodyBlock methodBodyBlock)
        {
            mbb = methodBodyBlock;
            mbb.RemoveOption(BasicBlock.BASIC_BLOCK_OPTION);
            GraphProcessor processor = new GraphProcessor();
            BasicBlocksBuilder builder = new BasicBlocksBuilder(processor);

            entry = builder.createBasicBlock();
            builder.AddTask(methodBodyBlock,entry);
            processor.Process();
            blockList = builder.BlockList;
        }
Пример #7
0
 public BasicBlocksBuilder(GraphProcessor graphProcessor)
     : base(graphProcessor)
 {
     blockList = new BasicBlockArray();
 }
Пример #8
0
 public BasicBlocksBuilder(GraphProcessor graphProcessor) :
     base(graphProcessor)
 {
     blockList = new BasicBlockArray();
 }