Exemple #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);
        }
Exemple #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);
        }
Exemple #3
0
 public BranchInfo(IlLocation startLocation, Label endLabel)
 {
     this.myStart = startLocation;
     this.myLabel = endLabel;
     this.myEnd   = new IlLocation();
 }