| 178 | } |
| 179 | |
| 180 | protected void ensureCapacity(int n) { |
| 181 | if ( (ip+n)>=impl.instrs.length ) { // ensure room for full instruction |
| 182 | byte[] c = new byte[impl.instrs.length*2]; |
| 183 | System.arraycopy(impl.instrs, 0, c, 0, impl.instrs.length); |
| 184 | impl.instrs = c; |
| 185 | Interval[] sm = new Interval[impl.sourceMap.length*2]; |
| 186 | System.arraycopy(impl.sourceMap, 0, sm, 0, impl.sourceMap.length); |
| 187 | impl.sourceMap = sm; |
| 188 | } |
| 189 | } |
| 190 | |
| 191 | public void indent(CommonTree indent) { |
| 192 | emit1(indent, Bytecode.INSTR_INDENT, indent.getText()); |