
jas.IincInsn Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jasmin Show documentation
Show all versions of jasmin Show documentation
Java Assembler Interface for the Soot framework
/**
* Some instructions are perniticky enough that its simpler
* to write them separately instead of smushing them with
* all the rest. the iinc instruction is one of them.
* @author $Author: fqian $
* @version $Revision: 1.1 $
*/
package jas;
import java.io.*;
public class IincInsn extends Insn implements RuntimeConstants
{
/**
* @param vindex Index of variable to be incremented.
* @param increment value to be added to the variable.
*
* A wide prefix is automatically added if either the
* vindex exceeds 256, or the increment value lies
* outside the range [-128, 127]
*
* The VM spec is unclear on how the wide instruction is implemented,
* but the implementation makes both the constant and the
* variable index 16 bit values for the wide version of this instruction.
*/
public IincInsn(int vindex, int increment)
{
opc = opc_iinc;
operand = new IincOperand(vindex, increment);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy