< prev index next >

src/java.base/share/classes/jdk/internal/org/objectweb/asm/Constants.java

Print this page




 160     static final int DSTORE_1 = 72;
 161     static final int DSTORE_2 = 73;
 162     static final int DSTORE_3 = 74;
 163     static final int ASTORE_0 = 75;
 164     static final int ASTORE_1 = 76;
 165     static final int ASTORE_2 = 77;
 166     static final int ASTORE_3 = 78;
 167     static final int WIDE = 196;
 168     static final int GOTO_W = 200;
 169     static final int JSR_W = 201;
 170 
 171     // Constants to convert between normal and wide jump instructions.
 172 
 173     // The delta between the GOTO_W and JSR_W opcodes and GOTO and JUMP.
 174     static final int WIDE_JUMP_OPCODE_DELTA = GOTO_W - GOTO;
 175 
 176     // Constants to convert JVM opcodes to the equivalent ASM specific opcodes, and vice versa.
 177 
 178     // The delta between the ASM_IFEQ, ..., ASM_IF_ACMPNE, ASM_GOTO and ASM_JSR opcodes
 179     // and IFEQ, ..., IF_ACMPNE, GOTO and JSR.
 180     static final int ASM_OPCODE_DELTA = 49;
 181 
 182     // The delta between the ASM_IFNULL and ASM_IFNONNULL opcodes and IFNULL and IFNONNULL.
 183     static final int ASM_IFNULL_OPCODE_DELTA = 20;
 184 
 185     // ASM specific opcodes, used for long forward jump instructions.
 186 
 187     static final int ASM_IFEQ = IFEQ + ASM_OPCODE_DELTA;
 188     static final int ASM_IFNE = IFNE + ASM_OPCODE_DELTA;
 189     static final int ASM_IFLT = IFLT + ASM_OPCODE_DELTA;
 190     static final int ASM_IFGE = IFGE + ASM_OPCODE_DELTA;
 191     static final int ASM_IFGT = IFGT + ASM_OPCODE_DELTA;
 192     static final int ASM_IFLE = IFLE + ASM_OPCODE_DELTA;
 193     static final int ASM_IF_ICMPEQ = IF_ICMPEQ + ASM_OPCODE_DELTA;
 194     static final int ASM_IF_ICMPNE = IF_ICMPNE + ASM_OPCODE_DELTA;
 195     static final int ASM_IF_ICMPLT = IF_ICMPLT + ASM_OPCODE_DELTA;
 196     static final int ASM_IF_ICMPGE = IF_ICMPGE + ASM_OPCODE_DELTA;
 197     static final int ASM_IF_ICMPGT = IF_ICMPGT + ASM_OPCODE_DELTA;
 198     static final int ASM_IF_ICMPLE = IF_ICMPLE + ASM_OPCODE_DELTA;
 199     static final int ASM_IF_ACMPEQ = IF_ACMPEQ + ASM_OPCODE_DELTA;
 200     static final int ASM_IF_ACMPNE = IF_ACMPNE + ASM_OPCODE_DELTA;
 201     static final int ASM_GOTO = GOTO + ASM_OPCODE_DELTA;
 202     static final int ASM_JSR = JSR + ASM_OPCODE_DELTA;





 203     static final int ASM_IFNULL = IFNULL + ASM_IFNULL_OPCODE_DELTA;
 204     static final int ASM_IFNONNULL = IFNONNULL + ASM_IFNULL_OPCODE_DELTA;
 205     static final int ASM_GOTO_W = 220;
 206 
 207     private Constants() {}
 208 }


 160     static final int DSTORE_1 = 72;
 161     static final int DSTORE_2 = 73;
 162     static final int DSTORE_3 = 74;
 163     static final int ASTORE_0 = 75;
 164     static final int ASTORE_1 = 76;
 165     static final int ASTORE_2 = 77;
 166     static final int ASTORE_3 = 78;
 167     static final int WIDE = 196;
 168     static final int GOTO_W = 200;
 169     static final int JSR_W = 201;
 170 
 171     // Constants to convert between normal and wide jump instructions.
 172 
 173     // The delta between the GOTO_W and JSR_W opcodes and GOTO and JUMP.
 174     static final int WIDE_JUMP_OPCODE_DELTA = GOTO_W - GOTO;
 175 
 176     // Constants to convert JVM opcodes to the equivalent ASM specific opcodes, and vice versa.
 177 
 178     // The delta between the ASM_IFEQ, ..., ASM_IF_ACMPNE, ASM_GOTO and ASM_JSR opcodes
 179     // and IFEQ, ..., IF_ACMPNE, GOTO and JSR.
 180     // Offset to next available opcode after WITHFIELD from IFEQ
 181     static final int ASM_OPCODE_DELTA = (WITHFIELD + 1) - IFEQ;


 182 
 183     // ASM specific opcodes, used for long forward jump instructions.
 184 
 185     static final int ASM_IFEQ = IFEQ + ASM_OPCODE_DELTA;
 186     static final int ASM_IFNE = IFNE + ASM_OPCODE_DELTA;
 187     static final int ASM_IFLT = IFLT + ASM_OPCODE_DELTA;
 188     static final int ASM_IFGE = IFGE + ASM_OPCODE_DELTA;
 189     static final int ASM_IFGT = IFGT + ASM_OPCODE_DELTA;
 190     static final int ASM_IFLE = IFLE + ASM_OPCODE_DELTA;
 191     static final int ASM_IF_ICMPEQ = IF_ICMPEQ + ASM_OPCODE_DELTA;
 192     static final int ASM_IF_ICMPNE = IF_ICMPNE + ASM_OPCODE_DELTA;
 193     static final int ASM_IF_ICMPLT = IF_ICMPLT + ASM_OPCODE_DELTA;
 194     static final int ASM_IF_ICMPGE = IF_ICMPGE + ASM_OPCODE_DELTA;
 195     static final int ASM_IF_ICMPGT = IF_ICMPGT + ASM_OPCODE_DELTA;
 196     static final int ASM_IF_ICMPLE = IF_ICMPLE + ASM_OPCODE_DELTA;
 197     static final int ASM_IF_ACMPEQ = IF_ACMPEQ + ASM_OPCODE_DELTA;
 198     static final int ASM_IF_ACMPNE = IF_ACMPNE + ASM_OPCODE_DELTA;
 199     static final int ASM_GOTO = GOTO + ASM_OPCODE_DELTA;
 200     static final int ASM_JSR = JSR + ASM_OPCODE_DELTA;
 201 
 202     // The delta between the ASM_IFNULL and ASM_IFNONNULL opcodes and IFNULL and IFNONNULL.
 203     // Offset to next available opcode after ASM_JSR from IFNULL.
 204     static final int ASM_IFNULL_OPCODE_DELTA = (ASM_JSR + 1) - IFNULL;
 205 
 206     static final int ASM_IFNULL = IFNULL + ASM_IFNULL_OPCODE_DELTA;
 207     static final int ASM_IFNONNULL = IFNONNULL + ASM_IFNULL_OPCODE_DELTA;
 208     static final int ASM_GOTO_W = GOTO_W + ASM_IFNULL_OPCODE_DELTA;
 209 
 210     private Constants() {}
 211 }
< prev index next >