// Adds a new instruction to this program, with operator |op| and |pc| equal // to |numInst()|. public void addInst(Inst.InstOp op) { if (instSize >= inst.Length) { Array.Resize(ref inst, inst.Length * 2); } inst[instSize] = new Inst(op); instSize++; }
private Frag newInst(Inst.InstOp op) { // TODO(rsc): impose length limit. prog.addInst(op); return(new Frag(prog.numInst() - 1)); }
public int[] runes; // length==1 => exact match // otherwise a list of [lo,hi] pairs. hi is *inclusive*. // REVIEWERS: why not half-open intervals? public Inst(Inst.InstOp op) { this.op = (InstOp)op; }