Ejemplo n.º 1
0
 public static LLInstructionBlock Create(LLFunction pFunction, LLLabel pStartLabel)
 {
     LLInstructionBlock block = new LLInstructionBlock();
     block.mFunction = pFunction;
     block.mStartLabel = pStartLabel;
     block.EmitLabel(pStartLabel);
     return block;
 }
Ejemplo n.º 2
0
        public static LLInstructionBlock Create(LLFunction pFunction, LLLabel pStartLabel)
        {
            LLInstructionBlock block = new LLInstructionBlock();

            block.mFunction   = pFunction;
            block.mStartLabel = pStartLabel;
            block.EmitLabel(pStartLabel);
            return(block);
        }
Ejemplo n.º 3
0
        public LLInstructionBlock CreateBlock(LLLabel pStartLabel)
        {
            if (mBlocks == null)
            {
                mBlocks = new List <LLInstructionBlock>();
            }
            LLInstructionBlock block = LLInstructionBlock.Create(this, pStartLabel);

            mBlocks.Add(block);
            if (mBlocks.Count == 1)
            {
                if (mLocals != null)
                {
                    foreach (LLLocal local in mLocals)
                    {
                        block.EmitAllocate(LLLocalLocation.Create(local));
                    }
                }
            }
            return(block);
        }
Ejemplo n.º 4
0
 public virtual void Store(LLInstructionBlock pBlock, LLLocation pSource)
 {
     throw new NotSupportedException();
 }
Ejemplo n.º 5
0
 public virtual LLLocation Load(LLInstructionBlock pBlock)
 {
     throw new NotSupportedException();
 }
Ejemplo n.º 6
0
 public virtual void Store(LLInstructionBlock pBlock, LLLocation pSource)
 {
     throw new NotSupportedException();
 }
Ejemplo n.º 7
0
 public virtual LLLocation Load(LLInstructionBlock pBlock)
 {
     throw new NotSupportedException();
 }