public UvmInstruction MakeInstructionLine(UvmOpCodeEnums opCode, string line, Instruction ilInstruction) { var inst = UvmInstruction.Create(opCode, ilInstruction); inst.AsmLine = line; return(inst); }
public void AddInstructionLine(UvmOpCodeEnums opCode, string line, Instruction ilInstruction) { var inst = UvmInstruction.Create(opCode, ilInstruction); inst.AsmLine = line; AddInstruction(inst); }
public int IndexOfUvmInstruction(UvmInstruction inst) { if (inst == null) { return(-1); } return(NotEmptyCodeInstructions().IndexOf(inst)); }
public void AddInstruction(UvmInstruction inst) { this.CodeInstructions.Add(inst); if (inst.IlInstruction != null && !(inst is UvmEmptyInstruction)) { if (!IlInstructionsToUvmInstructionsMap.ContainsKey(inst.IlInstruction)) { IlInstructionsToUvmInstructionsMap[inst.IlInstruction] = inst; } if (NotMappedILInstructions.Count > 0) { foreach (var notMappedItem in NotMappedILInstructions) { IlInstructionsToUvmInstructionsMap[notMappedItem] = inst; } NotMappedILInstructions.Clear(); } } }
public UvmInstruction MakeEmptyInstruction(string comment) { return(UvmInstruction.CreateEmpty(comment)); }
public void AddEmptyInstruction(string comment) { AddInstruction(UvmInstruction.CreateEmpty(comment)); }