/** * Gets the block with the given label. * * @param label the label to look for * @return {@code non-null;} the block with the given label */ public ByteBlock labelToBlock(int label) { int idx = indexOfLabel(label); if (idx < 0) { throw new IllegalArgumentException("no such label: " + Hex.u2(label)); } return get(idx); }
/** * Gets the indicated element. It is an error to call this with the * index for an element which was never set; if you do that, this * will throw {@code NullPointerException}. * * @param n {@code >= 0, < size();} which element * @return {@code non-null;} the indicated element */ public ByteBlock get(int n) { return (ByteBlock) get0(n); }
this.maxLabel = blocks.getMaxLabel(); this.maxLocals = method.getMaxLocals(); this.machine = new RopperMachine(this, method, advice); this.result = new ArrayList<BasicBlock>(blocks.size() * 2 + 10); this.resultSubroutines = new ArrayList<IntList>(blocks.size() * 2 + 10);
ByteBlockList result = new ByteBlockList(count); for (int i = 0; i < count; i++) { result.set(i, bbs[i]);
ByteBlock block = blocks.labelToBlock(offset); Frame frame = startFrames[offset]; try {
this.maxLabel = blocks.getMaxLabel(); this.maxLocals = method.getMaxLocals(); this.machine = new RopperMachine(this, method, advice); this.result = new ArrayList<BasicBlock>(blocks.size() * 2 + 10); this.resultSubroutines = new ArrayList<IntList>(blocks.size() * 2 + 10);
ByteBlockList result = new ByteBlockList(count); for (int i = 0; i < count; i++) { result.set(i, bbs[i]);
ByteBlock block = blocks.labelToBlock(offset); Frame frame = startFrames[offset]; try {
/** * Gets the block with the given label. * * @param label the label to look for * @return {@code non-null;} the block with the given label */ public ByteBlock labelToBlock(int label) { int idx = indexOfLabel(label); if (idx < 0) { throw new IllegalArgumentException("no such label: " + Hex.u2(label)); } return get(idx); }
this.maxLabel = blocks.getMaxLabel(); this.maxLocals = method.getMaxLocals(); this.machine = new RopperMachine(this, method, advice, methods); this.result = new ArrayList<BasicBlock>(blocks.size() * 2 + 10); this.resultSubroutines = new ArrayList<IntList>(blocks.size() * 2 + 10);
ByteBlockList result = new ByteBlockList(count); for (int i = 0; i < count; i++) { result.set(i, bbs[i]);
/** * Gets the indicated element. It is an error to call this with the * index for an element which was never set; if you do that, this * will throw {@code NullPointerException}. * * @param n {@code >= 0, < size();} which element * @return {@code non-null;} the indicated element */ public ByteBlock get(int n) { return (ByteBlock) get0(n); }
ByteBlock block = blocks.labelToBlock(offset); Frame frame = startFrames[offset]; try {
/** * Gets the block with the given label. * * @param label the label to look for * @return {@code non-null;} the block with the given label */ public ByteBlock labelToBlock(int label) { int idx = indexOfLabel(label); if (idx < 0) { throw new IllegalArgumentException("no such label: " + Hex.u2(label)); } return get(idx); }
this.maxLabel = blocks.getMaxLabel(); this.maxLocals = method.getMaxLocals(); this.machine = new RopperMachine(this, method, advice, methods); this.result = new ArrayList<BasicBlock>(blocks.size() * 2 + 10); this.resultSubroutines = new ArrayList<IntList>(blocks.size() * 2 + 10);
ByteBlockList result = new ByteBlockList(count); for (int i = 0; i < count; i++) { result.set(i, bbs[i]);