2007-06-06 00:41:04 +00:00
|
|
|
#ifndef CONSTANTS_H
|
|
|
|
#define CONSTANTS_H
|
2007-06-05 00:28:52 +00:00
|
|
|
|
|
|
|
enum OpCode {
|
|
|
|
aaload,
|
|
|
|
aastore,
|
2007-06-06 00:41:04 +00:00
|
|
|
aconst_null,
|
|
|
|
aload,
|
|
|
|
aload_0,
|
|
|
|
aload_1,
|
|
|
|
aload_2,
|
|
|
|
aload_3,
|
2007-06-05 00:28:52 +00:00
|
|
|
anewarray,
|
|
|
|
areturn,
|
|
|
|
arraylength,
|
2007-06-06 00:41:04 +00:00
|
|
|
astore,
|
|
|
|
astore_0,
|
|
|
|
astore_1,
|
|
|
|
astore_2,
|
|
|
|
astore_3,
|
2007-06-05 00:28:52 +00:00
|
|
|
athrow,
|
|
|
|
baload,
|
|
|
|
bastore,
|
|
|
|
bipush,
|
|
|
|
breakpoint,
|
|
|
|
caload,
|
|
|
|
castore,
|
|
|
|
checkcast,
|
|
|
|
d2f,
|
|
|
|
d2i,
|
|
|
|
d2l,
|
|
|
|
dadd,
|
|
|
|
daload,
|
|
|
|
dastore,
|
|
|
|
dcmpg,
|
|
|
|
dcmpl,
|
|
|
|
dconst,
|
|
|
|
ddiv,
|
|
|
|
dload,
|
|
|
|
dmul,
|
|
|
|
dneg,
|
|
|
|
drem,
|
|
|
|
dreturn,
|
|
|
|
dstore,
|
|
|
|
dsub,
|
|
|
|
dup,
|
2007-06-06 00:41:04 +00:00
|
|
|
dup_x1,
|
|
|
|
dup_x2,
|
2007-06-05 00:28:52 +00:00
|
|
|
dup2,
|
2007-06-06 00:41:04 +00:00
|
|
|
dup2_x1,
|
|
|
|
dup2_x2,
|
2007-06-05 00:28:52 +00:00
|
|
|
f2d,
|
|
|
|
f2i,
|
|
|
|
f2l,
|
|
|
|
fadd,
|
|
|
|
faload,
|
|
|
|
fastore,
|
|
|
|
fcmpg,
|
|
|
|
fcmpl,
|
|
|
|
fconst,
|
|
|
|
fdiv,
|
|
|
|
fload,
|
|
|
|
fmul,
|
|
|
|
fneg,
|
|
|
|
frem,
|
|
|
|
freturn,
|
|
|
|
fstore,
|
|
|
|
fsub,
|
|
|
|
getfield,
|
|
|
|
getstatic,
|
|
|
|
goto_,
|
2007-06-06 00:41:04 +00:00
|
|
|
goto_w,
|
2007-06-05 00:28:52 +00:00
|
|
|
i2b,
|
|
|
|
i2c,
|
|
|
|
i2d,
|
|
|
|
i2f,
|
|
|
|
i2l,
|
|
|
|
i2s,
|
|
|
|
iadd,
|
|
|
|
iaload,
|
|
|
|
iand,
|
|
|
|
iastore,
|
2007-06-06 00:41:04 +00:00
|
|
|
iconst_0,
|
|
|
|
iconst_1,
|
|
|
|
iconst_2,
|
|
|
|
iconst_3,
|
|
|
|
iconst_4,
|
|
|
|
iconst_5,
|
2007-06-05 00:28:52 +00:00
|
|
|
idiv,
|
|
|
|
if_,
|
2007-06-06 00:41:04 +00:00
|
|
|
if_acmpeq,
|
|
|
|
if_acmpne,
|
|
|
|
if_icmpeq,
|
|
|
|
if_icmpne,
|
|
|
|
if_icmpgt,
|
|
|
|
if_icmpge,
|
|
|
|
if_icmplt,
|
|
|
|
if_icmple,
|
2007-06-05 00:28:52 +00:00
|
|
|
ifeq,
|
|
|
|
ifge,
|
|
|
|
ifgt,
|
|
|
|
ifle,
|
|
|
|
iflt,
|
|
|
|
ifne,
|
|
|
|
ifnonnull,
|
|
|
|
ifnull,
|
|
|
|
iinc,
|
|
|
|
iload,
|
2007-06-06 00:41:04 +00:00
|
|
|
iload_0,
|
|
|
|
iload_1,
|
|
|
|
iload_2,
|
|
|
|
iload_3,
|
2007-06-05 00:28:52 +00:00
|
|
|
impdep1,
|
|
|
|
impdep2,
|
|
|
|
imul,
|
|
|
|
ineg,
|
|
|
|
instanceof,
|
|
|
|
invokeinterface,
|
|
|
|
invokespecial,
|
|
|
|
invokestatic,
|
|
|
|
invokevirtual,
|
|
|
|
ior,
|
|
|
|
irem,
|
|
|
|
ireturn,
|
|
|
|
ishl,
|
|
|
|
ishr,
|
|
|
|
istore,
|
2007-06-06 00:41:04 +00:00
|
|
|
istore_0,
|
|
|
|
istore_1,
|
|
|
|
istore_2,
|
|
|
|
istore_3,
|
2007-06-05 00:28:52 +00:00
|
|
|
isub,
|
|
|
|
iushr,
|
|
|
|
ixor,
|
|
|
|
jsr,
|
2007-06-06 00:41:04 +00:00
|
|
|
jsr_w,
|
2007-06-05 00:28:52 +00:00
|
|
|
l2d,
|
|
|
|
l2f,
|
|
|
|
l2i,
|
|
|
|
ladd,
|
|
|
|
laload,
|
|
|
|
land,
|
|
|
|
lastore,
|
|
|
|
lcmp,
|
2007-06-06 00:41:04 +00:00
|
|
|
lconst_0,
|
|
|
|
lconst_1,
|
2007-06-05 00:28:52 +00:00
|
|
|
ldc,
|
2007-06-06 00:41:04 +00:00
|
|
|
ldc_w,
|
|
|
|
ldc2_w,
|
2007-06-05 00:28:52 +00:00
|
|
|
ldiv,
|
|
|
|
lload,
|
2007-06-06 00:41:04 +00:00
|
|
|
lload_0,
|
|
|
|
lload_1,
|
|
|
|
lload_2,
|
|
|
|
lload_3,
|
2007-06-05 00:28:52 +00:00
|
|
|
lmul,
|
|
|
|
lneg,
|
|
|
|
lookupswitch,
|
|
|
|
lor,
|
|
|
|
lrem,
|
|
|
|
lreturn,
|
|
|
|
lshl,
|
|
|
|
lshr,
|
|
|
|
lstore,
|
2007-06-06 00:41:04 +00:00
|
|
|
lstore_0,
|
|
|
|
lstore_1,
|
|
|
|
lstore_2,
|
|
|
|
lstore_3,
|
2007-06-05 00:28:52 +00:00
|
|
|
lsub,
|
|
|
|
lushr,
|
|
|
|
lxor,
|
|
|
|
monitorenter,
|
|
|
|
monitorexit,
|
|
|
|
multianewarray,
|
|
|
|
new_,
|
|
|
|
newarray,
|
|
|
|
nop,
|
|
|
|
pop_,
|
|
|
|
pop2,
|
|
|
|
putfield,
|
|
|
|
putstatic,
|
|
|
|
ret,
|
|
|
|
return_,
|
|
|
|
saload,
|
|
|
|
sastore,
|
|
|
|
sipush,
|
|
|
|
swap,
|
|
|
|
tableswitch,
|
|
|
|
wide
|
|
|
|
};
|
|
|
|
|
2007-06-06 00:41:04 +00:00
|
|
|
enum TypeCode {
|
|
|
|
T_BOOLEAN = 4,
|
|
|
|
T_CHAR = 5,
|
|
|
|
T_FLOAT = 6,
|
|
|
|
T_DOUBLE = 7,
|
|
|
|
T_BYTE = 8,
|
|
|
|
T_SHORT = 9,
|
|
|
|
T_INT = 10,
|
|
|
|
T_LONG = 11
|
|
|
|
};
|
|
|
|
|
2007-06-13 14:03:08 +00:00
|
|
|
const unsigned ACC_PUBLIC = 1 << 0;
|
|
|
|
const unsigned ACC_FINAL = 1 << 4;
|
|
|
|
const unsigned ACC_SUPER = 1 << 5;
|
|
|
|
const unsigned ACC_INTERFACE = 1 << 9;
|
|
|
|
const unsigned ACC_ABSTRACT = 1 << 10;
|
|
|
|
|
2007-06-06 00:41:04 +00:00
|
|
|
#endif//CONSTANTS_H
|