Exemplo n.º 1
0
        public void AddBranch(FleeIlGenerator ilg, Label target)
        {
            var startLoc = new IlLocation(ilg.Length);
            var bi       = new BranchInfo(startLoc, target);

            this.myBranchInfos.Add(bi);
        }
Exemplo n.º 2
0
        public bool IsLongBranch(FleeIlGenerator ilg, Label target)
        {
            var startLoc = new IlLocation(ilg.Length);
            var bi       = new BranchInfo(startLoc, target);
            var index    = this.myBranchInfos.IndexOf(bi);

            bi = this.myBranchInfos[index];
            return(bi.IsLongBranch);
        }
Exemplo n.º 3
0
 public BranchInfo(IlLocation startLocation, Label endLabel)
 {
     this.myStart = startLocation;
     this.myLabel = endLabel;
     this.myEnd   = new IlLocation();
 }