public void emitStore(final LocalBuilder local) { VerifyArgument.notNull(local, "local"); if (local.getMethodBuilder() != methodBuilder) { throw Error.unmatchedLocal(); } if (local.startOffset < 0) { local.startOffset = offset(); } emitStore( local.getLocalType(), translateLocal(local.getLocalIndex()) ); local.endOffset = offset(); }
public void emitLoad(final LocalBuilder local) { VerifyArgument.notNull(local, "local"); if (local.getMethodBuilder() != methodBuilder) { throw Error.unmatchedLocal(); } if (local.startOffset < 0) { local.startOffset = offset(); } emitLoad( local.getLocalType(), translateLocal(local.getLocalIndex()) ); local.endOffset = offset(); }
public void emitLoad(final LocalBuilder local) { VerifyArgument.notNull(local, "local"); if (local.getMethodBuilder() != methodBuilder) { throw Error.unmatchedLocal(); } if (local.startOffset < 0) { local.startOffset = offset(); } emitLoad( local.getLocalType(), translateLocal(local.getLocalIndex()) ); local.endOffset = offset(); }
public void emitLoad(final LocalBuilder local) { VerifyArgument.notNull(local, "local"); if (local.getMethodBuilder() != methodBuilder) { throw Error.unmatchedLocal(); } if (local.startOffset < 0) { local.startOffset = offset(); } emitLoad( local.getLocalType(), translateLocal(local.getLocalIndex()) ); local.endOffset = offset(); }
public void emitStore(final LocalBuilder local) { VerifyArgument.notNull(local, "local"); if (local.getMethodBuilder() != methodBuilder) { throw Error.unmatchedLocal(); } if (local.startOffset < 0) { local.startOffset = offset(); } emitStore( local.getLocalType(), translateLocal(local.getLocalIndex()) ); local.endOffset = offset(); }
public void emitStore(final LocalBuilder local) { VerifyArgument.notNull(local, "local"); if (local.getMethodBuilder() != methodBuilder) { throw Error.unmatchedLocal(); } if (local.startOffset < 0) { local.startOffset = offset(); } emitStore( local.getLocalType(), translateLocal(local.getLocalIndex()) ); local.endOffset = offset(); }
l.getName(), l.getLocalType(), builder.generator.translateLocal(l.getLocalIndex()), l.startOffset < 0 ? 0 : l.startOffset, l.endOffset < 0 ? builder.generator.offset() : l.endOffset
public void increment(final LocalBuilder local, final int delta) { VerifyArgument.notNull(local, "local"); final int localIndex = translateLocal(local.getLocalIndex()); if (local.startOffset < 0) { local.startOffset = offset(); } if (localIndex < MAX_BYTE && delta <= Byte.MAX_VALUE && delta >= Byte.MIN_VALUE) { emit(OpCode.IINC); emitByteOperand(localIndex); emitByteOperand(delta); } else { emit(OpCode.IINC_W); emitShortOperand(localIndex); emitShortOperand(delta); } local.endOffset = offset(); }
public void increment(final LocalBuilder local, final int delta) { VerifyArgument.notNull(local, "local"); final int localIndex = translateLocal(local.getLocalIndex()); if (local.startOffset < 0) { local.startOffset = offset(); } if (localIndex < MAX_BYTE && delta <= Byte.MAX_VALUE && delta >= Byte.MIN_VALUE) { emit(OpCode.IINC); emitByteOperand(localIndex); emitByteOperand(delta); } else { emit(OpCode.IINC_W); emitShortOperand(localIndex); emitShortOperand(delta); } local.endOffset = offset(); }
public void increment(final LocalBuilder local, final int delta) { VerifyArgument.notNull(local, "local"); final int localIndex = translateLocal(local.getLocalIndex()); if (local.startOffset < 0) { local.startOffset = offset(); } if (localIndex < MAX_BYTE && delta <= Byte.MAX_VALUE && delta >= Byte.MIN_VALUE) { emit(OpCode.IINC); emitByteOperand(localIndex); emitByteOperand(delta); } else { emit(OpCode.IINC_W); emitShortOperand(localIndex); emitShortOperand(delta); } local.endOffset = offset(); }